Menu

#149 StackOverflowError

v2.14
closed-fixed
nobody
None
5
2015-08-24
2015-08-24
Code Buddy
No

I'm using htmlcleaner version 2.13. I get a StackOverflowError when trying to clean the attached html.

Assuming the String html contains the contents of the attached file, the following code throws:

final TagNode tagNode = new HtmlCleaner().clean(html);

1 Attachments

Discussion

  • Code Buddy

    Code Buddy - 2015-08-24

    I've created a simple maven project to expose this, you should be able to clone this and get a failing test witout to much hastle:

    https://github.com/liamsharp/htmlcleaner149-StackOverflowError

    Let me know if you need anymore info.

     
  • Scott Wilson

    Scott Wilson - 2015-08-24

    Thanks CB - I've replicated the error with the current trunk, I'll take a deeper look at whats happening here.

     
  • Code Buddy

    Code Buddy - 2015-08-24

    Awesome, cheers Scott.

     
  • Scott Wilson

    Scott Wilson - 2015-08-24

    Got it - it was an error in the definition of the RB tag. I've committed the fix for this in trunk.

     
  • Scott Wilson

    Scott Wilson - 2015-08-24
    • status: open --> closed-fixed
    • Group: v2.12 --> v2.14
     
  • Code Buddy

    Code Buddy - 2015-08-24

    Excellent, thanks again! Roll on 2.14 :-)

     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →