mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02: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:
Notes:
github-actions[bot]
2024-11-05 14:02:50 +00:00
Author: https://github.com/Gingeh Commit: https://github.com/LadybirdBrowser/ladybird/commit/a4b38dda561 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2172 Reviewed-by: https://github.com/AtkinsSJ ✅
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>
|
||||
Reference in New Issue
Block a user