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
What happened with the following problem? AFAICS the sample image
causes a crash due to a NULL deref. However, the calloc returning
that NULL just does that due to a silly value that is the result of
a multiplication (image.c, get_tile()):
This STR has not been updated by the submitter for two or more weeks and has been closed as required by the CUPS Configuration Management Plan. If the issue still requires resolution, please re-submit a new STR.
Version: 1.3.7
CUPS.org User: kssingvo.suse
Ludwig Nussel asked me to report this issue:
What happened with the following problem? AFAICS the sample image
causes a crash due to a NULL deref. However, the calloc returning
that NULL just does that due to a silly value that is the result of
a multiplication (image.c, get_tile()):
xtiles = (img->xsize + CUPS_TILE_SIZE - 1) / CUPS_TILE_SIZE;
ytiles = (img->ysize + CUPS_TILE_SIZE - 1) / CUPS_TILE_SIZE;
...
tile = calloc(sizeof(cups_itile_t), xtiles * ytiles);
...
for (tilex = xtiles; tilex > 0; tilex --, tile ++)
tile->pos = -1;
Couldn't xtiles and xtiles theoretically be constructed in a way
that xtiles*ytiles < xtiles so that the loop overwrites memory?
The text was updated successfully, but these errors were encountered: