We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 256a34e commit 1ab5d35Copy full SHA for 1ab5d35
ext/exif/exif.c
@@ -3805,6 +3805,9 @@ static bool exif_scan_JPEG_header(image_info_type *ImageInfo)
3805
3806
fpos = php_stream_tell(ImageInfo->infile);
3807
3808
+ /* safety net in case the above algorithm change dramatically, should not trigger */
3809
+ ZEND_ASSERT(marker != 0xff);
3810
+
3811
/* Read the length of the section. */
3812
if ((lh = php_stream_getc(ImageInfo->infile)) == (unsigned int)EOF) {
3813
EXIF_ERRLOG_CORRUPT(ImageInfo)
0 commit comments