[libvirt] [PATCH] util: fix potential segfault

Peter Krempa pkrempa at redhat.com
Wed Apr 12 11:49:38 UTC 2017


On Wed, Apr 12, 2017 at 17:38:06 +0800, Wang King wrote:
> virBufferCurrentContent might be get a NULL string, and then without checking it,
> this can cause a segfault as strlen expects a string != NULL. Use virBufferCheckError
> to check error before calling strlen.
> ---

I've already pushed the previous version with some changes to the commit
message.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170412/41aa84e4/attachment-0001.sig>


More information about the libvir-list mailing list