[gnutls-devel] GnuTLS | buffer size checks in accelerated cipher implementations (!1521)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Wed Jan 26 16:29:39 CET 2022
Alexander Sosedkin commented on a discussion on lib/accelerated/afalg.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1521#note_822393542
> return gnutls_assert_val(GNUTLS_E_ENCRYPTION_FAILED);
> }
>
> + if (unlikely(dst_size < src_size))
> + return gnutls_assert_val(GNUTLS_E_SHORT_MEMORY_BUFFER);
> +
> iov.iov_base = (void *)dst;
> - iov.iov_len = (src_size > dst_size) ? dst_size : src_size;
> + iov.iov_len = src_size;
Thanks for taking a look.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1521#note_822393542
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/20220126/45840ebd/attachment.html>
More information about the Gnutls-devel
mailing list