[File] Finding magic at end of files?

Mike Weiblen mew at mew.cx
Wed Aug 29 13:33:54 EDT 2018


Reading the manpages, it appears the offset used to find magic is 
assumed unsigned from the start of the file.

Is it possible to find magic from the end of the file, using say a 
negative offset?

The DFU file format 
(http://www.usb.org/developers/docs/devclass_docs/DFU_1.1.pdf appendix B 
page 40) appends a suffix with its magic at the end of the file.

cheers
-- mew


-- 
Mike Weiblen -- http://mew.cx/ -- Black Hawk, Colorado USA


More information about the File mailing list