Skip to content

Commit

Permalink
Revert change to H5_IS_KNOWN_BUFFER_OVERFLOW
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF committed Mar 26, 2024
1 parent 819c3cd commit df99d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/H5private.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
* the entire library.
*/
#define H5_IS_KNOWN_BUFFER_OVERFLOW(skip, ptr, size, buffer_end) \
(skip ? false : H5_IS_BUFFER_OVERFLOW(ptr, size, buffer_end))
(skip ? false : ((ptr) + (size)-1) > (buffer_end))

/*
* HDF Boolean type.
Expand Down

0 comments on commit df99d07

Please sign in to comment.