Content-Length: 261585 | pFad | http://github.com/postgrespro/postgres_cluster/commit/d4b686af0b8ff2d2557b4fec7e5938abb9249167

6E Instruct Coverity using an assertion. · postgrespro/postgres_cluster@d4b686a · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/d4b686af0b8ff2d2557b4fec7e5938abb9249167

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy