Skip to content

Commit 7bf010a

Browse files
committed
jpeg_reader spiff: fix skipping invalid dir marker
fixes CID 897314
1 parent d5f4b73 commit 7bf010a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/jpeg_reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ read_spiff_directory(uint8_t** image, struct jpeg_reader *reader, int length)
721721
{
722722
if ( length < 8 ) { // ELEN at least 8
723723
MSG(ERROR, "APP8 SPIFF directory too short (%d bytes)\n", length);
724-
image += length - 2;
724+
*image += length - 2;
725725
return -1;
726726
}
727727
uint32_t tag = read_4byte(*image);

0 commit comments

Comments
 (0)