Skip to content

Commit 4005da3

Browse files
authored
[woodstox] catch WstxLazyException (#7529)
1 parent 9349178 commit 4005da3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/woodstox/XmlFuzzer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.io.ByteArrayInputStream;
2020
import javax.xml.stream.*;
2121
import com.ctc.wstx.stax.WstxInputFactory;
22+
import com.ctc.wstx.exc.WstxLazyException;
2223

2324
public class XmlFuzzer {
2425
public static void fuzzerTestOneInput(FuzzedDataProvider data) {
@@ -27,7 +28,7 @@ public static void fuzzerTestOneInput(FuzzedDataProvider data) {
2728
XMLStreamReader sr = STAX_F.createXMLStreamReader(new ByteArrayInputStream(data.consumeRemainingAsBytes()));
2829
streamThrough(sr);
2930
sr.close();
30-
} catch (XMLStreamException e) {
31+
} catch (XMLStreamException | WstxLazyException e) {
3132
}
3233
}
3334

0 commit comments

Comments
 (0)