Re: [Rd] int overflow writing long vectors to socketConnection

2021-10-12 Thread Martin Maechler
> Zafer Barutcuoglu > on Tue, 12 Oct 2021 02:04:40 -0400 writes: > Hi, > Writing >=2GB to a socketConnection (e.g. via writeBin) does not work correctly, because of this int typecast in modules/internet/sockconn.c: >> static size_t sock_write(const void *ptr, size_t size

[Rd] int overflow writing long vectors to socketConnection

2021-10-11 Thread Zafer Barutcuoglu
Hi, Writing >=2GB to a socketConnection (e.g. via writeBin) does not work correctly, because of this int typecast in modules/internet/sockconn.c: > static size_t sock_write(const void *ptr, size_t size, size_t nitems, >Rconnection con) > { > Rsockconn this = (Rsockconn