]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hexdump: fix segfault due to uninitialized memory
authorPetr Uzel <petr.uzel@suse.cz>
Wed, 10 Aug 2011 13:32:28 +0000 (15:32 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 15 Aug 2011 12:28:21 +0000 (14:28 +0200)
commitc53c38b90b9ca117fdf052c49934f6f2191bec63
treee686659c01840b6ff6b42557132d4cebe31478d7
parent59202950584895cf7144df8fde14b216e73b1b2d
hexdump: fix segfault due to uninitialized memory

util-linux commit 85bf44b714ab184907eb448eba389218956d6a51
replaced all calls to emalloc() with xmalloc(), whose semantics
is however different - it does not zero allocated memory. This
made hexdump segfault if MALLOC_PERTURB_ was set.

Reported-by: Kyrill Detinov <lazy.kent@opensuse.org>
Addresses: https://bugzilla.novell.com/show_bug.cgi?id=710877

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
text-utils/display.c
text-utils/parse.c