Your message dated Tue, 13 Mar 2018 19:04:33 +0000
with message-id <e1evpdt-000anq...@fasolo.debian.org>
and subject line Bug#406371: fixed in imlib2 1.5.0-2
has caused the Debian Bug report #406371,
regarding libimlib2 does not load acii PNM files correctly
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
406371: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=406371
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libimlib2
Version: 1.3.0.0debian1

I find that the loader_pnm.c file in the source package has bugs which
manifest themselves while reading ascii PNM files. To be specific the
data is read using a char buffer and fgets(). When the buffer ends in
the middle of a number which is more than 1 character long, the parser
splits that number into two.

I have corrected two instances f this mistake in loader_pnm.c.mine

I have attached the output of
diff imlib2-1.3.0.0debian1/src/modules/loaders/loader_pnm.c
imlib2-1.3.0.0debian1/src/modules/loaders/loader_pnm.c.mine

This is an important bug as applications like feh use this to load
images and PNM format images are used extensively in research.

Thanks,
Aravind.
244,245c244,261
<                          while (buf[i] && !isspace(buf[i]))
<                             buf2[j++] = buf[i++];
---
>                                                while (!isspace(buf[i]))
>                                                {
>                                                        if (buf[i]) 
>                                                        {
>                                                                buf2[j++] = 
> buf[i++];
>                                                        }
>                                                        else 
>                                                        {
>                                                                if 
> (!fgets(buf, 255, f))
>                                                                {
>                                                                        break;
>                                                                }
>                                                                else 
>                                                                {
>                                                                        i = 0;
>                                                                }
>                                                        }
>                                                }
338,339c354,371
<                          while (buf[i] && !isspace(buf[i]))
<                             buf2[j++] = buf[i++];
---
>                                                while (!isspace(buf[i]))
>                                                {
>                                                        if (buf[i]) 
>                                                        {
>                                                                buf2[j++] = 
> buf[i++];
>                                                        }
>                                                        else 
>                                                        {
>                                                                if 
> (!fgets(buf, 255, f))
>                                                                {
>                                                                        break;
>                                                                }
>                                                                else 
>                                                                {
>                                                                        i = 0;
>                                                                }
>                                                        }
>                                                }

--- End Message ---
--- Begin Message ---
Source: imlib2
Source-Version: 1.5.0-2

We believe that the bug you reported is fixed in the latest version of
imlib2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 406...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Markus Koschany <a...@debian.org> (supplier of updated imlib2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 13 Mar 2018 19:40:09 +0100
Source: imlib2
Binary: libimlib2 libimlib2-dev
Architecture: source
Version: 1.5.0-2
Distribution: unstable
Urgency: medium
Maintainer: Markus Koschany <a...@debian.org>
Changed-By: Markus Koschany <a...@debian.org>
Description:
 libimlib2  - image loading, rendering, saving library
 libimlib2-dev - image loading, rendering, saving library (development files)
Closes: 406371
Changes:
 imlib2 (1.5.0-2) unstable; urgency=medium
 .
   * Add bug-406371.patch and fix incorrect handling of ASCII PNM files.
     Thanks to Aravind Sundaresan for the report and Kim Woelders for the patch.
     (Closes: #406371)
Checksums-Sha1:
 a12992115e70f238fae522cd6b2ae3713d327df0 2183 imlib2_1.5.0-2.dsc
 4e8251d6c5b421657a80343a898db5cb69e5fc44 12600 imlib2_1.5.0-2.debian.tar.xz
 fcf08e2a78f4462e0729d84bf3ab3e513adadbfa 7167 imlib2_1.5.0-2_amd64.buildinfo
Checksums-Sha256:
 781ea6b090223f1329ea77ac3c459bfa4aef6ece9743723888e5410f0a4a451c 2183 
imlib2_1.5.0-2.dsc
 596f0483cd7087e5efb1a64c30c14c5653d725945ae5f83a6f322ab192e86444 12600 
imlib2_1.5.0-2.debian.tar.xz
 2e8f9b47c9d1b1f71682c82ff0fd7ba922d7d606e6d9fa0d8690d11be81efc0a 7167 
imlib2_1.5.0-2_amd64.buildinfo
Files:
 2a1c7d0874993ab6cc22b3a3d3e33f0a 2183 libs optional imlib2_1.5.0-2.dsc
 da3693b9f0cea6d029b6cb5c15131ac6 12600 libs optional 
imlib2_1.5.0-2.debian.tar.xz
 e094ecb648585cf9e5a802c50f04de38 7167 libs optional 
imlib2_1.5.0-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQKjBAEBCgCNFiEErPPQiO8y7e9qGoNf2a0UuVE7UeQFAlqoG9lfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEFD
RjNEMDg4RUYzMkVERUY2QTFBODM1RkQ5QUQxNEI5NTEzQjUxRTQPHGFwb0BkZWJp
YW4ub3JnAAoJENmtFLlRO1HktXoP/AzbahNXOQRGaLc/9wcAQBGKBhiD5bc4sxkf
dZ012nQa1QCIIT9ASpvSjLsD/GWHWgBSoy6Ml6SwFAsegseun8/U05vS3n9GbA8P
yhQs5/RdWm/fn25V6q+ko8Pl3ZAgV5rY4AnS785C1dJq5r5B7UpbZBFb9/oRR6jr
2Davu+dQYX10eOZUBGs/9ca/UQganE6JvBmTsw+ZuWrVkjoMO6YjBPQvZQpK0faf
/Qc4lqsj4tiosTwhrpEy8uHIT197QxYkQoKiGdzCw/Q284ZavYTh0g4H9xEM8YER
QO0TWIx9SC/1yw3vkskpybDHdDFzbxcOjB/LvUoqO6Nu1WUvfsK3NMIXKFRQ0qlW
0M7WmMEofSBhk6yEhEMdS6bIUhQTQvR0KdqxMdb+X1V/2SlbAMe8z2spf0R4Gbwg
ZNYZ3hNNg5ir1l+SOW18xdCc4D+CTHS6VAtVbcbnGK0XbyN+DWIb4CuaiCrPafnw
75zvLrbZKHDh7JNLk+kd0btnVeAWMmMqij96MOch/SMAa+5VDWCpMWc8SfOfdutw
myh+NgPft5jj+Kk6KF7FVIupSKM90JbFxNJN4WK11tUUbxaBbA5wiSfIpaN1nbLs
BOWHXhlMty17rLmnpHM1lSmkPsKe7eFuX8NPOjEUxK7JhBl2l/GZnr2iyAkDmyPO
lugmFI2Q
=qWlx
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to