[gnutls-devel] GnuTLS | Fix coverity in lib/ (!1092)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Oct 14 20:15:49 CEST 2019




Nikos Mavrogiannopoulos commented on a discussion on lib/str.c: https://gitlab.com/gnutls/gnutls/merge_requests/1092#note_230219751

>  	gnutls_datum_t tdata;
>  
>  	_gnutls_buffer_pop_datum(str, &tdata, req_size);
> -	if (tdata.data == NULL || tdata.size != req_size) {
> +	if (tdata.data == NULL || tdata.size > req_size) {

Maybe documenting the existing behavior more clearly is better solution than this fix. The existing users of this function rely on the previous behavior.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1092#note_230219751
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/20191014/3e7c8d0a/attachment.html>


More information about the Gnutls-devel mailing list