Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibWeb: Crash when there is an infinite value for width or height #24438

Open
aplefull opened this issue May 25, 2024 · 0 comments
Open

LibWeb: Crash when there is an infinite value for width or height #24438

aplefull opened this issue May 25, 2024 · 0 comments

Comments

@aplefull
Copy link

Reduced example:

<div style="width: calc(tan(90deg) * 1px)"></div>

Stack trace:

VERIFICATION FAILED: !width.might_be_saturated() at /home/aplefull/repos/serenity/Userland/Libraries/LibWeb/Layout/LayoutState.cpp:521
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-ak.so.0(ak_verification_failed+0xc1) [0x7f3456831bd1]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0 Web::Layout::LayoutState::UsedValues::set_content_width(Web::CSSPixels) 0x1f) [0x7f3457e0d81f]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0 Web::Layout::BlockFormattingContext::compute_width(Web::Layout::Box const&, Web::Layout::AvailableSpace const&, Web::Layout::LayoutMode) 0x657) [0x7f3457dd2467]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0 Web::Layout::BlockFormattingContext::layout_block_level_box(Web::Layout::Box const&, Web::Layout::BlockContainer const&, Web::Layout::LayoutMode, Web::CSSPixels&, Web::Layout::AvailableSpace const&) 0x2a4) [0x7f3457dd4c74]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0 Web::Layout::BlockFormattingContext::layout_block_level_children(Web::Layout::BlockContainer const&, Web::Layout::LayoutMode, Web::Layout::AvailableSpace const&) 0x7f) [0x7f3457dd598f]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0 Web::Layout::BlockFormattingContext::layout_block_level_box(Web::Layout::Box const&, Web::Layout::BlockContainer const&, Web::Layout::LayoutMode, Web::CSSPixels&, Web::Layout::AvailableSpace const&) 0x77f) [0x7f3457dd514f]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0 Web::Layout::BlockFormattingContext::layout_block_level_children(Web::Layout::BlockContainer const&, Web::Layout::LayoutMode, Web::Layout::AvailableSpace const&) 0x7f) [0x7f3457dd598f]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0 Web::Layout::BlockFormattingContext::run(Web::Layout::Box const&, Web::Layout::LayoutMode, Web::Layout::AvailableSpace const&) 0x3d) [0x7f3457dd5d4d]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0 Web::Layout::BlockFormattingContext::layout_block_level_box(Web::Layout::Box const&, Web::Layout::BlockContainer const&, Web::Layout::LayoutMode, Web::CSSPixels&, Web::Layout::AvailableSpace const&) 0x33d) [0x7f3457dd4d0d]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0 Web::Layout::BlockFormattingContext::layout_block_level_children(Web::Layout::BlockContainer const&, Web::Layout::LayoutMode, Web::Layout::AvailableSpace const&) 0x7f) [0x7f3457dd598f]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0 Web::DOM::Document::update_layout() 0x268) [0x7f3457ae2bd8]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0(+0x88e443) [0x7f3457c13443]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-web.so.0(+0xb44289) [0x7f3457ec9289]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-core.so.0 Core::Timer::timer_event(Core::TimerEvent&) 0xb2) [0x7f3456929772]
/home/aplefull/repos/serenity/Build/lagom/lib/liblagom-core.so.0 Core::EventReceiver::dispatch_event(Core::Event&, Core::EventReceiver*) 0x4d) [0x7f345690e51d]
/home/aplefull/repos/serenity/Build/lagom/libexec/WebContent(+0x11badd) [0x55568db94add]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant