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

Commit4e46c97

Browse files
committed
Fix NULL pointer dereference in tuplesort.c.
Oversight in commite94568e. This could cause a crash when an externaldatum tuplesort of a pass-by-value type required multiple passes.Per report from Mithun Cy.Peter GeogheganDiscussion:https://postgr.es/m/CAD__OujuhfWFULGFSt1fyHqUb8N-XafjJhudwt88V0Qs2o84qg@mail.gmail.com
1 parentfcf7086 commit4e46c97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/utils/sort/tuplesort.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,8 @@ mergeonerun(Tuplesortstate *state)
28002800
WRITETUP(state,destTape,&state->memtuples[0]);
28012801

28022802
/* recycle the slot of the tuple we just wrote out, for the next read */
2803-
RELEASE_SLAB_SLOT(state,state->memtuples[0].tuple);
2803+
if (state->memtuples[0].tuple)
2804+
RELEASE_SLAB_SLOT(state,state->memtuples[0].tuple);
28042805

28052806
/*
28062807
* pull next tuple from the tape, and replace the written-out tuple in

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp