option: Fix to reject invalid and overflowing numbers
commit3403e5eb884f3a74c40fe7cccc103f848c040215
authorMarkus Armbruster <armbru@redhat.com>
Tue, 21 Feb 2017 20:13:53 +0000 (21 21:13 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 23 Feb 2017 19:35:35 +0000 (23 20:35 +0100)
tree1e3323f01f81d93c8f8de2dfe495f66a243b7c86
parent4baef2679e029c76707be1e2ed54bf3dd21693fe
option: Fix to reject invalid and overflowing numbers

parse_option_number() fails to check for these errors after
strtoull().  Has always been broken.  Fix that.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1487708048-2131-10-git-send-email-armbru@redhat.com>
tests/test-qemu-opts.c
util/qemu-option.c