[gnutls-devel] GnuTLS | fix invalid unsigned arithmetic. (!1364)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Tue Dec 1 09:35:24 CET 2020
ihsinme commented on a discussion on lib/x509/x509_dn.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1364#note_457719609
>
> /* remove spaces from the end */
> while(val->size > 0 && c_isspace(val->data[val->size-1])) {
> - if (val->size-2 > 0 && val->data[val->size-2] == '\\')
> + if (val->size > 2 && val->data[val->size-2] == '\\')
I correct the comparison to be similar, with the exception of the unsigned overflow error. I think the logic is not affected.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1364#note_457719609
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/20201201/262d9401/attachment.html>
More information about the Gnutls-devel
mailing list