Control: tags 913867 pending

Felix Lechner wrote...

> Control: retitle -1 file: Please disable WE32K executables like 3B20

Executive summary: Aye

> > I think the bug might actually be in file(1)
>
> I agree. A solution could be to disable WE32K executables similar to
> the way 3B20 executables were commented out. Both formats relate to
> the Bellmac 32, an obsolete mainframe architecture discontinued in the
> mid-1980s [1]. Both formats are described in magic/Magdir/att3b. I
> retitled the bug to reflect that suggestion.

The bad part is the pattern is very weak, just 16 bits of a file are
considered enough to terminate the detection process - in general I try
to find at least 33 identifying bits. This can be improved by
re-ordering the rules, I'll bring this upstream. But for the moment
disabling such an error-prone pattern is the way to go.

Afterwards:

file-testsuite-data.git/debian-bugs/913867/csitt12.tfm: TeX font metric data 
(TeX cs typewriter text)
file-testsuite-data.git/debian-bugs/913867/csitt8.tfm:  TeX font metric data 
(TeX cs typewriter text)

Version 1:5.38-1 will hit experimental very soon (hours - I'm still in
the middle of regression tests).

> It may also possible to promote the TeX file format similar to this
> entry found online [4]:
>
> #------------------------------------------------------------------------------
> # Localstuff:  file(1) magic for locally observed files
> #
> # $Id: Localstuff,v 1.3 1995/01/21 21:09:00 christos Exp $
> # Add any locally observed files here.  Remember:
> # text if readable, executable if runnable binary, data if unreadable.
>
> # XXX promoted from tex so that *.tfm is not mis-identified as mc68k file.
> # There is no way to detect TeX Font Metric (*.tfm) files without
> # breaking them apart and reading the data.  The following patterns
> # match most *.tfm files generated by METAFONT or afm2tfm.
> 2 string \000\021 TeX font metric data
> >33 string >\0 (%s)
> 2 string \000\022 TeX font metric data
> >33 string >\0 (%s)
>
> Thank you for helping to make Lintian better.

Excuse my blindness, do you want this sniplet become part of
file/libmagic? If yes, it should see some improvement first (just 17
identifying bits, see above).

Cheers,

    Christoph

Attachment: signature.asc
Description: PGP signature

Reply via email to