Fix integer overflow in frameset layout
Existing code was multiplying ints in a context where an intermediate result could overflow the 32-bit container. Change to explicitly use a 64-bit long long for the intermediate product to avoid undefined behaviour. Found by UBSan / clusterfuzz Bug: 852435 Change-Id: I683eee6eda51f40e7f165c0a55111fba623c2ec9 Reviewed-on: https://chromium-review.googlesource.com/1099756Reviewed-by:Steve Kobes <skobes@chromium.org> Commit-Queue: Ian Clelland <iclelland@chromium.org> Cr-Commit-Position: refs/heads/master@{#567097}
Showing
Please register or sign in to comment