malloc: Print error when oldsize is not equal to the current size.
commit774d43f27dbc730ee4b8b37bce4d5b3d5c0b74b6
authorQingqing Li <liqingqing3@huawei.com>
Thu, 22 Sep 2022 19:32:56 +0000 (22 15:32 -0400)
committerDJ Delorie <dj@redhat.com>
Thu, 22 Sep 2022 19:32:56 +0000 (22 15:32 -0400)
tree609c8125648c664b7a8362dcc0b0af1eceff8548
parentde477abcaaabb1f9815cb63876637a47a95e7ac1
malloc: Print error when oldsize is not equal to the current size.

This is used to detect errors early.  The read of the oldsize is
not protected by any lock, so check this value to avoid causing
bigger mistakes.

Reviewed-by: DJ Delorie <dj@redhat.com>
malloc/malloc.c