Package: file Version: 4.17-4 Severity: normal Tags: patch
file segfaults on startup because it assumes that malloc() will initiliase newly allocated memory. This is detected by valgrind, and can also be seen when running under plash: $ valgrind file / ==15135== Conditional jump or move depends on uninitialised value(s) ==15135== at 0x403FD53: (within /usr/lib/libmagic.so.1.0.0) ==15135== by 0x40417E6: file_apprentice (in /usr/lib/libmagic.so.1.0.0) ==15135== by 0x403F2A1: magic_load (in /usr/lib/libmagic.so.1.0.0) $ pola-run -f / -e /usr/bin/file / zsh: segmentation fault pola-run -fw / -e /usr/bin/file / I've attached a patch for this. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (990, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16-2-686 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages file depends on: ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries ii libmagic1 4.17-4 File type determination library us file recommends no packages. -- no debconf information -- Dr Thomas Leonard http://rox.sourceforge.net GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1
segfault.patch
Description: Binary data