Closed Lubrsi closed 3 years ago
https://github.com/SerenityOS/serenity/blob/3a4cbbf01c63ab70eff57275bf45bccefb26555f/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.h#L150
The assertion fails because here, the size of m_source_positions
is 1
and n
is 1
, so m_source_positions.size() - 1 - n
underflows.
For example, switch the Syntax in Text Editor to HTML file, then type
<h
. As soon as you type the h, this crash will occur. Trace:cc @alimpfard