Re: SSIZE_MAX bug on 32-bit

2016-07-13 Thread Corinna Vinschen
On Jul 13 09:05, Eric Blake wrote: > I recently stumbled on a glibc bug: > https://sourceware.org/bugzilla/show_bug.cgi?id=13575 > > and note that cygwin has the same bug in 32 bit. > [...] > I'll probably try my hand at a patch later today. I'm looking forward to it. Thanks, Corinna -- Corin

SSIZE_MAX bug on 32-bit

2016-07-13 Thread Eric Blake
I recently stumbled on a glibc bug: https://sourceware.org/bugzilla/show_bug.cgi?id=13575 and note that cygwin has the same bug in 32 bit. test case 1: $ cat <<\EOF | gcc -E -P - | grep size_t #include #include #include size_t a = SIZE_MAX; ssize_t b = SSIZE_MAX; EOF On 32-bit, we see that b