1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/mysqlnd
Andrey Hristov e15c418c4c Fix off by 1 problem.
The problem was manifestated only with BIT columns and only when more than
one row was fetched. The problem was coming from the fact that in pre-7.0
times mysqlnd was using a no-copy optimization. This optimization kept the
strings (and also the BIT mask equivalents as strings) in the packet and the
zval referred to them. 7.0+ zvals cannot use no-copy and always copy. Because
of this the allocated memory for the packet was reduced by 1 by the person who
ported the driver, but the starting address of the bit area wasn't reduced.
Because of this the bit_area started at wrong address and the length decoded
wrong.
2016-12-12 21:11:02 +02:00
..
2015-01-10 15:07:38 -08:00
2014-01-10 15:57:40 +01:00
2016-03-16 10:54:56 +01:00
2016-03-16 10:54:56 +01:00
2016-03-16 10:54:56 +01:00
2016-03-17 15:27:36 +08:00
2016-12-12 21:11:02 +02:00
2016-12-12 21:11:02 +02:00