[gnutls-devel] GnuTLS | Detect malloc failure. (!960)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Mar 27 14:41:12 CET 2019




Tim Rühsen commented on a discussion on src/ocsptool-common.c:

>  		}
>  
>  		url = malloc(data.size + 1);
> +		if (url == NULL) {
> +		    ret = -1;
> +		    return ret;

-1 is used everywhere in the function for error return. It's not library code.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/960#note_154661983
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/20190327/d3d378dd/attachment.html>


More information about the Gnutls-devel mailing list