summaryrefslogtreecommitdiffstats
path: root/src/H5B2pkg.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-07-26 19:12:22 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-07-26 19:12:22 (GMT)
commit6f3fe31a4c04b15ae7c783ac6295c4cfc532f8e4 (patch)
treeea53de316e332873371de4d5c83d53b8e1a6988a /src/H5B2pkg.h
parent76cf163f9617eecb02cbca323cc8be60c8490091 (diff)
downloadhdf5-6f3fe31a4c04b15ae7c783ac6295c4cfc532f8e4.zip
hdf5-6f3fe31a4c04b15ae7c783ac6295c4cfc532f8e4.tar.gz
hdf5-6f3fe31a4c04b15ae7c783ac6295c4cfc532f8e4.tar.bz2
[svn-r14020] Description:
Correct error in size of v2 B-tree metadata prefix, which could cause too many entries to get inserted into a node, eventually causing either a file corruption bug (if debugging asserts were off) or a core dump on the assertion which checked this. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5B2pkg.h')
-rw-r--r--src/H5B2pkg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5B2pkg.h b/src/H5B2pkg.h
index 3dfbe41..43fab1f 100644
--- a/src/H5B2pkg.h
+++ b/src/H5B2pkg.h
@@ -69,6 +69,7 @@
#define H5B2_METADATA_PREFIX_SIZE ( \
H5B2_SIZEOF_MAGIC /* Signature */ \
+ 1 /* Version */ \
+ + 1 /* Tree type */ \
+ H5B2_SIZEOF_CHKSUM /* Metadata checksum */ \
)
@@ -78,7 +79,6 @@
H5B2_METADATA_PREFIX_SIZE \
\
/* Header specific fields */ \
- + 1 /* Tree type */ \
+ 4 /* Node size, in bytes */ \
+ 2 /* Record size, in bytes */ \
+ 2 /* Depth of tree */ \