diff options
author | Noah Misch | 2015-12-05 08:04:17 +0000 |
---|---|---|
committer | Noah Misch | 2015-12-05 08:04:17 +0000 |
commit | d4b686af0b8ff2d2557b4fec7e5938abb9249167 (patch) | |
tree | 59a2ffff65ade2d09ce84ca027627e381d335923 | |
parent | 63acfb79ab53d3833ad035728fb67a6c3018778f (diff) |
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
-rw-r--r-- | src/pl/plperl/plperl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c index 87dc6f0c3b..b35ef3f64b 100644 --- a/src/pl/plperl/plperl.c +++ b/src/pl/plperl/plperl.c @@ -2111,8 +2111,10 @@ plperl_call_perl_func(plperl_proc_desc *desc, FunctionCallInfo fcinfo) PUSHMARK(SP); EXTEND(sp, desc->nargs); + /* Get signature for true functions; inline blocks have no args. */ if (fcinfo->flinfo->fn_oid) get_func_signature(fcinfo->flinfo->fn_oid, &argtypes, &nargs); + Assert(nargs == desc->nargs); for (i = 0; i < desc->nargs; i++) { |