We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd019ea commit f832389Copy full SHA for f832389
ext/gd/libgd/gd.c
@@ -3191,7 +3191,7 @@ int gdImagePaletteToTrueColor(gdImagePtr src)
3191
// due to a bug with a certain memory_limit INI value treshold,
3192
// imagepalettetotruecolor crashes with even unrelated ZendMM allocations.
3193
// See GH-17772 for an use case.
3194
- src->tpixels = (int **) gdCalloc(sizeof(int *), sy);
+ src->tpixels = (int **) gdCalloc(sy, sizeof(int *));
3195
if (src->tpixels == NULL) {
3196
return 0;
3197
}
0 commit comments