php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73159 imagegd2(): unrecognized formats may result in corrupted files
Submitted: 2016-09-24 09:18 UTC Modified: 2016-09-24 09:19 UTC
From: cmb@php.net Assigned: cmb
Status: Closed Package: GD related
PHP Version: 5.6Git-2016-09-24 (Git) OS: *
Private report: No CVE-ID:
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cmb@php.net
New email:
PHP Version: OS:

 

 [2016-09-24 09:18 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-09-24 09:19 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2016-09-24 09:47 UTC] cmb@php.net
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
 [2016-09-24 09:47 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2016-10-17 10:07 UTC] bwoebi@php.net
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
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Wed May 24 13:01:42 2017 UTC