Package: libmagic1
Version: 5.04-4
Tags: patch
Severity: wishlist

The magic number for Bio-Rad PIC files is "12345" as a little-endian
short. Unfortunately, this maps to the string "90"; thus, ASCII text
files such as email messages can sometimes be misidentified.
Additionally, it's below the recommended minimum size for magic numbers.

I'm working around this by the method I used on bug 499748. There are
boolean fields in the format which take up two bytes but can only every
have the values 0 or 1; since plain text files don't contain the bytes
0x00 or 0x01, this fixes the false positives.

This was originally reported on Launchpad:

https://bugs.launchpad.net/ubuntu/+source/file/+bug/61360

The patch will follow momentarily, so that I can put the bug number in
the description; please let me know if anything about it needs to be
changed.

Adam Buchbinder



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to