Skip to content

fix integer wraparound in StorePoints bounds check on 32-bit#198

Open
metsw24-max wants to merge 1 commit into
google:masterfrom
metsw24-max:fix-storepoints-overflow
Open

fix integer wraparound in StorePoints bounds check on 32-bit#198
metsw24-max wants to merge 1 commit into
google:masterfrom
metsw24-max:fix-storepoints-overflow

Conversation

@metsw24-max

Copy link
Copy Markdown

StorePoints in glyph.cc guards the coordinate writes with *offset + x_bytes + y_bytes > dst_size. On 32-bit platforms that sum wraps and can slip past the check, letting the following coordinate stores run past dst. The decoder's StorePoints already guards this; restructure to the same non-wrapping form used in the recent Buffer bounds-check fix.

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

Successfully merging this pull request may close these issues.

1 participant