summary refs log tree commit diff stats
path: root/tests/check-qnull.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2017-02-21 21:14:08 +0100
committerMarkus Armbruster <armbru@redhat.com>2017-02-23 20:35:36 +0100
commit75cdcd1553e74b5edc58aed23e3b2da8dabb1876 (patch)
tree65345fb1cb4518f0d9ca6abef0db9486e334b985 /tests/check-qnull.c
parentf46bfdbfc8f95cf65d7818ef68a801e063c40332 (diff)
downloadfocaccia-qemu-75cdcd1553e74b5edc58aed23e3b2da8dabb1876.tar.gz
focaccia-qemu-75cdcd1553e74b5edc58aed23e3b2da8dabb1876.zip
option: Fix checking of sizes for overflow and trailing crap
parse_option_size()'s checking for overflow and trailing crap is
wrong.  Has always been that way.  qemu_strtosz() gets it right, so
use that.

This adds support for size suffixes 'P', 'E', and ignores case for all
suffixes, not just 'k'.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1487708048-2131-25-git-send-email-armbru@redhat.com>
Diffstat (limited to 'tests/check-qnull.c')
0 files changed, 0 insertions, 0 deletions