]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix crash on OOM in xenParseXM handling consoles
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 24 Sep 2013 15:45:09 +0000 (16:45 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 25 Sep 2013 14:49:28 +0000 (15:49 +0100)
commit10b7d19fdd2a815cc68cf247f1bc555902b9908c
treed061d549221dcf23c6eba1e20218944121ebf1ba
parentfa911ec44e4e7a83a7213ed711d281e47148dfb0
Fix crash on OOM in xenParseXM handling consoles

The xenParseXM sets def->nconsoles to 1 before claling
VIR_REALLOC_N on def->consoles. So if the alloc fails
due to OOM, the cleanup code will crash accessing a
console that does not exist.

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