unrecognized formats may result in corrupted files
| 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 commits
[2016-09-24 09:19 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
[2016-09-24 09:47 UTC] cmb@php.net
-Status: Assigned +Status: Closed
[2016-09-29 15:25 UTC] spam2 at rhsoft dot net