A NOTE has been added to this issue. 
====================================================================== 
https://www.austingroupbugs.net/view.php?id=1949 
====================================================================== 
Reported By:                alx
Assigned To:                
====================================================================== 
Project:                    1003.1(2024)/Issue8
Issue ID:                   1949
Category:                   System Interfaces
Type:                       Enhancement Request
Severity:                   Objection
Priority:                   high
Status:                     New
Name:                       Alejandro Colomar 
Organization:               Linux man-pages project 
User Reference:              
Section:                    realloc, posix_memalign, aligned_alloc, malloc,
calloc 
Page Number:                I don't know. 
Line Number:                I don't know. 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2025-09-21 12:31 UTC
Last Modified:              2026-01-09 17:56 UTC
====================================================================== 
Summary:                    Restore the traditional realloc(3) specification
====================================================================== 

---------------------------------------------------------------------- 
 (0007360) rcs (reporter) - 2026-01-09 17:56
 https://www.austingroupbugs.net/view.php?id=1949#c7360 
---------------------------------------------------------------------- 
WG14 will hear this paper again at our upcoming (virtual) meeting February 2 -
6, 2026.  FWIW, I will vote against this paper and recommend that the committee
vote against it as well.
We have heard from glib and they are have not made this change and are against
it.
The reason WG14 went in the direction of making realloc of zero bytes UB to
begin with was because of divergent implementation behavior.  In particular,
glibc and AIX didn't conform to the original intent of the committee (which we
clearly failed to communicate clearly).
You can find my paper making this behavior UB here: 
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2464.pdf
This paper was adopted by a unanimous vote of the committee. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2025-09-21 12:31 alx            New Issue                                    
2025-09-21 12:32 alx            Note Added: 0007273                          
2025-09-21 16:04 dalias         Note Added: 0007274                          
2025-10-09 15:22 agadmin        Description Updated                          
2025-10-09 15:22 agadmin        Interp Status             => ---             
2025-10-09 15:46 eblake         Note Added: 0007286                          
2025-10-09 21:43 alx            Note Added: 0007288                          
2026-01-09 17:56 rcs            Note Added: 0007360                          
======================================================================


  • [1003.1(20... Austin Group Issue Tracker via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group

Reply via email to