From: Stefan Esser Date: Fri, 27 Oct 2006 08:35:25 +0000 (+0000) Subject: Manual commit without invoking re2c X-Git-Tag: php-4.4.5RC1~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18a27fa07fc63e737406a7b078e661dd6c4c305c;p=php Manual commit without invoking re2c --- diff --git a/ext/standard/var_unserializer.c b/ext/standard/var_unserializer.c index 40f147a706..cefa52bf35 100644 --- a/ext/standard/var_unserializer.c +++ b/ext/standard/var_unserializer.c @@ -958,6 +958,10 @@ yy83: if (*rval == *rval_ref) return 0; + if ((*rval_ref)->refcount > 65500) { + return 0; + } + if (*rval != NULL) { zval_ptr_dtor(rval); } @@ -1002,6 +1006,10 @@ yy89: return 0; } + if ((*rval_ref)->refcount > 65500) { + return 0; + } + if (*rval != NULL) { zval_ptr_dtor(rval); }