You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We must not check for `compression == 1`, but more generally for
`compression`. Furthermore we improve the related documentation.
(cherry picked from commit 497ba7f)
The compression parameter of gdImageBmpCtx() is declared as int, but actually is treated as boolean. If anything else than
0
or1
is passed, however, gdImageBmpCtx() segfaults for non-seekable streams, because the condition to check for compression wrt. to non-seekable streams is not resilient enough.The text was updated successfully, but these errors were encountered: