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

Commitc8df947

Browse files
committed
Fix potential NULL-pointer dereference.
Commit2781b4b arranged to deferthe setup of after-trigger-related data structures, butAfterTriggerPendingOnRel didn't get the memo.
1 parentbf7ca15 commitc8df947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/trigger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4776,7 +4776,7 @@ AfterTriggerPendingOnRel(Oid relid)
47764776
* if TRUNCATE/etc is executed by a function or trigger within an updating
47774777
* query on the same relation, which is pretty perverse, but let's check.
47784778
*/
4779-
for (depth=0;depth <=afterTriggers.query_depth;depth++)
4779+
for (depth=0;depth <=afterTriggers.query_depth&&depth<afterTriggers.maxquerydepth;depth++)
47804780
{
47814781
for_each_event_chunk(event,chunk,afterTriggers.query_stack[depth])
47824782
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp