c++ H5File Constructor Error #5191
Labels
Component - C++
C++ wrappers
Priority - 3. Low 🔽
Code cleanup, small feature change requests, etc.
Type - Bug / Bugfix
Please report security issues to [email protected] instead of creating an issue on GitHub
When create H5File object use constructor
H5File(const H5std_string &name, unsigned int flags, const FileAccPropList &access_plist);
may pass wrongconst char*
string toH5Fcreate
.The STL String default without the NULL character
\0
. So in the rowp_get_file(name.c_str(), flags, create_plist, access_plist);
, simply pass it byname.c_str()
may not correct and add some characters.The simplest way is append
\0
before callc_str()
.The text was updated successfully, but these errors were encountered: