[gnutls-devel] GnuTLS | lib/iov.c:119: null pointer passed as argument 2 to memcpy() (#882)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Jan 3 17:02:04 CET 2020




Daiki Ueno commented:


@rockdaboot thanks, and sorry for not getting back to you earlier.

> The Q still is: should we allow iov_base being NULL or not.

That seems like a good point: even though POSIX doesn't mention any limitation on the iov_base value, the empty case can be handled with an empty vector instead. I couldn't find such checks even in Linux kernel's iov_iter.c and related code. So perhaps we should try to fix the caller (crypto-selftests.c) as well.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/882#note_266920990
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/20200103/9c345c7d/attachment.html>


More information about the Gnutls-devel mailing list