mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Use substrings instead of pointers when parsing unicode ranges
Fixes a segfault when parsing a wildcard-only unicode range
This commit is contained in:
parent
ceedfb34d2
commit
a4b38dda56
Notes:
github-actions[bot]
2024-11-05 14:02:50 +00:00
Author: https://github.com/Gingeh
Commit: a4b38dda56
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2172
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 14 additions and 1 deletions
11
Tests/LibWeb/Text/input/css/unicode-range-all-wildcard.html
Normal file
11
Tests/LibWeb/Text/input/css/unicode-range-all-wildcard.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<style>
|
||||
@font-face {
|
||||
unicode-range: U+??;
|
||||
}
|
||||
</style>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
println("PASS (didn't crash)");
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue