]> git.ipfire.org Git - thirdparty/libvirt.git/commit
reject out of range memory in SetMemory APIs
authorJán Tomko <jtomko@redhat.com>
Tue, 5 May 2015 15:58:49 +0000 (17:58 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 14 May 2015 15:17:40 +0000 (17:17 +0200)
commit3511c12244beb289dd44503739d65b0e823685cd
treef54d3852fd2adf7cc4ae5e25426089a0d1fe4999
parent07df9e1f74a6061316a3ef6564339456ba8a2aed
reject out of range memory in SetMemory APIs

The APIs take the memory value in KiB and we store it in KiB
internally, but we cannot parse the whole ULONG_MAX range
on 64-bit systems, because virDomainParseScaledValue
needs to fit the value in bytes in an unsigned long long.

https://bugzilla.redhat.com/show_bug.cgi?id=1176739
src/conf/domain_conf.c
src/libvirt-domain.c
src/libvirt_private.syms
src/util/virutil.c
src/util/virutil.h