Subject: | Wrong pattern for hex-patterns in sub readMagicLine() |
There seems a bug in the octal/hex conversion in readMagicLine():
$testval =~ s/\\([x0-7][0-7]?[0-7]?)/chr(oct($1))/eg;
This matches only against true octal patterns. With a magic file
containing a pattern like:
0 string \x89PNG image/png
This pattern won't match.
Attached is a small patch, fixing this problem.
Subject: | gg-patch_readMagicLine |
Message body not shown because it is not plain text.