[libvirt] [PATCH] conf: forbid negative values in virDomainParseScaledValue

Eric Blake eblake at redhat.com
Wed Oct 29 22:18:42 UTC 2014


On 10/29/2014 10:35 AM, Martin Kletzander wrote:
> It makes sense for none of the callers to have negative value as an
> output and, fortunately, if anyone tried defining domain with negative
> memory or any other value parsed by virDomainParseScaledValue(), the
> resulting value was 0.  That means we can error out during parsing as
> it won't break anything.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1155843
> 
> Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
> ---
> "it won't break anything" -- famous last words?
> 
>  src/conf/domain_conf.c | 25 ++++++++++++++++---------
>  1 file changed, 16 insertions(+), 9 deletions(-)

ACK.  Sounds like a bug fix, and therefore safe for 1.2.10

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20141029/6d82f362/attachment-0001.sig>


More information about the libvir-list mailing list