summaryrefslogtreecommitdiffstats
path: root/test/titerate.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-04-19 15:21:25 (GMT)
committerGitHub <noreply@github.com>2023-04-19 15:21:25 (GMT)
commit07c4360b4d4f8459571815d624522eb7e01b02f6 (patch)
tree655cd427bca9b2d67a900ad5667d01de03acfcff /test/titerate.c
parentd58ff6600681ca6e953f000f7063bbef8b70f92f (diff)
downloadhdf5-07c4360b4d4f8459571815d624522eb7e01b02f6.zip
hdf5-07c4360b4d4f8459571815d624522eb7e01b02f6.tar.gz
hdf5-07c4360b4d4f8459571815d624522eb7e01b02f6.tar.bz2
Sanitize the attribute object header msg code (#2749)
Adds: * Bounds checks on buffer access * Better memory cleanup
Diffstat (limited to 'test/titerate.c')
-rw-r--r--test/titerate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/titerate.c b/test/titerate.c
index 1e23ade..82d8e9f 100644
--- a/test/titerate.c
+++ b/test/titerate.c
@@ -1011,8 +1011,11 @@ test_corrupted_attnamelen(void)
hbool_t driver_is_default_compatible;
const char *testfile = H5_get_srcdir_filename(CORRUPTED_ATNAMELEN_FILE); /* Corrected test file name */
- const char *err_message = "attribute name has different length than stored length";
- /* the error message produced when the failure occurs */
+ /* The error message produced when the failure occurs
+ *
+ * FIXME: This is incredibly fragile!
+ */
+ const char *err_message = "ran off end of input buffer while decoding";
/* Output message about test being performed */
MESSAGE(5, ("Testing the Handling of Corrupted Attribute's Name Length\n"));