[File] Build error since yesterday

Christoph Biedl astron.com.bwoj at manchmal.in-ulm.de
Sun Oct 2 14:22:23 UTC 2022


Hello,

starting with commit

    committ 83310d1483307cdae924447770311c88dbb29175
    Author: Christos Zoulas <christos at zoulas.com>
    Date:   Sat Oct 1 21:15:55 2022 +0000

        prevent overflow (clusterfuzz)

file no longer builds, more precisely, compiling the magic file fails:

| make[2]: Entering directory '<redacted>/file/build/1664658955.83310d14.FILE5_43-47-g83310d14.amd64/magic'
| ../src/file -C -m magic
| magic/amigaos, 118: Warning: Overflow for numeric type `belong' value 0xffffffffffffffff
| magic/audio, 281: Warning: Overflow for numeric type `beshort' value 0xffffffffffffffff
| magic/audio, 284: Warning: Overflow for numeric type `beshort' value 0xffffffffffffffff
| magic/audio, 287: Warning: Overflow for numeric type `beshort' value 0xffffffffffffffff
| magic/bioinformatics, 62: Warning: Overflow for numeric type `byte' value 0xffffffffffffffff
| magic/bioinformatics, 63: Warning: Overflow for numeric type `byte' value 0xffffffffffffffff
| magic/compress, 374: Warning: Overflow for numeric type `byte' value 0xffffffffffffffff
| magic/compress, 375: Warning: Overflow for numeric type `byte' value 0xffffffffffffffff
| magic/compress, 376: Warning: Overflow for numeric type `byte' value 0xffffffffffffffff
| magic/cracklib, 9: Warning: Overflow for numeric type `long' value 0xffffffffffffffff
| magic/cracklib, 11: Warning: Overflow for numeric type `belong' value 0xffffffffffffffff
| magic/dact, 7: Warning: Overflow for numeric type `byte' value 0xffffffffffffffff
| magic/dact, 8: Warning: Overflow for numeric type `byte' value 0xffffffffffffffff
| magic/dact, 9: Warning: Overflow for numeric type `byte' value 0xffffffffffffffff
| magic/filesystems, 1788: Warning: Overflow for numeric type `beshort' value 0xffffffffffffffff
| magic/filesystems, 1793: Warning: Overflow for numeric type `beshort' value 0xffffffffffffffff
| magic/filesystems, 1798: Warning: Overflow for numeric type `beshort' value 0xffffffffffffffff
| magic/filesystems, 1803: Warning: Overflow for numeric type `beshort' value 0xffffffffffffffff
| magic/images, 2034: Warning: Overflow for numeric type `lelong' value 0xffffffffffffffff
| magic/images, 2303: Warning: Overflow for numeric type `lelong' value 0xffffffffffffffff
| magic/images, 3475: Warning: Overflow for numeric type `lelong' value 0xffffffffffffffff
| magic/msdos, 657: Warning: Overflow for numeric type `byte' value 0xffffffffffffffff
| magic/msdos, 723: Warning: Overflow for numeric type `leshort' value 0xffffffffffffffff
| magic/sequent, 38: Warning: Overflow for numeric type `lelong' value 0xffffffffffffffff
| magic/sgi, 80: Warning: Overflow for numeric type `belong' value 0xffffffffffffffff
| magic/sgi, 87: Warning: Overflow for numeric type `belong' value 0xffffffffffffffff
| magic/vacuum-cleaner, 49: Warning: Overflow for numeric type `lelong' value 0xffffffffffffffff
| magic/vacuum-cleaner, 52: Warning: Overflow for numeric type `lelong' value 0xffffffffffffffff
| magic/vorbis, 75: Warning: Overflow for numeric type `lelong' value 0xffffffffffffffff
| magic/vorbis, 82: Warning: Overflow for numeric type `lelong' value 0xffffffffffffffff
| magic/vorbis, 84: Warning: Overflow for numeric type `lelong' value 0xffffffffffffffff
| file: could not find any valid magic files!
| make[2]: *** [Makefile:864: magic.mgc] Error 1

Platform is Debian unstable, amd64 architecture.

Something in that commit, although certainly done with best intentions, has a
faily bad side-effect.

    Christoph


More information about the File mailing list