[File] Regression from firstline initialization

Christos Zoulas christos at zoulas.com
Sun Oct 2 22:43:33 UTC 2022


Whack-a-mole. I fix one thing, I break another.

christos

> On Oct 2, 2022, at 5:04 PM, Christoph Biedl <astron.com.bwoj at manchmal.in-ulm.de> wrote:
> 
> Hello,
> 
> there are a few regressions I've noticed lately.
> 
> For a starter, commit
> 
>    commit c81335fad6cd38c745f3ce6a2f877a05718dee63
>    Author: Christos Zoulas <christos at zoulas.com>
>    Date:   Thu Aug 18 07:57:53 2022 +0000
> 
>        PR/373: Initialize firstline properly so that multiple calls to match work.
> 
> When using against the file available at
> https://bugs.launchpad.net/ubuntu/+source/file/+bug/1717991/+attachment/4952354/+files/test.jpg
> (sha256 097ab7efa99c0189853270d702f3347b2ca23c5886dceb1e3217fb7ac0fd975b)
> there is an additional "\012- " in the detection, as in
> 
> -test.jpg: JPEG image data, (...) Exif Standard: [TIFF image data, (...)
> +test.jpg: JPEG image data, (...) Exif Standard: [\012- TIFF image data, (...)
> 
> This happens with some other samples as well. And no, I have no idea
> what went wrong here.
> 
>    Christoph
> --
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20221002/7b7a4699/attachment.asc>


More information about the File mailing list