[gnutls-devel] libtasn1 | Fix handling of code which uses NULL pointers + offset (fixes issue #30) (!71)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed Feb 3 16:03:01 CET 2021




Stefan Weil commented on a discussion on lib/coding.c: https://gitlab.com/gnutls/libtasn1/-/merge_requests/71#note_500619189

>  		  goto error;
>  		}
>  	      len2 = max_len;
> -	      err = _asn1_object_id_der ((char*)p->value, der + counter, &len2);
> +	      err = _asn1_object_id_der ((char*)p->value, der ? der + counter : &dummy, &len2);

That would work, too, but requires more changes in those functions.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/libtasn1/-/merge_requests/71#note_500619189
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20210203/a1e0e4e4/attachment.html>


More information about the Gnutls-devel mailing list