]> git.proxmox.com Git - mirror_ovs.git/commit - lib/util.c
util: Check ranges on string to int/long conversion.
authorIlya Maximets <i.maximets@samsung.com>
Wed, 29 Nov 2017 10:50:43 +0000 (13:50 +0300)
committerBen Pfaff <blp@ovn.org>
Wed, 29 Nov 2017 16:42:29 +0000 (08:42 -0800)
commit65dca9eb09b42eb80712407dc3e8d00c76eace8d
treec8c5ff6ba1be0ef0a31a779a4724cc0ac31be0fe
parent7b398b07cd9884b06474f5bf2246eef22279852e
util: Check ranges on string to int/long conversion.

It's required to check ranges to avoid integer overflow because
underlying strtoll() will check only for LLONG_MIN/MAX.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Jan Scheurich <jan.scheurich@ericsson.com>
lib/util.c