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: [email protected] 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] [email protected]
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] [email protected]
-Assigned To: +Assigned To: cmb
 [2016-09-24 09:47 UTC] [email protected]
Automatic comment on behalf of [email protected]
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] [email protected]
-Status: Assigned +Status: Closed
 [2016-10-17 10:07 UTC] [email protected]
Automatic comment on behalf of [email protected]
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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jun 12 06:01:26 2025 UTC