Skip to content

Commit e048c99

Browse files
committed
reader spiff: fix skip dir marker with invalid len
1 parent 120fe04 commit e048c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gpujpeg_reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ gpujpeg_reader_read_spiff_directory(uint8_t** image, struct gpujpeg_reader *read
450450
{
451451
if ( length < 8 ) { // ELEN at least 8
452452
ERROR_MSG("APP8 SPIFF directory too short (%d bytes)\n", length);
453-
image += length - 2;
453+
*image += length - 2;
454454
return -1;
455455
}
456456
uint32_t tag = gpujpeg_reader_read_4byte(*image);

0 commit comments

Comments
 (0)