mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-07 16:37:56 +08:00
[svn-r9330] Purpose:
Bug fix Description: Another attempt to fix the address overflow in the core VFL, hopefully one that works on 64-bit platforms. Platforms tested: AIX 5.1 (copper)
This commit is contained in:
parent
5c0011a713
commit
85597e5cc7
@ -79,10 +79,9 @@ typedef struct H5FD_core_fapl_t {
|
||||
* REGION_OVERFLOW: Checks whether an address and size pair describe data
|
||||
* which can be addressed entirely in memory.
|
||||
*/
|
||||
#define MAXADDR ((haddr_t)(~(size_t)0))
|
||||
#define ADDR_OVERFLOW(A) (HADDR_UNDEF==(A) || \
|
||||
((A) & ~(haddr_t)MAXADDR))
|
||||
#define SIZE_OVERFLOW(Z) ((Z) & ~(hsize_t)MAXADDR)
|
||||
#define MAXADDR ((haddr_t)((~(size_t)0)-1))
|
||||
#define ADDR_OVERFLOW(A) (HADDR_UNDEF==(A) || (A) > (haddr_t)MAXADDR)
|
||||
#define SIZE_OVERFLOW(Z) ((Z) > (hsize_t)MAXADDR)
|
||||
#define REGION_OVERFLOW(A,Z) (ADDR_OVERFLOW(A) || SIZE_OVERFLOW(Z) || \
|
||||
HADDR_UNDEF==(A)+(Z) || \
|
||||
(size_t)((A)+(Z))<(size_t)(A))
|
||||
|
Loading…
Reference in New Issue
Block a user