mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
mcheck Fix malloc_usable_size [BZ #22057]
Interpose malloc_usable_size to return the correct mcheck value for malloc_usable_size. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@@ -404,3 +404,9 @@ __mcheck_initialize (void (*func) (enum mcheck_status), bool in_pedantic)
|
||||
pedantic = in_pedantic;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
mcheck_usable_size (struct hdr *h)
|
||||
{
|
||||
return (h - 1)->size;
|
||||
}
|
||||
|
Reference in New Issue
Block a user