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

Lines changed: 2 additions & 0 deletions
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)
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