[PATCH] malloc tcache: Debugger now sees the address of the corrupted chunk.
DJ Delorie
dj@redhat.com
Sat Dec 12 05:32:14 GMT 2020
Adder <adder.thief@gmail.com> writes:
> malloc.c:2961:5: error: statement with no effect [-Werror=unused-value]
> * (volatile char **) tcache->entries[tc_idx];
Sorry, add (void) in front of it:
(void) * (volatile char **) tcache->entries[tc_idx];
The volatile might be in the wrong spot. Try:
(void) * (char * volatile *) tcache->entries[tc_idx];
The (void) thing is a common idiom.
More information about the Libc-alpha
mailing list