mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Fixed bug #33210 (getimagesize() fails to detect width/height on certain JPEGs).
This commit is contained in:
parent
f1bb484bc2
commit
0625a0b23b
@ -402,12 +402,7 @@ static unsigned int php_next_marker(php_stream * stream, int last_marker, int co
|
||||
last_marker = M_PSEUDO; /* stop skipping non 0xff for M_COM */
|
||||
}
|
||||
}
|
||||
if (++a > 25)
|
||||
{
|
||||
/* who knows the maxim amount of 0xff? though 7 */
|
||||
/* but found other implementations */
|
||||
return M_EOI;
|
||||
}
|
||||
a++;
|
||||
} while (marker == 0xff);
|
||||
if (a < 2)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user