mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
This fixes a crash using URLSearchParams when provided a percent encoded string which does not percent decode to valid UTF-8. Fixes a crash running https://wpt.live/url/urlencoded-parser.any.html
10 lines
311 B
HTML
10 lines
311 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const params = new URLSearchParams('%FE%FF');
|
|
for (const [key, value] of params) {
|
|
println(`key equals = ${"\uFFFD\uFFFD" === key}`);
|
|
println(`value equals = ${"" === value}`);
|
|
}
|
|
});
|
|
</script>
|