summaryrefslogtreecommitdiffstats
path: root/tools/testfiles
diff options
context:
space:
mode:
authorvchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>2023-08-25 13:13:04 (GMT)
committerGitHub <noreply@github.com>2023-08-25 13:13:04 (GMT)
commite7bb05a8869f460afe9f198e9b7eee4a11972d48 (patch)
tree66dfe6fb24d2062d2f01f97e39c08ec617d66381 /tools/testfiles
parentf6df114fa2f72bc6eadcae444e23af7e25e079d4 (diff)
downloadhdf5-e7bb05a8869f460afe9f198e9b7eee4a11972d48.zip
hdf5-e7bb05a8869f460afe9f198e9b7eee4a11972d48.tar.gz
hdf5-e7bb05a8869f460afe9f198e9b7eee4a11972d48.tar.bz2
Fix for CVE-2018-15671. h5stat -S $POC will result in a crash with segmenetation fault. (#3427)
It is because the object in the testfile points back to the root group. When the tool tries to traverse the object, it goes back to the root group and then back again.
Diffstat (limited to 'tools/testfiles')
-rw-r--r--tools/testfiles/tgroup-2.ddl9
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/testfiles/tgroup-2.ddl b/tools/testfiles/tgroup-2.ddl
index 2ac8ac6..5374742 100644
--- a/tools/testfiles/tgroup-2.ddl
+++ b/tools/testfiles/tgroup-2.ddl
@@ -17,14 +17,7 @@ GROUP "/" {
}
}
GROUP "g2" {
- GROUP "g2.1" {
- GROUP "g2.1.1" {
- }
- GROUP "g2.1.2" {
- }
- GROUP "g2.1.3" {
- }
- }
+ HARDLINK "/g2"
}
GROUP "g3" {
GROUP "g3.1" {