Home
last modified time | relevance | path

Searched hist:"209782 e06fd16c7330d789ff13502d5767a3a88f" (Results 1 – 1 of 1) sorted by relevance

/freebsd/libexec/rtld-elf/
H A Dxmalloc.cdiff 209782e06fd16c7330d789ff13502d5767a3a88f Fri Feb 21 04:36:16 CET 2014 David Xu <davidxu@FreeBSD.org> malloc_aligned() may not leave enough space for pointer to allocated memory,
saving the pointer will overwrite bytes belongs to another memory block
unexpectly, to fix the problem, use (allocated address + sizeof(void *)) as
initial value, and slip to next aligned address, so maximum extra bytes is
sizeof(void *) + align - 1.

Tested by: Andre Albsmeier < mail at ma17 dot ata dot myota dot orgndre >