Menu

#211 IOException when trying to reset unsuccessful CDATA end lookup

v2.23
closed-fixed
nobody
None
5
2019-09-04
2018-09-17
No

Reproduced with the following page:

http://www.okaidi.fr/vetements-fille/?produits-par-page=1500

The _reader.reset() call in HtmlTokenizer.containsEndCData will produce a IOException with Mark invalid because we read too much from the input.

Reading one less char (read < MAX_BUFFER_SIZE - 1) will solve the issue.

Discussion

  • Scott Wilson

    Scott Wilson - 2018-09-17
    • status: open --> open-accepted
    • Group: v 2.7 --> v2.23
     
  • Scott Wilson

    Scott Wilson - 2018-09-17

    Thanks Anthony, I'll look into it!

     
  • Scott Wilson

    Scott Wilson - 2019-09-04
    • status: open-accepted --> closed-fixed
     
  • Scott Wilson

    Scott Wilson - 2019-09-04

    Good spot there - fixed in 2.23

     

Log in to post a comment.