Red Hat Bugzilla – Bug 82810
file segfaults after examining an Ogg Vorbis file
Last modified: 2007-04-18 12:50:22 EDT
Description of problem:
The "file" command will die with SIGSEGV if it is passed multiple files to
examine, and any file except the last file is an Ogg Vorbis file.
Version-Release number of selected component (if applicable):
Invoke file like this:
file some-file.ogg some-other-file
The act of examining an Ogg Vorbis file seems to be what triggers this bug.
A clarification: file *does* print information about the Ogg Vorbis file
successfully; it only dies when it attempts to examine the next file in the argv
Yup, this problem bit rpm too, which has an internal copy
of file-3.39. Fix there was to remove new-fangled
diff -u /usr/share/magic /usr/lib/rpm/magic
Fixed (as described) in file-3.39-6.
Hurm. While file doesn't crash when using /usr/lib/rpm/magic, I think it's
bogus that a magic(5) file (one that doesn't even appear to be deliberately
mangled, even) can cause file to segfault. File should not segfault, regardless
of what magic it's using.
What do the upstream maintainers think about this?
There's a bug in the magic file distributed with
Go ask the upstream maintainers if you wish. The expedient
Don't do that.