You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by GitBox <gi...@apache.org> on 2019/08/28 18:41:15 UTC

[GitHub] [any23] HansBrende edited a comment on issue #139: ANY23-441 Upgrade JSoup version from 1.11.3 to 1.12.1

HansBrende edited a comment on issue #139: ANY23-441 Upgrade JSoup version from 1.11.3 to 1.12.1
URL: https://github.com/apache/any23/pull/139#issuecomment-525804120
 
 
   @panthony thanks for the help! FYI, here is a minimal reproduction case:
   
   [weirdjsoupmin.txt](https://github.com/apache/any23/files/3551705/weirdjsoupmin.txt)
   
   This is definitely a Jsoup issue since the bug can be reproduced without using Any23 at all:
   
   ```java
   String string = new String(Files.readAllBytes(new File("weirdjsoupmin.txt").toPath()), StandardCharsets.ISO_8859_1);
   org.jsoup.parser.Parser.parseFragment(string, null, "", ParseErrorList.tracking(Integer.MAX_VALUE));
   ```
   throws:
   > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
   	at org.jsoup.parser.CharacterReader.consume(CharacterReader.java:99)
   	at org.jsoup.parser.TokeniserState$34.read(TokeniserState.java:552)
   	at org.jsoup.parser.Tokeniser.read(Tokeniser.java:57)
   	at org.jsoup.parser.TreeBuilder.runParser(TreeBuilder.java:51)
   	at org.jsoup.parser.HtmlTreeBuilder.parseFragment(HtmlTreeBuilder.java:126)
   	at org.jsoup.parser.Parser.parseFragment(Parser.java:138)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services