Skip to content

Commit 0625a0b

Browse files
author
Ilia Alshanetsky
committed
Fixed bug #33210 (getimagesize() fails to detect width/height on certain JPEGs).
1 parent f1bb484 commit 0625a0b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ext/standard/image.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,12 +402,7 @@ static unsigned int php_next_marker(php_stream * stream, int last_marker, int co
402402
last_marker = M_PSEUDO; /* stop skipping non 0xff for M_COM */
403403
}
404404
}
405-
if (++a > 25)
406-
{
407-
/* who knows the maxim amount of 0xff? though 7 */
408-
/* but found other implementations */
409-
return M_EOI;
410-
}
405+
a++;
411406
} while (marker == 0xff);
412407
if (a < 2)
413408
{

0 commit comments

Comments
 (0)