Submitter: John Benito
Submission Date: Oct 2012
Source: WG14
Reference Document:
N1628
Version: 1.1
Date: April 2013
Subject: Annex J not updated with necessary aligned_alloc
entries
Summary
The following unspecified behaviors are incomplete in Annex J.1,aligned_alloc()
is missing in both entries.
— The order and contiguity of storage allocated by successive calls to theThe following undefined behavior bullet is incomplete in Annex J.2,calloc
,malloc
, andrealloc
functions (7.22.3).
— The amount of storage allocated by a successful call to thecalloc
,malloc
, orrealloc
function when 0 bytes was requested (7.22.3).
aligned_alloc()
is missing.
— A non-null pointer returned by a call to theThe following implementation-defined behavior bullet is incomplete in Annex J.3.12,calloc
,malloc
, orrealloc
function with a zero requested size is used to access an object (7.22.3).
aligned_alloc()
is missing.
— Whether thecalloc
,malloc
, andrealloc
functions return a null pointer or a pointer to an allocated object when the size requested is zero (7.22.3).
Suggested Technical Corrigendum
Change bullet 42 of J.1 to:— The order and contiguity of storage allocated by successive calls to theChange bullet 43 of J.1 to:calloc
,malloc
,realloc
, andaligned_alloc
functions (7.22.3).
— The amount of storage allocated by a successful call to theChange bullet 166 of J.2 tocalloc
,malloc
,realloc
, oraligned_alloc
function when 0 bytes was requested (7.22.3).
— A non-null pointer returned by a call to theChange bullet 37 of J.3.12 tocalloc
,malloc
,realloc
, oraligned_alloc
function with a zero requested size is used to access an object (7.22.3).
— Whether thecalloc
,malloc
,realloc
andaligned_alloc
functions return a null pointer or a pointer to an allocated object when the size requested is zero (7.22.3).
Committee Discussion
Adopt as proposed the Suggested Technical Corrigendum.
Proposed Technical Corrigendum
Change bullet 42 of J.1 to:— The order and contiguity of storage allocated by successive calls to theChange bullet 43 of J.1 to:calloc
,malloc
,realloc
, andaligned_alloc
functions (7.22.3).
— The amount of storage allocated by a successful call to theChange bullet 166 of J.2 tocalloc
,malloc
,realloc
, oraligned_alloc
function when 0 bytes was requested (7.22.3).
— A non-null pointer returned by a call to theChange bullet 37 of J.3.12 tocalloc
,malloc
,realloc
, oraligned_alloc
function with a zero requested size is used to access an object (7.22.3).
— Whether thecalloc
,malloc
,realloc
andaligned_alloc
functions return a null pointer or a pointer to an allocated object when the size requested is zero (7.22.3).