]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix crash on OOM in virDomainSnapshotDefParse
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 25 Sep 2013 08:34:25 +0000 (09:34 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 25 Sep 2013 17:12:08 +0000 (18:12 +0100)
commit93ac954094ace84f491646b46d43cb9be4c570c0
tree69112c0975b0a92adf58642bb139ca02ca64599f
parent8feae8e1369e2b418534086e19992554541ce632
Fix crash on OOM in virDomainSnapshotDefParse

The virDomainSnapshotDefParse method assigned to def->ndisks
before allocating def->disks. Thus if an OOM occurred, the
cleanup code would access out of bounds.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/conf/snapshot_conf.c