We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 143c1d0 commit aa344c0Copy full SHA for aa344c0
2 files changed
roottest/root/tree/basket/CMakeLists.txt
@@ -8,3 +8,11 @@ ROOTTEST_ADD_TEST(basket
8
MACRO rundropbasket.C
9
COPY_TO_BUILDDIR DataTest3_cel.root
10
OUTREF dropbasket.ref)
11
+
12
+# corrupted.root contains a TTree "tree" with a corrupted TBasket that has fNevBufSize == 4 and fNevBuf == 4210752.
13
+# Since fNevBuf is much larger than fNevBufSize this would cause oob reads unless TBasket properly validates this.
14
+# Verify that it does.
15
+ROOTTEST_ADD_TEST(corrupted_basket
16
+ COPY_TO_BUILDDIR corrupted.root
17
+ COMMAND ${ROOT_root_CMD} -q -l -e "(new TFile(\"corrupted.root\"))->template Get<TTree>(\"tree\")->GetEntry(0)"
18
+ PASSREGEX "Inconsistent length for the entry offset buffer \\(4210752 events for a buffer size of 4\\)")
roottest/root/tree/basket/corrupted.root
5.66 KB
0 commit comments