[File] Script to find issues in pattern files
Christos Zoulas
christos at zoulas.com
Sun Sep 1 15:55:54 UTC 2024
Forgot to mention that the %h format warnings are correct, but in the case of magic patterns, we've decided that they just clutter the entries
and make magic writing more cumbersome. There is code in apprentice.c to handle them properly, but it is disabled. If you look in mprint(),
there are cast's to make sure that the right bits are being printed...
christos
> On Sep 1, 2024, at 11:26 AM, Christos Zoulas <christos at zoulas.com> wrote:
>
> Thank you, looks very nice. I ran it and I started fixing some of the issues it has found!
>
>
> christos
>
>
>
>> On Aug 5, 2024, at 2:24 PM, Jason Summers <jason1 at pobox.com> wrote:
>>
>>
>> Hello,
>>
>> I want to announce the release of a Python script I've written that analyzes magic pattern files, and reports some types of issues that are likely to be errors. It's at <https://github.com/jsummers/mgchkj>.
>>
>> Comments, suggestions, etc., are welcome, though it's far from perfect, and I'm not necessarily planning to do much more with it.
>>
>>
>>
>> --
>> Jason Summers
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> File mailing list
>> File at astron.com
>> https://mailman.astron.com/mailman/listinfo/file
>> <sanitizer.log>
>>
>
>
>
> --
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
> <sanitizer.log>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/file/attachments/20240901/ce43fdec/attachment.htm>
More information about the File
mailing list