]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Simplify implementation of __malloc_assert
authorFlorian Weimer <fweimer@redhat.com>
Thu, 21 Jul 2022 10:12:08 +0000 (12:12 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 21 Jul 2022 14:34:20 +0000 (16:34 +0200)
commit0e5b239f45992e4b54c6f946ecb0c410afc8bb08
tree6ecb977e64f33964fcd18d183c0fef120803d378
parentdc2d843045678f4adb7803f1ed0dd05147770974
malloc: Simplify implementation of __malloc_assert

It is prudent not to run too much code after detecting heap
corruption, and __fxprintf is really complex.  The line number
and file name do not carry much information, so it is not included
in the error message.  (__libc_message only supports %s formatting.)
The function name and assertion should provide some context.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit ac8047cdf326504f652f7db97ec96c0e0cee052f)
malloc/malloc.c