...
This noncompliant code example returns a pointer to allocated memory that has been aligned to a 4096-byte boundary. If the resize
argument to the realloc()
function is larger than the space referenced by ptr,
realloc()
will likely allocate allocate new memory . This new memory may be suitably that is suitably aligned so that it can it may be assigned to a pointer to any type of object with a fundamental alignment requirement, but may not preserve the stricter alignment requirements of the original space.
...