]> git.ipfire.org Git - thirdparty/json-c.git/commit
Clamp double to int32 when narrowing in json_object_get_int. 346/head
authorKurt Schwehr <schwehr@google.com>
Tue, 8 Aug 2017 14:54:38 +0000 (07:54 -0700)
committerKurt Schwehr <schwehr@google.com>
Tue, 8 Aug 2017 14:54:38 +0000 (07:54 -0700)
commitef7b08ce7f53aeebc1313c214a2ac1e860dbb309
treef4545922531bb3d9294456ac73fcc5d397bd5109
parentaf879445852f7ff23118138f6c51e71fd4619798
Clamp double to int32 when narrowing in json_object_get_int.

Avoids undefined behavior.  Found by autofuzz.
json_object.c