mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Fix leak in shift_right_function
This commit is contained in:
parent
3c1a0d75bf
commit
8f7325fc24
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user