Fix buffer overflow in DrawingDisplayItem::Equals()
We should use IntRect instead of FloatRect for the bounds of bitmap. Previously the loop variables in BitmapEquals() exceeded the actual bounds of the bitmap if the given FloatRect was not integral. Bug: 779949 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: Ib814cc8d3dcdcd9404654cd1f6352fb98d1e15f9 Reviewed-on: https://chromium-review.googlesource.com/746988Reviewed-by:Walter Korman <wkorman@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#512988}
Showing
Please register or sign in to comment