Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd4b686a

Browse files
committed
Instruct Coverity using an assertion.
This should make Coverity deduce that plperl_call_perl_func() does notdereference NULL argtypes. Back-patch to 9.5, where the affected codewas introduced.Michael Paquier
1 parent63acfb7 commitd4b686a

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)

[8]ページ先頭

©2009-2025 Movatter.jp