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

Appearance settings

Commit d812257

Browse filesBrowse files
committed
Fix bogus sizeof calculations.
Noted by Coverity. Typo in 27cc7cd, so back-patch to v12 as that was.
1 parent 3d9a3ef commit d812257
Copy full SHA for d812257

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/backend/executor/execMain.c

Copy file name to clipboardExpand all lines: src/backend/executor/execMain.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2912,7 +2912,7 @@ EvalPlanQualStart(EPQState *epqstate, Plan *planTree)
29122912
{
29132913
Assert(epqstate->relsubs_done != NULL);
29142914
memset(epqstate->relsubs_rowmark, 0,
2915-
sizeof(rtsize * sizeof(ExecAuxRowMark *)));
2915+
rtsize * sizeof(ExecAuxRowMark *));
29162916
memset(epqstate->relsubs_done, 0,
29172917
rtsize * sizeof(bool));
29182918
}
@@ -2966,7 +2966,7 @@ EvalPlanQualEnd(EPQState *epqstate)
29662966
if (epqstate->tuple_table != NIL)
29672967
{
29682968
memset(epqstate->relsubs_slot, 0,
2969-
sizeof(rtsize * sizeof(TupleTableSlot *)));
2969+
rtsize * sizeof(TupleTableSlot *));
29702970
ExecResetTupleTable(epqstate->tuple_table, true);
29712971
epqstate->tuple_table = NIL;
29722972
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.