Skip to content

Commit d4b686a

Browse files
committed
Instruct Coverity using an assertion.
This should make Coverity deduce that plperl_call_perl_func() does not dereference NULL argtypes. Back-patch to 9.5, where the affected code was introduced. Michael Paquier
1 parent 63acfb7 commit d4b686a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pl/plperl/plperl.c

+2
Original file line numberDiff line numberDiff line change
@@ -2111,8 +2111,10 @@ plperl_call_perl_func(plperl_proc_desc *desc, FunctionCallInfo fcinfo)
21112111
PUSHMARK(SP);
21122112
EXTEND(sp, desc->nargs);
21132113

2114+
/* Get signature for true functions; inline blocks have no args. */
21142115
if (fcinfo->flinfo->fn_oid)
21152116
get_func_signature(fcinfo->flinfo->fn_oid, &argtypes, &nargs);
2117+
Assert(nargs == desc->nargs);
21162118

21172119
for (i = 0; i < desc->nargs; i++)
21182120
{

0 commit comments

Comments
 (0)