Compound conversion with user callback segfaults #3840
Labels
Component - C Library
Core C library issues (usually in the src directory)
Priority - 2. Medium ⏹
It would be nice to have this in the next release
Type - Bug / Bugfix
Please report security issues to [email protected] instead of creating an issue on GitHub
Describe the bug
When the user defines a conversion function between two compound types that doesn't provide a value for
cdata->private
, the library will segfault while checking if the two compound types are subsets of one another inH5D__typeinfo_init
.Expected behavior
Type conversion and dataset write should complete without errors.
cdata->priv
should not be used by the library when a user-defined callback function is specified.Platform (please complete the following information)
5e787741cd
)Additional context
Replication program:
Output:
Stack trace from valgrind:
The text was updated successfully, but these errors were encountered: