Re: BUG: realloc(p,0) is not conforming to C99/C11/C17/POSIX.1-2008

2024-10-18 Thread Jason Merrill via Gcc
On 10/17/24 12:09 PM, Alejandro Colomar via Gcc wrote: CC += JeanHeyd CC += Robert, Joseph, gcc@ CC += Doug, as the author of the original malloc(3). Please don't CC random people (and mailing lists) on a glibc bug report. See https://sourceware.org/glibc/wiki/FilingBugs for bug reporting i

Re: BUG: realloc(p,0) is not conforming to C99/C11/C17/POSIX.1-2008

2024-10-17 Thread Douglas McIlroy via Gcc
Pedantically, I should say valid, not unique. More pedantically, it should be distinct from any other pointer returned by malloc or realloc and not freed or realloced since. Doug On Thu, Oct 17, 2024 at 12:09 PM Alejandro Colomar wrote: > > CC += JeanHeyd > > On Thu, Oct 17, 2024 at 05:25:55PM

Re: BUG: realloc(p,0) is not conforming to C99/C11/C17/POSIX.1-2008

2024-10-17 Thread Alejandro Colomar via Gcc
CC += JeanHeyd On Thu, Oct 17, 2024 at 05:25:55PM GMT, Alejandro Colomar wrote: > On Thu, Oct 17, 2024 at 05:19:07PM GMT, Alejandro Colomar wrote: > > CC += Robert, Joseph, gcc@ > > > > On Thu, Oct 17, 2024 at 04:30:27PM GMT, Alejandro Colomar wrote: > > > On Thu, Oct 17, 2024 at 04:23:29PM GMT,

Re: BUG: realloc(p,0) is not conforming to C99/C11/C17/POSIX.1-2008

2024-10-17 Thread Douglas McIlroy via Gcc
> Pedantically, I should say valid, not unique. More pedantically, it should be distinct from any other pointer returned by malloc or realloc and not freed or realloced since. On Thu, Oct 17, 2024 at 11:25 AM Alejandro Colomar wrote: > On Thu, Oct 17, 2024 at 05:19:07PM GMT, Alejandro Colomar w

Re: BUG: realloc(p,0) is not conforming to C99/C11/C17/POSIX.1-2008

2024-10-17 Thread Alejandro Colomar via Gcc
On Thu, Oct 17, 2024 at 05:19:07PM GMT, Alejandro Colomar wrote: > CC += Robert, Joseph, gcc@ > > On Thu, Oct 17, 2024 at 04:30:27PM GMT, Alejandro Colomar wrote: > > On Thu, Oct 17, 2024 at 04:23:29PM GMT, Alejandro Colomar wrote: > > > CC += Doug, as the author of the original malloc(3). > > >

Re: BUG: realloc(p,0) is not conforming to C99/C11/C17/POSIX.1-2008

2024-10-17 Thread Alejandro Colomar via Gcc
CC += Robert, Joseph, gcc@ On Thu, Oct 17, 2024 at 04:30:27PM GMT, Alejandro Colomar wrote: > On Thu, Oct 17, 2024 at 04:23:29PM GMT, Alejandro Colomar wrote: > > CC += Doug, as the author of the original malloc(3). > > > > On Thu, Oct 17, 2024 at 04:21:22PM GMT, Alejandro Colomar wrote: > > > Hi