]> granicus.if.org Git - php/commitdiff
Fixed bug #33210 (relax jpeg recursive loop protection).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 1 Jun 2005 22:28:03 +0000 (22:28 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 1 Jun 2005 22:28:03 +0000 (22:28 +0000)
ext/standard/image.c

index da4ca7c7fa847720f080bbd2656cb1a8602ee51f..5e6b2371a43981e98108a1ec1d7f92330337fae2 100644 (file)
@@ -398,7 +398,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 > 10)
+               if (++a > 25)
                {
                        /* who knows the maxim amount of 0xff? though 7 */
                        /* but found other implementations              */