mirror of https://github.com/google/oss-fuzz.git
Update fuzz target to ignore class injection (#7657)
see https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47102
This commit is contained in:
parent
ee65beab15
commit
45377fdef2
|
@ -22,7 +22,14 @@ public class JoranFuzzer {
|
|||
}
|
||||
|
||||
public static void fuzzerTestOneInput(FuzzedDataProvider data) {
|
||||
InputStream xmlcontent = new ByteArrayInputStream(data.consumeString(1000).getBytes());
|
||||
String content = data.consumeString(1000);
|
||||
|
||||
// https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47102
|
||||
if (content.contains("class=\"")) {
|
||||
return;
|
||||
}
|
||||
|
||||
InputStream xmlcontent = new ByteArrayInputStream(content.getBytes());
|
||||
try {
|
||||
configurator.doConfigure(xmlcontent);
|
||||
logger.debug(data.consumeRemainingAsString());
|
||||
|
|
Loading…
Reference in New Issue