diff options
author | Nuno Lopes <nlopess@php.net> | 2012-07-02 01:31:40 -0400 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2012-07-02 01:35:28 -0400 |
commit | d80ff391899f7aead3b9b9c6c084adba8a8203ba (patch) | |
tree | 0ec397ce9b15ddd4a1abe7469baee3bf29ba9e88 | |
parent | 250393f92523fffe643df06a1de2101fd50a327e (diff) | |
download | php-git-d80ff391899f7aead3b9b9c6c084adba8a8203ba.tar.gz |
fix (signed) integer overflow (part of bug #52550
-rw-r--r-- | Zend/zend_hash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h index ad0f9f70b9..a763fc7033 100644 --- a/Zend/zend_hash.h +++ b/Zend/zend_hash.h @@ -331,7 +331,7 @@ END_EXTERN_C() if (idx-1 > LONG_MAX) { /* overflow */ \ break; \ } \ - idx = (ulong)(-(long)idx); \ + idx = -idx; \ } else if (idx > LONG_MAX) { /* overflow */ \ break; \ } \ |