Twitter | Pretraživanje | |
Dаvіd Вucһаnаn
Crash chrome with this one weird string. Text layout engines HATE it!
Crash Chrome. GitHub Gist: instantly share code, notes, and snippets.
GitHub GitHub @github
Reply Retweet Označi sa "sviđa mi se" More
Dаvіd Вucһаnаn 5. sij
Odgovor korisniku/ci @David3141593
crash happens here: (nothing exciting, just a bounds check assert failure)
Reply Retweet Označi sa "sviđa mi se"
Dаvіd Вucһаnаn 5. sij
Odgovor korisniku/ci @David3141593
I found this entirely by luck. It might be hard to believe, but I was just thinking "I wonder how different renderers will deal with this string". And I picked exactly the right number of characters to hit an off-by-one.
Reply Retweet Označi sa "sviđa mi se"
arturo182 5. sij
Odgovor korisniku/ci @David3141593
Reply Retweet Označi sa "sviđa mi se"
Dаvіd Вucһаnаn 5. sij
Odgovor korisniku/ci @arturo182
Which browser is that?
Reply Retweet Označi sa "sviđa mi se"
Daniel 5. sij
Odgovor korisniku/ci @David3141593
Chrome, Firefox on Android
Reply Retweet Označi sa "sviđa mi se"
Florian Bruhin 5. sij
Odgovor korisniku/ci @David3141593
Funnily enough, this not only causes the crash you describe in - it *also* crashes when entering that in the address bar, because sqlite bails out with "LIKE or GLOB pattern too complex" 🤔
Reply Retweet Označi sa "sviđa mi se"
Florian Bruhin 5. sij
Odgovor korisniku/ci @David3141593
Turns out this was due to sqlite having (at least) three different ways to say "this query is too complex". I was handling two, but entering a string (any string) with a length >50k causes yet another error (with a generic error code)… Oh well, fixed now:
Reply Retweet Označi sa "sviđa mi se"
-DHAVE_POTATO=1 5. sij
Odgovor korisniku/ci @David3141593
We can't even view source what is happening
Reply Retweet Označi sa "sviđa mi se"
Internet Hero 5. sij
Odgovor korisniku/ci @David3141593
Edge on Android..
Reply Retweet Označi sa "sviđa mi se"
roddux 7. sij
Odgovor korisniku/ci @David3141593
Hahaha, nice one! It's funny to remember such simple issues can still exist these days. Reminds me of when ~4yr ago I found a single character that could crash Firefox, if placed in the right tag:
Reply Retweet Označi sa "sviđa mi se"