1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-15 07:41:50 +03:00

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-09 21:31:57 -05:00
parent 79fa8b2f41
commit 1e981115c9
2 changed files with 442 additions and 920 deletions

File diff suppressed because it is too large Load Diff