-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Fixes crashes when size_hint > UINT32_MAX is passed to H5Gcreate1 #611
Changes from 29 commits
ba9deae
00f9750
e997283
3eac585
71643b7
d242911
bc70f95
3d7ad8e
aeb16b7
765cb5b
18401fc
222242c
8d0cafa
d3694d1
1c7bcc2
70551e3
2dfc7db
71d2fbf
c8925f8
dd3e970
bb61990
2c2b368
be2ada6
439f3a8
649aa9b
3fa627f
7a6ee4e
17fc91e
3df386a
5f825f9
850e79e
a4227fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -684,7 +684,7 @@ typedef struct H5O_bogus_t { | |
*/ | ||
typedef struct H5O_ginfo_t { | ||
/* "Old" format group info (not stored) */ | ||
uint32_t lheap_size_hint; /* Local heap size hint */ | ||
size_t lheap_size_hint; /* Local heap size hint */ | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I probably need to go look at the file format to make sure this value makes sense. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the file format specifies this as a 32-bit value, so allowing it to be a size_t is probably not a good direction. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right. I'm switching it back. |
||
/* "New" format group info (stored) */ | ||
|
||
|
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.
Why the change here? size_t is probably larger than uint32_t and would be truncated if too large.
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 switched this because I updated the struct field to use size_t, but that's being switched back.