AddressSanitizer: stack-use-after-scope on distributed_planner.c

pull/7948/head
Maksim Melnikov 2025-04-04 13:49:53 +03:00
parent 1306947623
commit f992c8d4f7
1 changed files with 2 additions and 1 deletions

View File

@ -2550,12 +2550,13 @@ HasUnresolvedExternParamsWalker(Node *expression, ParamListInfo boundParams)
if (boundParams && paramId > 0 && paramId <= boundParams->numParams)
{
Oid paramType;
/* give hook a chance in case parameter is dynamic */
if (boundParams->paramFetch != NULL)
{
ParamExternData externParamPlaceholder;
paramType = (*boundParams->paramFetch)(boundParams, paramId, false,
&externParamPlaceholder)->ptype;
&externParamPlaceholder)->ptype;
}
else
{