]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: reject negative indices
authorEric Blake <eblake@redhat.com>
Thu, 1 May 2014 02:17:42 +0000 (20:17 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 1 May 2014 21:11:02 +0000 (15:11 -0600)
commit5c05e2b126decbdef1458529443332bc5950d7c4
treea158116906d061644ce1bc991ba8937137987993
parent7b045c8ce95da2ff2e2c3e8c3f023232b0374631
storage: reject negative indices

Commit f22b7899 stumbled across a difference between 32-bit and
64-bit platforms when parsing "-1" as an int.  Now that we've
fixed that difference, it's time to fix the testsuite.

* src/util/virstoragefile.c (virStorageFileParseChainIndex):
Require a positive index.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/util/virstoragefile.c