Content-Length: 257742 | pFad | https://github.com/postgrespro/postgres/commit/a73c9dbab0165b3395dfe8a44a7dfd16166963c4

E8 Fix segmentation fault that an empty prepared statement could cause. · postgrespro/postgres@a73c9db · GitHub
Skip to content

Commit a73c9db

Browse files
committed
Fix segmentation fault that an empty prepared statement could cause.
Back-patch to all supported branches. Per bug #11335 from Haruka Takatsuka
1 parent d8d4965 commit a73c9db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/tcop/utility.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2461,6 +2461,9 @@ GetCommandLogLevel(Node *parsetree)
24612461
{
24622462
LogStmtLevel lev;
24632463

2464+
if (parsetree == NULL)
2465+
return LOGSTMT_ALL;
2466+
24642467
switch (nodeTag(parsetree))
24652468
{
24662469
/* raw plannable queries */

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: https://github.com/postgrespro/postgres/commit/a73c9dbab0165b3395dfe8a44a7dfd16166963c4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy