com php-src: read 1 instead of 2 bytes. The next 2 bytes are 2 and thus not a problem: ext/mysqlnd/mysqlnd_wireprotocol.c
| From: | Andrey Hristov | Date: | Wed, 31 Oct 2012 17:26:09 +0000 |
| Subject: | com php-src: read 1 instead of 2 bytes. The next 2 bytes are 2 and thus not a problem: ext/mysqlnd/mysqlnd_wireprotocol.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70487@lists.php.net to get a copy of this message | ||
Commit: a17559d4224eea0148ad67de9bb1cca22cbef7f6
Author: Andrey Hristov <andrey@php.net> Wed, 31 Oct 2012 18:26:09 +0100
Parents: b3cd64afef4d7c35d8551d34858f98a6286db975
Branches: PHP-5.3 PHP-5.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a17559d4224eea0148ad67de9bb1cca22cbef7f6
Log:
read 1 instead of 2 bytes. The next 2 bytes are 2 and thus not a problem
Changed paths:
M ext/mysqlnd/mysqlnd_wireprotocol.c
Diff:
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c
index 1318c37..ec0ff49 100644
--- a/ext/mysqlnd/mysqlnd_wireprotocol.c
+++ b/ext/mysqlnd/mysqlnd_wireprotocol.c
@@ -982,7 +982,7 @@ php_mysqlnd_rset_field_read(void *_packet, MYSQLND *conn TSRMLS_DC)
p += 2;
BAIL_IF_NO_MORE_DATA;
- meta->decimals = uint2korr(p);
+ meta->decimals = uint1korr(p);
p += 1;
BAIL_IF_NO_MORE_DATA;