This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
When MALLOC_CHECK_ is exported as a positive value (which I am doing for this test), malloc_usable_size should return exactly 7, since the malloc_check code adds a magic number at p[7] if p is the mem pointer. Anything greater than that and the user may risk writing over the magic value and tripping an assertion during free.
-- Florian Weimer / Red Hat Product Security Team
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |