]> git.ipfire.org Git - thirdparty/libvirt.git/commit
phyp: Fix too small buffer allocation in phypAttachDevice
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 9 Apr 2011 09:59:10 +0000 (11:59 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 14 Apr 2011 11:58:22 +0000 (13:58 +0200)
commit28e938a9ec6dff98eec8da444157993dfa7a1adb
treec2c55b5bcd328220eb4b40fd43b0d36f3b533702
parente13e1f4f5d7c9de4fe9ef528e99bda259eee2b8f
phyp: Fix too small buffer allocation in phypAttachDevice

sizeof(domain->name) is the wrong thing. Instead of using strdup here
rewrite escape_specialcharacters to allocate the buffer itself.

Add a contains_specialcharacters to be used in phypOpen, as phypOpen is
not interested in the escaped version.
src/phyp/phyp_driver.c