Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ext/exif/exif.c
Original file line number Diff line number Diff line change
Expand Up @@ -3805,6 +3805,9 @@ static bool exif_scan_JPEG_header(image_info_type *ImageInfo)

fpos = php_stream_tell(ImageInfo->infile);

/* safety net in case the above algorithm change dramatically, should not trigger */
ZEND_ASSERT(marker != 0xff);

/* Read the length of the section. */
if ((lh = php_stream_getc(ImageInfo->infile)) == (unsigned int)EOF) {
EXIF_ERRLOG_CORRUPT(ImageInfo)
Expand Down