git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 61fd218) | patch
ltree: Zero padding bytes when allocating memory for externally visible data.
Tue, 8 Mar 2016 22:59:29 +0000 (14:59 -0800)
Tue, 8 Mar 2016 22:59:29 +0000 (14:59 -0800)
commit 7a1d4a2448c34ed4669d67ae4f24c594545f10b5
ltree: Zero padding bytes when allocating memory for externally visible data.

ltree/ltree_gist/ltxtquery's headers stores data at MAXALIGN alignment,
requiring some padding bytes. So far we left these uninitialized. Zero
those by using palloc0.

Author: Andres Freund
Reported-By: Andres Freund / valgrind / buildarm animal skink
Backpatch: 9.1-
contrib/ltree/_ltree_gist.c diff | blob | blame | history
contrib/ltree/_ltree_op.c diff | blob | blame | history
contrib/ltree/ltree_gist.c diff | blob | blame | history
contrib/ltree/ltree_op.c diff | blob | blame | history
contrib/ltree/ltxtquery_io.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /