go to bug id or search bugs for
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.
Add a Patch
Add a Pull Request
Automatic comment on behalf of email@example.com
Log: Fix #73159: imagegd2(): unrecognized formats may result in corrupted files
Related To: Bug #73072