Fix issue #380: Signed integer overflow check

Instead of checking something like `x * y + z > max` where `x * y` can
overflow, check for `x > (max - z) / y` instead.
This commit is contained in:
Yixin Zhang
2016-12-12 21:12:08 -05:00
parent 79fa8b2f41
commit 1e981115c9
2 changed files with 442 additions and 920 deletions
+436 -914
View File
File diff suppressed because it is too large Load Diff