MTE: Do not pad size in realloc_check
commit84c202246b74c2f75b36985ceff506b7a152c2fb
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 23 Dec 2020 02:11:17 +0000 (23 07:41 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 24 Dec 2020 00:32:05 +0000 (24 06:02 +0530)
tree4b6f6ddedc5570b7636001fa6fade0883c93e793
parent4f969166ce4ab535fa798dcbaa5de4c4e05773ec
MTE: Do not pad size in realloc_check

The MTE patch to add malloc support incorrectly padded the size passed
to _int_realloc by SIZE_SZ when it ought to have sent just the
chunksize.  Revert that bit of the change so that realloc works
correctly with MALLOC_CHECK_ set.

This also brings the realloc_check implementation back in sync with
libc_realloc.
malloc/hooks.c