Skip to content

Commit

Permalink
Fix issue #380: Signed integer overflow check
Browse files Browse the repository at this point in the history
Instead of checking something like `x * y + z > max` where `x * y` can
overflow, check for `x > (max - z) / y` instead.
  • Loading branch information
Yixin Zhang committed Dec 10, 2016
1 parent bc28942 commit 3bd667c
Show file tree
Hide file tree
Showing 2 changed files with 394 additions and 872 deletions.
Loading

0 comments on commit 3bd667c

Please sign in to comment.