summaryrefslogtreecommitdiffstats
path: root/src/H5FDlog.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-08-25 19:15:41 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-08-25 19:15:41 (GMT)
commitf841a942427dd5d5fc139e30e07125de634e1863 (patch)
treefb353785e7a5b68b5ddbaa3cdb015fa7622ee6b7 /src/H5FDlog.c
parenta532b1814e0a6f784b0cad17b6fd2a9457d98899 (diff)
downloadhdf5-f841a942427dd5d5fc139e30e07125de634e1863.zip
hdf5-f841a942427dd5d5fc139e30e07125de634e1863.tar.gz
hdf5-f841a942427dd5d5fc139e30e07125de634e1863.tar.bz2
[svn-r7398] Purpose:
Code cleanup Description: De-linted more code Platforms tested: FreeBSD 4.8 (sleipnir) too minor to require h5committest
Diffstat (limited to 'src/H5FDlog.c')
-rw-r--r--src/H5FDlog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c
index 50876e7..8e7f3f9 100644
--- a/src/H5FDlog.c
+++ b/src/H5FDlog.c
@@ -1061,7 +1061,9 @@ H5FD_log_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, haddr
}
assert(nbytes>=0);
assert((size_t)nbytes<=size);
+ H5_CHECK_OVERFLOW(nbytes,ssize_t,size_t);
size -= (size_t)nbytes;
+ H5_CHECK_OVERFLOW(nbytes,ssize_t,haddr_t);
addr += (haddr_t)nbytes;
buf = (char*)buf + nbytes;
}
@@ -1196,7 +1198,9 @@ H5FD_log_write(H5FD_t *_file, H5FD_mem_t type, hid_t UNUSED dxpl_id, haddr_t add
}
assert(nbytes>0);
assert((size_t)nbytes<=size);
+ H5_CHECK_OVERFLOW(nbytes,ssize_t,size_t);
size -= (size_t)nbytes;
+ H5_CHECK_OVERFLOW(nbytes,ssize_t,haddr_t);
addr += (haddr_t)nbytes;
buf = (const char*)buf + nbytes;
}