]> 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)
commit604fa1537a2e2e8556c8d78df27d601440577c32
tree58205a041d85a841d71f24daa80a024e7961a8f0
parent35597286d69cf25635d148c351f9da208af2fb49
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