[gnutls-devel] GnuTLS | Sockets: implement sendmsg()-like functions on Win32 (bfd453f3)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Nov 25 13:24:32 CET 2021




Evgeny Grin commented on a discussion on lib/system/sockets.c: https://gitlab.com/gnutls/gnutls/-/commit/bfd453f39cb6126e561000a711264b2535eefc36#note_743737231

>  {
>  	return send(GNUTLS_POINTER_TO_INT(ptr), data, data_size, 0);
>  }
> +
> +ssize_t
> +system_writev(gnutls_transport_ptr_t ptr, const giovec_t * iovec,
> +	      int iovec_cnt)
> +{
> +	WSABUF bufs[iovec_cnt];

Maybe a better solution would be small fixed size + malloced version for large size? This way we can avoid stack overflow in special cases.

`alloc()` on Windows has some limitations: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/alloca?view=msvc-170

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/commit/bfd453f39cb6126e561000a711264b2535eefc36#note_743737231
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/20211125/5a1f210d/attachment.html>


More information about the Gnutls-devel mailing list