pgsql: Fix a second cause of undersized pallocs for btree_gist indexes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a second cause of undersized pallocs for btree_gist indexes
Date: 2014-05-16 19:18:15
Message-ID: E1WlNe3-0002nx-TD@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix a second cause of undersized pallocs for btree_gist indexes on macaddr.

gbt_macad_union also allocated 12-byte structs where we really need 16.

Per report from Andres Freund. No back-patch since there's no current
risk of a real problem.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/39586bc1e971c136c4487b26eb7334dbbe23b102

Modified Files
--------------
contrib/btree_gist/btree_macaddr.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-05-16 19:29:06 pgsql: Suppress some more valgrind whining about btree_gist.
Previous Message Tom Lane 2014-05-16 19:12:00 pgsql: Fix valgrind warning for btree_gist indexes on macaddr.