]> granicus.if.org Git - php/commit
Fix valgrind error (sending of initialized bytes over the network).
authorAndrey Hristov <andrey@php.net>
Wed, 31 Aug 2011 18:18:23 +0000 (18:18 +0000)
committerAndrey Hristov <andrey@php.net>
Wed, 31 Aug 2011 18:18:23 +0000 (18:18 +0000)
commitfa8a1c387a97e5d7a667f16846a4975fb7bf8faf
treed750a5295e119195b4e5ed8b6c138b6824fa0b19
parentc25f0424c807f6df9929339d3dbf751bf3d4ff59
Fix valgrind error (sending of initialized bytes over the network).
When the compression was successful the compressed data + uninitialized data
at the end was sent to the server, because the length of the compressed payload
wasn't correctly calculated (actually the length of the uncompressed payload as assumed).
However, the uncompress() function has internally the length of the real payload and skips
the binary trash at the end - thus no data damage occurs!
ext/mysqlnd/mysqlnd_net.c
ext/mysqlnd/mysqlnd_structs.h