Change an assertion which can be triggered via an
input-document.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63309
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@
1914403 13f79535-47bb-0310-9956-
ffa450edef68
// [MS-ODRAW] allows for multiple records in a OfficeArtInlineSpContainer, which is what we're parsing here.
// However, in the context of a HWPF document, there should be only 1.
- assert _blipRecords.size() == 1;
+ if (_blipRecords.size() != 1) {
+ throw new IllegalStateException("Should only have one BLIP-Record, but had: " + _blipRecords.size());
+ }
}
}
"TestHPSFWritingFunctionality.doc",
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-4947285593948160.doc",
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-5440721166139392.doc",
- "clusterfuzz-testcase-minimized-POIHWPFFuzzer-5050208641482752.doc"
+ "clusterfuzz-testcase-minimized-POIHWPFFuzzer-5050208641482752.doc",
+ "clusterfuzz-testcase-minimized-POIHWPFFuzzer-4892412469968896.doc"
);
public static Stream<Arguments> files() {
"TestHPSFWritingFunctionality.doc",
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-4947285593948160.doc",
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-5440721166139392.doc",
- "clusterfuzz-testcase-minimized-POIHWPFFuzzer-5050208641482752.doc"
+ "clusterfuzz-testcase-minimized-POIHWPFFuzzer-5050208641482752.doc",
+ "clusterfuzz-testcase-minimized-POIHWPFFuzzer-4892412469968896.doc"
);
/**