Skip to content

Commit d812257

Browse 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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/executor/execMain.c

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy