Content-Length: 260054 | pFad | http://github.com/postgrespro/postgres/commit/9cb92334092fa75afc62a71243bbc1f4612ecfa4

FC Fix uninitialized variable from commit a4d75c86b. · postgrespro/postgres@9cb9233 · GitHub
Skip to content

Commit 9cb9233

Browse files
committed
Fix uninitialized variable from commit a4d75c8.
The path for *exprs != NIL would misbehave, and likely crash, since pull_varattnos expects its last argument to be valid at call. Found by Coverity --- we have no coverage of this path in the regression tests.
1 parent 81a23dd commit 9cb9233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/statistics/extended_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ statext_is_compatible_clause(PlannerInfo *root, Node *clause, Index relid,
16091609

16101610
if (pg_class_aclcheck(rte->relid, userid, ACL_SELECT) != ACLCHECK_OK)
16111611
{
1612-
Bitmapset *clause_attnums;
1612+
Bitmapset *clause_attnums = NULL;
16131613

16141614
/* Don't have table privilege, must check individual columns */
16151615
if (*exprs != NIL)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/9cb92334092fa75afc62a71243bbc1f4612ecfa4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy