Skip Menu |
 

This queue is for tickets about the File-MMagic CPAN distribution.

Report information
The Basics
Id: 59702
Status: new
Priority: 0/
Queue: File-MMagic

People
Owner: Nobody in particular
Requestors: NEPOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.27
Fixed in: (no value)



Subject: Wrong pattern for hex-patterns in sub readMagicLine()
Download (untitled) / with headers
text/plain 337b
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
Download gg-patch_readMagicLine
application/octet-stream 369b

Message body not shown because it is not plain text.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.