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 committed 2016-12-12 21:12:08 -05:00
1 parent 79fa8b2f41
commit 1e981115c9
2 files changed
+442 -920

No files matched your search

+436 -914
View File
File diff suppressed because it is too large. Load diff