Skip to content

Avoid possible signed integer overflow in uncompactCellsSize - #1205

Open
isaacbrodsky wants to merge 1 commit into
uber:masterfrom
isaacbrodsky:compact-cells-overflow
Open

Avoid possible signed integer overflow in uncompactCellsSize#1205
isaacbrodsky wants to merge 1 commit into
uber:masterfrom
isaacbrodsky:compact-cells-overflow

Conversation

@isaacbrodsky

Copy link
Copy Markdown
Collaborator

1 of 2 reported issues in #1204. Thanks @anaef for reporting this.

Checks and avoids a signed integer overflow that can occur in uncompactCellsSize. Signed integer addition overflow is undefined behavior in C so we should guard against it.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 99.663% (+0.001%) from 99.662% — isaacbrodsky:compact-cells-overflow into uber:master

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.

3 participants