summaryrefslogtreecommitdiffstats
path: root/src/H5Gprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-25 21:49:31 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-25 21:49:31 (GMT)
commita8b272ac257ccbdf4da13423b5175ba22e7d3c14 (patch)
treebfd12edf153271c8e84e18b8dd7ada28f89a62b5 /src/H5Gprivate.h
parent5a1bb020a3a0f84883ac11098d801e3f9a84b3ad (diff)
downloadhdf5-a8b272ac257ccbdf4da13423b5175ba22e7d3c14.zip
hdf5-a8b272ac257ccbdf4da13423b5175ba22e7d3c14.tar.gz
hdf5-a8b272ac257ccbdf4da13423b5175ba22e7d3c14.tar.bz2
[svn-r11300] Purpose:
Code cleanup Description: Prevent memory leak when too many links are traversed. Also add test to traverse too many links. Platforms tested: FreeBSD 4.11 (sleipnir) Linux 2.4
Diffstat (limited to 'src/H5Gprivate.h')
-rw-r--r--src/H5Gprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5Gprivate.h b/src/H5Gprivate.h
index 92fee2d..f105463 100644
--- a/src/H5Gprivate.h
+++ b/src/H5Gprivate.h
@@ -50,6 +50,7 @@
#define H5G_NODE_MAGIC "SNOD" /*symbol table node magic number */
#define H5G_NODE_SIZEOF_MAGIC 4 /*sizeof symbol node magic number */
#define H5G_NO_CHANGE (-1) /*see H5G_ent_modified() */
+#define H5G_NLINKS 16 /*max symlinks to follow per lookup */
/*
* The disk size for a symbol table entry...