]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Avoid crash in virBufferEscapeString
authorLaine Stump <laine@laine.org>
Thu, 15 Oct 2009 12:19:11 +0000 (14:19 +0200)
committerDaniel Veillard <veillard@redhat.com>
Thu, 15 Oct 2009 12:19:11 +0000 (14:19 +0200)
commit04e068626282d7b1783bac6633c30dfbe0bfe714
tree5f2f60e716a87a4274a1baf907f0431ba76061b8
parente3915958902c2a581838749ae2e1a6b306fd556e
Avoid crash in virBufferEscapeString

* src/util/buf.c: if virBufferEscapeString was called on a buffer that
  had 0 bytes of space, a size of -1 will be passed to snprintf, resulting
  in a segmentation fault, this preallocate some space.
src/util/buf.c