diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-09-24 21:54:09 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-09-24 21:54:09 (GMT) |
commit | a2a61197aa18fcafef35ecc4aaef268b2e4731d5 (patch) | |
tree | de3dd1fa0a25e3551e7d70cd0b6bf2c725a2ba07 /src/H5FAhdr.c | |
parent | f1360e4d06c6e75a3ee51f5e79973aaed9b53800 (diff) | |
download | hdf5-a2a61197aa18fcafef35ecc4aaef268b2e4731d5.zip hdf5-a2a61197aa18fcafef35ecc4aaef268b2e4731d5.tar.gz hdf5-a2a61197aa18fcafef35ecc4aaef268b2e4731d5.tar.bz2 |
[svn-r17521] Description:
Bring r17514:17518 from trunk to revise_chunks branch
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Diffstat (limited to 'src/H5FAhdr.c')
-rw-r--r-- | src/H5FAhdr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5FAhdr.c b/src/H5FAhdr.c index 150742d..e6231d4 100644 --- a/src/H5FAhdr.c +++ b/src/H5FAhdr.c @@ -167,6 +167,10 @@ HDfprintf(stderr, "%s: Called\n", FUNC); /* Check for valid parameters */ if(cparam->raw_elmt_size == 0) H5E_THROW(H5E_BADVALUE, "element size must be greater than zero") + if(cparam->max_dblk_page_nelmts_bits == 0) + H5E_THROW(H5E_BADVALUE, "max. # of elements bits must be greater than zero") + if(cparam->nelmts == 0) + H5E_THROW(H5E_BADVALUE, "# of elements must be greater than zero") } #endif /* NDEBUG */ |