commit | c51b88d69a3bb70f7bfed3f78a9283726cc827dd | [log] [tgz] |
---|---|---|
author | Keith Derrick <keith.derrick@lge.com> | Tue Oct 01 09:18:51 2013 -0700 |
committer | Keith Derrick <keith.derrick@lge.com> | Tue Oct 01 10:17:00 2013 -0700 |
tree | 963e005b1914e80dbe2391e6ff03e3f00b5b15d4 | |
parent | 06450206c4f3de4af8d81bb6d93e9db1d5fedec1 [diff] |
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.