summaryrefslogtreecommitdiffstats
path: root/src/H5FDdirect.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-01-22 19:20:02 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-01-22 19:20:02 (GMT)
commit764eb59b3329b0ba7d60e52812b06757de3a29ed (patch)
tree3a4f434c9dcb587cdefce568dc00f1db34a70598 /src/H5FDdirect.c
parentb42b187023e505c8857efc9a9d561ff88c83c7ac (diff)
parent5eee1d7d7e352d90e0350f235b8066550a51f19b (diff)
downloadhdf5-764eb59b3329b0ba7d60e52812b06757de3a29ed.zip
hdf5-764eb59b3329b0ba7d60e52812b06757de3a29ed.tar.gz
hdf5-764eb59b3329b0ba7d60e52812b06757de3a29ed.tar.bz2
[svn-r26004] merge from trunk.
Diffstat (limited to 'src/H5FDdirect.c')
-rw-r--r--src/H5FDdirect.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/H5FDdirect.c b/src/H5FDdirect.c
index 5f695eb..2456088 100644
--- a/src/H5FDdirect.c
+++ b/src/H5FDdirect.c
@@ -898,8 +898,6 @@ H5FD_direct_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, ha
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "addr undefined")
if (REGION_OVERFLOW(addr, size))
HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow")
- if((addr + size) > file->eoa)
- HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow")
/* If the system doesn't require data to be aligned, read the data in
* the same way as sec2 driver.
@@ -1086,8 +1084,6 @@ H5FD_direct_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, h
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "addr undefined")
if (REGION_OVERFLOW(addr, size))
HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow")
- if (addr+size>file->eoa)
- HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow")
/* If the system doesn't require data to be aligned, read the data in
* the same way as sec2 driver.