LibWeb: Fix StringView OOB access when parsing 3-character legacy color

Found by Domato.
This commit is contained in:
Andreas Kling 2024-07-19 14:44:10 +02:00 committed by Andreas Kling
commit 1c00e5688d
Notes: github-actions[bot] 2024-07-20 07:32:06 +00:00
3 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,7 @@
<script src="../include.js"></script>
<body bgcolor="foo">
<script>
test(() => {
println("PASS (didn't crash)");
});
</script>