Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3a60c8b

Browse files
committed
Check for stack overrun in standard_ProcessUtility().
ProcessUtility can recurse, and indeed can be driven to infiniterecursion, so it ought to have a check_stack_depth() call. Thiscovers the reported bug (portal trying to execute itself) and a bunchof other cases that could perhaps arise somewhere.Per bug #15428 from Malthe Borch. Back-patch to all supported branches.Discussion:https://postgr.es/m/15428-b3c2915ec470b033@postgresql.org
1 parent0c99e71 commit3a60c8b

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
@@ -332,6 +332,9 @@ standard_ProcessUtility(Node *parsetree,
332332
{
333333
boolisTopLevel= (context==PROCESS_UTILITY_TOPLEVEL);
334334

335+
/* This can recurse, so check for excessive recursion */
336+
check_stack_depth();
337+
335338
check_xact_readonly(parsetree);
336339

337340
if (completionTag)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp