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 (profile)
Status: Closed Package: GD related
PHP Version: 5.6Git-2016-09-24 (Git) OS: *
Private report: No CVE-ID: None
 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 09:01:32 2024 UTC