Skip to content
Commit 42cc9606 authored by Szabolcs Nagy's avatar Szabolcs Nagy
Browse files

malloc: Fix a realloc crash with heap tagging [BZ 27468]



_int_free must be called with a chunk that has its tag reset. This was
missing in a rare case that could crash when heap tagging is enabled:
when in a multi-threaded process the current arena runs out of memory
during realloc, but another arena still has space to finish the realloc
then _int_free was called without clearing the user allocation tags.

Fixes bug 27468.

Reviewed-by: default avatarDJ Delorie <dj@redhat.com>
parent 7759be25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment