mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Cap HTML dimension values at 17895700 (same as Firefox)
Instead of allowing arbitrarily large values (which could eventually overflow an i32), let's just cap them at the same limit as Firefox does. Found by Domato.
This commit is contained in:
parent
093f1dd805
commit
4e0edd42b9
Notes:
github-actions[bot]
2024-07-20 07:31:56 +00:00
Author: https://github.com/awesomekling
Commit: 4e0edd42b9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/721
3 changed files with 17 additions and 4 deletions
|
@ -0,0 +1,9 @@
|
|||
<img height="2147483647">
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
let img = document.querySelector("img");
|
||||
println("Image height: " + img.offsetHeight);
|
||||
img.remove();
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue