<div dir="ltr">Thank you! I finished the magic I was working on. I sent it to the mailing list in hopes it could be made part of the official distribution. However, it got stuck in some sort of moderation queue. The test files contain a tiny bit of uncompressed audio. I used a really short sample of mono audio to try to keep the file sizes reasonable. Let me know if they need to be even smaller. I could try to create new test files from ~zero length audio tracks if needed. I thought I'd send this follow up message since I don't know if anyone is actively monitoring the moderation queue.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 4 Aug 2022 at 00:57, Christos Zoulas <<a href="mailto:christos@zoulas.com">christos@zoulas.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">File only inspects the first 1048576 bytes in the file which can be changed with -p bytes=XXXX. If the data is close to the end of the file you can use a negative offset (from the end of file) and file will start looking backwards if it can seek.<div><br></div><div>Best,</div><div><br></div><div>christos<br><div><br><blockquote type="cite"><div>On Aug 3, 2022, at 2:35 PM, Toni Ruottu <<a href="mailto:toni.ruottu@iki.fi" target="_blank">toni.ruottu@iki.fi</a>> wrote:</div><br><div><p><u></u><u></u></p><p><u></u><br><u></u></p><u></u><p><u></u> Hi!<u></u></p><u></u><p><u></u><br><u></u></p><u></u><p><u></u>I'm trying to create magic for a file format that stores some metadata close to the end of the file. There is a pointer to the metadata near the beginning, so I do know the offset where the metadata is located. However, the file command seems to give up around offset 0x100000 refusing to match any data past that point. The debug mode shows only zeros instead of the actual data.<u></u></p><u></u><p><u></u><br><u></u></p><u></u><p><u></u>Have I encountered a bug or is this a known limitation? What would be a good approach to take? Should I test my magic with a tiny file and ignore the potential failure due to file size? The files I'm trying to process are quite large and would typically not fit entirely within the first 0x100000 bytes.<u></u></p><u></u><p><u></u><br><u></u></p><u></u><p><u></u> --Toni<u></u></p><u></u><p><u></u><br><u></u></p><u></u><div><br></div><u></u>
-- <br>File mailing list<br><a href="mailto:File@astron.com" target="_blank">File@astron.com</a><br><a href="https://mailman.astron.com/mailman/listinfo/file" target="_blank">https://mailman.astron.com/mailman/listinfo/file</a><br><span id="gmail-m_3972605799032782484cid:7FBBB732-B4CE-4D28-9ECA-F3D150AEAE15"><sanitizer.log></span><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u></div></blockquote></div><br></div></div></blockquote></div>