Page 1 of 1

File/Memory Format Recognition (Needs Testing)

Posted: Thu May 05, 2011 11:54 am
by Env
Hey All,

I'm piecing together a library of source code that can identify a file format by reading it's data signature.

So far it's in very early alpha stage, with the ability to recognise a list of already-implemented Image & Archive formats, but I need to test it's ability to handle different endians.

Feel free to rip it apart and I really do welcome any support, or additional signature definitions.

(You will also find another library i'm working on that allows you to access/read/write files and memory with similar commands to the file commands)

https://sourceforge.net/projects/pbutil ... 8FRECO%29/

Thanks!

Re: File/Memory Format Recognition (Needs Testing)

Posted: Fri May 06, 2011 8:51 am
by remi_meier
You may want to look in the source package of
"file" (the Linux command):
http://www.darwinsys.com/file/
It has a whole lot of magic number signatures.

Re: File/Memory Format Recognition (Needs Testing)

Posted: Fri May 06, 2011 10:04 am
by Env
remi_meier wrote:You may want to look in the source package of
"file" (the Linux command):
http://www.darwinsys.com/file/
It has a whole lot of magic number signatures.
Fantastic. Thanks a million.