OWASP / java-html-sanitizer

Takes third-party HTML and produces HTML that is safe to embed in your web application. Fast and easy to configure.
Other
834 stars 209 forks source link

Randomized test failure #245

Open spaffrath opened 2 years ago

spaffrath commented 2 years ago

While compiling I tripped a randomized test failure for testUnderStress. Setting the seed replicates the issue.

One note, I did this from a Windows 10 machine and to get the lexer test working I had to change the whitespace on the htmllexer resource files to LF from CRLF. I note that in case there is something particular to my environment and there is difficulty replicating this issue.

Output was : junit.framework.ComparisonFailure: not idempotent, seed=1641590962954, css=`.*/< -->õ/*/*R ,\0 foo <   \a࠷ */�important.*/U+a-->*/*/style\a "𐐂*/"]\ ` Expected :. */ < õ �important. */ U+a- * Actual :. */ < õ �important. */ U+a- - *