mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +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
Notes:
sideshowbarker
2024-07-16 23:38:54 +09:00
Author: https://github.com/MacDue
Commit: 5e973fca0b
Pull-request: https://github.com/SerenityOS/serenity/pull/22579
Issue: https://github.com/SerenityOS/serenity/issues/22163
3 changed files with 17 additions and 4 deletions
|
@ -0,0 +1 @@
|
|||
</
|
Loading…
Add table
Add a link
Reference in a new issue