* src/virsh.c: patch from Masayuki Sunou, checking that byte

values passed to virsh memory commands are positive.
Daniel
This commit is contained in:
Daniel Veillard 2007-03-19 09:46:13 +00:00
parent b50353f80f
commit 3edfdbf02d
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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;
}