[gnutls-devel] Avoid segmentation fault on wrong crt files

Dmitriy Anisimkov anisimkov at ada-ru.org
Sat Feb 15 07:14:04 CET 2014


In gnutls_pcert_list_import_x509_raw call
If data does not contain any certificate, the call 
gnutls_x509_crt_list_import returns error,
and than failure happening inside gnutls_x509_crt_deinit, because the 
crt array was not
zero initialized and looks like initialized by certificates.

Do I need to create small test program demonstrating the faulure fixed 
by this patch ?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-segmentation-fail-on-file-without-certificates.patch
Type: text/x-patch
Size: 740 bytes
Desc: not available
URL: </pipermail/attachments/20140215/d618da6b/attachment-0001.bin>


More information about the Gnutls-devel mailing list