mirror of https://gitee.com/openkylin/libvirt.git
* src/virsh.c: patch from Masayuki Sunou, checking that byte
values passed to virsh memory commands are positive. Daniel
This commit is contained in:
parent
b50353f80f
commit
3edfdbf02d
|
@ -1,3 +1,8 @@
|
|||
Mon Mar 19 10:44:25 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/virsh.c: patch from Masayuki Sunou, checking that byte
|
||||
values passed to virsh memory commands are positive.
|
||||
|
||||
Fri Mar 16 20:30:20 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* NEWS libvirt.spec.in docs/libvir.html docs/news.html: preparing
|
||||
|
|
|
@ -1459,7 +1459,7 @@ cmdSetmem(vshControl * ctl, vshCmd * cmd)
|
|||
return FALSE;
|
||||
|
||||
bytes = vshCommandOptInt(cmd, "bytes", &bytes);
|
||||
if (!bytes) {
|
||||
if (bytes <= 0) {
|
||||
virDomainFree(dom);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -1502,7 +1502,7 @@ cmdSetmaxmem(vshControl * ctl, vshCmd * cmd)
|
|||
return FALSE;
|
||||
|
||||
bytes = vshCommandOptInt(cmd, "bytes", &bytes);
|
||||
if (!bytes) {
|
||||
if (bytes <= 0) {
|
||||
virDomainFree(dom);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue