Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix segmentation fault with opaque node #76

Closed
wants to merge 1 commit into from

Conversation

nvxf
Copy link
Contributor

@nvxf nvxf commented Jan 22, 2024

data: fix DNode.new schema handling

In case of a call to DNode.new with cdata containing an opaque node the new method tries to access cdata.schema.nodetype, which results in a NULL pointer dereference.

To get the schema for an opaque node retrieve the schema from the context using the path of the node.

Fixes: #73

In case of a call to DNode.new with cdata containing an opaque node
the new method tries to access cdata.schema.nodetype, which results
in a NULL pointer dereference.

To get the schema for an opaque node retrieve the schema from the
context using the path of the node.

Fixes: CESNET#73
Signed-off-by: nvxf <[email protected]>
@samuel-gauthier
Copy link
Collaborator

Hi @nvxf,

This commit seems to be included in your other pull request #77, do you confirm?

Thanks,
Samuel

@nvxf
Copy link
Contributor Author

nvxf commented Jan 24, 2024

Hi Samuel,

yes, the second branch was created from this branch.

@samuel-gauthier
Copy link
Collaborator

Could you rebase that on the current master as well?

@nvxf
Copy link
Contributor Author

nvxf commented Jan 30, 2024

I will close this in favor of: #77 which includes the fix as well

@nvxf nvxf closed this Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation fault with opaq leaf
2 participants