]> granicus.if.org Git - postgresql/commit
Fix uninitialized memory propagation mistakes
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 27 Mar 2017 17:52:19 +0000 (14:52 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 27 Mar 2017 17:52:19 +0000 (14:52 -0300)
commit6462238f0d7b7c15eb3f54c2108573cee8fb24ba
treefdc9fc118af673cfccfa0a67ac43c03149f4fd9e
parent6e31c3e13514be4404f716f152ac4c434adad03a
Fix uninitialized memory propagation mistakes

Valgrind complains that some uninitialized bytes are being passed around
by the extended statistics code since commit 7b504eb282ca2f, as reported
by Andres Freund.  Silence it.

Tomas Vondra submitted a patch which he verified to fix the complaints
in his machine; however I messed with it a bit before pushing, so any
remaining problems are likely my (Álvaro's) fault.

Author: Tomas Vondra
Discussion: https://postgr.es/m/20170325211031.4xxoptigqxm2emn2@alap3.anarazel.de
src/backend/statistics/mvdistinct.c
src/include/statistics/statistics.h