...
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 allocate likely allocate new memory. This new memory that is suitably may be suitably aligned so that it may it can 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.
...