diff options
| author | Markus Armbruster <armbru@redhat.com> | 2017-02-21 21:14:08 +0100 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2017-02-23 20:35:36 +0100 |
| commit | 75cdcd1553e74b5edc58aed23e3b2da8dabb1876 (patch) | |
| tree | 65345fb1cb4518f0d9ca6abef0db9486e334b985 /tests/test-string-input-visitor.c | |
| parent | f46bfdbfc8f95cf65d7818ef68a801e063c40332 (diff) | |
| download | focaccia-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/test-string-input-visitor.c')
0 files changed, 0 insertions, 0 deletions