mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 10:06:03 +00:00
LibWeb: Avoid division by zero in SourceSet width descriptor calculation
This commit is contained in:
parent
aa32bfa448
commit
087d400472
Notes:
github-actions[bot]
2024-08-08 10:20:52 +00:00
Author: https://github.com/tcl3
Commit: 087d400472
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1008
3 changed files with 24 additions and 7 deletions
1
Tests/LibWeb/Layout/input/srcset-sizes-crash.html
Normal file
1
Tests/LibWeb/Layout/input/srcset-sizes-crash.html
Normal file
|
@ -0,0 +1 @@
|
|||
<img sizes="0" srcset="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NgaGD4DwAChAGAZM0bBgAAAABJRU5ErkJggg== 100w"/>PASS (didn't crash)
|
Loading…
Add table
Add a link
Reference in a new issue