mirror of https://github.com/kgabis/parson.git
Guard against potential integer overflow (#133)
* Guard against potential integer overflow If int res holds the value INT_MAX then adding 1 results in undefined behavior. To guard against this possibility, cast res to size_t, not the result of res + 1. Fixes #132 * Increments version. * More consitent parentheses when casting to size_t.pull/137/head
parent
9d63e76014
commit
186680a511
Loading…
Reference in new issue