Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzz: 37155: jsoup:HtmlFuzzer: Uncaught exception in java.base/jdk.internal.util.Preconditions.outOfBounds #1611

Closed
jhy opened this issue Aug 14, 2021 · 0 comments
Assignees
Labels
bug Confirmed bug that we should fix fuzz An issue found by the OSS Fuzz project
Milestone

Comments

@jhy
Copy link
Owner

jhy commented Aug 14, 2021

Reproducer Testcase: https://oss-fuzz.com/download?testcase_id=5920704691306496

== Java Exception: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
--
  | at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
  | at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
  | at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
  | at java.base/java.util.Objects.checkIndex(Objects.java:359)
  | at java.base/java.util.ArrayList.get(ArrayList.java:427)
  | at org.jsoup.parser.HtmlTreeBuilderState$7.inBodyStartTag(HtmlTreeBuilderState.java:344)
  | at org.jsoup.parser.HtmlTreeBuilderState$7.process(HtmlTreeBuilderState.java:285)
  | at org.jsoup.parser.HtmlTreeBuilder.process(HtmlTreeBuilder.java:149)
  | at org.jsoup.parser.TreeBuilder.runParser(TreeBuilder.java:77)
  | at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:52)
  | at org.jsoup.parser.Parser.parse(Parser.java:129)
  | at org.jsoup.Jsoup.parse(Jsoup.java:61)
  | at HtmlFuzzer.fuzzerTestOneInput(HtmlFuzzer.java:23)
@jhy jhy added bug Confirmed bug that we should fix fuzz An issue found by the OSS Fuzz project labels Aug 14, 2021
@jhy jhy added this to the 1.14.2 milestone Aug 14, 2021
@jhy jhy self-assigned this Aug 14, 2021
@jhy jhy closed this as completed in eba3e39 Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug that we should fix fuzz An issue found by the OSS Fuzz project
Projects
None yet
Development

No branches or pull requests

1 participant