com php-src: Fixed #68711: ext/standard/pack.c
| From: | Xinchen Hui | Date: | Thu, 08 Jan 2015 08:20:20 +0000 |
| Subject: | com php-src: Fixed #68711: ext/standard/pack.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84031@lists.php.net to get a copy of this message | ||
Commit: 1b4f7c3a771f2bae365190fa4f5d4b9b8aa4cae5
Author: Xinchen Hui <laruence@php.net> Thu, 8 Jan 2015 16:20:20 +0800
Parents: e3012d0f6c48fc6453d74b3be3556b20a5201448
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1b4f7c3a771f2bae365190fa4f5d4b9b8aa4cae5
Log:
Fixed #68711
Bugs:
https://bugs.php.net/68711
Changed paths:
M ext/standard/pack.c
Diff:
diff --git a/ext/standard/pack.c b/ext/standard/pack.c
index d1c7cf9..5578604 100644
--- a/ext/standard/pack.c
+++ b/ext/standard/pack.c
@@ -736,7 +736,7 @@ PHP_FUNCTION(unpack)
case 'A': {
/* A will strip any trailing whitespace */
char padn = '\0'; char pads = ' '; char padt = '\t'; char padc
= '\r'; char padl = '\n';
- size_t len = inputlen - inputpos; /* Remaining string */
+ zend_long len = inputlen - inputpos; /* Remaining string */
/* If size was given take minimum of len and size */
if ((size >= 0) && (len > size)) {