Add an invalid file test case for oss-fuzz:9288.
The test case was constructed from the reproducer test case for
bug oss-fuzz:9288. I took the first two IVF frames in the reproducer
test case, fixed up the obu_size field (which was changed to 0 by the
fuzzer) of the third OBU in each IVF frame, and then repeated the two
IVF frames (so there are a total of four IVF frames in the test case).
Each IVF frame would cause libaom to leak 8 frame buffers if the bug
were present, so we would definitely run out of free frame buffers when
processing the third IVF frame.
BUG=oss-fuzz:9288
Change-Id: I2a6f7f9bec4d93a096d7da1541653bd5c96e6967
diff --git a/test/invalid_file_test.cc b/test/invalid_file_test.cc
index fba9cc2..d97d200 100644
--- a/test/invalid_file_test.cc
+++ b/test/invalid_file_test.cc
@@ -108,6 +108,7 @@
const DecodeParam kAV1InvalidFileTests[] = {
{ 1, "invalid-bug-1814.ivf" },
+ { 1, "invalid-oss-fuzz-9288.ivf" },
{ 4, "invalid-oss-fuzz-9463.ivf" },
{ 1, "invalid-oss-fuzz-9482.ivf" },
{ 1, "invalid-oss-fuzz-9720.ivf" },
diff --git a/test/test-data.sha1 b/test/test-data.sha1
index 840e15b..205f13d 100644
--- a/test/test-data.sha1
+++ b/test/test-data.sha1
@@ -16,6 +16,8 @@
758671858368ffd2a2c0727898de5661f7cf7d68 *invalid-oss-fuzz-10705.ivf.res
88e29851122cca3f336824f7fa4d9f757f91110c *invalid-oss-fuzz-10723.ivf
1af486cd2cc83ebeddc76ca7a1c512cc0ec568d5 *invalid-oss-fuzz-10723.ivf.res
+ccbe4081557eb44820a0e6337c4a094421826b9a *invalid-oss-fuzz-9288.ivf
+67c54283fe1a26ccf02cc991e4f9a1eea3ac5e78 *invalid-oss-fuzz-9288.ivf.res
c0960f032484579f967881cc025b71cfd7a79ee1 *invalid-oss-fuzz-9463.ivf
d3964f9dad9f60363c81b688324d95b4ec7c8038 *invalid-oss-fuzz-9463.ivf.res
f448caf378e250b7eea4fa2d1c3cd7ef4a3211ce *invalid-oss-fuzz-9482.ivf
diff --git a/test/test_data_util.cmake b/test/test_data_util.cmake
index 8118316..3774d4c 100644
--- a/test/test_data_util.cmake
+++ b/test/test_data_util.cmake
@@ -516,6 +516,8 @@
"invalid-oss-fuzz-10705.ivf.res"
"invalid-oss-fuzz-10723.ivf"
"invalid-oss-fuzz-10723.ivf.res"
+ "invalid-oss-fuzz-9288.ivf"
+ "invalid-oss-fuzz-9288.ivf.res"
"invalid-oss-fuzz-9463.ivf"
"invalid-oss-fuzz-9463.ivf.res"
"invalid-oss-fuzz-9482.ivf"