]> git.ipfire.org Git - thirdparty/json-c.git/commit
Avoid potential overflow in json_object_get_double 109/head
authorKeith Derrick <keith.derrick@lge.com>
Tue, 1 Oct 2013 16:18:51 +0000 (09:18 -0700)
committerKeith Derrick <keith.derrick@lge.com>
Tue, 1 Oct 2013 17:17:00 +0000 (10:17 -0700)
commitc51b88d69a3bb70f7bfed3f78a9283726cc827dd
tree963e005b1914e80dbe2391e6ff03e3f00b5b15d4
parent06450206c4f3de4af8d81bb6d93e9db1d5fedec1
Avoid potential overflow in json_object_get_double

sscanf is always a potential problem when converting numeric
values as it does not correctly handle over- and underflow
(or at least gives no indication that it has done so).

This change converts json_object_get_double() to use strtod()
according to CERT guidelines.
json_object.c