Skip to content

Commit a6d91a2

Browse files
Merge pull request #607 from yetamrra/ub-printf-fix
Fix UB in cups_raster_read debug message
2 parents d616562 + fd792e3 commit a6d91a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cups/raster-stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ cups_raster_read(cups_raster_t *r, /* I - Raster stream */
14091409
total; /* Total bytes read */
14101410

14111411

1412-
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)));
1412+
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))));
14131413

14141414
if (!r->compressed)
14151415
return (cups_raster_io(r, buf, bytes));

0 commit comments

Comments
 (0)