[libvirt] [PATCH] Test handling of non-existant x509 certs

Eric Blake eblake at redhat.com
Wed Aug 21 12:51:02 UTC 2013

On 08/21/2013 05:52 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> In commit f905cc998449c89339d0e2894a71d9a9e45293e5 a use of
> uninitialized data was fixed based on a coverity report. It
> turns out it was possible to trigger this issue by pointing
> libvirt at non-existant certificate files, typically causing


> a crash.
> This adds a test case for that scenario. With the above
> commit reverted, this new test case will crash with a SEGV.
> With the fix applied, it passes, reporting a normal libvirt
> error to the caller.
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  tests/virnettlscontexttest.c | 2 ++
>  1 file changed, 2 insertions(+)


Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130821/4b0c7892/attachment-0001.sig>

More information about the libvir-list mailing list