summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLaszlo Ersek2014-04-10 10:24:30 +0200
committerLuiz Capitulino2014-05-08 20:19:58 +0200
commite9c5c1f40c949c5d2d7e1eeddf3caaed32e1c641 (patch)
tree2f81ee84959156d40e2d9ba80066aafa08520532 /include
parentqapi: treat all negative return of strtosz_suffix() as error (diff)
downloadqemu-e9c5c1f40c949c5d2d7e1eeddf3caaed32e1c641.tar.gz
qemu-e9c5c1f40c949c5d2d7e1eeddf3caaed32e1c641.tar.xz
qemu-e9c5c1f40c949c5d2d7e1eeddf3caaed32e1c641.zip
cutils: tighten qemu_parse_fd()
qemu_parse_fd() used to handle at least the following strings incorrectly: o "-2": simply let through o "2147483648": returned as LONG_MAX==INT_MAX on ILP32 (with ERANGE ignored); implementation-defined behavior on LP64 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions