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:
1350
src/json.hpp
1350
src/json.hpp
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user