Skip to content

Commit

Permalink
Merge pull request #607 from yetamrra/ub-printf-fix
Browse files Browse the repository at this point in the history
Fix UB in cups_raster_read debug message
  • Loading branch information
michaelrsweet authored Feb 1, 2023
2 parents d616562 + fd792e3 commit a6d91a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cups/raster-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ cups_raster_read(cups_raster_t *r, /* I - Raster stream */
total; /* Total bytes read */


DEBUG_printf(("4cups_raster_read(r=%p, buf=%p, bytes=" CUPS_LLFMT "), offset=" CUPS_LLFMT, (void *)r, (void *)buf, CUPS_LLCAST bytes, CUPS_LLCAST (r->iostart + r->bufptr - r->buffer)));
DEBUG_printf(("4cups_raster_read(r=%p, buf=%p, bytes=" CUPS_LLFMT "), offset=" CUPS_LLFMT, (void *)r, (void *)buf, CUPS_LLCAST bytes, CUPS_LLCAST (r->iostart + (ssize_t)(r->bufptr - r->buffer))));

if (!r->compressed)
return (cups_raster_io(r, buf, bytes));
Expand Down

0 comments on commit a6d91a2

Please sign in to comment.