mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
LibWeb: Prevent OOB access in HTMLEncodingDetection for input of '</'
Previously, this never checked if `position + 2` was valid. This slightly reorders the loop so all indices are checked. Fixes #22163
This commit is contained in:
parent
3f52d6045a
commit
5e973fca0b
3 changed files with 17 additions and 4 deletions
|
@ -0,0 +1 @@
|
|||
</
|
Loading…
Add table
Add a link
Reference in a new issue