We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 997b349 commit 5dd55eaCopy full SHA for 5dd55ea
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 of the entry buffer. Refusing to deserialize.")
roottest/root/tree/basket/corrupted.root
5.66 KB
0 commit comments