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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Oct 15 12:04:12 CEST 2019

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

>  	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) {

You can know the size in advance (when used internally in gnutls); it is part of the structure.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1092#note_230552272
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/20191015/08fe6ce2/attachment.html>

More information about the Gnutls-devel mailing list