diff options
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h index eb7d8e0..d92f7f6 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -2436,6 +2436,11 @@ H5_DLL herr_t H5CX_pop(hbool_t update_dxpl_props); #define HDcompile_assert(e) do { typedef struct { unsigned int b: (e); } x; } while(0) */ +/* Check if a read of size bytes starting at ptr would overflow past + * the last valid byte, pointed to by buffer_end . + */ +#define H5_IS_BUFFER_OVERFLOW(ptr, size, buffer_end) (((ptr) + (size)-1) > (buffer_end)) + /* Private typedefs */ /* Union for const/non-const pointer for use by functions that manipulate |