Bug #73159 [Asn->Csd]: imagegd2(): unrecognized formats may result in corrupted files
| From: | cmb@php.net | Date: | Sat, 24 Sep 2016 09:47:33 +0000 |
| Subject: | Bug #73159 [Asn->Csd]: imagegd2(): unrecognized formats may result in corrupted files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204233@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73159&edit=1
ID: 73159
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: imagegd2(): unrecognized formats may result in
corrupted files
-Status: Assigned
+Status: Closed
Type: Bug
Package: GD related
Operating System: *
PHP Version: 5.6Git-2016-09-24 (Git)
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=709731797c55b373329201e9d3c9221303d7faa2
Log: Fix #73159: imagegd2(): unrecognized formats may result in corrupted files
Previous Comments:
------------------------------------------------------------------------
[2016-09-24 09:18:59] cmb@php.net
Description:
------------
The code to write GD2 images checks for unrecognized fmts and
adjusts them to reasonable values. However, for truecolor images
the then correct value would be further increased by 2, resulting
in an incorrect format being written to the file header.
This has been reported against libgd as
<https://github.com/libgd/libgd/issues/289>,
but affects PHP's
bundled libgd as well.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73159&edit=1