Potential "use before initialization" bug #3969
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 help@hdfgroup.org instead of creating an issue on GitHub
Milestone
Describe the bug
I ran the valgrind analyser and it showed a "use before initialization" here https://github.com/HDFGroup/hdf5/blob/develop/src/H5Dchunk.c#L3290
The field
fsel_type
was marked as uninitialized by valgrind. The field was created here https://github.com/HDFGroup/hdf5/blob/develop/src/H5Dchunk.c#L1047, after I initialized the field manually the warning disappeared.Tested on 1.14.3
The text was updated successfully, but these errors were encountered: