com php-src: fixed range check: ext/standard/filestat.c
| From: | Anatol Belski | Date: | Sun, 24 Nov 2013 17:47:03 +0000 |
| Subject: | com php-src: fixed range check: ext/standard/filestat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74030@lists.php.net to get a copy of this message | ||
Commit: cbf40edf067b58f56627861f33305b5bc948723e
Author: Anatol Belski <ab@php.net> Sun, 24 Nov 2013 18:47:03 +0100
Parents: a73c8812a16ffa5bf730412ff51bb36beee89c5a
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cbf40edf067b58f56627861f33305b5bc948723e
Log:
fixed range check
Changed paths:
M ext/standard/filestat.c
Diff:
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c
index c4c9300..6ce7048 100644
--- a/ext/standard/filestat.c
+++ b/ext/standard/filestat.c
@@ -1217,7 +1217,7 @@ PHP_FUNCTION(realpath_cache_get)
array_init(entry);
/* bucket->key is unsigned long */
- if (LONG_MAX >= bucket->key) {
+ if (ZEND_INT_MAX >= bucket->key) {
add_assoc_long(entry, "key", bucket->key);
} else {
add_assoc_double(entry, "key", (double)bucket->key);