Open kevinhu opened 11 months ago
I did a quick test and this appears to be due to an extremely deep tree; there were over 4000 stack frames before the segfault. This isn't really solvable but I could implement a feature to limit the max parse depth.
Hi! This is a super useful tool. I'm using this package for a scraper, and I ran into a segfault when running minify_html 0.11.1 (default settings) with this particular website: https://gist.github.com/kevinhu/1c60437a9cecf3b8c741c3f006d35b8f
To reproduce:
I also tried using minify_html_onepass, which fails gracefully with the following error: