Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d3aa327426eba5376a8fc0d633824d92fde07562
https://github.com/WebKit/WebKit/commit/d3aa327426eba5376a8fc0d633824d92fde07562
Author: Charlie Wolfe <[email protected]>
Date: 2026-01-14 (Wed, 14 Jan 2026)
Changed paths:
M Source/WebCore/page/PrintContext.cpp
Log Message:
-----------
Crash in `computePageRectsWithPageSizeInternal`
https://bugs.webkit.org/show_bug.cgi?id=305491
rdar://78660161
Reviewed by Pascoe.
computePageRects only validated pageHeight, not pageWidth. When
resizePageRectsKeepingRatio returns zero
width (e.g., if no renderer), we may divide by zero in
computePageRectsWithPageSizeInternal, causing a
crash when the vector tries to allocate with the resulting size.
* Source/WebCore/page/PrintContext.cpp:
(WebCore::PrintContext::computePageRects):
Canonical link: https://commits.webkit.org/305593@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications