[File] Negative sizes for 128x128 ico files
Christos Zoulas
christos at zoulas.com
Mon Mar 3 17:02:14 UTC 2025
Fixed, thanks!
christos
> On Mar 2, 2025, at 6:48 AM, Christoph Biedl <astron.com.bwoj at manchmal.in-ulm.de> wrote:
>
> Hello,
>
> Debian bug report <https://bugs.debian.org/1098991> (has also a download
> link for reproducers).
>
> It seems icon files with a size of 128x128 are printed with a negative
> value, i.e. "-128x-128". It seems just making the type unsigned does the
> trick, or:
>
> --- a/magic/Magdir/msdos
> +++ b/magic/Magdir/msdos
> @@ -2115,9 +2115,9 @@
> # display shared information of cursor or icon entry
> 0 name cur-ico-entry
>> 0 byte =0 \b, 256x
> ->0 byte !0 \b, %dx
> +>0 ubyte !0 \b, %dx
>> 1 byte =0 \b256
> ->1 byte !0 \b%d
> +>1 ubyte !0 \b%d
> # number of colors in palette
>> 2 ubyte !0 \b, %d colors
> # reserved 0 FFh
>
> Regards,
>
> 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/20250303/3ca9b329/attachment.asc>
More information about the File
mailing list