com php-src: Fix leak in shift_right_function: Zend/zen d_operators.c

From: Date: Fri, 02 Dec 2016 16:03:05 +0000
Subject: com php-src: Fix leak in shift_right_function: Zend/zen d_operators.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96167@lists.php.net to get a copy of this message
Commit: 8f7325fc244995ae9f7acc2ef788aae31a46cc81 Author: Nikita Popov <nikic@php.net> Fri, 2 Dec 2016 17:03:05 +0100 Parents: 3c1a0d75bf57c72377e43edfd59d3d862469ffb8 Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8f7325fc244995ae9f7acc2ef788aae31a46cc81 Log: Fix leak in shift_right_function Changed paths: M Zend/zend_operators.c Diff: diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 96571da..aa2aaf1 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -1586,10 +1586,10 @@ ZEND_API int ZEND_FASTCALL shift_right_function(zval *result, zval *op1, zval *o /* prevent wrapping quirkiness on some processors where >> 64 + x == >> x */ if (UNEXPECTED((zend_ulong)op2_lval >= SIZEOF_ZEND_LONG * 8)) { if (EXPECTED(op2_lval > 0)) { - ZVAL_LONG(result, (op1_lval < 0) ? -1 : 0); if (op1 == result) { zval_dtor(result); } + ZVAL_LONG(result, (op1_lval < 0) ? -1 : 0); return SUCCESS; } else { if (EG(current_execute_data) && !CG(in_compilation)) {

« previous php.cvs (#96167) next »