Content-Length: 255702 | pFad | http://github.com/postgrespro/postgres/commit/81bffe63c09aac9e64932250082df86bbdc9fd13

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

Commit 81bffe6

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 6427775 commit 81bffe6

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
@@ -2308,6 +2308,9 @@ GetCommandLogLevel(Node *parsetree)
23082308
{
23092309
LogStmtLevel lev;
23102310

2311+
if (parsetree == NULL)
2312+
return LOGSTMT_ALL;
2313+
23112314
switch (nodeTag(parsetree))
23122315
{
23132316
/* 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: http://github.com/postgrespro/postgres/commit/81bffe63c09aac9e64932250082df86bbdc9fd13

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy