[SC22WG14.34679] n3752, alx-0029r8 - Restore the traditional realloc(3) specification

Martin Uecker ma.uecker@gmail.com
Thu Jan 8 14:59:22 GMT 2026


Am Mittwoch, dem 07.01.2026 um 22:01 +0000 schrieb Joseph Myers:
> On Wed, 7 Jan 2026, Alejandro Colomar wrote:
> 
> > I thought you were talking about the UB introduced in C23, but that one
> > seems not documented in Annex J.  In fact, it's still documented
> > incorrectly as ID (J.3.13 entry 41, in N3220).
> 
> See 
> https://stackoverflow.com/questions/78691087/reallocptr-0-in-c23-now-what 
> regarding the lists of UB related to realloc being out of date.  I think 
> this could be fixed editorially via a merge request (to make the Annex J 
> lists in C2y agree with the actual current realloc semantics in C2y) but I 
> haven't got round to writing such an MR myself.


There know of various other issues and omissions in Annex J3.  I think
it would be good if the UB study group informally takes over maintenance
of this annex. 

Martin


More information about the Libc-alpha mailing list