• E
    snapshot: fix snapshot deletion use-after-free · 4c1c3611
    Eric Blake 提交于
    Bug introduced in commit 35abced2.  On an inactive domain,
    $ virsh snapshot-create-as dom snap
    $ virsh snapshot-create dom
    $ virsh snapshot-create dom
    $ virsh snapshot-delete --children dom snap
    could crash libvirtd, due to a use-after-free that results
    when the callback freed the current element in the iteration.
    
    * src/conf/domain_conf.c (virDomainSnapshotForEachChild)
    (virDomainSnapshotActOnDescendant): Allow iteration to delete
    current child.
    4c1c3611
domain_conf.c 445.2 KB