[File] Error on 32bit for file 5.45

Dr. Werner Fink werner at suse.de
Fri Jul 28 11:51:07 UTC 2023


The problem can be avoided with

 REQ64="$(getconf LFS_CFLAGS)"
 if test -n "${REQ64}"
 then
     REQ64="${REQ64} -D_TIME_BITS=64"
 fi

to extend the CFLAGS with $REQ64 which make the new MAX_CTIME test
in file-5.45/src/print.c work

+       if (t > MAX_CTIME)
+               goto out;
+

Werner

On 2023/07/28 13:24:18 +0200, Dr. Werner Fink wrote:
> Hi
> 
> on both i586/i686 and armv7l I see
> 
> TZ=UTC MAGIC=../magic/magic ./test -e ../tests/fit-map-data.testfile ../tests/fit-map-data.result
> test: ERROR: result was (len 124)
> FIT Map data, unit id 65536, serial 3879446968, *Invalid datetime*, manufacturer 1 (garmin), product 1632, type 4 (Activity)
> expected (len 131)
> FIT Map data, unit id 65536, serial 3879446968, Sat May 31 10:00:34 2014, manufacturer 1 (garmin), product 1632, type 4 (Activity)
> 
> if I disable `set -e´ in the Makefile below tests/ I see more errors:
> 
> abuild at noether:~/rpmbuild/BUILD/file-5.45/tests> make check |& grep -iE 'error|Invalid'
> test: ERROR: result was (len 124)
> FIT Map data, unit id 65536, serial 3879446968, *Invalid datetime*, manufacturer 1 (garmin), product 1632, type 4 (Activity)
> ../tests/fit-map-data.testfile: FIT Map data, unit id 65536, serial 3879446968, *Invalid datetime*, manufacturer 1 (garmin), product 1632, type 4 (Activity)
> test: ERROR: result was (len 131)
> OpenPGP Public Key Version 2, Created *Invalid datetime*, RSA (Encrypt or Sign, 1024 bits); User ID; Signature; OpenPGP Certificate
> ../tests/pgp-binary-key-v2-phil.testfile: OpenPGP Public Key Version 2, Created *Invalid datetime*, RSA (Encrypt or Sign, 1024 bits); User ID; Signature; OpenPGP Certificate
> test: ERROR: result was (len 131)
> OpenPGP Public Key Version 3, Created *Invalid datetime*, RSA (Encrypt or Sign, 1127 bits); User ID; Signature; OpenPGP Certificate
> ../tests/pgp-binary-key-v3-lutz.testfile: OpenPGP Public Key Version 3, Created *Invalid datetime*, RSA (Encrypt or Sign, 1127 bits); User ID; Signature; OpenPGP Certificate
> test: ERROR: result was (len 114)
> OpenPGP Public Key Version 4, Created *Invalid datetime*, DSA (1024 bits); User ID; Signature; OpenPGP Certificate
> ../tests/pgp-binary-key-v4-dsa.testfile: OpenPGP Public Key Version 4, Created *Invalid datetime*, DSA (1024 bits); User ID; Signature; OpenPGP Certificate
> test: ERROR: result was (len 110)
> OpenPGP Secret Key Version 4, Created *Invalid datetime*, EdDSA; Signature; Secret Subkey; OpenPGP Certificate
> ../tests/pgp-binary-key-v4-ecc-no-userid-secret.testfile: OpenPGP Secret Key Version 4, Created *Invalid datetime*, EdDSA; Signature; Secret Subkey; OpenPGP Certificate
> test: ERROR: result was (len 104)
> OpenPGP Secret Key Version 4, Created *Invalid datetime*, EdDSA; User ID; Signature; OpenPGP Certificate
> ../tests/pgp-binary-key-v4-ecc-secret-key.testfile: OpenPGP Secret Key Version 4, Created *Invalid datetime*, EdDSA; User ID; Signature; OpenPGP Certificate
> test: ERROR: result was (len 131)
> OpenPGP Secret Key Version 4, Created *Invalid datetime*, RSA (Encrypt or Sign, 3072 bits); User ID; Signature; OpenPGP Certificate
> ../tests/pgp-binary-key-v4-rsa-key.testfile: OpenPGP Secret Key Version 4, Created *Invalid datetime*, RSA (Encrypt or Sign, 3072 bits); User ID; Signature; OpenPGP Certificate
> test: ERROR: result was (len 137)
> OpenPGP Secret Key Version 4, Created *Invalid datetime*, RSA (Encrypt or Sign, 3072 bits); Signature; Secret Subkey; OpenPGP Certificate
> ../tests/pgp-binary-key-v4-rsa-no-userid-secret.testfile: OpenPGP Secret Key Version 4, Created *Invalid datetime*, RSA (Encrypt or Sign, 3072 bits); Signature; Secret Subkey; OpenPGP Certificate
> test: ERROR: result was (len 131)
> OpenPGP Secret Key Version 4, Created *Invalid datetime*, RSA (Encrypt or Sign, 3072 bits); User ID; Signature; OpenPGP Certificate
> ../tests/pgp-binary-key-v4-rsa-secret-key.testfile: OpenPGP Secret Key Version 4, Created *Invalid datetime*, RSA (Encrypt or Sign, 3072 bits); User ID; Signature; OpenPGP Certificate
> test: ERROR: result was (len 186)
> AMD/Xilinx accelerator AXLF (xclbin) file, 46226070 bytes, created *Invalid datetime*, shell "xilinx_u55c_gen3x16_xdma_3_202210_1", uuid e106e953-cf90-4024-e075-282d1a7d820b, 11 sections
> ../tests/xclbin.testfile: AMD/Xilinx accelerator AXLF (xclbin) file, 46226070 bytes, created *Invalid datetime*, shell "xilinx_u55c_gen3x16_xdma_3_202210_1", uuid e106e953-cf90-4024-e075-282d1a7d820b, 11 sections
> 
> Werner
> 
-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 894 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20230728/11f8a8d1/attachment.asc>


More information about the File mailing list