ahupp / python-magic

A python wrapper for libmagic
Other
2.6k stars 281 forks source link

custom magic_file format #196

Closed janice0324 closed 4 years ago

janice0324 commented 5 years ago

I try to use magic_file but it will show the error below:

image

and the item in my magic file: 0 string 00000000000000000000000000000000000000000000000000000000000000000 application/Xilinx-ace

how can I resolve this problem.

thanks

ahupp commented 4 years ago

It looks like this issue reported against the underlying magic library:

https://github.com/threatstack/libmagic/issues/10

Where did you get this magic file? My guess is that support for this style of line was added in a later version of the library (of libmagic, not python-magic) than you are using, and you'll need to upgrade.

ahupp commented 4 years ago

Closing issue b/c it's in libmagic.