-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Add H5Tdecode2, rename and deprecate H5Tdecode #5213
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good, just needs a test for H5Tdecode1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Address Fortran issues.
src/H5vers.txt
Outdated
@@ -86,6 +86,7 @@ FUNCTION: H5Tarray_create; ; v14, v18 | |||
FUNCTION: H5Tcommit; ; v10, v18 | |||
FUNCTION: H5Tget_array_dims; ; v14, v18 | |||
FUNCTION: H5Topen; ; v10, v18 | |||
FUNCTION: H5Tdecode; ; v12, v200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find H5Tdecode in the code tag hdf5-1_8_0, but not in tag hdf5-1_6_10, so I think this line should end with ; v18, v200.
I believe that change would also not add lines 151 - 154 in H5version.h.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's strange. I can't find it in 1.6 either, but the reference manual lists it as since 1.2
. I'll update both of these to reflect a 1.8 addition.
Make buf_size an optional a parameter
Make buf_size optional
test optional parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the Fortran API use an optional parameter instead since it is not all that needed from a Fortran perspective.
When provided malformed or too-small buffers, H5Tdecode() could crash due to walking off the end of the buffer. The new buffer size parameter allows this to be reliably avoided.
Resolves #4661