0ff241a1ea
GCC 12 emits a warning because it thinks `buffer1` is used after having been freed. The code is correct C because we're only using the value of `(uintptr_t)buffer1`, not `buffer1`. However, we aren't using the value for anything useful: it doesn't really matter if an alloc-free-alloc sequence returns the same address twice. So don't print that bit of information, and this way we don't need to save the old address. Fixes #5974. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2 lines
80 B
Text
2 lines
80 B
Text
Bugfix
|
|
* Silence a warning from GCC 12 in the selftest program. Fixes #5974.
|