File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,3 +6,13 @@ ROOTTEST_ADD_TEST(zombie
66ROOTTEST_ADD_TEST (empty
77 MACRO runempty.C
88 OUTREF empty.ref )
9+
10+ # corrupted_recover.root contains an otherwise-valid ROOT file that has been tweaked in the following way:
11+ # - fEND is changed to a larger size than the file, to trigger the recover;
12+ # - a fake key has been appended, that has a className "TH1F" and an object name whose string length is 2 GiB long.
13+ # The test verifies that Recover doesn't try to read out of bounds and refuses to read the string, while still
14+ # properly recovering the first two valid keys.
15+ ROOTTEST_ADD_TEST (corrupted_objname
16+ COPY_TO_BUILDDIR corrupted_recover.root
17+ COMMAND ${ROOT_root_CMD} -q corrupted_recover.root
18+ PASSREGEX "given buffer is too small \\ (992 B remaining, need at least 2147483646 more\\ )" )
You can’t perform that action at this time.
0 commit comments