mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
* src/virsh.c: patch from Masayuki Sunou, checking that byte
values passed to virsh memory commands are positive. Daniel
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user