perl-5.38.2-506.fc40
List of Defects
Error: COMPILER_WARNING (CWE-1164): [#def1]
perl-5.38.2-build/perl-5.38.2/UU/attrib.c:2:54: warning[-Wunused-function]: ‘I_will_always_be_inlined’ declared ‘static’ but never defined
# 2 | static __inline__ __attribute__((always_inline)) int I_will_always_be_inlined(void);
# | ^~~~~~~~~~~~~~~~~~~~~~~~
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2]
perl-5.38.2-build/perl-5.38.2/UU/dirfd.c: scope_hint: In function ‘main’
perl-5.38.2-build/perl-5.38.2/UU/dirfd.c:26:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘opendir(".")’ where non-null expected
perl-5.38.2-build/perl-5.38.2/UU/dirfd.c:14: included_from: Included from here.
/usr/include/dirent.h:226:12: note: argument 1 of ‘dirfd’ must be non-null
Error: COMPILER_WARNING: [#def3]
perl-5.38.2-build/perl-5.38.2/UU/signal.c: scope_hint: In function ‘main’
perl-5.38.2-build/perl-5.38.2/UU/signal.c:158:16: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’
# 158 | printf("STKSZ %d\n",SIGSTKSZ);
# | ~^
# | |
# | int
# | %ld
Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.xs:12: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.c: scope_hint: In function ‘XS_POSIX_dup2’
perl-5.38.2-build/perl-5.38.2/XSUB.h:329:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘RETVAL’
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.c:4015:5: note: in expansion of macro ‘XSRETURN’
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.xs:11: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/embed.h:105:65: note: in definition of macro ‘SvIV’
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.c:3982:33: note: in expansion of macro ‘ST’
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.c:4008:21: note: in expansion of macro ‘sv_setpvn’
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.c:4015:5: note: in expansion of macro ‘XSRETURN’
# 327| assert(tmpXSoff >= 0);\
# 328| PL_stack_sp = PL_stack_base + ax + (tmpXSoff - 1); \
# 329|-> return; \
# 330| } STMT_END
# 331|
Error: CPPCHECK_WARNING: [#def5]
perl-5.38.2-build/perl-5.38.2/_cflags.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
perl-5.38.2-build/perl-5.38.2/av.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
perl-5.38.2-build/perl-5.38.2/builtin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def8]
perl-5.38.2-build/perl-5.38.2/builtin.c:296:25: warning[deadcode.DeadStores]: Although the value stored to 'name' is used in the enclosing expression, the value is never actually read from 'name'
# 294| /* overwrites the pointer on the stack; but this is fine, the
# 295| * caller's value isn't modified */
# 296|-> ST(i) = name = sv_2mortal(Perl_newSVpvf(aTHX_ "&%" SVf, SVfARG(name)));
# 297|
# 298| /* FALLTHROUGH */
Error: CPPCHECK_WARNING: [#def9]
perl-5.38.2-build/perl-5.38.2/caretx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
perl-5.38.2-build/perl-5.38.2/class.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def11]
perl-5.38.2-build/perl-5.38.2/class.c:281:13: warning[deadcode.DeadStores]: Value stored to 'max_fieldix' during its initialization is never read
# 279|
# 280| U32 fieldcount = (aux++)->uv;
# 281|-> U32 max_fieldix = (aux++)->uv;
# 282|
# 283| assert((U32)(ObjectMAXFIELD(instance)+1) > max_fieldix);
Error: CLANG_WARNING: [#def12]
perl-5.38.2-build/perl-5.38.2/class.c:385:19: warning[deadcode.DeadStores]: Value stored to 'padix' during its initialization is never read
# 383| * still need to give it a name. Make it unusable from pure perl
# 384| */
# 385|-> PADOFFSET padix = pad_add_name_pvs("$(self)", 0, NULL, NULL);
# 386| assert(padix == PADIX_SELF);
# 387|
Error: CLANG_WARNING: [#def13]
perl-5.38.2-build/perl-5.38.2/class.c:388:9: warning[deadcode.DeadStores]: Value stored to 'padix' is never read
# 386| assert(padix == PADIX_SELF);
# 387|
# 388|-> padix = pad_add_name_pvs("%(params)", 0, NULL, NULL);
# 389| assert(padix == PADIX_PARAMS);
# 390|
Error: CLANG_WARNING: [#def14]
perl-5.38.2-build/perl-5.38.2/class.c:723:17: warning[core.NullDereference]: Access to field 'op_moresib' results in a dereference of a null pointer (loaded from variable 'valop')
# 721|
# 722| valop = o;
# 723|-> OpLASTSIB_set(valop, NULL);
# 724|
# 725| ops = op_append_list(OP_LINESEQ, ops, fieldcop);
Error: CLANG_WARNING: [#def15]
perl-5.38.2-build/perl-5.38.2/class.c:832:5: warning[deadcode.DeadStores]: Value stored to 'padix' is never read
# 830| PADOFFSET padix;
# 831|
# 832|-> padix = pad_add_name_pvs("$self", 0, NULL, NULL);
# 833| assert(padix == PADIX_SELF);
# 834| PERL_UNUSED_VAR(padix);
Error: CLANG_WARNING: [#def16]
perl-5.38.2-build/perl-5.38.2/class.c:974:52: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 972| continue;
# 973|
# 974|-> if(field_attributes[i].requires_value && !(value && SvOK(value)))
# 975| croak("Field attribute %" SVf " requires a value", SVfARG(name));
# 976|
Error: CLANG_WARNING: [#def17]
perl-5.38.2-build/perl-5.38.2/class.c:977:9: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
# 975| croak("Field attribute %" SVf " requires a value", SVfARG(name));
# 976|
# 977|-> (*field_attributes[i].apply)(aTHX_ pn, value);
# 978| return;
# 979| }
Error: CPPCHECK_WARNING: [#def18]
perl-5.38.2-build/perl-5.38.2/cpan/Compress-Raw-Bzip2/Bzip2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def19]
perl-5.38.2-build/perl-5.38.2/cpan/Compress-Raw-Bzip2/Bzip2.c:1761:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 1759| char* file = __FILE__;
# 1760| #else
# 1761|-> const char* file = __FILE__;
# 1762| #endif
# 1763|
Error: CLANG_WARNING: [#def20]
perl-5.38.2-build/perl-5.38.2/cpan/Compress-Raw-Bzip2/Bzip2.xs:378:17: warning[deadcode.DeadStores]: Value stored to 'flags' is never read
# 376| int flags = 0 ;
# 377| if (appendOut)
# 378|-> flags |= FLAG_APPEND_OUTPUT;
# 379| PostInitStream(s, appendOut ? FLAG_APPEND_OUTPUT :0) ;
# 380| }
Error: CLANG_WARNING: [#def21]
perl-5.38.2-build/perl-5.38.2/cpan/Compress-Raw-Bzip2/Bzip2.xs:781:5: warning[deadcode.DeadStores]: Value stored to 'RETVAL' is never read
# 779| s->bytesInflated = 0;
# 780|
# 781|-> RETVAL = BZ_OK;
# 782|
# 783| while (1) {
Error: CLANG_WARNING: [#def22]
perl-5.38.2-build/perl-5.38.2/cpan/Compress-Raw-Zlib/Zlib.c:2736:6: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
# 2734|
# 2735| if (items < 4)
# 2736|-> eof = FALSE;
# 2737| else {
# 2738| eof = (bool)SvTRUE(ST(3))
Error: CLANG_WARNING: [#def23]
perl-5.38.2-build/perl-5.38.2/cpan/Compress-Raw-Zlib/Zlib.c:2738:6: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
# 2736| eof = FALSE;
# 2737| else {
# 2738|-> eof = (bool)SvTRUE(ST(3))
# 2739| ;
# 2740| }
Error: CLANG_WARNING: [#def24]
perl-5.38.2-build/perl-5.38.2/cpan/Compress-Raw-Zlib/Zlib.c:3593:6: warning[deadcode.DeadStores]: Value stored to 'out' is never read
# 3591| out = NULL;
# 3592| else {
# 3593|-> out = ST(2)
# 3594| ;
# 3595| }
Error: CLANG_WARNING: [#def25]
perl-5.38.2-build/perl-5.38.2/cpan/Compress-Raw-Zlib/Zlib.c:3598:6: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
# 3596|
# 3597| if (items < 4)
# 3598|-> eof = FALSE;
# 3599| else {
# 3600| eof = (bool)SvTRUE(ST(3))
Error: CLANG_WARNING: [#def26]
perl-5.38.2-build/perl-5.38.2/cpan/Compress-Raw-Zlib/Zlib.c:3600:6: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
# 3598| eof = FALSE;
# 3599| else {
# 3600|-> eof = (bool)SvTRUE(ST(3))
# 3601| ;
# 3602| }
Error: CLANG_WARNING: [#def27]
perl-5.38.2-build/perl-5.38.2/cpan/Compress-Raw-Zlib/Zlib.c:4208:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 4206| char* file = __FILE__;
# 4207| #else
# 4208|-> const char* file = __FILE__;
# 4209| #endif
# 4210|
Error: CPPCHECK_WARNING: [#def28]
perl-5.38.2-build/perl-5.38.2/cpan/DB_File/DB_File.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def29]
perl-5.38.2-build/perl-5.38.2/cpan/DB_File/DB_File.c:2845:61: warning[core.NullDereference]: Dereference of null pointer
# 2843| #endif
# 2844| #line 2845 "DB_File.c"
# 2845|-> if (flagSet(flags, R_IAFTER) || flagSet(flags, R_IBEFORE)) OutputKey(ST(1), key);
# 2846| SvSETMAGIC(ST(1));
# 2847| XSprePUSH;
Error: CLANG_WARNING: [#def30]
perl-5.38.2-build/perl-5.38.2/cpan/DB_File/DB_File.c:3175:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 3173| char* file = __FILE__;
# 3174| #else
# 3175|-> const char* file = __FILE__;
# 3176| #endif
# 3177|
Error: CLANG_WARNING: [#def31]
perl-5.38.2-build/perl-5.38.2/cpan/DB_File/DB_File.xs:1427:21: warning[deadcode.DeadStores]: Value stored to 'flags' is never read
# 1425| if (flags & DB_FIXEDLEN) {
# 1426| fixed = TRUE ;
# 1427|-> flags &= ~DB_FIXEDLEN ;
# 1428| }
# 1429| }
Error: CLANG_WARNING: [#def32]
perl-5.38.2-build/perl-5.38.2/cpan/DB_File/DB_File.xs:1433:17: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1431| svp = hv_fetch(action, "cachesize", 9, FALSE);
# 1432| if (svp) {
# 1433|-> status = dbp->set_cachesize(dbp, 0, my_SvUV32(*svp), 0) ;
# 1434| }
# 1435|
Error: CLANG_WARNING: [#def33]
perl-5.38.2-build/perl-5.38.2/cpan/DB_File/DB_File.xs:1438:17: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1436| svp = hv_fetch(action, "psize", 5, FALSE);
# 1437| if (svp) {
# 1438|-> status = dbp->set_pagesize(dbp, my_SvUV32(*svp)) ;
# 1439| }
# 1440|
Error: CLANG_WARNING: [#def34]
perl-5.38.2-build/perl-5.38.2/cpan/DB_File/DB_File.xs:1443:17: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1441| svp = hv_fetch(action, "lorder", 6, FALSE);
# 1442| if (svp) {
# 1443|-> status = dbp->set_lorder(dbp, (int)SvIV(*svp)) ;
# 1444| }
# 1445|
Error: CLANG_WARNING: [#def35]
perl-5.38.2-build/perl-5.38.2/cpan/DB_File/DB_File.xs:1564:10: warning[deadcode.DeadStores]: Value stored to 'sv_err' during its initialization is never read
# 1562| #endif
# 1563| #ifdef WANT_ERROR
# 1564|-> SV * sv_err = perl_get_sv(ERR_BUFF, GV_ADD|GV_ADDMULTI) ;
# 1565| #endif
# 1566| MY_CXT_INIT;
Error: CLANG_WARNING: [#def36]
perl-5.38.2-build/perl-5.38.2/cpan/DB_File/DB_File.xs:1635:9: warning[deadcode.DeadStores]: Value stored to 'RETVAL' is never read
# 1633| #ifdef DB_VERSION_MAJOR
# 1634| if (RETVAL > 0)
# 1635|-> RETVAL = -1 ;
# 1636| #endif
# 1637|
Error: CLANG_WARNING: [#def37]
perl-5.38.2-build/perl-5.38.2/cpan/DB_File/DB_File.xs:1761:9: warning[deadcode.DeadStores]: Value stored to 'RETVAL' is never read
# 1759| #ifdef DB_VERSION_MAJOR
# 1760| /* get the first value */
# 1761|-> RETVAL = do_SEQ(db, key, value, DB_FIRST) ;
# 1762| RETVAL = 0 ;
# 1763| #else
Error: CPPCHECK_WARNING: [#def38]
perl-5.38.2-build/perl-5.38.2/cpan/DB_File/version.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def39]
perl-5.38.2-build/perl-5.38.2/cpan/Digest-MD5/MD5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def40]
perl-5.38.2-build/perl-5.38.2/cpan/Digest-MD5/MD5.c:1063:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 1061| char* file = __FILE__;
# 1062| #else
# 1063|-> const char* file = __FILE__;
# 1064| #endif
# 1065|
Error: CLANG_WARNING: [#def41]
perl-5.38.2-build/perl-5.38.2/cpan/Digest-MD5/MD5.xs:289:2: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<<' is a garbage value
# 287|
# 288| /* Round 1 */
# 289|-> FF (a, b, c, d, S11, 0xd76aa478); /* 1 */
# 290| FF (d, a, b, c, S12, 0xe8c7b756); /* 2 */
# 291| FF (c, d, a, b, S13, 0x242070db); /* 3 */
Error: CPPCHECK_WARNING (CWE-457): [#def42]
perl-5.38.2-build/perl-5.38.2/cpan/Digest-MD5/MD5.xs:508: warning[uninitvar]: Uninitialized variable: to
# 506| }
# 507| *d = '\0';
# 508|-> return to;
# 509| }
# 510|
Error: CPPCHECK_WARNING: [#def43]
perl-5.38.2-build/perl-5.38.2/cpan/Digest-SHA/SHA.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def44]
perl-5.38.2-build/perl-5.38.2/cpan/Digest-SHA/src/sha.c:127: error[uninitvar]: Uninitialized variable: *wp
# 125| M15(Ch, K1, *wp++); M11(Ch, K1, *wp++); M12(Ch, K1, *wp++);
# 126| M13(Ch, K1, *wp++); M14(Ch, K1, *wp++); M15(Ch, K1, *wp++);
# 127|-> M11(Ch, K1, *wp ); M12(Ch, K1, A1( 0)); M13(Ch, K1, A1( 1));
# 128| M14(Ch, K1, A1( 2)); M15(Ch, K1, A1( 3)); M11(Pa, K2, A1( 4));
# 129| M12(Pa, K2, A1( 5)); M13(Pa, K2, A1( 6)); M14(Pa, K2, A1( 7));
Error: CPPCHECK_WARNING (CWE-457): [#def45]
perl-5.38.2-build/perl-5.38.2/cpan/Digest-SHA/src/sha.c:197: error[uninitvar]: Uninitialized variable: *wp
# 195| M25( *wp++); M26( *wp++); M27( *wp++); M28( *wp++);
# 196| M21( *wp++); M22( *wp++); M23( *wp++); M24( *wp++);
# 197|-> M25( *wp++); M26( *wp++); M27( *wp++); M28( *wp );
# 198| M21(A2( 0)); M22(A2( 1)); M23(A2( 2)); M24(A2( 3));
# 199| M25(A2( 4)); M26(A2( 5)); M27(A2( 6)); M28(A2( 7));
Error: CPPCHECK_WARNING: [#def46]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/Byte/Byte.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def47]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/CN/CN.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def48]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/EBCDIC/EBCDIC.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def49]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/Encode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def50]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/Encode.c:971:7: warning[deadcode.DeadStores]: Value stored to 'obj' during its initialization is never read
# 969| croak_xs_usage(cv, "obj");
# 970| {
# 971|-> SV * obj = ST(0)
# 972| ;
# 973| int RETVAL;
Error: CLANG_WARNING: [#def51]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/Encode.c:1188:7: warning[deadcode.DeadStores]: Value stored to 'obj' during its initialization is never read
# 1186| croak_xs_usage(cv, "obj");
# 1187| {
# 1188|-> SV * obj = ST(0)
# 1189| ;
# 1190| bool RETVAL;
Error: CLANG_WARNING: [#def52]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/Encode.c:1208:7: warning[deadcode.DeadStores]: Value stored to 'obj' during its initialization is never read
# 1206| croak_xs_usage(cv, "obj");
# 1207| {
# 1208|-> SV * obj = ST(0)
# 1209| ;
# 1210| #line 894 "Encode.xs"
Error: CLANG_WARNING: [#def53]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/Encode.xs:430:9: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 428|
# 429| /* Copy as far as was successful */
# 430|-> Move(s, d, len, U8);
# 431| d += len;
# 432| s = (U8 *) e_or_where_failed;
Error: CPPCHECK_WARNING: [#def54]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/JP/JP.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def55]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/KR/KR.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def56]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/Symbol/Symbol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def57]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/TW/TW.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def58]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/Unicode/Unicode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def59]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/Unicode/Unicode.c:719:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 717| char* file = __FILE__;
# 718| #else
# 719|-> const char* file = __FILE__;
# 720| #endif
# 721|
Error: CPPCHECK_WARNING: [#def60]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/encengine.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def61]
perl-5.38.2-build/perl-5.38.2/cpan/Filter-Util-Call/Call.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def62]
perl-5.38.2-build/perl-5.38.2/cpan/Filter-Util-Call/Call.c:448:6: warning[deadcode.DeadStores]: Value stored to 'package' is never read
# 446|
# 447| if (items < 1)
# 448|-> package = "Filter::Util::Call";
# 449| else {
# 450| package = (const char *)SvPV_nolen(ST(0))
Error: CLANG_WARNING: [#def63]
perl-5.38.2-build/perl-5.38.2/cpan/Filter-Util-Call/Call.c:450:6: warning[deadcode.DeadStores]: Value stored to 'package' is never read
# 448| package = "Filter::Util::Call";
# 449| else {
# 450|-> package = (const char *)SvPV_nolen(ST(0))
# 451| ;
# 452| }
Error: CPPCHECK_WARNING: [#def64]
perl-5.38.2-build/perl-5.38.2/cpan/IPC-SysV/SysV.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def65]
perl-5.38.2-build/perl-5.38.2/cpan/MIME-Base64/Base64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def66]
perl-5.38.2-build/perl-5.38.2/cpan/Math-BigInt-FastCalc/FastCalc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def67]
perl-5.38.2-build/perl-5.38.2/cpan/Math-BigInt-FastCalc/FastCalc.c:639:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 637| char* file = __FILE__;
# 638| #else
# 639|-> const char* file = __FILE__;
# 640| #endif
# 641|
Error: CPPCHECK_WARNING: [#def68]
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def69]
perl-5.38.2-build/perl-5.38.2/cpan/Socket/Socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def70]
perl-5.38.2-build/perl-5.38.2/cpan/Socket/Socket.c:1896:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 1894| char* file = __FILE__;
# 1895| #else
# 1896|-> const char* file = __FILE__;
# 1897| #endif
# 1898|
Error: CPPCHECK_WARNING: [#def71]
perl-5.38.2-build/perl-5.38.2/cpan/Sys-Syslog/Syslog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def72]
perl-5.38.2-build/perl-5.38.2/cpan/Sys-Syslog/Syslog.c:549:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 547| char* file = __FILE__;
# 548| #else
# 549|-> const char* file = __FILE__;
# 550| #endif
# 551|
Error: CPPCHECK_WARNING: [#def73]
perl-5.38.2-build/perl-5.38.2/cpan/Time-Piece/Piece.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def74]
perl-5.38.2-build/perl-5.38.2/cpan/Time-Piece/Piece.xs:1141:9: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read
# 1139| }
# 1140|
# 1141|-> tmp = hv_store(locales, "wday", 4, newRV_noinc((SV *) wdays), 0);
# 1142| tmp = hv_store(locales, "weekday", 7, newRV_noinc((SV *) weekdays), 0);
# 1143| tmp = hv_store(locales, "mon", 3, newRV_noinc((SV *) mons), 0);
Error: CLANG_WARNING: [#def75]
perl-5.38.2-build/perl-5.38.2/cpan/Time-Piece/Piece.xs:1142:9: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read
# 1140|
# 1141| tmp = hv_store(locales, "wday", 4, newRV_noinc((SV *) wdays), 0);
# 1142|-> tmp = hv_store(locales, "weekday", 7, newRV_noinc((SV *) weekdays), 0);
# 1143| tmp = hv_store(locales, "mon", 3, newRV_noinc((SV *) mons), 0);
# 1144| tmp = hv_store(locales, "month", 5, newRV_noinc((SV *) months), 0);
Error: CLANG_WARNING: [#def76]
perl-5.38.2-build/perl-5.38.2/cpan/Time-Piece/Piece.xs:1143:9: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read
# 1141| tmp = hv_store(locales, "wday", 4, newRV_noinc((SV *) wdays), 0);
# 1142| tmp = hv_store(locales, "weekday", 7, newRV_noinc((SV *) weekdays), 0);
# 1143|-> tmp = hv_store(locales, "mon", 3, newRV_noinc((SV *) mons), 0);
# 1144| tmp = hv_store(locales, "month", 5, newRV_noinc((SV *) months), 0);
# 1145| tmp = hv_store(locales, "alt_month", 9, newRV((SV *) months), 0);
Error: CLANG_WARNING: [#def77]
perl-5.38.2-build/perl-5.38.2/cpan/Time-Piece/Piece.xs:1144:9: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read
# 1142| tmp = hv_store(locales, "weekday", 7, newRV_noinc((SV *) weekdays), 0);
# 1143| tmp = hv_store(locales, "mon", 3, newRV_noinc((SV *) mons), 0);
# 1144|-> tmp = hv_store(locales, "month", 5, newRV_noinc((SV *) months), 0);
# 1145| tmp = hv_store(locales, "alt_month", 9, newRV((SV *) months), 0);
# 1146|
Error: CLANG_WARNING: [#def78]
perl-5.38.2-build/perl-5.38.2/cpan/Time-Piece/Piece.xs:1145:9: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read
# 1143| tmp = hv_store(locales, "mon", 3, newRV_noinc((SV *) mons), 0);
# 1144| tmp = hv_store(locales, "month", 5, newRV_noinc((SV *) months), 0);
# 1145|-> tmp = hv_store(locales, "alt_month", 9, newRV((SV *) months), 0);
# 1146|
# 1147| len = strftime(buf, TP_BUF_SIZE, "%p", &mytm);
Error: CLANG_WARNING: [#def79]
perl-5.38.2-build/perl-5.38.2/cpan/Time-Piece/Piece.xs:1148:9: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read
# 1146|
# 1147| len = strftime(buf, TP_BUF_SIZE, "%p", &mytm);
# 1148|-> tmp = hv_store(locales, "AM", 2, newSVpvn(buf,len), 0);
# 1149| mytm.tm_hour = 18;
# 1150| len = strftime(buf, TP_BUF_SIZE, "%p", &mytm);
Error: CPPCHECK_WARNING: [#def80]
perl-5.38.2-build/perl-5.38.2/cpan/Unicode-Collate/Collate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def81]
perl-5.38.2-build/perl-5.38.2/cpan/Unicode-Collate/Collate.c:1099:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 1097| char* file = __FILE__;
# 1098| #else
# 1099|-> const char* file = __FILE__;
# 1100| #endif
# 1101|
Error: CPPCHECK_WARNING: [#def82]
perl-5.38.2-build/perl-5.38.2/deb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def83]
perl-5.38.2-build/perl-5.38.2/dist/Data-Dumper/Dumper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def84]
perl-5.38.2-build/perl-5.38.2/dist/Data-Dumper/Dumper.xs:579:15: warning[core.NullDereference]: Access to field 'sv_flags' results in a dereference of a null pointer (loaded from variable 'sv_pattern')
# 577| p = (U8 *)rval;
# 578| rend = p + rlen;
# 579|-> do_utf8 = DO_UTF8(sv_pattern);
# 580|
# 581| while (p < rend) {
Error: CLANG_WARNING: [#def85]
perl-5.38.2-build/perl-5.38.2/dist/Data-Dumper/Dumper.xs:700:13: warning[deadcode.DeadStores]: Value stored to 'i' is never read
# 698| dSP; ENTER; SAVETMPS; PUSHMARK(sp);
# 699| XPUSHs(val); PUTBACK;
# 700|-> i = perl_call_method(SvPVX_const(style->freezer), G_EVAL|G_VOID|G_DISCARD);
# 701| SPAGAIN;
# 702| if (SvTRUE(ERRSV))
Error: CLANG_WARNING: [#def86]
perl-5.38.2-build/perl-5.38.2/dist/Data-Dumper/Dumper.xs:1212:3: warning[deadcode.DeadStores]: Value stored to 'apad' is never read
# 1210|
# 1211| if (style->indent >= 2) {
# 1212|-> apad = blesspad;
# 1213| }
# 1214| sv_catpvs(retval, ", '");
Error: CLANG_WARNING: [#def87]
perl-5.38.2-build/perl-5.38.2/dist/Data-Dumper/Dumper.xs:1465:27: warning[deadcode.DeadStores]: Value stored to 'val' during its initialization is never read
# 1463| Style style;
# 1464|
# 1465|-> SV *name_sv, *val = &PL_sv_undef, *varname = &PL_sv_undef;
# 1466| I32 gimme = GIMME_V;
# 1467|
Error: CPPCHECK_WARNING: [#def88]
perl-5.38.2-build/perl-5.38.2/dist/Devel-PPPort/RealPPPort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def89]
perl-5.38.2-build/perl-5.38.2/dist/Devel-PPPort/RealPPPort.c:5057:6: warning[deadcode.DeadStores]: Value stored to 'offset' during its initialization is never read
# 5055| unsigned char * s = (unsigned char *)SvPV_nolen(ST(0))
# 5056| ;
# 5057|-> int offset = (int)SvIV(ST(1))
# 5058| ;
# 5059| bool RETVAL;
Error: CLANG_WARNING: [#def90]
perl-5.38.2-build/perl-5.38.2/dist/Devel-PPPort/RealPPPort.c:5764:6: warning[deadcode.DeadStores]: Value stored to 'offset' during its initialization is never read
# 5762| unsigned char * s = (unsigned char *)SvPV_nolen(ST(0))
# 5763| ;
# 5764|-> int offset = (int)SvIV(ST(1))
# 5765| ;
# 5766| bool RETVAL;
Error: CPPCHECK_WARNING: [#def91]
perl-5.38.2-build/perl-5.38.2/dist/Devel-PPPort/module2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def92]
perl-5.38.2-build/perl-5.38.2/dist/Devel-PPPort/module3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def93]
perl-5.38.2-build/perl-5.38.2/dist/IO/IO.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def94]
perl-5.38.2-build/perl-5.38.2/dist/IO/poll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def95]
perl-5.38.2-build/perl-5.38.2/dist/PathTools/Cwd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def96]
perl-5.38.2-build/perl-5.38.2/dist/PathTools/Cwd.c:868:7: warning[deadcode.DeadStores]: Value stored to 'self' during its initialization is never read
# 866| {
# 867| SV * RETVAL;
# 868|-> SV * self = ST(0)
# 869| ;
# 870| SV * path;
Error: CLANG_WARNING: [#def97]
perl-5.38.2-build/perl-5.38.2/dist/PathTools/Cwd.c:1106:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 1104| char* file = __FILE__;
# 1105| #else
# 1106|-> const char* file = __FILE__;
# 1107| #endif
# 1108|
Error: CPPCHECK_WARNING: [#def98]
perl-5.38.2-build/perl-5.38.2/dist/Storable/Storable.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def99]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/HiRes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def100]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/HiRes.xs:1520: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1518| fakeop.op_flags = GIMME_V == G_LIST ? OPf_WANT_LIST :
# 1519| GIMME_V == G_SCALAR ? OPf_WANT_SCALAR : OPf_WANT_VOID;
# 1520|-> PL_op = &fakeop;
# 1521| (void)fakeop.op_ppaddr(aTHX);
# 1522| SPAGAIN;
Error: CPPCHECK_WARNING: [#def101]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def102]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c: scope_hint: In function ‘main’
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:7:13: warning[-Wunused-variable]: unused variable ‘tictoc’
# 7 | clock_t tictoc;
# | ^~~~~~
Error: COMPILER_WARNING (CWE-457): [#def103]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:9:12: warning[-Wmaybe-uninitialized]: ‘ts1’ may be used uninitialized
# 9 | ret1 = futimens(0, ts1);
# | ^~~~~~~~~~~~~~~~
perl-5.38.2-build/perl-5.38.2/perl.h:1789: included_from: Included from here.
/usr/include/sys/stat.h:452:12: note: by argument 2 of type ‘const struct timespec[2]’ to ‘futimens’ declared here
# 452 | extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
# | ^~~~~~~~
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:8:21: note: ‘ts1’ declared here
# 8 | struct timespec ts1[2], ts2[2];
# | ^~~
Error: COMPILER_WARNING (CWE-252): [#def104]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c: scope_hint: In function ‘main’
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:11:5: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 11 | read(0, buf, 0); /* Assuming reading nothing updates atime (the [0]) */
# | ^~~~~~~~~~~~~~~
Error: COMPILER_WARNING (CWE-457): [#def105]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:12:12: warning[-Wmaybe-uninitialized]: ‘ts1’ may be used uninitialized
# 12 | ret1 = utimensat(AT_FDCWD, "/dev/stdin", ts1, 0);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
perl-5.38.2-build/perl-5.38.2/perl.h:1789: included_from: Included from here.
/usr/include/sys/stat.h:433:12: note: by argument 3 of type ‘const struct timespec[2]’ to ‘utimensat’ declared here
# 433 | extern int utimensat (int __fd, const char *__path,
# | ^~~~~~~~~
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:9:21: note: ‘ts1’ declared here
# 9 | struct timespec ts1[2], ts2[2];
# | ^~~
Error: GCC_ANALYZER_WARNING (CWE-457): [#def106]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c: scope_hint: In function ‘main’
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:13:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ts1[0].tv_nsec’
Error: CLANG_WARNING: [#def107]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:13:47: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
Error: COMPILER_WARNING (CWE-252): [#def108]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c: scope_hint: In function ‘main’
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:14:5: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 14 | read(0, buf, 0); /* Assuming reading nothing updates atime (the [0]) */
# | ^~~~~~~~~~~~~~~
Error: COMPILER_WARNING (CWE-563): [#def109]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:16:17: warning[-Wunused-but-set-variable]: variable ‘st’ set but not used
# 16 | struct stat st;
# | ^~
Error: GCC_ANALYZER_WARNING (CWE-457): [#def110]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c: scope_hint: In function ‘main’
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:16:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ts1[0].tv_nsec’
Error: CLANG_WARNING: [#def111]
perl-5.38.2-build/perl-5.38.2/dist/Time-HiRes/tmp25136.c:16:47: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
Error: CPPCHECK_WARNING: [#def112]
perl-5.38.2-build/perl-5.38.2/dist/Unicode-Normalize/Normalize.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def113]
perl-5.38.2-build/perl-5.38.2/dist/Unicode-Normalize/Normalize.xs:201:6: warning[deadcode.DeadStores]: Value stored to 's' is never read
# 199| SV* tmpsv = sv_2mortal(newSVpvn(s, len));
# 200| if (!SvPOK(tmpsv))
# 201|-> s = SvPV_force(tmpsv,len);
# 202| sv_utf8_upgrade(tmpsv);
# 203| s = SvPV(tmpsv,len);
Error: CPPCHECK_WARNING: [#def114]
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def115]
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.c:1751:7: warning[deadcode.DeadStores]: Value stored to 'oldkey' during its initialization is never read
# 1749| SV * obj = ST(0)
# 1750| ;
# 1751|-> SV * oldkey = ST(1)
# 1752| ;
# 1753| #line 1499 "shared.xs"
Error: CPPCHECK_WARNING: [#def116]
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def117]
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.c:2227:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 2225| char* file = __FILE__;
# 2226| #else
# 2227|-> const char* file = __FILE__;
# 2228| #endif
# 2229|
Error: GCC_ANALYZER_WARNING (CWE-416): [#def118]
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs: scope_hint: In function ‘S_ithread_create’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:1047:17: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘thread’
perl-5.38.2-build/perl-5.38.2/perl.h:6167: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:9: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:787:9: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/perl.h:4231:62: note: in definition of macro ‘EXPECT’
perl-5.38.2-build/perl-5.38.2/perl.h:4252:52: note: in expansion of macro ‘cBOOL’
perl-5.38.2-build/perl-5.38.2/perl.h:6368:15: note: in expansion of macro ‘UNLIKELY’
perl-5.38.2-build/perl-5.38.2/perl.h:6380:38: note: in expansion of macro ‘PERL_SET_LOCALE_CONTEXT’
perl-5.38.2-build/perl-5.38.2/thread.h:414:9: note: in expansion of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:787:9: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/perl.h:4485: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:788:29: note: in expansion of macro ‘PerlMemShared_malloc’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:790:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/perl.h:4231:62: note: in definition of macro ‘EXPECT’
perl-5.38.2-build/perl-5.38.2/perl.h:4252:52: note: in expansion of macro ‘cBOOL’
perl-5.38.2-build/perl-5.38.2/perl.h:6368:15: note: in expansion of macro ‘UNLIKELY’
perl-5.38.2-build/perl-5.38.2/perl.h:6380:38: note: in expansion of macro ‘PERL_SET_LOCALE_CONTEXT’
perl-5.38.2-build/perl-5.38.2/thread.h:414:9: note: in expansion of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:790:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/handy.h:2880:73: note: in expansion of macro ‘memzero’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:804:5: note: in expansion of macro ‘Zero’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:824:5: note: in expansion of macro ‘MUTEX_INIT’
perl-5.38.2-build/perl-5.38.2/perl.h:1833: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/thread.h:204:9: note: in expansion of macro ‘dSAVE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:825:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:825:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:209:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:825:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:902:35: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/perl.h:7812: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:902:35: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:958:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/perl.h:4231:62: note: in definition of macro ‘EXPECT’
perl-5.38.2-build/perl-5.38.2/perl.h:4252:52: note: in expansion of macro ‘cBOOL’
perl-5.38.2-build/perl-5.38.2/perl.h:6368:15: note: in expansion of macro ‘UNLIKELY’
perl-5.38.2-build/perl-5.38.2/perl.h:6380:38: note: in expansion of macro ‘PERL_SET_LOCALE_CONTEXT’
perl-5.38.2-build/perl-5.38.2/thread.h:414:9: note: in expansion of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:958:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/thread.h:214:9: note: in expansion of macro ‘dSAVE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:1041:9: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:1041:9: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:1041:9: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:315:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:315:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:321:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:209:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:321:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:327:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:327:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:330:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:209:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:330:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:282:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:282:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/perl.h:4231:62: note: in definition of macro ‘EXPECT’
perl-5.38.2-build/perl-5.38.2/perl.h:4252:52: note: in expansion of macro ‘cBOOL’
perl-5.38.2-build/perl-5.38.2/perl.h:6368:15: note: in expansion of macro ‘UNLIKELY’
perl-5.38.2-build/perl-5.38.2/perl.h:6380:38: note: in expansion of macro ‘PERL_SET_LOCALE_CONTEXT’
perl-5.38.2-build/perl-5.38.2/thread.h:414:9: note: in expansion of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:282:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:337:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:337:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:346:5: note: in expansion of macro ‘PerlMemShared_free’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:354:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:209:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:354:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:356:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads/threads.xs:356:5: note: in expansion of macro ‘MUTEX_UNLOCK’
# 1045| if (ckWARN_d(WARN_THREADS)) {
# 1046| if (rc_stack_size) {
# 1047|-> Perl_warn(aTHX_ "Thread creation failed: pthread_attr_setstacksize(%" IVdf ") returned %d", thread->stack_size, rc_stack_size);
# 1048| } else {
# 1049| Perl_warn(aTHX_ "Thread creation failed: pthread_create returned %d", rc_thread_create);
Error: CPPCHECK_WARNING: [#def119]
perl-5.38.2-build/perl-5.38.2/doio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def120]
perl-5.38.2-build/perl-5.38.2/doio.c:907:17: warning[deadcode.DeadStores]: Value stored to 'len' is never read
# 905| ;
# 906| name = type;
# 907|-> len = tend-type;
# 908| }
# 909| if (*name == '\0') {
Error: CPPCHECK_WARNING: [#def121]
perl-5.38.2-build/perl-5.38.2/doop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def122]
perl-5.38.2-build/perl-5.38.2/doop.c:559:5: warning[deadcode.DeadStores]: Value stored to 's' is never read
# 557|
# 558| s_len = 0;
# 559|-> s += s_len;
# 560| if (! inplace) {
# 561| sv_setpvn(sv, (char*)d0, d - d0);
Error: CLANG_WARNING: [#def123]
perl-5.38.2-build/perl-5.38.2/doop.c:711:29: warning[core.NullDereference]: Access to field 'sv_flags' results in a dereference of a null pointer
# 709| s = SvPV_const(*mark,len);
# 710| sv_catpvn_flags(sv,s,len,
# 711|-> DO_UTF8(*mark) ? SV_CATUTF8 : SV_CATBYTES);
# 712| }
# 713| }
Error: CLANG_WARNING: [#def124]
perl-5.38.2-build/perl-5.38.2/doop.c:720:29: warning[core.NullDereference]: Access to field 'sv_flags' results in a dereference of a null pointer
# 718| const char *s = SvPV_const(*mark,len);
# 719| sv_catpvn_flags(sv,s,len,
# 720|-> DO_UTF8(*mark) ? SV_CATUTF8 : SV_CATBYTES);
# 721| }
# 722| }
Error: CPPCHECK_WARNING: [#def125]
perl-5.38.2-build/perl-5.38.2/dquote.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def126]
perl-5.38.2-build/perl-5.38.2/dump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/universal.c:31: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/universal.c: scope_hint: In function ‘S_isa_lookup’
perl-5.38.2-build/perl-5.38.2/embed.h:292:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘canon_name’
perl-5.38.2-build/perl-5.38.2/universal.c:76:13: note: in expansion of macro ‘hv_common’
perl-5.38.2-build/perl-5.38.2/universal.c:70:17: note: in expansion of macro ‘gv_stashsvpvn_cached’
perl-5.38.2-build/perl-5.38.2/perl.h:4530: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/hv.h:315:26: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/hv.h:367:10: note: in expansion of macro ‘HvHasAUX’
perl-5.38.2-build/perl-5.38.2/hv.h:369:10: note: in expansion of macro ‘HvHasENAME_HEK’
perl-5.38.2-build/perl-5.38.2/universal.c:73:27: note: in expansion of macro ‘HvENAME_HEK’
perl-5.38.2-build/perl-5.38.2/perl.h:4539: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/universal.c:74:39: note: in expansion of macro ‘HvNAME_HEK’
perl-5.38.2-build/perl-5.38.2/universal.c:76:13: note: in expansion of macro ‘hv_common’
perl-5.38.2-build/perl-5.38.2/universal.c:76:13: note: in expansion of macro ‘hv_common’
# 290| # define hv_clear(a) Perl_hv_clear(aTHX_ a)
# 291| # define hv_clear_placeholders(a) Perl_hv_clear_placeholders(aTHX_ a)
# 292|-> # define hv_common(a,b,c,d,e,f,g,h) Perl_hv_common(aTHX_ a,b,c,d,e,f,g,h)
# 293| # define hv_common_key_len(a,b,c,d,e,f) Perl_hv_common_key_len(aTHX_ a,b,c,d,e,f)
# 294| # define hv_copy_hints_hv(a) Perl_hv_copy_hints_hv(aTHX_ a)
Error: CPPCHECK_WARNING: [#def128]
perl-5.38.2-build/perl-5.38.2/ext/B/B.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def129]
perl-5.38.2-build/perl-5.38.2/ext/B/B.c:2522:6: warning[deadcode.DeadStores]: Value stored to 'sv' is never read
# 2520| if (SvROK(ST(0))) {
# 2521| IV tmp = SvIV((SV*)SvRV(ST(0)));
# 2522|-> sv = INT2PTR(B__BM,tmp);
# 2523| }
# 2524| else
Error: CLANG_WARNING: [#def130]
perl-5.38.2-build/perl-5.38.2/ext/B/B.c:2551:6: warning[deadcode.DeadStores]: Value stored to 'sv' is never read
# 2549| if (SvROK(ST(0))) {
# 2550| IV tmp = SvIV((SV*)SvRV(ST(0)));
# 2551|-> sv = INT2PTR(B__BM,tmp);
# 2552| }
# 2553| else
Error: CLANG_WARNING: [#def131]
perl-5.38.2-build/perl-5.38.2/ext/B/B.c:2939:6: warning[deadcode.DeadStores]: Value stored to 'format' is never read
# 2937| if (SvROK(ST(0))) {
# 2938| IV tmp = SvIV((SV*)SvRV(ST(0)));
# 2939|-> format = INT2PTR(B__FM,tmp);
# 2940| }
# 2941| else
Error: CLANG_WARNING: [#def132]
perl-5.38.2-build/perl-5.38.2/ext/B/B.c:3537:6: warning[deadcode.DeadStores]: Value stored to 'padlist' is never read
# 3535| if (SvROK(ST(0))) {
# 3536| IV tmp = SvIV((SV*)SvRV(ST(0)));
# 3537|-> padlist = INT2PTR(B__PADLIST,tmp);
# 3538| }
# 3539| else
Error: CLANG_WARNING: [#def133]
perl-5.38.2-build/perl-5.38.2/ext/B/B.c:3801:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 3799| char* file = __FILE__;
# 3800| #else
# 3801|-> const char* file = __FILE__;
# 3802| #endif
# 3803|
Error: CPPCHECK_WARNING (CWE-476): [#def134]
perl-5.38.2-build/perl-5.38.2/ext/B/B.xs:423: warning[nullPointer]: Possible null pointer dereference: (struct UNOP*)(kid)
# 421| if (o->op_flags & OPf_STACKED && o->op_flags & OPf_SPECIAL) {
# 422| OP *kid = OpSIBLING(cLISTOPo->op_first); /* pass pushmark */
# 423|-> kid = kUNOP->op_first; /* pass rv2gv */
# 424| kid = kUNOP->op_first; /* pass leave */
# 425| SP = oplist(aTHX_ kid->op_next, SP);
Error: CPPCHECK_WARNING: [#def135]
perl-5.38.2-build/perl-5.38.2/ext/Devel-Peek/Peek.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def136]
perl-5.38.2-build/perl-5.38.2/ext/Devel-Peek/Peek.xs:84:23: warning[core.NullDereference]: Access to field 'sv_flags' results in a dereference of a null pointer
# 82| }
# 83| }
# 84|-> for (j = 1; j < AvFILL((AV*)svp[1]); j++) { /* Vars. */
# 85| if (!pad[j]) continue;
# 86| if (SvROK(pad[j])) {
Error: CLANG_WARNING: [#def137]
perl-5.38.2-build/perl-5.38.2/ext/Devel-Peek/Peek.xs:367:14: warning[core.NullDereference]: Access to field 'op_moresib' results in a dereference of a null pointer (loaded from variable 'first')
# 365| }
# 366| first = OpSIBLING(pm);
# 367|-> second = OpSIBLING(first);
# 368| if (!second) {
# 369| /* It doesn’t really matter what we return here, as this only
Error: CPPCHECK_WARNING: [#def138]
perl-5.38.2-build/perl-5.38.2/ext/DynaLoader/DynaLoader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def139]
perl-5.38.2-build/perl-5.38.2/ext/DynaLoader/DynaLoader.c:559:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 557| char* file = __FILE__;
# 558| #else
# 559|-> const char* file = __FILE__;
# 560| #endif
# 561|
Error: CPPCHECK_WARNING: [#def140]
perl-5.38.2-build/perl-5.38.2/ext/Fcntl/Fcntl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def141]
perl-5.38.2-build/perl-5.38.2/ext/File-DosGlob/DosGlob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def142]
perl-5.38.2-build/perl-5.38.2/ext/File-DosGlob/DosGlob.c:219:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 217| char* file = __FILE__;
# 218| #else
# 219|-> const char* file = __FILE__;
# 220| #endif
# 221|
Error: CPPCHECK_WARNING: [#def143]
perl-5.38.2-build/perl-5.38.2/ext/File-Glob/Glob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def144]
perl-5.38.2-build/perl-5.38.2/ext/File-Glob/Glob.c:718:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 716| char* file = __FILE__;
# 717| #else
# 718|-> const char* file = __FILE__;
# 719| #endif
# 720|
Error: CLANG_WARNING: [#def145]
perl-5.38.2-build/perl-5.38.2/ext/File-Glob/Glob.xs:197:7: warning[deadcode.DeadStores]: Value stored to 'piece' is never read
# 195| /* Give up on tokenisation and treat the whole string
# 196| as a single token, but with whitespace stripped. */
# 197|-> piece = pat;
# 198| while (isSPACE(*pat)) pat++;
# 199| while (isSPACE(*(patend-1))) patend--;
Error: CPPCHECK_WARNING: [#def146]
perl-5.38.2-build/perl-5.38.2/ext/File-Glob/bsd_glob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def147]
perl-5.38.2-build/perl-5.38.2/ext/GDBM_File/GDBM_File.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def148]
perl-5.38.2-build/perl-5.38.2/ext/GDBM_File/GDBM_File.c:1722:7: warning[deadcode.DeadStores]: Value stored to 'RETVAL' during its initialization is never read
# 1720| {
# 1721| GDBM_File db;
# 1722|-> SV * RETVAL = &PL_sv_undef;
# 1723| #line 883 "GDBM_File.xs"
# 1724| int opcode = -1;
Error: CLANG_WARNING: [#def149]
perl-5.38.2-build/perl-5.38.2/ext/GDBM_File/GDBM_File.c:2082:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 2080| char* file = __FILE__;
# 2081| #else
# 2082|-> const char* file = __FILE__;
# 2083| #endif
# 2084|
Error: CPPCHECK_WARNING: [#def150]
perl-5.38.2-build/perl-5.38.2/ext/Hash-Util/Util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def151]
perl-5.38.2-build/perl-5.38.2/ext/I18N-Langinfo/Langinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def152]
perl-5.38.2-build/perl-5.38.2/ext/NDBM_File/NDBM_File.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def153]
perl-5.38.2-build/perl-5.38.2/ext/NDBM_File/NDBM_File.c:692:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 690| char* file = __FILE__;
# 691| #else
# 692|-> const char* file = __FILE__;
# 693| #endif
# 694|
Error: CPPCHECK_WARNING: [#def154]
perl-5.38.2-build/perl-5.38.2/ext/ODBM_File/ODBM_File.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def155]
perl-5.38.2-build/perl-5.38.2/ext/ODBM_File/ODBM_File.c:453:6: warning[deadcode.DeadStores]: Value stored to 'flags' is never read
# 451|
# 452| if (items < 4)
# 453|-> flags = DBM_REPLACE;
# 454| else {
# 455| flags = (int)SvIV(ST(3))
Error: CLANG_WARNING: [#def156]
perl-5.38.2-build/perl-5.38.2/ext/ODBM_File/ODBM_File.c:455:6: warning[deadcode.DeadStores]: Value stored to 'flags' is never read
# 453| flags = DBM_REPLACE;
# 454| else {
# 455|-> flags = (int)SvIV(ST(3))
# 456| ;
# 457| }
Error: CLANG_WARNING: [#def157]
perl-5.38.2-build/perl-5.38.2/ext/ODBM_File/ODBM_File.c:668:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 666| char* file = __FILE__;
# 667| #else
# 668|-> const char* file = __FILE__;
# 669| #endif
# 670|
Error: CPPCHECK_WARNING: [#def158]
perl-5.38.2-build/perl-5.38.2/ext/Opcode/Opcode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def159]
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def160]
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.c: scope_hint: In function ‘XS_POSIX_tcdrain’
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.c:4827:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<unknown>’
perl-5.38.2-build/perl-5.38.2/embed.h:105:65: note: in definition of macro ‘SvIV’
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.c:4809:29: note: in expansion of macro ‘ST’
# 4825| RETVALSV = sv_newmortal();
# 4826| if (RETVAL != -1) {
# 4827|-> if (RETVAL == 0)
# 4828| sv_setpvn(RETVALSV, "0 but true", 10);
# 4829| else
Error: CLANG_WARNING: [#def161]
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.xs:2122:2: warning[deadcode.DeadStores]: Value stored to 'RETVAL' is never read
# 2120| PERL_UNUSED_VAR(x);
# 2121| #ifdef NV_NAN
# 2122|-> RETVAL = NV_NAN;
# 2123| #else
# 2124| RETVAL = 0;
Error: CLANG_WARNING: [#def162]
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.xs:2403:2: warning[deadcode.DeadStores]: Value stored to 'RETVAL' is never read
# 2401| CODE:
# 2402| PERL_UNUSED_VAR(x);
# 2403|-> RETVAL = -1;
# 2404| switch (ix) {
# 2405| case 0:
Error: CLANG_WARNING: [#def163]
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.xs:2539:2: warning[deadcode.DeadStores]: Value stored to 'RETVAL' is never read
# 2537| PERL_UNUSED_VAR(y);
# 2538| #ifdef NV_NAN
# 2539|-> RETVAL = NV_NAN;
# 2540| #else
# 2541| RETVAL = 0;
Error: CLANG_WARNING: [#def164]
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.xs:2766:2: warning[deadcode.DeadStores]: Value stored to 'RETVAL' is never read
# 2764| CODE:
# 2765| #ifdef NV_NAN
# 2766|-> RETVAL = NV_NAN;
# 2767| #else
# 2768| RETVAL = 0;
Error: CLANG_WARNING: [#def165]
perl-5.38.2-build/perl-5.38.2/ext/POSIX/POSIX.xs:2970:3: warning[core.NullDereference]: Access to field 'sv_flags' results in a dereference of a null pointer
# 2968| /* This call actually calls sigaction() with almost the
# 2969| right settings, including appropriate interpretation
# 2970|-> of DEFAULT and IGNORE. However, why are we doing
# 2971| this when we're about to do it again just below? XXX */
# 2972| SvSETMAGIC(*sigsvp);
Error: CPPCHECK_WARNING: [#def166]
perl-5.38.2-build/perl-5.38.2/ext/PerlIO-encoding/encoding.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def167]
perl-5.38.2-build/perl-5.38.2/ext/PerlIO-mmap/mmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def168]
perl-5.38.2-build/perl-5.38.2/ext/PerlIO-scalar/scalar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def169]
perl-5.38.2-build/perl-5.38.2/ext/PerlIO-via/via.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def170]
perl-5.38.2-build/perl-5.38.2/ext/SDBM_File/SDBM_File.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def171]
perl-5.38.2-build/perl-5.38.2/ext/SDBM_File/SDBM_File.c:632:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 630| char* file = __FILE__;
# 631| #else
# 632|-> const char* file = __FILE__;
# 633| #endif
# 634|
Error: CPPCHECK_WARNING: [#def172]
perl-5.38.2-build/perl-5.38.2/ext/SDBM_File/sdbm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def173]
perl-5.38.2-build/perl-5.38.2/ext/Sys-Hostname/Hostname.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def174]
perl-5.38.2-build/perl-5.38.2/ext/Sys-Hostname/Hostname.c:254:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 252| char* file = __FILE__;
# 253| #else
# 254|-> const char* file = __FILE__;
# 255| #endif
# 256|
Error: CPPCHECK_WARNING: [#def175]
perl-5.38.2-build/perl-5.38.2/ext/XS-APItest/APItest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def176]
perl-5.38.2-build/perl-5.38.2/ext/XS-APItest/XSUB-redefined-macros.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def177]
perl-5.38.2-build/perl-5.38.2/ext/XS-APItest/XSUB-redefined-macros.c:227:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 225| char* file = __FILE__;
# 226| #else
# 227|-> const char* file = __FILE__;
# 228| #endif
# 229|
Error: CPPCHECK_WARNING: [#def178]
perl-5.38.2-build/perl-5.38.2/ext/XS-APItest/XSUB-undef-XS_VERSION.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def179]
perl-5.38.2-build/perl-5.38.2/ext/XS-APItest/XSUB-undef-XS_VERSION.c:205:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 203| char* file = __FILE__;
# 204| #else
# 205|-> const char* file = __FILE__;
# 206| #endif
# 207|
Error: CPPCHECK_WARNING: [#def180]
perl-5.38.2-build/perl-5.38.2/ext/XS-APItest/core.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def181]
perl-5.38.2-build/perl-5.38.2/ext/XS-APItest/exception.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def182]
perl-5.38.2-build/perl-5.38.2/ext/XS-APItest/notcore.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def183]
perl-5.38.2-build/perl-5.38.2/ext/XS-Typemap/Typemap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def184]
perl-5.38.2-build/perl-5.38.2/ext/XS-Typemap/Typemap.c:402:7: warning[deadcode.DeadStores]: Value stored to 'sv' during its initialization is never read
# 400| croak_xs_usage(cv, "sv");
# 401| {
# 402|-> SV * sv = ST(0)
# 403| ;
# 404| #line 274 "Typemap.xs"
Error: CLANG_WARNING: [#def185]
perl-5.38.2-build/perl-5.38.2/ext/XS-Typemap/Typemap.c:2062:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 2060| char* file = __FILE__;
# 2061| #else
# 2062|-> const char* file = __FILE__;
# 2063| #endif
# 2064|
Error: CLANG_WARNING: [#def186]
perl-5.38.2-build/perl-5.38.2/ext/XS-Typemap/Typemap.xs:920:3: warning[deadcode.DeadStores]: Value stored to 'dummy' is never read
# 918| U32 size_RETVAL;
# 919| CODE:
# 920|-> dummy += 0; /* Fix -Wall */
# 921| size_RETVAL = ix_array;
# 922| RETVAL = array;
Error: CPPCHECK_WARNING: [#def187]
perl-5.38.2-build/perl-5.38.2/ext/attributes/attributes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def188]
perl-5.38.2-build/perl-5.38.2/ext/mro/mro.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def189]
perl-5.38.2-build/perl-5.38.2/ext/re/re.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def190]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_debug.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def191]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_invlist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def192]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_study.c:583:27: warning[core.uninitialized.ArraySubscript]: Array subscript is undefined
# 581|
# 582| SV* anded_cp_list;
# 583|-> U8 and_with_flags = (REGNODE_TYPE(OP(and_with)) == ANYOF)
# 584| ? ANYOF_FLAGS(and_with)
# 585| : 0;
Error: CLANG_WARNING: [#def193]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_study.c:768:26: warning[core.uninitialized.ArraySubscript]: Array subscript is undefined
# 766| SV* ored_cp_list;
# 767| U8 ored_flags;
# 768|-> U8 or_with_flags = (REGNODE_TYPE(OP(or_with)) == ANYOF)
# 769| ? ANYOF_FLAGS(or_with)
# 770| : 0;
Error: CLANG_WARNING: [#def194]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_study.c:1839:41: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 1837| delta += max1 - min1;
# 1838| if (flags & SCF_DO_STCLASS_OR) {
# 1839|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass*) &accum);
# 1840| if (min1) {
# 1841| ssc_and(pRExC_state, data->start_class, (regnode_charclass *) and_withp);
Error: CLANG_WARNING: [#def195]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_study.c:1854:25: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 1852| * data->start_class */
# 1853| INIT_AND_WITHP;
# 1854|-> StructCopy(data->start_class, and_withp, regnode_ssc);
# 1855| flags &= ~SCF_DO_STCLASS_AND;
# 1856| StructCopy(&accum, data->start_class, regnode_ssc);
Error: CLANG_WARNING: [#def196]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_study.c:2288:38: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2286| is_inf = is_inf_internal = 1;
# 2287| if (flags & SCF_DO_STCLASS_OR) /* Allow everything */
# 2288|-> ssc_anything(data->start_class);
# 2289| flags &= ~SCF_DO_STCLASS;
# 2290|
Error: CLANG_WARNING: [#def197]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_study.c:2590:30: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2588| if (flags & SCF_DO_STCLASS) {
# 2589| ssc_init(pRExC_state, &this_class);
# 2590|-> oclass = data->start_class;
# 2591| data->start_class = &this_class;
# 2592| f |= SCF_DO_STCLASS_AND;
Error: CLANG_WARNING: [#def198]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_study.c:2625:45: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2623| if (mincount == 0 || minnext == 0) {
# 2624| if (flags & SCF_DO_STCLASS_OR) {
# 2625|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass *) &this_class);
# 2626| }
# 2627| else if (flags & SCF_DO_STCLASS_AND) {
Error: CPPCHECK_WARNING: [#def199]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def200]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:251:17: warning[core.DivideZero]: Division by zero
# 249| Perl_re_indentf( aTHX_ "%4" UVXf " : ",
# 250| depth+1,
# 251|-> (UV)TRIE_NODENUM( state ) );
# 252|
# 253| for( charid = 0 ; charid < trie->uniquecharcount ; charid++ ) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def201]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c: scope_hint: In function ‘Perl_make_trie’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:591:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘trie’
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:9: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/perl.h:7812: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perl.h:4219: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.38.2-build/perl-5.38.2/perl.h:4530: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.38.2-build/perl-5.38.2/sv.h:1524:27: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:574:5: note: in expansion of macro ‘PERL_ARGS_ASSERT_MAKE_TRIE’
perl-5.38.2-build/perl-5.38.2/perl.h:4485: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:590:30: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:590:30: note: in expansion of macro ‘PerlMemShared_calloc’
# 589| /* create the trie struct, all zeroed */
# 590| trie = (reg_trie_data *) PerlMemShared_calloc( 1, sizeof(reg_trie_data) );
# 591|-> trie->refcount = 1;
# 592| trie->startstate = 1;
# 593| trie->wordcount = word_count;
Error: CLANG_WARNING: [#def202]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:823:25: warning[core.NullDereference]: Dereference of null pointer
# 821| : ARG2a(first); /* BRANCHJ */
# 822|
# 823|-> trie->after_paren = OP(lastbranch) == BRANCH
# 824| ? ARG1b(lastbranch)
# 825| : ARG2b(lastbranch); /* BRANCHJ */
Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:1017:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.38.2-build/perl-5.38.2/sv.h:1524:27: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:574:5: note: in expansion of macro ‘PERL_ARGS_ASSERT_MAKE_TRIE’
perl-5.38.2-build/perl-5.38.2/iperlsys.h:897:57: note: in definition of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/perl.h:4995:45: note: in definition of macro ‘DEBUG_r’
perl-5.38.2-build/perl-5.38.2/handy.h:104:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:602:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.38.2-build/perl-5.38.2/sv.h:1524:27: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.38.2-build/perl-5.38.2/perl.h:4995:45: note: in definition of macro ‘DEBUG_r’
perl-5.38.2-build/perl-5.38.2/handy.h:104:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:602:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/sv.h:1003:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:607:10: note: in expansion of macro ‘SvIOK’
perl-5.38.2-build/perl-5.38.2/handy.h:2772:32: note: in expansion of macro ‘MEM_WRAP_CHECK’
perl-5.38.2-build/perl-5.38.2/handy.h:2849:31: note: in expansion of macro ‘MEM_WRAP_CHECK_’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:857:5: note: in expansion of macro ‘Newx’
perl-5.38.2-build/perl-5.38.2/handy.h:2840:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.38.2-build/perl-5.38.2/perl.h:1755:23: note: in expansion of macro ‘safesysmalloc’
perl-5.38.2-build/perl-5.38.2/handy.h:2849:74: note: in expansion of macro ‘safemalloc’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:857:5: note: in expansion of macro ‘Newx’
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:861:55: note: in expansion of macro ‘SvIV’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:815:5: note: in expansion of macro ‘PERL_ARGS_ASSERT_SVIV’
perl-5.38.2-build/perl-5.38.2/sv.h:1157:35: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:817:9: note: in expansion of macro ‘SvIOK_nog’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:861:55: note: in expansion of macro ‘SvIV’
perl-5.38.2-build/perl-5.38.2/perl.h:4995:45: note: in definition of macro ‘DEBUG_r’
perl-5.38.2-build/perl-5.38.2/perl.h:4252:45: note: in expansion of macro ‘EXPECT’
perl-5.38.2-build/perl-5.38.2/perl.h:4252:52: note: in expansion of macro ‘cBOOL’
perl-5.38.2-build/perl-5.38.2/perl.h:4869:25: note: in expansion of macro ‘UNLIKELY’
perl-5.38.2-build/perl-5.38.2/perl.h:4869:34: note: in expansion of macro ‘PL_debug’
perl-5.38.2-build/perl-5.38.2/perl.h:4916:24: note: in expansion of macro ‘DEBUG_v_TEST_’
perl-5.38.2-build/perl-5.38.2/regcomp.h:1388:9: note: in expansion of macro ‘DEBUG_v_TEST’
perl-5.38.2-build/perl-5.38.2/regcomp.h:1416:38: note: in expansion of macro ‘DEBUG_TRIE_COMPILE_r’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:877:9: note: in expansion of macro ‘DEBUG_TRIE_COMPILE_MORE_r’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:975:13: note: in expansion of macro ‘PerlMemShared_realloc’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:986:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:1018:29: note: in expansion of macro ‘PerlMemShared_realloc’
# 1015| if ( transcount < tp + maxid - minid + 1) {
# 1016| transcount *= 2;
# 1017|-> trie->trans = (reg_trie_trans *)
# 1018| PerlMemShared_realloc( trie->trans,
# 1019| transcount
Error: GCC_ANALYZER_WARNING (CWE-476): [#def204]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:1039:52: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*trie.trans + (long unsigned int)tp * 8’
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.38.2-build/perl-5.38.2/sv.h:1524:27: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:574:5: note: in expansion of macro ‘PERL_ARGS_ASSERT_MAKE_TRIE’
perl-5.38.2-build/perl-5.38.2/iperlsys.h:897:57: note: in definition of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/perl.h:4995:45: note: in definition of macro ‘DEBUG_r’
perl-5.38.2-build/perl-5.38.2/handy.h:104:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:602:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.38.2-build/perl-5.38.2/sv.h:1524:27: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.38.2-build/perl-5.38.2/perl.h:4995:45: note: in definition of macro ‘DEBUG_r’
perl-5.38.2-build/perl-5.38.2/handy.h:104:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:602:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/sv.h:1003:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:607:10: note: in expansion of macro ‘SvIOK’
perl-5.38.2-build/perl-5.38.2/handy.h:2772:32: note: in expansion of macro ‘MEM_WRAP_CHECK’
perl-5.38.2-build/perl-5.38.2/handy.h:2849:31: note: in expansion of macro ‘MEM_WRAP_CHECK_’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:857:5: note: in expansion of macro ‘Newx’
perl-5.38.2-build/perl-5.38.2/handy.h:2840:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.38.2-build/perl-5.38.2/perl.h:1755:23: note: in expansion of macro ‘safesysmalloc’
perl-5.38.2-build/perl-5.38.2/handy.h:2849:74: note: in expansion of macro ‘safemalloc’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:857:5: note: in expansion of macro ‘Newx’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:861:55: note: in expansion of macro ‘SvIV’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:815:5: note: in expansion of macro ‘PERL_ARGS_ASSERT_SVIV’
perl-5.38.2-build/perl-5.38.2/sv.h:1157:35: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:817:9: note: in expansion of macro ‘SvIOK_nog’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:861:55: note: in expansion of macro ‘SvIV’
perl-5.38.2-build/perl-5.38.2/perl.h:4995:45: note: in definition of macro ‘DEBUG_r’
perl-5.38.2-build/perl-5.38.2/perl.h:4252:45: note: in expansion of macro ‘EXPECT’
perl-5.38.2-build/perl-5.38.2/perl.h:4252:52: note: in expansion of macro ‘cBOOL’
perl-5.38.2-build/perl-5.38.2/perl.h:4869:25: note: in expansion of macro ‘UNLIKELY’
perl-5.38.2-build/perl-5.38.2/perl.h:4869:34: note: in expansion of macro ‘PL_debug’
perl-5.38.2-build/perl-5.38.2/perl.h:4916:24: note: in expansion of macro ‘DEBUG_v_TEST_’
perl-5.38.2-build/perl-5.38.2/regcomp.h:1388:9: note: in expansion of macro ‘DEBUG_v_TEST’
perl-5.38.2-build/perl-5.38.2/regcomp.h:1416:38: note: in expansion of macro ‘DEBUG_TRIE_COMPILE_r’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:877:9: note: in expansion of macro ‘DEBUG_TRIE_COMPILE_MORE_r’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:975:13: note: in expansion of macro ‘PerlMemShared_realloc’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:986:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:1039:54: note: in expansion of macro ‘TRIE_LIST_ITEM’
# 1037| }
# 1038| if ( !set ) {
# 1039|-> trie->trans[ tp ].next = TRIE_LIST_ITEM( state,
# 1040| 1).newstate;
# 1041| trie->trans[ tp ].check = state;
Error: CLANG_WARNING: [#def205]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:1164:39: warning[core.DivideZero]: Division by zero
# 1162| trie->trans[ state ].check++;
# 1163| prev_states[TRIE_NODENUM(next_alloc)]
# 1164|-> = TRIE_NODENUM(state);
# 1165| next_alloc += trie->uniquecharcount;
# 1166| }
Error: CLANG_WARNING: [#def206]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:1181:28: warning[core.DivideZero]: Division by zero
# 1179| noper= REGNODE_AFTER(cur);
# 1180| }
# 1181|-> accept_state = TRIE_NODENUM( state );
# 1182| TRIE_HANDLE_WORD(accept_state);
# 1183|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def207]
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:1664:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)numstates, 4)’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:1646:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/handy.h:2879:47: note: in expansion of macro ‘perl_assert_ptr’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:1657:5: note: in expansion of macro ‘Copy’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:1657:5: note: in expansion of macro ‘Copy’
perl-5.38.2-build/perl-5.38.2/ext/re/re_comp_trie.c:1659:25: note: in expansion of macro ‘PerlMemShared_calloc’
# 1662| /* initialize fail[0..1] to be 1 so that we always have
# 1663| a valid final fail state */
# 1664|-> fail[ 0 ] = fail[ 1 ] = 1;
# 1665|
# 1666| for ( charid = 0; charid < ucharcount ; charid++ ) {
Error: CPPCHECK_WARNING: [#def208]
perl-5.38.2-build/perl-5.38.2/generate_uudmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def209]
perl-5.38.2-build/perl-5.38.2/globals.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def210]
perl-5.38.2-build/perl-5.38.2/gv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def211]
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/handy.h:99:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cv’
perl-5.38.2-build/perl-5.38.2/cv.h:91:36: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/cv.h:153:34: note: in expansion of macro ‘CvFLAGS’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:761:27: note: in expansion of macro ‘CvANON’
perl-5.38.2-build/perl-5.38.2/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:717:5: note: in expansion of macro ‘ENTER’
perl-5.38.2-build/perl-5.38.2/embed.h:259:82: note: in definition of macro ‘gv_autoload_pvn’
perl-5.38.2-build/perl-5.38.2/hv.h:460:46: note: in expansion of macro ‘HEK_KEY’
perl-5.38.2-build/perl-5.38.2/hv.h:474:34: note: in expansion of macro ‘HEK_FLAGS’
perl-5.38.2-build/perl-5.38.2/gv.h:68:33: note: in expansion of macro ‘HEK_UTF8’
perl-5.38.2-build/perl-5.38.2/gv.h:26:34: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/gv.h:65:34: note: in expansion of macro ‘GvXPVGV’
perl-5.38.2-build/perl-5.38.2/gv.h:68:42: note: in expansion of macro ‘GvNAME_HEK’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:767:29: note: in expansion of macro ‘GvNAMEUTF8’
perl-5.38.2-build/perl-5.38.2/perl.h:4534: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/gv.h:140:26: note: in expansion of macro ‘GvGP’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:770:30: note: in expansion of macro ‘GvCVu’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:770:30: note: in expansion of macro ‘GvCVu’
perl-5.38.2-build/perl-5.38.2/cv.h:91:36: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/cv.h:153:34: note: in expansion of macro ‘CvFLAGS’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:761:27: note: in expansion of macro ‘CvANON’
perl-5.38.2-build/perl-5.38.2/cv.h:91:36: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/cv.h:153:34: note: in expansion of macro ‘CvFLAGS’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:761:27: note: in expansion of macro ‘CvANON’
# 97| */
# 98| #if defined(PERL_USE_GCC_BRACE_GROUPS)
# 99|-> # define MUTABLE_PTR(p) ({ void *p_ = (p); p_; })
# 100| #else
# 101| # define MUTABLE_PTR(p) ((void *) (p))
Error: GCC_ANALYZER_WARNING (CWE-688): [#def212]
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/universal.c: scope_hint: In function ‘S_sv_derived_from_svpvn’
perl-5.38.2-build/perl-5.38.2/handy.h:702:23: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
perl-5.38.2-build/perl-5.38.2/universal.c:105:17: note: in expansion of macro ‘strEQ’
perl-5.38.2-build/perl-5.38.2/universal.c:149:12: note: in expansion of macro ‘sv_derived_from_svpvn’
perl-5.38.2-build/perl-5.38.2/universal.c:105:17: note: in expansion of macro ‘strEQ’
perl-5.38.2-build/perl-5.38.2/universal.c:105:17: note: in expansion of macro ‘strEQ’
perl-5.38.2-build/perl-5.38.2/perl.h:1715: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
# 700|
# 701| #define strNE(s1,s2) (strcmp(s1,s2) != 0)
# 702|-> #define strEQ(s1,s2) (strcmp(s1,s2) == 0)
# 703| #define strLT(s1,s2) (strcmp(s1,s2) < 0)
# 704| #define strLE(s1,s2) (strcmp(s1,s2) <= 0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def213]
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c:9: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c: scope_hint: In function ‘Perl__invlistEQ’
perl-5.38.2-build/perl-5.38.2/handy.h:711:25: warning[-Wanalyzer-null-argument]: use of NULL ‘array_a’ where non-null expected
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c:1530:15: note: in expansion of macro ‘memEQ’
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c:1478:22: note: in expansion of macro ‘_invlist_len’
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c: scope_hint: In function ‘Perl__invlistEQ’
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c:1479:16: note: in expansion of macro ‘_invlist_len’
perl-5.38.2-build/perl-5.38.2/sv.h:1434:31: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/invlist_inline.h:57:13: note: in expansion of macro ‘SvCUR’
perl-5.38.2-build/perl-5.38.2/invlist_inline.h:59:14: note: in expansion of macro ‘FROM_INTERNAL_SIZE’
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c: scope_hint: In function ‘Perl__invlistEQ’
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c:1499:19: note: in expansion of macro ‘invlist_array’
perl-5.38.2-build/perl-5.38.2/invlist_inline.h:92:20: note: in expansion of macro ‘SvPVX’
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c: scope_hint: In function ‘Perl__invlistEQ’
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c:1530:15: note: in expansion of macro ‘memEQ’
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c:1530:15: note: in expansion of macro ‘memEQ’
perl-5.38.2-build/perl-5.38.2/perl.h:1715: included_from: Included from here.
/usr/include/string.h:64:12: note: argument 1 of ‘memcmp’ must be non-null
# 709| #define strnEQ(s1,s2,l) (strncmp(s1,s2,l) == 0)
# 710|
# 711|-> #define memEQ(s1,s2,l) (memcmp(((const void *) (s1)), ((const void *) (s2)), l) == 0)
# 712| #define memNE(s1,s2,l) (! memEQ(s1,s2,l))
# 713|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def214]
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/hv.c:35: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/hv.c: scope_hint: In function ‘S_unshare_hek_or_pvn’
perl-5.38.2-build/perl-5.38.2/handy.h:711:25: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected
perl-5.38.2-build/perl-5.38.2/handy.h:712:27: note: in expansion of macro ‘memEQ’
perl-5.38.2-build/perl-5.38.2/hv.c:3281:40: note: in expansion of macro ‘memNE’
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/hv.c:3214:5: note: in expansion of macro ‘unshare_hek_or_pvn’
perl-5.38.2-build/perl-5.38.2/perl.h:4539: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/hv.h:284:27: note: in definition of macro ‘HvARRAY’
perl-5.38.2-build/perl-5.38.2/hv.c:3267:24: note: in expansion of macro ‘PL_strtab’
perl-5.38.2-build/perl-5.38.2/hv.h:457:34: note: in definition of macro ‘HEK_HASH’
perl-5.38.2-build/perl-5.38.2/hv.h:431:42: note: in expansion of macro ‘HeKEY_hek’
perl-5.38.2-build/perl-5.38.2/hv.c:3277:17: note: in expansion of macro ‘HeHASH’
perl-5.38.2-build/perl-5.38.2/hv.h:425:33: note: in expansion of macro ‘HEK_LEN’
perl-5.38.2-build/perl-5.38.2/hv.c:3279:17: note: in expansion of macro ‘HeKLEN’
perl-5.38.2-build/perl-5.38.2/hv.h:423:33: note: in expansion of macro ‘HEK_KEY’
perl-5.38.2-build/perl-5.38.2/hv.c:3281:17: note: in expansion of macro ‘HeKEY’
perl-5.38.2-build/perl-5.38.2/handy.h:712:27: note: in expansion of macro ‘memEQ’
perl-5.38.2-build/perl-5.38.2/hv.c:3281:40: note: in expansion of macro ‘memNE’
perl-5.38.2-build/perl-5.38.2/handy.h:712:27: note: in expansion of macro ‘memEQ’
perl-5.38.2-build/perl-5.38.2/hv.c:3281:40: note: in expansion of macro ‘memNE’
perl-5.38.2-build/perl-5.38.2/perl.h:1715: included_from: Included from here.
/usr/include/string.h:64:12: note: argument 2 of ‘memcmp’ must be non-null
# 709| #define strnEQ(s1,s2,l) (strncmp(s1,s2,l) == 0)
# 710|
# 711|-> #define memEQ(s1,s2,l) (memcmp(((const void *) (s1)), ((const void *) (s2)), l) == 0)
# 712| #define memNE(s1,s2,l) (! memEQ(s1,s2,l))
# 713|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def215]
perl-5.38.2-build/perl-5.38.2/handy.h:2879:93: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)numstates * 16)’ where non-null expected
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1657:5: note: in expansion of macro ‘Copy’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1646:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1656:35: note: in expansion of macro ‘PerlMemShared_malloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1657:5: note: in expansion of macro ‘Copy’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 2877|
# 2878| #define Move(s,d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), perl_assert_ptr(s), (void)memmove((char*)(d),(const char*)(s), (n) * sizeof(t)))
# 2879|-> #define Copy(s,d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), perl_assert_ptr(s), (void)memcpy((char*)(d),(const char*)(s), (n) * sizeof(t)))
# 2880| #define Zero(d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), (void)memzero((char*)(d), (n) * sizeof(t)))
# 2881|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def216]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c: scope_hint: In function ‘Perl_construct_ahocorasick_from_trie’
perl-5.38.2-build/perl-5.38.2/handy.h:2904:39: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘op’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1642:9: note: in expansion of macro ‘StructCopy’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1641:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1641:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1642:9: note: in expansion of macro ‘StructCopy’
# 2902|
# 2903| /* Shallow copy */
# 2904|-> #define StructCopy(s,d,t) (*((t*)(d)) = *((t*)(s)))
# 2905|
# 2906| /*
Error: CPPCHECK_WARNING: [#def217]
perl-5.38.2-build/perl-5.38.2/hv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def218]
perl-5.38.2-build/perl-5.38.2/hv.c:2180:10: warning[core.NullDereference]: Access to field 'xhv_keys' results in a dereference of a null pointer (loaded from field 'sv_any')
# 2178| }
# 2179|
# 2180|-> if (!((XPVHV*)SvANY(hv))->xhv_keys)
# 2181| return NULL;
# 2182|
Error: CLANG_WARNING: [#def219]
perl-5.38.2-build/perl-5.38.2/hv.c:2291:19: warning[core.NullDereference]: Access to field 'hek_len' results in a dereference of a null pointer
# 2289| DEBUG_o(Perl_deb(aTHX_ "hv_undef_flags clearing PL_stashcache for effective name '%"
# 2290| HEKf "'\n", HEKfARG(HvENAME_HEK_NN(hv))));
# 2291|-> (void)hv_deletehek(PL_stashcache, HvENAME_HEK_NN(hv), G_DISCARD);
# 2292| }
# 2293| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
perl-5.38.2-build/perl-5.38.2/hv.c: scope_hint: In function ‘Perl_refcounted_he_new_pvn’
perl-5.38.2-build/perl-5.38.2/hv.c:3894:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘he’
perl-5.38.2-build/perl-5.38.2/perl.h:4485: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/hv.c:3885:9: note: in expansion of macro ‘PerlMemShared_malloc’
# 3892| #endif
# 3893|
# 3894|-> he->refcounted_he_next = parent;
# 3895|
# 3896| if (is_pv) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pad.c:150: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pad.c: scope_hint: In function ‘Perl_cv_name’
perl-5.38.2-build/perl-5.38.2/hv.h:458:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.38.2-build/perl-5.38.2/embed.h:624:82: note: in definition of macro ‘sv_catpvn_flags’
perl-5.38.2-build/perl-5.38.2/hv.h:460:60: note: in expansion of macro ‘HEK_LEN’
perl-5.38.2-build/perl-5.38.2/hv.h:474:34: note: in expansion of macro ‘HEK_FLAGS’
perl-5.38.2-build/perl-5.38.2/sv.h:2251:29: note: in expansion of macro ‘HEK_UTF8’
perl-5.38.2-build/perl-5.38.2/pad.c:2327:21: note: in expansion of macro ‘sv_cathek’
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/cv.h:91:36: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/cv.h:218:34: note: in expansion of macro ‘CvFLAGS’
perl-5.38.2-build/perl-5.38.2/pad.c:2318:17: note: in expansion of macro ‘CvNAMED’
perl-5.38.2-build/perl-5.38.2/perl.h:4536: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pad.c:2319:21: note: in expansion of macro ‘CvLEXICAL’
perl-5.38.2-build/perl-5.38.2/handy.h:107:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/cv.h:41:26: note: in expansion of macro ‘MUTABLE_HV’
perl-5.38.2-build/perl-5.38.2/pad.c:2322:25: note: in expansion of macro ‘CvSTASH’
perl-5.38.2-build/perl-5.38.2/perl.h:4530: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/sv.h:2249:32: note: in definition of macro ‘sv_cathek’
perl-5.38.2-build/perl-5.38.2/pad.c: scope_hint: In function ‘Perl_cv_name’
perl-5.38.2-build/perl-5.38.2/embed.h:624:82: note: in definition of macro ‘sv_catpvn_flags’
perl-5.38.2-build/perl-5.38.2/hv.h:474:34: note: in expansion of macro ‘HEK_FLAGS’
perl-5.38.2-build/perl-5.38.2/sv.h:2251:29: note: in expansion of macro ‘HEK_UTF8’
perl-5.38.2-build/perl-5.38.2/pad.c:2327:21: note: in expansion of macro ‘sv_cathek’
perl-5.38.2-build/perl-5.38.2/embed.h:624:82: note: in definition of macro ‘sv_catpvn_flags’
perl-5.38.2-build/perl-5.38.2/hv.h:460:60: note: in expansion of macro ‘HEK_LEN’
perl-5.38.2-build/perl-5.38.2/hv.h:474:34: note: in expansion of macro ‘HEK_FLAGS’
perl-5.38.2-build/perl-5.38.2/sv.h:2251:29: note: in expansion of macro ‘HEK_UTF8’
perl-5.38.2-build/perl-5.38.2/pad.c:2327:21: note: in expansion of macro ‘sv_cathek’
# 456| #define HEK_BASESIZE STRUCT_OFFSET(HEK, hek_key[0])
# 457| #define HEK_HASH(hek) (hek)->hek_hash
# 458|-> #define HEK_LEN(hek) (hek)->hek_len
# 459| #define HEK_KEY(hek) (hek)->hek_key
# 460| #define HEK_FLAGS(hek) (*((unsigned char *)(HEK_KEY(hek))+HEK_LEN(hek)+1))
Error: GCC_ANALYZER_WARNING (CWE-476): [#def222]
perl-5.38.2-build/perl-5.38.2/inline.h:403:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.38.2-build/perl-5.38.2/perl.h:6168: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pp_hot.c: scope_hint: In function ‘Perl_pp_subst’
perl-5.38.2-build/perl-5.38.2/pp_hot.c:4383:1: note: in expansion of macro ‘PP’
perl-5.38.2-build/perl-5.38.2/perl.h:4538: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pp_hot.c:4399:18: note: in expansion of macro ‘PM_GETRE’
perl-5.38.2-build/perl-5.38.2/perl.h:4531: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pp_hot.c:4400:20: note: in expansion of macro ‘ReANY’
# 401| Perl_ReANY(const REGEXP * const re)
# 402| {
# 403|-> XPV* const p = (XPV*)SvANY(re);
# 404|
# 405| PERL_ARGS_ASSERT_REANY;
Error: CLANG_WARNING: [#def223]
perl-5.38.2-build/perl-5.38.2/cpan/Encode/Encode.xs:8: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perl.h:7811: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/inline.h:1928:15: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1926|
# 1927| if (len == 0) {
# 1928|-> len = strlen((const char *) s);
# 1929| }
# 1930|
Error: CPPCHECK_WARNING: [#def224]
perl-5.38.2-build/perl-5.38.2/keywords.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def225]
perl-5.38.2-build/perl-5.38.2/locale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def226]
perl-5.38.2-build/perl-5.38.2/locale.c:1750:9: warning[deadcode.DeadStores]: Value stored to 'new_len' is never read
# 1748| # endif
# 1749|
# 1750|-> new_len = my_strlcat(aggregate_locale, category_names[i], names_len);
# 1751| assert(new_len <= names_len);
# 1752| new_len = my_strlcat(aggregate_locale, "=", names_len);
Error: CLANG_WARNING: [#def227]
perl-5.38.2-build/perl-5.38.2/locale.c:1752:9: warning[deadcode.DeadStores]: Value stored to 'new_len' is never read
# 1750| new_len = my_strlcat(aggregate_locale, category_names[i], names_len);
# 1751| assert(new_len <= names_len);
# 1752|-> new_len = my_strlcat(aggregate_locale, "=", names_len);
# 1753| assert(new_len <= names_len);
# 1754|
Error: CLANG_WARNING: [#def228]
perl-5.38.2-build/perl-5.38.2/locale.c:1758:9: warning[deadcode.DeadStores]: Value stored to 'new_len' is never read
# 1756| entry_len = strlen(entry);
# 1757|
# 1758|-> new_len = my_strlcat(aggregate_locale, entry, names_len);
# 1759| assert(new_len <= names_len);
# 1760| new_len = my_strlcat(aggregate_locale, ";", names_len);
Error: CLANG_WARNING: [#def229]
perl-5.38.2-build/perl-5.38.2/locale.c:1760:9: warning[deadcode.DeadStores]: Value stored to 'new_len' is never read
# 1758| new_len = my_strlcat(aggregate_locale, entry, names_len);
# 1759| assert(new_len <= names_len);
# 1760|-> new_len = my_strlcat(aggregate_locale, ";", names_len);
# 1761| assert(new_len <= names_len);
# 1762| PERL_UNUSED_VAR(new_len); /* Only used in DEBUGGING */
Error: CLANG_WARNING: [#def230]
perl-5.38.2-build/perl-5.38.2/locale.c:3090:16: warning[core.UndefinedBinaryOperatorResult]: The right operand of '==' is a garbage value
# 3088|
# 3089| /* No-op to copy over oneself */
# 3090|-> if (string == *buf) {
# 3091| return string;
# 3092| }
Error: CLANG_WARNING: [#def231]
perl-5.38.2-build/perl-5.38.2/locale.c:3402:18: warning[deadcode.DeadStores]: Value stored to 'numeric_locale' during its initialization is never read
# 3400| /* The two categories can have disparate locales. Initialize them to C and
# 3401| * override later whichever one(s) we pay attention to */
# 3402|-> const char * numeric_locale = "C";
# 3403| const char * monetary_locale = "C";
# 3404|
Error: CLANG_WARNING: [#def232]
perl-5.38.2-build/perl-5.38.2/locale.c:3403:18: warning[deadcode.DeadStores]: Value stored to 'monetary_locale' during its initialization is never read
# 3401| * override later whichever one(s) we pay attention to */
# 3402| const char * numeric_locale = "C";
# 3403|-> const char * monetary_locale = "C";
# 3404|
# 3405| /* This will be either 'numeric_locale' or 'monetary_locale' depending on
Error: CPPCHECK_WARNING (CWE-758): [#def233]
perl-5.38.2-build/perl-5.38.2/locale.c:3502: error[shiftTooManyBits]: Shifting 32-bit value by 4294967295 bits is undefined behaviour
# 3500| /* The first call to S_populate_hash_from_localeconv() will be for the
# 3501| * MONETARY values */
# 3502|-> index_bits = INDEX_TO_BIT(monetary_index);
# 3503| locale = monetary_locale;
# 3504|
Error: CPPCHECK_WARNING (CWE-758): [#def234]
perl-5.38.2-build/perl-5.38.2/locale.c:3508: error[shiftTooManyBits]: Shifting 32-bit value by 4294967295 bits is undefined behaviour
# 3506| * do the NUMERIC values in the same call */
# 3507| if (strEQ(numeric_locale, monetary_locale)) {
# 3508|-> index_bits |= INDEX_TO_BIT(numeric_index);
# 3509| }
# 3510| else {
Error: CPPCHECK_WARNING (CWE-758): [#def235]
perl-5.38.2-build/perl-5.38.2/locale.c:3545: error[shiftTooManyBits]: Shifting 32-bit value by 4294967295 bits is undefined behaviour
# 3543| * NUMERIC fields */
# 3544| if (requires_2nd_localeconv) {
# 3545|-> populate_hash_from_localeconv(hv,
# 3546| numeric_locale,
# 3547| INDEX_TO_BIT(numeric_index),
Error: CPPCHECK_WARNING (CWE-457): [#def236]
perl-5.38.2-build/perl-5.38.2/locale.c:4144: error[uninitvar]: Uninitialized variable: cat_index
# 4142|
# 4143| {
# 4144|-> return my_langinfo_i(item, cat_index, querylocale_i(cat_index),
# 4145| &PL_langinfo_buf, &PL_langinfo_bufsize, utf8ness);
# 4146| }
Error: CPPCHECK_WARNING: [#def237]
perl-5.38.2-build/perl-5.38.2/mathoms.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def238]
perl-5.38.2-build/perl-5.38.2/mg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
perl-5.38.2-build/perl-5.38.2/perl.h:4530: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/mg.c:45: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/mg.c: scope_hint: In function ‘Perl_magic_clearisa’
perl-5.38.2-build/perl-5.38.2/mg.c:2011:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mg’
perl-5.38.2-build/perl-5.38.2/sv.h:402:36: note: in definition of macro ‘SvTYPE’
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/mg.c:2008:14: note: in expansion of macro ‘mg_find’
perl-5.38.2-build/perl-5.38.2/sv.h:402:36: note: in definition of macro ‘SvTYPE’
# 2009|
# 2010| assert(mg);
# 2011|-> if (SvTYPE(mg->mg_obj) == SVt_PVAV) { /* multiple stashes */
# 2012| SV **svp = AvARRAY((AV *)mg->mg_obj);
# 2013| I32 items = AvFILLp((AV *)mg->mg_obj) + 1;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def240]
perl-5.38.2-build/perl-5.38.2/mg.c:2639:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mg’
perl-5.38.2-build/perl-5.38.2/mg.c:2636:19: note: in expansion of macro ‘mg_find’
perl-5.38.2-build/perl-5.38.2/mg.c:2636:19: note: in expansion of macro ‘mg_find’
perl-5.38.2-build/perl-5.38.2/sv.h:1440:36: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/mg.c:373:19: note: in expansion of macro ‘SvMAGIC’
perl-5.38.2-build/perl-5.38.2/mg.c: scope_hint: In function ‘Perl_defelem_target’
perl-5.38.2-build/perl-5.38.2/mg.c:2636:19: note: in expansion of macro ‘mg_find’
# 2637| assert(mg);
# 2638| if (LvTARGLEN(sv)) {
# 2639|-> if (mg->mg_obj) {
# 2640| SV * const ahv = LvTARG(sv);
# 2641| HE * const he = hv_fetch_ent(MUTABLE_HV(ahv), mg->mg_obj, FALSE, 0);
Error: GCC_ANALYZER_WARNING (CWE-835): [#def241]
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/mg.c: scope_hint: In function ‘Perl_magic_set’
perl-5.38.2-build/perl-5.38.2/mg.c:3458:28: warning[-Wanalyzer-infinite-loop]: infinite loop
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.38.2-build/perl-5.38.2/mg.c:3458:20: note: in expansion of macro ‘isSPACE’
perl-5.38.2-build/perl-5.38.2/perl.h:7812: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.38.2-build/perl-5.38.2/mg.c:3458:20: note: in expansion of macro ‘isSPACE’
perl-5.38.2-build/perl-5.38.2/handy.h:1658:26: note: in expansion of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.38.2-build/perl-5.38.2/mg.c:3458:20: note: in expansion of macro ‘isSPACE’
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.38.2-build/perl-5.38.2/mg.c:3458:20: note: in expansion of macro ‘isSPACE’
# 3456| #endif
# 3457|
# 3458|-> while (isSPACE(*p))
# 3459| ++p;
# 3460| if (grok_atoUV(p, &uv, &endptr))
Error: GCC_ANALYZER_WARNING (CWE-476): [#def242]
perl-5.38.2-build/perl-5.38.2/mg.c: scope_hint: In function ‘Perl_magic_copycallchecker’
perl-5.38.2-build/perl-5.38.2/mg.c:4001:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.38.2-build/perl-5.38.2/mg.c:3999:11: note: in expansion of macro ‘mg_find’
perl-5.38.2-build/perl-5.38.2/mg.c: scope_hint: In function ‘Perl_magic_copycallchecker’
perl-5.38.2-build/perl-5.38.2/mg.c:3999:11: note: in expansion of macro ‘mg_find’
# 3999| nmg = mg_find(nsv, mg->mg_type);
# 4000| assert(nmg);
# 4001|-> if (nmg->mg_flags & MGf_REFCOUNTED) SvREFCNT_dec(nmg->mg_obj);
# 4002| nmg->mg_ptr = mg->mg_ptr;
# 4003| nmg->mg_obj = SvREFCNT_inc_simple(mg->mg_obj);
Error: CPPCHECK_WARNING: [#def243]
perl-5.38.2-build/perl-5.38.2/miniperlmain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def244]
perl-5.38.2-build/perl-5.38.2/mro_core.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-119): [#def245]
perl-5.38.2-build/perl-5.38.2/mro_core.c:811: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: (const void*)((*namep)->hek_key)
# 809| }
# 810| if (name_count == 1) {
# 811|-> if (memEQs(HEK_KEY(*namep), HEK_LEN(*namep), "main")) {
# 812| namesv = GvNAMELEN(gv) == 1
# 813| ? newSVpvs_flags(":", SVs_TEMP)
Error: CPPCHECK_WARNING (CWE-119): [#def246]
perl-5.38.2-build/perl-5.38.2/mro_core.c:833: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: (const void*)((*namep)->hek_key)
# 831| namesv = newSV_type_mortal(SVt_PVAV);
# 832| while (name_count--) {
# 833|-> if(memEQs(HEK_KEY(*namep), HEK_LEN(*namep), "main")){
# 834| aname = GvNAMELEN(gv) == 1
# 835| ? newSVpvs(":")
Error: CPPCHECK_WARNING: [#def247]
perl-5.38.2-build/perl-5.38.2/numeric.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def248]
perl-5.38.2-build/perl-5.38.2/op.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def249]
perl-5.38.2-build/perl-5.38.2/op.c:2897: warning[nullPointer]: Possible null pointer dereference: (struct UNOP*)(0+(((struct UNOP*)(kid))->op_first)->op_moresib?(((struct UNOP*)(kid))->op_first)->op_sibparent:NULL)
# 2895| kid = cUNOPo->op_first;
# 2896| if (kid->op_type == OP_NULL)
# 2897|-> kid = cUNOPx(OpSIBLING(kUNOP->op_first))
# 2898| ->op_first;
# 2899| o->op_private = OPpLVREF_CV;
Error: CPPCHECK_WARNING (CWE-476): [#def250]
perl-5.38.2-build/perl-5.38.2/op.c:4897: warning[nullPointer]: Possible null pointer dereference: (struct SVOP*)(0+(((struct LISTOP*)(o))->op_first)->op_moresib?(((struct LISTOP*)(o))->op_first)->op_sibparent:NULL)
# 4895| goto nope;
# 4896| {
# 4897|-> SV * const sv = cSVOPx_sv(OpSIBLING(cLISTOPo->op_first));
# 4898| if (!SvPOK(sv) || SvGMAGICAL(sv)) goto nope;
# 4899| {
Error: CPPCHECK_WARNING (CWE-562): [#def251]
perl-5.38.2-build/perl-5.38.2/op.c:4953: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 4951| assert(PL_curcop == &PL_compiling);
# 4952| StructCopy(&PL_compiling, ¬_compiling, COP);
# 4953|-> PL_curcop = ¬_compiling;
# 4954| /* The above ensures that we run with all the correct hints of the
# 4955| currently compiling COP, but that IN_PERL_RUNTIME is true. */
Error: CPPCHECK_WARNING (CWE-562): [#def252]
perl-5.38.2-build/perl-5.38.2/op.c:5069: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5067| old_curcop = PL_curcop;
# 5068| StructCopy(old_curcop, ¬_compiling, COP);
# 5069|-> PL_curcop = ¬_compiling;
# 5070| /* The above ensures that we run with all the correct hints of the
# 5071| current COP, but that IN_PERL_RUNTIME is true. */
Error: CPPCHECK_WARNING (CWE-562): [#def253]
perl-5.38.2-build/perl-5.38.2/op.c:5075: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5073| PL_warnhook = PERL_WARNHOOK_FATAL;
# 5074| PL_diehook = NULL;
# 5075|-> JMPENV_PUSH(ret);
# 5076|
# 5077| /* Effective $^W=1. */
Error: CPPCHECK_WARNING (CWE-476): [#def254]
perl-5.38.2-build/perl-5.38.2/op.c:8165: warning[nullPointer]: Possible null pointer dereference: sib
# 8163| OP * const sib = OpSIBLING(cLOGOPo->op_first);
# 8164| const I32 t = assignment_type(sib);
# 8165|-> const I32 f = assignment_type(OpSIBLING(sib));
# 8166|
# 8167| if (t == ASSIGN_LIST && f == ASSIGN_LIST)
Error: CPPCHECK_WARNING (CWE-476): [#def255]
perl-5.38.2-build/perl-5.38.2/op.c:12275: warning[nullPointer]: Possible null pointer dereference: catchroot
#12273| /* First, link up the actual body of the catch block */
#12274| catchroot = OpSIBLING(cUNOPx(catchkid)->op_first);
#12275|-> catchstart = LINKLIST(catchroot);
#12276| cLOGOPx(catchkid)->op_other = catchstart;
#12277|
Error: CPPCHECK_WARNING (CWE-476): [#def256]
perl-5.38.2-build/perl-5.38.2/op.c:12301: warning[nullPointer]: Possible null pointer dereference: kid
#12299| o = ck_fun(o);
#12300| kid = OpSIBLING(cUNOPo->op_first);
#12301|-> if (kid->op_type == OP_RV2GV)
#12302| op_null(kid);
#12303| }
Error: CPPCHECK_WARNING (CWE-476): [#def257]
perl-5.38.2-build/perl-5.38.2/op.c:12847: warning[nullPointer]: Possible null pointer dereference: (struct UNOP*)(0+(((struct LISTOP*)(o))->op_first)->op_moresib?(((struct LISTOP*)(o))->op_first)->op_sibparent:NULL)
#12845|
#12846| if (o->op_flags & OPf_STACKED) {
#12847|-> kid = cUNOPx(OpSIBLING(cLISTOPo->op_first))->op_first;
#12848| if (kid->op_type != OP_SCOPE && kid->op_type != OP_LEAVE)
#12849| return no_fh_allowed(o);
Error: CPPCHECK_WARNING (CWE-476): [#def258]
perl-5.38.2-build/perl-5.38.2/op.c:12861: warning[nullPointer]: Possible null pointer dereference: kid
#12859| return o;
#12860| kid = OpSIBLING(cLISTOPo->op_first);
#12861|-> if (kid->op_type != OP_NULL)
#12862| Perl_croak(aTHX_ "panic: ck_grep, type=%u", (unsigned) kid->op_type);
#12863| kid = kUNOP->op_first;
Error: CPPCHECK_WARNING (CWE-476): [#def259]
perl-5.38.2-build/perl-5.38.2/op.c:12871: warning[nullPointer]: Possible null pointer dereference: kid
#12869|
#12870| kid = OpSIBLING(cLISTOPo->op_first);
#12871|-> for (kid = OpSIBLING(kid); kid; kid = OpSIBLING(kid))
#12872| op_lvalue(kid, OP_GREPSTART);
#12873|
Error: CPPCHECK_WARNING (CWE-476): [#def260]
perl-5.38.2-build/perl-5.38.2/op.c:13275: warning[nullPointer]: Possible null pointer dereference: (struct UNOP*)(kidparent)
#13273| OP * const kidparent =
#13274| OpSIBLING(cUNOPx(cUNOPx(varop)->op_first)->op_first);
#13275|-> OP * const kid = cUNOPx(kidparent)->op_first;
#13276| o->op_private |= OPpLVREF_CV;
#13277| if (kid->op_type == OP_GV) {
Error: CPPCHECK_WARNING (CWE-476): [#def261]
perl-5.38.2-build/perl-5.38.2/op.c:13596: warning[nullPointer]: Possible null pointer dereference: (struct UNOP*)(kid)
#13594| PERL_ARGS_ASSERT_SIMPLIFY_SORT;
#13595|
#13596|-> kid = kUNOP->op_first; /* get past null */
#13597| if (!(have_scopeop = kid->op_type == OP_SCOPE)
#13598| && kid->op_type != OP_LEAVE)
Error: CPPCHECK_WARNING (CWE-476): [#def262]
perl-5.38.2-build/perl-5.38.2/op.c:13772: warning[nullPointer]: Possible null pointer dereference: kid
#13770| OP * const kid = OpSIBLING(cUNOPo->op_first);
#13771| PERL_ARGS_ASSERT_CK_STRINGIFY;
#13772|-> if (( kid->op_type == OP_JOIN || kid->op_type == OP_QUOTEMETA
#13773| || kid->op_type == OP_LC || kid->op_type == OP_LCFIRST
#13774| || kid->op_type == OP_UC || kid->op_type == OP_UCFIRST)
Error: CPPCHECK_WARNING (CWE-476): [#def263]
perl-5.38.2-build/perl-5.38.2/op.c:14977: warning[nullPointer]: Possible null pointer dereference: (struct UNOP*)(0+(((struct UNOP*)(o))->op_first)->op_moresib?(((struct UNOP*)(o))->op_first)->op_sibparent:NULL)
#14975|
#14976| assert(OpSIBLING(cUNOPo->op_first)->op_type == OP_NULL);
#14977|-> oleft_pushmark = cUNOPx(OpSIBLING(cUNOPo->op_first))->op_first;
#14978| assert(oleft_pushmark->op_type == OP_PUSHMARK);
#14979| oleft = OpSIBLING(oleft_pushmark);
Error: CPPCHECK_WARNING (CWE-401): [#def264]
perl-5.38.2-build/perl-5.38.2/op.c:15635: error[memleak]: Memory leak: rcpv
#15633| }
#15634| rcpv->pv[len-1]= '\0'; /* the last byte should always be null */
#15635|-> return rcpv->pv;
#15636| }
#15637|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def265]
perl-5.38.2-build/perl-5.38.2/perl.h:4538: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/ext/Devel-Peek/Peek.xs:3: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/ext/Devel-Peek/Peek.xs: scope_hint: In function ‘S_ck_dump’
perl-5.38.2-build/perl-5.38.2/op.h:1080:74: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.38.2-build/perl-5.38.2/ext/Devel-Peek/Peek.xs:367:14: note: in expansion of macro ‘OpSIBLING’
perl-5.38.2-build/perl-5.38.2/ext/Devel-Peek/Peek.xs:366:13: note: in expansion of macro ‘OpSIBLING’
perl-5.38.2-build/perl-5.38.2/ext/Devel-Peek/Peek.xs:367:14: note: in expansion of macro ‘OpSIBLING’
perl-5.38.2-build/perl-5.38.2/ext/Devel-Peek/Peek.xs:367:14: note: in expansion of macro ‘OpSIBLING’
perl-5.38.2-build/perl-5.38.2/ext/Devel-Peek/Peek.xs:367:14: note: in expansion of macro ‘OpSIBLING’
perl-5.38.2-build/perl-5.38.2/ext/Devel-Peek/Peek.xs:367:14: note: in expansion of macro ‘OpSIBLING’
# 1078|
# 1079| #define OpHAS_SIBLING(o) (cBOOL((o)->op_moresib))
# 1080|-> #define OpSIBLING(o) (0 + (o)->op_moresib ? (o)->op_sibparent : NULL)
# 1081| #define OpMORESIB_set(o, sib) ((o)->op_moresib = 1, (o)->op_sibparent = (sib))
# 1082| #define OpLASTSIB_set(o, parent) \
Error: GCC_ANALYZER_WARNING (CWE-476): [#def266]
perl-5.38.2-build/perl-5.38.2/perl.h:4538: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/class.c:16: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/class.c: scope_hint: In function ‘Perl_class_seal_stash’
perl-5.38.2-build/perl-5.38.2/op.h:1083:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.38.2-build/perl-5.38.2/class.c:723:17: note: in expansion of macro ‘OpLASTSIB_set’
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/hv.h:705:17: note: in expansion of macro ‘MUTABLE_HV’
perl-5.38.2-build/perl-5.38.2/hv.h:705:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/class.c:657:32: note: in expansion of macro ‘newHV’
perl-5.38.2-build/perl-5.38.2/perl.h:7812: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/hv.h:705:17: note: in expansion of macro ‘MUTABLE_HV’
perl-5.38.2-build/perl-5.38.2/hv.h:705:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/class.c:657:32: note: in expansion of macro ‘newHV’
perl-5.38.2-build/perl-5.38.2/perl.h:4535: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/class.c:700:27: note: in expansion of macro ‘PadnamelistARRAY’
perl-5.38.2-build/perl-5.38.2/class.c:719:21: note: in expansion of macro ‘OpSIBLING’
perl-5.38.2-build/perl-5.38.2/class.c:720:17: note: in expansion of macro ‘OpLASTSIB_set’
perl-5.38.2-build/perl-5.38.2/class.c:723:17: note: in expansion of macro ‘OpLASTSIB_set’
perl-5.38.2-build/perl-5.38.2/class.c:723:17: note: in expansion of macro ‘OpLASTSIB_set’
# 1081| #define OpMORESIB_set(o, sib) ((o)->op_moresib = 1, (o)->op_sibparent = (sib))
# 1082| #define OpLASTSIB_set(o, parent) \
# 1083|-> ((o)->op_moresib = 0, (o)->op_sibparent = (parent))
# 1084| #define OpMAYBESIB_set(o, sib, parent) \
# 1085| ((o)->op_sibparent = ((o)->op_moresib = cBOOL(sib)) ? (sib) : (parent))
Error: CPPCHECK_WARNING: [#def267]
perl-5.38.2-build/perl-5.38.2/pad.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def268]
perl-5.38.2-build/perl-5.38.2/peep.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def269]
perl-5.38.2-build/perl-5.38.2/peep.c:885:17: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 883| char * orig_up = up;
# 884| for (i = (lens++)->ssize; i > 0; i--) {
# 885|-> U8 c = *p++;
# 886| append_utf8_from_native_byte(c, (U8**)&up);
# 887| }
Error: CLANG_WARNING: [#def270]
perl-5.38.2-build/perl-5.38.2/peep.c:952:21: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 950| }
# 951| assert(topop == OpSIBLING(cBINOPo->op_first));
# 952|-> if (toparg->p)
# 953| op_null(topop);
# 954| lastkidop = topop;
Error: CPPCHECK_WARNING (CWE-476): [#def271]
perl-5.38.2-build/perl-5.38.2/peep.c:1310: warning[nullPointer]: Possible null pointer dereference: kid
# 1308| kid = OpSIBLING(cLISTOPo->op_first);
# 1309| if (/* I bet there's always a pushmark... */
# 1310|-> OP_TYPE_ISNT_AND_WASNT_NN(kid, OP_LIST)
# 1311| && OP_TYPE_ISNT_NN(kid, OP_CONST))
# 1312| {
Error: CLANG_WARNING: [#def272]
perl-5.38.2-build/perl-5.38.2/peep.c:1867:17: warning[core.NullDereference]: Access to field 'op_moresib' results in a dereference of a null pointer (loaded from variable 'o')
# 1865| if (o == top_op)
# 1866| return all_flags; /* at top; no parents/siblings to try */
# 1867|-> if (OpHAS_SIBLING(o)) {
# 1868| next_kid = o->op_sibparent;
# 1869| if (o == effective_top_op)
Error: CLANG_WARNING: [#def273]
perl-5.38.2-build/perl-5.38.2/peep.c:2194:17: warning[unix.Malloc]: Potential leak of memory pointed to by 'arg_buf'
# 2192| if ( (o->op_type == OP_AELEM || o->op_type == OP_HELEM)
# 2193| && PL_check[o->op_type] != Perl_ck_null)
# 2194|-> return;
# 2195| /* similarly for customised exists and delete */
# 2196| if ( (o->op_type == OP_EXISTS)
Error: CLANG_WARNING: [#def274]
perl-5.38.2-build/perl-5.38.2/peep.c:3183:22: warning[core.NullDereference]: Access to field 'op_type' results in a dereference of a null pointer (loaded from variable 'padsv')
# 3181| /* Further optimise scalar assignment of an empty anonhash
# 3182| * or anonlist by subsuming the padsv & sassign OPs. */
# 3183|-> if ((padsv->op_type == OP_PADSV) &&
# 3184| !(padsv->op_private & OPpDEREF) &&
# 3185| sassign && (sassign->op_type == OP_SASSIGN) ){
Error: GCC_ANALYZER_WARNING (CWE-476): [#def275]
perl-5.38.2-build/perl-5.38.2/peep.c:3688:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.38.2-build/perl-5.38.2/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.38.2-build/perl-5.38.2/peep.c:2702:5: note: in expansion of macro ‘ENTER’
perl-5.38.2-build/perl-5.38.2/op.h:1080:39: note: in definition of macro ‘OpSIBLING’
perl-5.38.2-build/perl-5.38.2/op.h:474:25: note: in expansion of macro ‘cLISTOPx’
perl-5.38.2-build/perl-5.38.2/op.h:474:34: note: in expansion of macro ‘PL_op’
perl-5.38.2-build/perl-5.38.2/peep.c:3687:47: note: in expansion of macro ‘cLISTOP’
perl-5.38.2-build/perl-5.38.2/peep.c:3687:37: note: in expansion of macro ‘OpSIBLING’
# 3686| /* first arg is a code block */
# 3687| OP * const nullop = OpSIBLING(cLISTOP->op_first);
# 3688|-> OP * kid = cUNOPx(nullop)->op_first;
# 3689|
# 3690| assert(nullop->op_type == OP_NULL);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def276]
perl-5.38.2-build/perl-5.38.2/peep.c:3688:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldoldop’
perl-5.38.2-build/perl-5.38.2/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.38.2-build/perl-5.38.2/peep.c:2702:5: note: in expansion of macro ‘ENTER’
perl-5.38.2-build/perl-5.38.2/peep.c:3687:37: note: in expansion of macro ‘OpSIBLING’
# 3686| /* first arg is a code block */
# 3687| OP * const nullop = OpSIBLING(cLISTOP->op_first);
# 3688|-> OP * kid = cUNOPx(nullop)->op_first;
# 3689|
# 3690| assert(nullop->op_type == OP_NULL);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def277]
perl-5.38.2-build/perl-5.38.2/peep.c: scope_hint: In function ‘Perl_rpeep’
perl-5.38.2-build/perl-5.38.2/peep.c:3688:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldop’
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/peep.c:26: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.38.2-build/perl-5.38.2/peep.c:2702:5: note: in expansion of macro ‘ENTER’
perl-5.38.2-build/perl-5.38.2/perl.h:4538: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/op.h:1080:39: note: in definition of macro ‘OpSIBLING’
perl-5.38.2-build/perl-5.38.2/op.h:474:25: note: in expansion of macro ‘cLISTOPx’
perl-5.38.2-build/perl-5.38.2/op.h:474:34: note: in expansion of macro ‘PL_op’
perl-5.38.2-build/perl-5.38.2/peep.c:3687:47: note: in expansion of macro ‘cLISTOP’
perl-5.38.2-build/perl-5.38.2/peep.c:3687:37: note: in expansion of macro ‘OpSIBLING’
# 3686| /* first arg is a code block */
# 3687| OP * const nullop = OpSIBLING(cLISTOP->op_first);
# 3688|-> OP * kid = cUNOPx(nullop)->op_first;
# 3689|
# 3690| assert(nullop->op_type == OP_NULL);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def278]
perl-5.38.2-build/perl-5.38.2/peep.c:3942:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.38.2-build/perl-5.38.2/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.38.2-build/perl-5.38.2/peep.c:2702:5: note: in expansion of macro ‘ENTER’
# 3940| OP *left = OpSIBLING(right);
# 3941| if (left->op_type == OP_SUBSTR
# 3942|-> && (left->op_private & 7) < 4) {
# 3943| op_null(o);
# 3944| /* cut out right */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def279]
perl-5.38.2-build/perl-5.38.2/peep.c:3942:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldoldop’
perl-5.38.2-build/perl-5.38.2/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.38.2-build/perl-5.38.2/peep.c:2702:5: note: in expansion of macro ‘ENTER’
# 3940| OP *left = OpSIBLING(right);
# 3941| if (left->op_type == OP_SUBSTR
# 3942|-> && (left->op_private & 7) < 4) {
# 3943| op_null(o);
# 3944| /* cut out right */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def280]
perl-5.38.2-build/perl-5.38.2/peep.c:3942:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldop’
perl-5.38.2-build/perl-5.38.2/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.38.2-build/perl-5.38.2/peep.c:2702:5: note: in expansion of macro ‘ENTER’
perl-5.38.2-build/perl-5.38.2/peep.c:3940:32: note: in expansion of macro ‘OpSIBLING’
perl-5.38.2-build/perl-5.38.2/peep.c:3940:32: note: in expansion of macro ‘OpSIBLING’
# 3940| OP *left = OpSIBLING(right);
# 3941| if (left->op_type == OP_SUBSTR
# 3942|-> && (left->op_private & 7) < 4) {
# 3943| op_null(o);
# 3944| /* cut out right */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def281]
perl-5.38.2-build/perl-5.38.2/peep.c:4044:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldoldop’
perl-5.38.2-build/perl-5.38.2/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.38.2-build/perl-5.38.2/peep.c:2702:5: note: in expansion of macro ‘ENTER’
perl-5.38.2-build/perl-5.38.2/peep.c:4026:17: note: in expansion of macro ‘OpTYPE_set’
# 4042| assert(oldop->op_type == OP_AELEMFAST_LEX);
# 4043| /* oldoldop can be arbitrarily deep in the RHS OP tree */
# 4044|-> oldoldop->op_next = o;
# 4045|
# 4046| /* Even when (rhs != oldoldop), rhs might still have a
Error: CLANG_WARNING: [#def282]
perl-5.38.2-build/perl-5.38.2/peep.c:4044:35: warning[core.NullDereference]: Access to field 'op_next' results in a dereference of a null pointer (loaded from variable 'oldoldop')
# 4042| assert(oldop->op_type == OP_AELEMFAST_LEX);
# 4043| /* oldoldop can be arbitrarily deep in the RHS OP tree */
# 4044|-> oldoldop->op_next = o;
# 4045|
# 4046| /* Even when (rhs != oldoldop), rhs might still have a
Error: CPPCHECK_WARNING: [#def283]
perl-5.38.2-build/perl-5.38.2/perl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def284]
perl-5.38.2-build/perl-5.38.2/perl.c:1918: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1916| PL_dowarn = G_WARN_OFF;
# 1917|
# 1918|-> JMPENV_PUSH(ret);
# 1919| switch (ret) {
# 1920| case 0:
Error: CPPCHECK_WARNING (CWE-562): [#def285]
perl-5.38.2-build/perl-5.38.2/perl.c:2720: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 2718| #endif
# 2719|
# 2720|-> JMPENV_PUSH(ret);
# 2721| switch (ret) {
# 2722| case 1:
Error: CPPCHECK_WARNING (CWE-562): [#def286]
perl-5.38.2-build/perl-5.38.2/perl.c:3098: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3096| myop.op_type = OP_ENTERSUB;
# 3097| SAVEOP();
# 3098|-> PL_op = (OP*)&myop;
# 3099|
# 3100| if (!(flags & G_METHOD_NAMED)) {
Error: CPPCHECK_WARNING (CWE-562): [#def287]
perl-5.38.2-build/perl-5.38.2/perl.c:3120: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3118| Zero(&method_op, 1, METHOP);
# 3119| method_op.op_next = (OP*)&myop;
# 3120|-> PL_op = (OP*)&method_op;
# 3121| if ( flags & G_METHOD_NAMED ) {
# 3122| method_op.op_ppaddr = PL_ppaddr[OP_METHOD_NAMED];
Error: CPPCHECK_WARNING (CWE-562): [#def288]
perl-5.38.2-build/perl-5.38.2/perl.c:3145: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3143| INCMARK;
# 3144|
# 3145|-> JMPENV_PUSH(ret);
# 3146|
# 3147| switch (ret) {
Error: CPPCHECK_WARNING (CWE-562): [#def289]
perl-5.38.2-build/perl-5.38.2/perl.c:3238: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3236|
# 3237| SAVEOP();
# 3238|-> PL_op = (OP*)&myop;
# 3239| Zero(&myop, 1, UNOP);
# 3240| myop.op_ppaddr = PL_ppaddr[OP_ENTEREVAL];
Error: CPPCHECK_WARNING (CWE-562): [#def290]
perl-5.38.2-build/perl-5.38.2/perl.c:3266: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3264| TAINT_PROPER("eval_sv()");
# 3265|
# 3266|-> JMPENV_PUSH(ret);
# 3267| switch (ret) {
# 3268| case 0:
Error: GCC_ANALYZER_WARNING (CWE-835): [#def291]
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perl.c:38: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perl.c: scope_hint: In function ‘Perl_moreswitches’
perl-5.38.2-build/perl-5.38.2/perl.c:3652:30: warning[-Wanalyzer-infinite-loop]: infinite loop
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.38.2-build/perl-5.38.2/perl.c:3652:19: note: in expansion of macro ‘isWORDCHAR’
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.38.2-build/perl-5.38.2/perl.c:3652:19: note: in expansion of macro ‘isWORDCHAR’
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.38.2-build/perl-5.38.2/perl.c:3652:19: note: in expansion of macro ‘isWORDCHAR’
# 3650|
# 3651| /* We now allow -d:Module=Foo,Bar and -d:-Module */
# 3652|-> while(isWORDCHAR(*s) || *s==':') ++s;
# 3653| if (*s != '=')
# 3654| sv_catpvn(sv, start, end - start);
Error: GCC_ANALYZER_WARNING (CWE-835): [#def292]
perl-5.38.2-build/perl-5.38.2/perl.c:3680:30: warning[-Wanalyzer-infinite-loop]: infinite loop
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.38.2-build/perl-5.38.2/perl.c:3680:19: note: in expansion of macro ‘isWORDCHAR’
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.38.2-build/perl-5.38.2/perl.c:3680:19: note: in expansion of macro ‘isWORDCHAR’
perl-5.38.2-build/perl-5.38.2/handy.h:1659:28: note: in expansion of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.38.2-build/perl-5.38.2/perl.c:3680:19: note: in expansion of macro ‘isWORDCHAR’
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.38.2-build/perl-5.38.2/perl.c:3680:19: note: in expansion of macro ‘isWORDCHAR’
# 3678| Perl_warner(aTHX_ packWARN(WARN_DEBUGGING),
# 3679| "Recompile perl with -DDEBUGGING to use -D switch (did you mean -d ?)\n");
# 3680|-> for (s++; isWORDCHAR(*s); s++) ;
# 3681| #endif
# 3682| return s;
Error: GCC_ANALYZER_WARNING (CWE-835): [#def293]
perl-5.38.2-build/perl-5.38.2/perl.c:3719:32: warning[-Wanalyzer-infinite-loop]: infinite loop
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.38.2-build/perl-5.38.2/perl.c:3719:24: note: in expansion of macro ‘isSPACE’
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.38.2-build/perl-5.38.2/perl.c:3719:24: note: in expansion of macro ‘isSPACE’
perl-5.38.2-build/perl-5.38.2/handy.h:1658:26: note: in expansion of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.38.2-build/perl-5.38.2/perl.c:3719:24: note: in expansion of macro ‘isSPACE’
perl-5.38.2-build/perl-5.38.2/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.38.2-build/perl-5.38.2/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.38.2-build/perl-5.38.2/perl.c:3719:24: note: in expansion of macro ‘isSPACE’
# 3717| for (e = p; *e && !isSPACE(*e); e++) ;
# 3718| p = e;
# 3719|-> while (isSPACE(*p))
# 3720| p++;
# 3721| } while (*p && *p != '-');
Error: CPPCHECK_WARNING (CWE-562): [#def294]
perl-5.38.2-build/perl-5.38.2/perl.c:5239: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5237| SAVEFREESV(cv);
# 5238| }
# 5239|-> JMPENV_PUSH(ret);
# 5240| switch (ret) {
# 5241| case 0:
Error: GCC_ANALYZER_WARNING (CWE-688): [#def295]
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:131: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs: scope_hint: In function ‘S_get_userlock’
perl-5.38.2-build/perl-5.38.2/perl.h:1777:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ul’ where non-null expected
perl-5.38.2-build/perl-5.38.2/handy.h:2880:73: note: in expansion of macro ‘memzero’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:424:9: note: in expansion of macro ‘Zero’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:132: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/XSUB.h:150:41: note: in definition of macro ‘XS_INTERNAL’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.c:2051:1: note: in expansion of macro ‘XS_EUPXS’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.c:2061:25: note: in expansion of macro ‘ST’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:407:5: note: in expansion of macro ‘ENTER_LOCK’
perl-5.38.2-build/perl-5.38.2/perl.h:6167: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:249:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:209:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:249:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:279:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:279:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:407:5: note: in expansion of macro ‘ENTER_LOCK’
perl-5.38.2-build/perl-5.38.2/thread.h:411:71: note: in definition of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:422:9: note: in expansion of macro ‘SHARED_CONTEXT’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:165:9: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:422:9: note: in expansion of macro ‘SHARED_CONTEXT’
perl-5.38.2-build/perl-5.38.2/perl.h:4231:62: note: in definition of macro ‘EXPECT’
perl-5.38.2-build/perl-5.38.2/perl.h:4252:52: note: in expansion of macro ‘cBOOL’
perl-5.38.2-build/perl-5.38.2/perl.h:6368:15: note: in expansion of macro ‘UNLIKELY’
perl-5.38.2-build/perl-5.38.2/perl.h:6380:38: note: in expansion of macro ‘PERL_SET_LOCALE_CONTEXT’
perl-5.38.2-build/perl-5.38.2/thread.h:414:9: note: in expansion of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:165:9: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:422:9: note: in expansion of macro ‘SHARED_CONTEXT’
perl-5.38.2-build/perl-5.38.2/perl.h:4485: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:423:28: note: in expansion of macro ‘PerlMemShared_malloc’
perl-5.38.2-build/perl-5.38.2/handy.h:2880:73: note: in expansion of macro ‘memzero’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:424:9: note: in expansion of macro ‘Zero’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 1775| */
# 1776| #ifndef memzero
# 1777|-> # define memzero(d,l) memset(d,0,l)
# 1778| #endif
# 1779|
Error: CPPCHECK_WARNING: [#def296]
perl-5.38.2-build/perl-5.38.2/perlio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def297]
perl-5.38.2-build/perl-5.38.2/perlio.c:1955: warning[uninitvar]: Uninitialized variable: buf
# 1953| }
# 1954| *s = '\0';
# 1955|-> return buf;
# 1956| }
# 1957|
Error: CPPCHECK_WARNING (CWE-404): [#def298]
perl-5.38.2-build/perl-5.38.2/perlio.c:3030: error[resourceLeak]: Resource leak: stdio
# 3028| s->stdio);
# 3029| if (!s->stdio)
# 3030|-> return NULL;
# 3031| s->stdio = stdio;
# 3032| fd = fileno(stdio);
Error: CPPCHECK_WARNING (CWE-664): [#def299]
perl-5.38.2-build/perl-5.38.2/perlio.c:4984: error[va_list_usedBeforeStarted]: va_list 'apc' used before va_start() was called.
# 4982| #ifdef NEED_VA_COPY
# 4983| va_list apc;
# 4984|-> Perl_va_copy(ap, apc);
# 4985| sv = vnewSVpvf(fmt, &apc);
# 4986| va_end(apc);
Error: CPPCHECK_WARNING (CWE-664): [#def300]
perl-5.38.2-build/perl-5.38.2/perlio.c:4985: error[va_list_usedBeforeStarted]: va_list 'apc' used before va_start() was called.
# 4983| va_list apc;
# 4984| Perl_va_copy(ap, apc);
# 4985|-> sv = vnewSVpvf(fmt, &apc);
# 4986| va_end(apc);
# 4987| #else
Error: CPPCHECK_WARNING (CWE-664): [#def301]
perl-5.38.2-build/perl-5.38.2/perlio.c:4986: error[va_list_usedBeforeStarted]: va_list 'apc' used before va_start() was called.
# 4984| Perl_va_copy(ap, apc);
# 4985| sv = vnewSVpvf(fmt, &apc);
# 4986|-> va_end(apc);
# 4987| #else
# 4988| sv = vnewSVpvf(fmt, &ap);
Error: CPPCHECK_WARNING: [#def302]
perl-5.38.2-build/perl-5.38.2/perlmain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def303]
perl-5.38.2-build/perl-5.38.2/perly.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def304]
perl-5.38.2-build/perl-5.38.2/perly.c:449: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perly.y: scope_hint: In function ‘Perl_yyparse’
perl-5.38.2-build/perl-5.38.2/perly.y:993:45: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aux’
perl-5.38.2-build/perl-5.38.2/perly.c:75: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perly.c:300:15: note: in expansion of macro ‘YYTRANSLATE’
perl-5.38.2-build/perl-5.38.2/perl.h:4485: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perly.c:26: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perly.y:991:37: note: in expansion of macro ‘PerlMemShared_malloc’
# 991| PerlMemShared_malloc(
# 992| sizeof(struct op_argcheck_aux));
# 993|-> aux->params = parser->sig_elems;
# 994| aux->opt_params = parser->sig_optelems;
# 995| aux->slurpy = parser->sig_slurpy;
Error: CPPCHECK_WARNING: [#def305]
perl-5.38.2-build/perl-5.38.2/pp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def306]
perl-5.38.2-build/perl-5.38.2/pp_ctl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def307]
perl-5.38.2-build/perl-5.38.2/pp_ctl.c:57:44: warning: missing terminating ' character
# 57 | if (cxix < 0)
# | ^
# 55| else {
# 56| cxix = dopopto_cursub();
# 57|-> if (cxix < 0)
# 58| RETPUSHUNDEF;
# 59| cx = &cxstack[cxix];
Error: CPPCHECK_WARNING: [#def308]
perl-5.38.2-build/perl-5.38.2/pp_hot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def309]
perl-5.38.2-build/perl-5.38.2/pp_pack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def310]
perl-5.38.2-build/perl-5.38.2/pp_pack.c:3111: error[uninitvar]: Uninitialized variable: buffer
# 3109| if (from_utf8) {
# 3110| char buffer[64];
# 3111|-> if (!S_utf8_to_bytes(aTHX_ &aptr, aend, buffer, todo,
# 3112| 'u' | TYPE_IS_PACK)) {
# 3113| *cur = '\0';
Error: CPPCHECK_WARNING: [#def311]
perl-5.38.2-build/perl-5.38.2/pp_sort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def312]
perl-5.38.2-build/perl-5.38.2/pp_sort.c:375:19: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 373| f1 = p1 = list1 + offset; /* start of first run */
# 374| p = tp2 = list2 + offset; /* where merged run will go */
# 375|-> t = NEXT(p); /* where first run ends */
# 376| f2 = l1 = POTHER(t, list2, list1); /* ... on the other side */
# 377| t = NEXT(t); /* where second runs ends */
Error: CLANG_WARNING: [#def313]
perl-5.38.2-build/perl-5.38.2/pp_sort.c:464:17: warning[deadcode.DeadStores]: Value stored to 'p1' is never read
# 462| if (f2 < l2) FROMTOUPTO(f2, tp2, l2);
# 463| } else FROMTOUPTO(f1, tp2, l1);
# 464|-> p1 = NEXT(p1) = POTHER(tp2, list2, list1);
# 465|
# 466| if (--level == 0) goto done;
Error: GCC_ANALYZER_WARNING (CWE-127): [#def314]
perl-5.38.2-build/perl-5.38.2/pp_sort.c:469:28: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
perl-5.38.2-build/perl-5.38.2/pp_sort.c: scope_hint: In function ‘sortsv_cmp_locale’
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pp_sort.c:31: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pp_sort.c:654:5: note: in expansion of macro ‘sortsv_flags_impl’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:469:28: note: valid subscripts for ‘stack’ are ‘[0]’ to ‘[59]’
# └──────────────────────┘
# ^
# 467| --stackp;
# 468| t = list1; list1 = list2; list2 = t; /* swap lists */
# 469|-> } while ((runs = stackp->runs) == 0);
# 470| }
# 471|
Error: CLANG_WARNING: [#def315]
perl-5.38.2-build/perl-5.38.2/pp_sort.c:469:28: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 467| --stackp;
# 468| t = list1; list1 = list2; list2 = t; /* swap lists */
# 469|-> } while ((runs = stackp->runs) == 0);
# 470| }
# 471|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def316]
perl-5.38.2-build/perl-5.38.2/pp_sort.c: scope_hint: In function ‘Perl_pp_sort’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:741:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.38.2-build/perl-5.38.2/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:717:5: note: in expansion of macro ‘ENTER’
perl-5.38.2-build/perl-5.38.2/perl.h:4538: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/op.h:1080:39: note: in definition of macro ‘OpSIBLING’
perl-5.38.2-build/perl-5.38.2/op.h:474:25: note: in expansion of macro ‘cLISTOPx’
perl-5.38.2-build/perl-5.38.2/op.h:474:34: note: in expansion of macro ‘PL_op’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:739:36: note: in expansion of macro ‘cLISTOP’
perl-5.38.2-build/perl-5.38.2/pp_sort.c:739:26: note: in expansion of macro ‘OpSIBLING’
# 739| OP *nullop = OpSIBLING(cLISTOP->op_first); /* pass pushmark */
# 740| assert(nullop->op_type == OP_NULL);
# 741|-> PL_sortcop = nullop->op_next;
# 742| }
# 743| else {
Error: CLANG_WARNING: [#def317]
perl-5.38.2-build/perl-5.38.2/pp_sort.c:762:41: warning[deadcode.DeadStores]: Value stored to 'cv' is never read
# 760| }
# 761| else if (!CvANON(cv) && (gv = CvGV(cv))) {
# 762|-> if (cv != GvCV(gv)) cv = GvCV(gv);
# 763| autoload:
# 764| if (!autogv && (
Error: CPPCHECK_WARNING: [#def318]
perl-5.38.2-build/perl-5.38.2/pp_sys.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def319]
perl-5.38.2-build/perl-5.38.2/pp_sys.c: scope_hint: In function ‘Perl_pp_listen’
perl-5.38.2-build/perl-5.38.2/pp_sys.c:2601:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘Perl_PerlIO_fileno(my_perl, *<unknown>.sv_u.svu_fp)’
perl-5.38.2-build/perl-5.38.2/perl.h:4485: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pp_sys.c:2601:9: note: in expansion of macro ‘PerlSock_listen’
# 2599| goto nuts;
# 2600|
# 2601|-> if (PerlSock_listen(PerlIO_fileno(IoIFP(io)), backlog) >= 0)
# 2602| RETPUSHYES;
# 2603| else
Error: COMPILER_WARNING (CWE-1164): [#def320]
perl-5.38.2-build/perl-5.38.2/perl.h:6188: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/_cflags.c:2: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/proto.h:621:1: warning[-Wunused-function]: ‘Perl_croak_memory_wrap’ declared ‘static’ but never defined
# 621 | Perl_croak_memory_wrap(void)
# | ^~~~~~~~~~~~~~~~~~~~~~
# 619|
# 620| PERL_STATIC_NO_RET void
# 621|-> Perl_croak_memory_wrap(void)
# 622| __attribute__noreturn__;
# 623| #define PERL_ARGS_ASSERT_CROAK_MEMORY_WRAP
Error: CPPCHECK_WARNING: [#def321]
perl-5.38.2-build/perl-5.38.2/reentr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def322]
perl-5.38.2-build/perl-5.38.2/regcomp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def323]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:14: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/reginline.h: scope_hint: In function ‘Perl_regnode_after’
perl-5.38.2-build/perl-5.38.2/regcomp.h:514:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
perl-5.38.2-build/perl-5.38.2/regcomp.h:527:28: note: in definition of macro ‘STR_SZ’
perl-5.38.2-build/perl-5.38.2/regcomp.h:520:50: note: in expansion of macro ‘STR_LENl’
perl-5.38.2-build/perl-5.38.2/reginline.h:42:23: note: in expansion of macro ‘STR_LEN’
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:9: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/perl.h:7812: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:608:9: note: in expansion of macro ‘sv_setiv’
perl-5.38.2-build/perl-5.38.2/regcomp.h:652:37: note: in expansion of macro ‘regnode_after’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:651:26: note: in expansion of macro ‘REGNODE_AFTER’
perl-5.38.2-build/perl-5.38.2/regcomp.h:652:37: note: in expansion of macro ‘regnode_after’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:651:26: note: in expansion of macro ‘REGNODE_AFTER’
perl-5.38.2-build/perl-5.38.2/regcomp.h:1551: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/reginline.h:41:19: note: in expansion of macro ‘REGNODE_ARG_LEN_VARIES’
perl-5.38.2-build/perl-5.38.2/regcomp.h:652:37: note: in expansion of macro ‘regnode_after’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:651:26: note: in expansion of macro ‘REGNODE_AFTER’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:650:44: note: in expansion of macro ‘regnext’
perl-5.38.2-build/perl-5.38.2/reginline.h:16:9: note: in expansion of macro ‘OP’
perl-5.38.2-build/perl-5.38.2/regcomp.h:1545:59: note: in definition of macro ‘REGNODE_OFF_BY_ARG’
perl-5.38.2-build/perl-5.38.2/reginline.h:21:34: note: in expansion of macro ‘OP’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:650:44: note: in expansion of macro ‘regnext’
perl-5.38.2-build/perl-5.38.2/regcomp.h:652:37: note: in expansion of macro ‘regnode_after’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:651:26: note: in expansion of macro ‘REGNODE_AFTER’
perl-5.38.2-build/perl-5.38.2/regcomp.h:652:37: note: in expansion of macro ‘regnode_after’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:651:26: note: in expansion of macro ‘REGNODE_AFTER’
perl-5.38.2-build/perl-5.38.2/reginline.h:41:19: note: in expansion of macro ‘REGNODE_ARG_LEN_VARIES’
perl-5.38.2-build/perl-5.38.2/regcomp.h:527:28: note: in definition of macro ‘STR_SZ’
perl-5.38.2-build/perl-5.38.2/reginline.h:42:23: note: in expansion of macro ‘STR_LEN’
perl-5.38.2-build/perl-5.38.2/regcomp.h:527:28: note: in definition of macro ‘STR_SZ’
perl-5.38.2-build/perl-5.38.2/regcomp.h:520:50: note: in expansion of macro ‘STR_LENl’
perl-5.38.2-build/perl-5.38.2/reginline.h:42:23: note: in expansion of macro ‘STR_LEN’
perl-5.38.2-build/perl-5.38.2/regcomp.h:527:28: note: in definition of macro ‘STR_SZ’
perl-5.38.2-build/perl-5.38.2/regcomp.h:520:50: note: in expansion of macro ‘STR_LENl’
perl-5.38.2-build/perl-5.38.2/reginline.h:42:23: note: in expansion of macro ‘STR_LEN’
# 512| * and even an lllstring type. */
# 513| #define STR_LENl(p) (__ASSERT_(OP(p) == LEXACT || OP(p) == LEXACT_REQ8) \
# 514|-> (((struct regnode_lstring *)p)->str_len_u32))
# 515| #define STRINGl(p) (__ASSERT_(OP(p) == LEXACT || OP(p) == LEXACT_REQ8) \
# 516| (((struct regnode_lstring *)p)->string))
Error: CPPCHECK_WARNING: [#def324]
perl-5.38.2-build/perl-5.38.2/regcomp_debug.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def325]
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def326]
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c:818:9: warning[deadcode.DeadStores]: Value stored to 'array_u' is never read
# 816| invlist_set_len(u, len_u, *get_invlist_offset_addr(u));
# 817| invlist_trim(u);
# 818|-> array_u = invlist_array(u);
# 819| }
# 820|
Error: CLANG_WARNING: [#def327]
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c:1052:9: warning[deadcode.DeadStores]: Value stored to 'array_r' is never read
# 1050| invlist_set_len(r, len_r, *get_invlist_offset_addr(r));
# 1051| invlist_trim(r);
# 1052|-> array_r = invlist_array(r);
# 1053| }
# 1054|
Error: CLANG_WARNING: [#def328]
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c:1167:13: warning[deadcode.DeadStores]: Value stored to 'i_s' is never read
# 1165| * extend it, we have to insert it as an additional range */
# 1166| if (end < array[0] - 1) {
# 1167|-> i_s = i_e = -1;
# 1168| goto splice_in_new_range;
# 1169| }
Error: CLANG_WARNING: [#def329]
perl-5.38.2-build/perl-5.38.2/regcomp_invlist.c:1530:15: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1528|
# 1529| return len_a == len_b
# 1530|-> && memEQ(array_a, array_b, len_a * sizeof(array_a[0]));
# 1531|
# 1532| }
Error: CLANG_WARNING: [#def330]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:583:27: warning[core.uninitialized.ArraySubscript]: Array subscript is undefined
# 581|
# 582| SV* anded_cp_list;
# 583|-> U8 and_with_flags = (REGNODE_TYPE(OP(and_with)) == ANYOF)
# 584| ? ANYOF_FLAGS(and_with)
# 585| : 0;
Error: CLANG_WARNING: [#def331]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:768:26: warning[core.uninitialized.ArraySubscript]: Array subscript is undefined
# 766| SV* ored_cp_list;
# 767| U8 ored_flags;
# 768|-> U8 or_with_flags = (REGNODE_TYPE(OP(or_with)) == ANYOF)
# 769| ? ANYOF_FLAGS(or_with)
# 770| : 0;
Error: CLANG_WARNING: [#def332]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:1839:41: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 1837| delta += max1 - min1;
# 1838| if (flags & SCF_DO_STCLASS_OR) {
# 1839|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass*) &accum);
# 1840| if (min1) {
# 1841| ssc_and(pRExC_state, data->start_class, (regnode_charclass *) and_withp);
Error: CLANG_WARNING: [#def333]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:1854:25: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 1852| * data->start_class */
# 1853| INIT_AND_WITHP;
# 1854|-> StructCopy(data->start_class, and_withp, regnode_ssc);
# 1855| flags &= ~SCF_DO_STCLASS_AND;
# 1856| StructCopy(&accum, data->start_class, regnode_ssc);
Error: CLANG_WARNING: [#def334]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:2288:38: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2286| is_inf = is_inf_internal = 1;
# 2287| if (flags & SCF_DO_STCLASS_OR) /* Allow everything */
# 2288|-> ssc_anything(data->start_class);
# 2289| flags &= ~SCF_DO_STCLASS;
# 2290|
Error: CLANG_WARNING: [#def335]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:2590:30: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2588| if (flags & SCF_DO_STCLASS) {
# 2589| ssc_init(pRExC_state, &this_class);
# 2590|-> oclass = data->start_class;
# 2591| data->start_class = &this_class;
# 2592| f |= SCF_DO_STCLASS_AND;
Error: CLANG_WARNING: [#def336]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:2625:45: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2623| if (mincount == 0 || minnext == 0) {
# 2624| if (flags & SCF_DO_STCLASS_OR) {
# 2625|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass *) &this_class);
# 2626| }
# 2627| else if (flags & SCF_DO_STCLASS_AND) {
Error: CLANG_WARNING: [#def337]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:2631:25: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2629| * data->start_class */
# 2630| INIT_AND_WITHP;
# 2631|-> StructCopy(data->start_class, and_withp, regnode_ssc);
# 2632| flags &= ~SCF_DO_STCLASS_AND;
# 2633| StructCopy(&this_class, data->start_class, regnode_ssc);
Error: CLANG_WARNING: [#def338]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:2640:45: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2638| } else { /* Non-zero len */
# 2639| if (flags & SCF_DO_STCLASS_OR) {
# 2640|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass *) &this_class);
# 2641| ssc_and(pRExC_state, data->start_class, (regnode_charclass *) and_withp);
# 2642| }
Error: CLANG_WARNING: [#def339]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:2644:46: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2642| }
# 2643| else if (flags & SCF_DO_STCLASS_AND)
# 2644|-> ssc_and(pRExC_state, data->start_class, (regnode_charclass *) &this_class);
# 2645| flags &= ~SCF_DO_STCLASS;
# 2646| }
Error: CLANG_WARNING: [#def340]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:2851:25: warning[core.NullDereference]: Access to field 'last_end' results in a dereference of a null pointer (loaded from variable 'data')
# 2849| int counted = mincount != 0;
# 2850|
# 2851|-> if (data->last_end > 0 && mincount != 0) { /* Ends with a
# 2852| string. */
# 2853| SSize_t b = pos_before >= data->last_start_min
Error: CLANG_WARNING: [#def341]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:3271:17: warning[deadcode.DeadStores]: Value stored to 'next' is never read
# 3269| if (flags & SCF_WHILEM_VISITED_POS)
# 3270| f |= SCF_WHILEM_VISITED_POS;
# 3271|-> next = regnext(scan);
# 3272| nscan = REGNODE_AFTER(scan);
# 3273|
Error: CLANG_WARNING: [#def342]
perl-5.38.2-build/perl-5.38.2/regcomp_study.c:3328:47: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 3326| * See [perl #56690].
# 3327| */
# 3328|-> ssc_init(pRExC_state, data->start_class);
# 3329| } else {
# 3330| /* AND before and after: combine and continue. These
Error: CPPCHECK_WARNING: [#def343]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def344]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c: scope_hint: In function ‘Perl_make_trie’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:591:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘trie’
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/perl.h:4485: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:590:30: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:590:30: note: in expansion of macro ‘PerlMemShared_calloc’
# 589| /* create the trie struct, all zeroed */
# 590| trie = (reg_trie_data *) PerlMemShared_calloc( 1, sizeof(reg_trie_data) );
# 591|-> trie->refcount = 1;
# 592| trie->startstate = 1;
# 593| trie->wordcount = word_count;
Error: CLANG_WARNING: [#def345]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:823:25: warning[core.NullDereference]: Dereference of null pointer
# 821| : ARG2a(first); /* BRANCHJ */
# 822|
# 823|-> trie->after_paren = OP(lastbranch) == BRANCH
# 824| ? ARG1b(lastbranch)
# 825| : ARG2b(lastbranch); /* BRANCHJ */
Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1017:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:819:26: note: in expansion of macro ‘OP’
perl-5.38.2-build/perl-5.38.2/handy.h:2772:32: note: in expansion of macro ‘MEM_WRAP_CHECK’
perl-5.38.2-build/perl-5.38.2/handy.h:2849:31: note: in expansion of macro ‘MEM_WRAP_CHECK_’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:857:5: note: in expansion of macro ‘Newx’
perl-5.38.2-build/perl-5.38.2/handy.h:2840:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.38.2-build/perl-5.38.2/perl.h:1755:23: note: in expansion of macro ‘safesysmalloc’
perl-5.38.2-build/perl-5.38.2/handy.h:2849:74: note: in expansion of macro ‘safemalloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:857:5: note: in expansion of macro ‘Newx’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:881:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:975:13: note: in expansion of macro ‘PerlMemShared_realloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:986:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1018:29: note: in expansion of macro ‘PerlMemShared_realloc’
# 1015| if ( transcount < tp + maxid - minid + 1) {
# 1016| transcount *= 2;
# 1017|-> trie->trans = (reg_trie_trans *)
# 1018| PerlMemShared_realloc( trie->trans,
# 1019| transcount
Error: GCC_ANALYZER_WARNING (CWE-476): [#def347]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1039:52: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*trie.trans + (long unsigned int)tp * 8’
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/av.h:212:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.38.2-build/perl-5.38.2/av.h:212:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:544:22: note: in expansion of macro ‘newAV’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:819:26: note: in expansion of macro ‘OP’
perl-5.38.2-build/perl-5.38.2/handy.h:2772:32: note: in expansion of macro ‘MEM_WRAP_CHECK’
perl-5.38.2-build/perl-5.38.2/handy.h:2849:31: note: in expansion of macro ‘MEM_WRAP_CHECK_’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:857:5: note: in expansion of macro ‘Newx’
perl-5.38.2-build/perl-5.38.2/handy.h:2840:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.38.2-build/perl-5.38.2/perl.h:1755:23: note: in expansion of macro ‘safesysmalloc’
perl-5.38.2-build/perl-5.38.2/handy.h:2849:74: note: in expansion of macro ‘safemalloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:857:5: note: in expansion of macro ‘Newx’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:881:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:975:13: note: in expansion of macro ‘PerlMemShared_realloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:986:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1039:54: note: in expansion of macro ‘TRIE_LIST_ITEM’
# 1037| }
# 1038| if ( !set ) {
# 1039|-> trie->trans[ tp ].next = TRIE_LIST_ITEM( state,
# 1040| 1).newstate;
# 1041| trie->trans[ tp ].check = state;
Error: CLANG_WARNING: [#def348]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1164:39: warning[core.DivideZero]: Division by zero
# 1162| trie->trans[ state ].check++;
# 1163| prev_states[TRIE_NODENUM(next_alloc)]
# 1164|-> = TRIE_NODENUM(state);
# 1165| next_alloc += trie->uniquecharcount;
# 1166| }
Error: CLANG_WARNING: [#def349]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1181:28: warning[core.DivideZero]: Division by zero
# 1179| noper= REGNODE_AFTER(cur);
# 1180| }
# 1181|-> accept_state = TRIE_NODENUM( state );
# 1182| TRIE_HANDLE_WORD(accept_state);
# 1183|
Error: CLANG_WARNING: [#def350]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1253:31: warning[core.DivideZero]: Division by zero
# 1251| demq
# 1252| */
# 1253|-> const U32 laststate = TRIE_NODENUM( next_alloc );
# 1254| U32 state, charid;
# 1255| U32 pos = 0, zp=0;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def351]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1655:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aho’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1646:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1653:27: note: in expansion of macro ‘PerlMemShared_calloc’
# 1653| aho = (reg_ac_data *) PerlMemShared_calloc( 1, sizeof(reg_ac_data) );
# 1654| RExC_rxi->data->data[ data_slot ] = (void*)aho;
# 1655|-> aho->trie=trie_offset;
# 1656| aho->states=(reg_trie_state *)PerlMemShared_malloc( numstates * sizeof(reg_trie_state) );
# 1657| Copy( trie->states, aho->states, numstates, reg_trie_state );
Error: GCC_ANALYZER_WARNING (CWE-476): [#def352]
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1664:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)numstates, 4)’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1646:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.38.2-build/perl-5.38.2/regcomp_trie.c:1659:25: note: in expansion of macro ‘PerlMemShared_calloc’
# 1662| /* initialize fail[0..1] to be 1 so that we always have
# 1663| a valid final fail state */
# 1664|-> fail[ 0 ] = fail[ 1 ] = 1;
# 1665|
# 1666| for ( charid = 0; charid < ucharcount ; charid++ ) {
Error: CPPCHECK_WARNING: [#def353]
perl-5.38.2-build/perl-5.38.2/regexec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def354]
perl-5.38.2-build/perl-5.38.2/regexec.c:208:253: warning: missing terminating " character
# 208 | rn = REGNODE_AFTER_type(rn,tregnode_PLUS); \
# | ^
# 206| rn = REGNODE_AFTER_opcode(rn,type); \
# 207| else if (type == PLUS) \
# 208|-> rn = REGNODE_AFTER_type(rn,tregnode_PLUS); \
# 209| else if (type == IFMATCH) \
# 210| rn = (FLAGS(rn) == 0) ? REGNODE_AFTER_type(rn,tregnode_IFMATCH) : rn + ARG1u(rn); \
Error: CPPCHECK_WARNING: [#def355]
perl-5.38.2-build/perl-5.38.2/run.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def356]
perl-5.38.2-build/perl-5.38.2/scope.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def357]
perl-5.38.2-build/perl-5.38.2/sv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def358]
perl-5.38.2-build/perl-5.38.2/perl.h:4530: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pp_ctl.c:35: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pp_ctl.c: scope_hint: In function ‘S_run_user_filter’
perl-5.38.2-build/perl-5.38.2/sv.h:373:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.38.2-build/perl-5.38.2/sv.h:1659:36: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/pp_ctl.c:6475:33: note: in expansion of macro ‘IoLINES’
perl-5.38.2-build/perl-5.38.2/pp_ctl.c:6474:25: note: in expansion of macro ‘FILTER_DATA’
perl-5.38.2-build/perl-5.38.2/sv.h:1659:36: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/pp_ctl.c:6475:33: note: in expansion of macro ‘IoLINES’
perl-5.38.2-build/perl-5.38.2/sv.h:1659:36: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/pp_ctl.c:6475:33: note: in expansion of macro ‘IoLINES’
# 371| */
# 372|
# 373|-> #define SvANY(sv) (sv)->sv_any
# 374| #define SvFLAGS(sv) (sv)->sv_flags
# 375| #define SvREFCNT(sv) (sv)->sv_refcnt
Error: GCC_ANALYZER_WARNING (CWE-476): [#def359]
perl-5.38.2-build/perl-5.38.2/mg.c: scope_hint: In function ‘Perl_defelem_target’
perl-5.38.2-build/perl-5.38.2/sv.h:373:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sv’
perl-5.38.2-build/perl-5.38.2/sv.h:1648:36: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/mg.c:2638:9: note: in expansion of macro ‘LvTARGLEN’
perl-5.38.2-build/perl-5.38.2/mg.c:2636:19: note: in expansion of macro ‘mg_find’
perl-5.38.2-build/perl-5.38.2/mg.c:2636:19: note: in expansion of macro ‘mg_find’
perl-5.38.2-build/perl-5.38.2/mg.c: scope_hint: In function ‘Perl_defelem_target’
perl-5.38.2-build/perl-5.38.2/mg.c:2636:19: note: in expansion of macro ‘mg_find’
perl-5.38.2-build/perl-5.38.2/sv.h:1648:36: note: in expansion of macro ‘SvANY’
perl-5.38.2-build/perl-5.38.2/mg.c:2638:9: note: in expansion of macro ‘LvTARGLEN’
# 371| */
# 372|
# 373|-> #define SvANY(sv) (sv)->sv_any
# 374| #define SvFLAGS(sv) (sv)->sv_flags
# 375| #define SvREFCNT(sv) (sv)->sv_refcnt
Error: GCC_ANALYZER_WARNING (CWE-476): [#def360]
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perl.c: scope_hint: In function ‘S_mayberelocate’
perl-5.38.2-build/perl-5.38.2/sv.h:374:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.38.2-build/perl-5.38.2/embed.h:440:79: note: in definition of macro ‘newSVpvn_flags’
perl-5.38.2-build/perl-5.38.2/sv.h:1070:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/perl.c:4984:44: note: in expansion of macro ‘SvUTF8’
perl-5.38.2-build/perl-5.38.2/perl.c:4972:38: note: in expansion of macro ‘get_sv’
perl-5.38.2-build/perl-5.38.2/perl.c:4972:38: note: in expansion of macro ‘get_sv’
perl-5.38.2-build/perl-5.38.2/perl.c:4972:38: note: in expansion of macro ‘get_sv’
perl-5.38.2-build/perl-5.38.2/embed.h:440:79: note: in definition of macro ‘newSVpvn_flags’
perl-5.38.2-build/perl-5.38.2/sv.h:1070:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/perl.c:4984:44: note: in expansion of macro ‘SvUTF8’
# 372|
# 373| #define SvANY(sv) (sv)->sv_any
# 374|-> #define SvFLAGS(sv) (sv)->sv_flags
# 375| #define SvREFCNT(sv) (sv)->sv_refcnt
# 376|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def361]
perl-5.38.2-build/perl-5.38.2/perl.h:4530: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.xs:8: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.xs: scope_hint: In function ‘XS_List__Util_uniq’
perl-5.38.2-build/perl-5.38.2/sv.h:374:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg’
perl-5.38.2-build/perl-5.38.2/sv.h:983:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.xs:1376:17: note: in expansion of macro ‘SvOK’
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.xs:9: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/XSUB.h:150:41: note: in definition of macro ‘XS_INTERNAL’
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.c:1630:1: note: in expansion of macro ‘XS_EUPXS’
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/embed.h:612:71: note: in definition of macro ‘sv_2mortal’
perl-5.38.2-build/perl-5.38.2/handy.h:107:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/hv.h:705:17: note: in expansion of macro ‘MUTABLE_HV’
perl-5.38.2-build/perl-5.38.2/hv.h:705:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.xs:1343:30: note: in expansion of macro ‘newHV’
perl-5.38.2-build/perl-5.38.2/perl.h:7812: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/embed.h:612:71: note: in definition of macro ‘sv_2mortal’
perl-5.38.2-build/perl-5.38.2/handy.h:107:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.38.2-build/perl-5.38.2/hv.h:705:17: note: in expansion of macro ‘MUTABLE_HV’
perl-5.38.2-build/perl-5.38.2/hv.h:705:28: note: in expansion of macro ‘newSV_type’
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.xs:1343:30: note: in expansion of macro ‘newHV’
perl-5.38.2-build/perl-5.38.2/sv.h:1117:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/sv.h:1146:34: note: in expansion of macro ‘SvROK’
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.xs:1372:16: note: in expansion of macro ‘SvAMAGIC’
perl-5.38.2-build/perl-5.38.2/pp.h:617:5: note: in expansion of macro ‘amagic_call’
perl-5.38.2-build/perl-5.38.2/pp.h:620:29: note: in expansion of macro ‘AMG_CALLunary’
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.xs:1372:40: note: in expansion of macro ‘AMG_CALLun’
perl-5.38.2-build/perl-5.38.2/sv.h:983:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.xs:1376:17: note: in expansion of macro ‘SvOK’
perl-5.38.2-build/perl-5.38.2/sv.h:983:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/cpan/Scalar-List-Utils/ListUtil.xs:1376:17: note: in expansion of macro ‘SvOK’
# 372|
# 373| #define SvANY(sv) (sv)->sv_any
# 374|-> #define SvFLAGS(sv) (sv)->sv_flags
# 375| #define SvREFCNT(sv) (sv)->sv_refcnt
# 376|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def362]
perl-5.38.2-build/perl-5.38.2/perl.h:4530: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perl.c:38: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/inline.h: scope_hint: In function ‘Perl_av_count’
perl-5.38.2-build/perl-5.38.2/sv.h:374:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘av’
perl-5.38.2-build/perl-5.38.2/sv.h:1133:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/av.h:96:27: note: in expansion of macro ‘SvRMAGICAL’
perl-5.38.2-build/perl-5.38.2/inline.h:61:12: note: in expansion of macro ‘AvFILL’
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perl.c:5135:28: note: in expansion of macro ‘av_count’
perl-5.38.2-build/perl-5.38.2/perl.c:5135:28: note: in expansion of macro ‘av_count’
perl-5.38.2-build/perl-5.38.2/perl.h:7811: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/sv.h:1133:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/av.h:96:27: note: in expansion of macro ‘SvRMAGICAL’
perl-5.38.2-build/perl-5.38.2/inline.h:61:12: note: in expansion of macro ‘AvFILL’
# 372|
# 373| #define SvANY(sv) (sv)->sv_any
# 374|-> #define SvFLAGS(sv) (sv)->sv_flags
# 375| #define SvREFCNT(sv) (sv)->sv_refcnt
# 376|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def363]
perl-5.38.2-build/perl-5.38.2/pp_hot.c: scope_hint: In function ‘Perl_pp_multiconcat’
perl-5.38.2-build/perl-5.38.2/sv.h:374:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘left’
perl-5.38.2-build/perl-5.38.2/sv.h:1074:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/pp_hot.c:1074:22: note: in expansion of macro ‘SvPOK’
perl-5.38.2-build/perl-5.38.2/pp_hot.c:1073:21: note: in expansion of macro ‘PL_op’
perl-5.38.2-build/perl-5.38.2/sv.h:1074:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/pp_hot.c:1074:22: note: in expansion of macro ‘SvPOK’
perl-5.38.2-build/perl-5.38.2/sv.h:1074:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/pp_hot.c:1074:22: note: in expansion of macro ‘SvPOK’
# 372|
# 373| #define SvANY(sv) (sv)->sv_any
# 374|-> #define SvFLAGS(sv) (sv)->sv_flags
# 375| #define SvREFCNT(sv) (sv)->sv_refcnt
# 376|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def364]
perl-5.38.2-build/perl-5.38.2/sv_inline.h: scope_hint: In function ‘Perl_SvGETMAGIC’
perl-5.38.2-build/perl-5.38.2/sv.h:374:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sv’
perl-5.38.2-build/perl-5.38.2/perl.h:4231:62: note: in definition of macro ‘EXPECT’
perl-5.38.2-build/perl-5.38.2/perl.h:4252:52: note: in expansion of macro ‘cBOOL’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:599:9: note: in expansion of macro ‘UNLIKELY’
perl-5.38.2-build/perl-5.38.2/sv.h:1125:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:599:18: note: in expansion of macro ‘SvGMAGICAL’
perl-5.38.2-build/perl-5.38.2/pp_hot.c:3638:1: note: in expansion of macro ‘PP’
perl-5.38.2-build/perl-5.38.2/perl.h:6227: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/pp_hot.c:3692:18: note: in expansion of macro ‘vivify_ref’
perl-5.38.2-build/perl-5.38.2/pp_hot.c:5706:5: note: in expansion of macro ‘SvGETMAGIC’
perl-5.38.2-build/perl-5.38.2/perl.h:4231:62: note: in definition of macro ‘EXPECT’
perl-5.38.2-build/perl-5.38.2/perl.h:4252:52: note: in expansion of macro ‘cBOOL’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:599:9: note: in expansion of macro ‘UNLIKELY’
perl-5.38.2-build/perl-5.38.2/sv.h:1125:34: note: in expansion of macro ‘SvFLAGS’
perl-5.38.2-build/perl-5.38.2/sv_inline.h:599:18: note: in expansion of macro ‘SvGMAGICAL’
# 372|
# 373| #define SvANY(sv) (sv)->sv_any
# 374|-> #define SvFLAGS(sv) (sv)->sv_flags
# 375| #define SvREFCNT(sv) (sv)->sv_refcnt
# 376|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def365]
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs: scope_hint: In function ‘XS_threads__shared__tie_EXISTS’
perl-5.38.2-build/perl-5.38.2/sv.h:402:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:1452:13: note: in expansion of macro ‘SvTYPE’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.c:1675:23: note: in expansion of macro ‘ST’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:1450:20: note: in expansion of macro ‘SHAREDSV_FROM_OBJ’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:1452:13: note: in expansion of macro ‘SvTYPE’
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:1452:13: note: in expansion of macro ‘SvTYPE’
# 400|
# 401| #define SVTYPEMASK 0xff
# 402|-> #define SvTYPE(sv) ((svtype)((sv)->sv_flags & SVTYPEMASK))
# 403|
# 404| /* Sadly there are some parts of the core that have pointers to already-freed
Error: CLANG_WARNING: [#def366]
perl-5.38.2-build/perl-5.38.2/dist/threads-shared/shared.xs:131: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/perl.h:7812: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/sv_inline.h:921:44: warning[core.NullDereference]: Access to field 'sv_flags' results in a dereference of a null pointer (loaded from variable 'sv')
# 919| || (type == SvPVforce_type_ && SvPOK_pure_nogthink(sv))
# 920| || (type == SvPVutf8_type_ && SvPOK_utf8_nog(sv))
# 921|-> || (type == SvPVnormal_type_ && SvPOK_nog(sv))
# 922| || (type == SvPVutf8_pure_type_ && SvPOK_utf8_pure_nogthink(sv))
# 923| || (type == SvPVbyte_pure_type_ && SvPOK_byte_pure_nogthink(sv))
Error: CPPCHECK_WARNING: [#def367]
perl-5.38.2-build/perl-5.38.2/taint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def368]
perl-5.38.2-build/perl-5.38.2/time64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def369]
perl-5.38.2-build/perl-5.38.2/toke.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def370]
perl-5.38.2-build/perl-5.38.2/universal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def371]
perl-5.38.2-build/perl-5.38.2/universal.c:105:17: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 103| if (namesv)
# 104| name = SvPV_nolen(namesv);
# 105|-> if (strEQ(name, type))
# 106| return TRUE;
# 107| }
Error: CPPCHECK_WARNING: [#def372]
perl-5.38.2-build/perl-5.38.2/utf8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def373]
perl-5.38.2-build/perl-5.38.2/utf8.c:798:9: warning[deadcode.DeadStores]: Value stored to 'e' is never read
# 796| len = e - s;
# 797| if (len > full_len) {
# 798|-> e = s + full_len;
# 799| len = full_len;
# 800| }
Error: CLANG_WARNING: [#def374]
perl-5.38.2-build/perl-5.38.2/utf8.c:4468:22: warning[core.NullDereference]: Dereference of null pointer
# 4466| f1 = (U8 *) p1;
# 4467| assert(u1);
# 4468|-> n1 = UTF8SKIP(f1);
# 4469| }
# 4470| else {
Error: CLANG_WARNING: [#def375]
perl-5.38.2-build/perl-5.38.2/utf8.c:4471:21: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p1')
# 4469| }
# 4470| else {
# 4471|-> if (isASCII(*p1) && ! (flags & FOLDEQ_LOCALE)) {
# 4472|
# 4473| /* We have to forbid mixing ASCII with non-ASCII if the
Error: CLANG_WARNING: [#def376]
perl-5.38.2-build/perl-5.38.2/utf8.c:4500:21: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p2')
# 4498| /* Point to the already-folded character. But for non-UTF-8
# 4499| * variants, convert to UTF-8 for the algorithm below */
# 4500|-> if (UTF8_IS_INVARIANT(*p2)) {
# 4501| f2 = (U8 *) p2;
# 4502| n2 = 1;
Error: CLANG_WARNING: [#def377]
perl-5.38.2-build/perl-5.38.2/utf8.c:4516:21: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p2')
# 4514| }
# 4515| else {
# 4516|-> if (isASCII(*p2) && ! (flags & FOLDEQ_LOCALE)) {
# 4517| if ((flags & FOLDEQ_UTF8_NOMIX_ASCII) && ! isASCII(*p1)) {
# 4518| return 0;
Error: CPPCHECK_WARNING: [#def378]
perl-5.38.2-build/perl-5.38.2/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def379]
perl-5.38.2-build/perl-5.38.2/util.c: scope_hint: In function ‘S_mess_alloc.part.0’
perl-5.38.2-build/perl-5.38.2/util.c:1391:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Perl_safesysmalloc(24)’
perl-5.38.2-build/perl-5.38.2/perl.h:3327: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/util.c:26: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/handy.h:2840:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.38.2-build/perl-5.38.2/perl.h:1755:23: note: in expansion of macro ‘safesysmalloc’
perl-5.38.2-build/perl-5.38.2/handy.h:2849:74: note: in expansion of macro ‘safemalloc’
perl-5.38.2-build/perl-5.38.2/util.c:1389:5: note: in expansion of macro ‘Newx’
perl-5.38.2-build/perl-5.38.2/perl.h:207:25: note: in expansion of macro ‘pTHX’
perl-5.38.2-build/perl-5.38.2/util.c:205:13: note: in expansion of macro ‘dTHX’
perl-5.38.2-build/perl-5.38.2/handy.h:2840:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.38.2-build/perl-5.38.2/perl.h:1755:23: note: in expansion of macro ‘safesysmalloc’
perl-5.38.2-build/perl-5.38.2/handy.h:2849:74: note: in expansion of macro ‘safemalloc’
perl-5.38.2-build/perl-5.38.2/util.c:1389:5: note: in expansion of macro ‘Newx’
perl-5.38.2-build/perl-5.38.2/handy.h:2840:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.38.2-build/perl-5.38.2/perl.h:1756:23: note: in expansion of macro ‘safesyscalloc’
perl-5.38.2-build/perl-5.38.2/handy.h:2851:74: note: in expansion of macro ‘safecalloc’
perl-5.38.2-build/perl-5.38.2/util.c:1390:5: note: in expansion of macro ‘Newxz’
perl-5.38.2-build/perl-5.38.2/handy.h:2840:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.38.2-build/perl-5.38.2/perl.h:1756:23: note: in expansion of macro ‘safesyscalloc’
perl-5.38.2-build/perl-5.38.2/handy.h:2851:74: note: in expansion of macro ‘safecalloc’
perl-5.38.2-build/perl-5.38.2/util.c:1390:5: note: in expansion of macro ‘Newxz’
# 1389| Newx(sv, 1, SV);
# 1390| Newxz(any, 1, XPVMG);
# 1391|-> SvFLAGS(sv) = SVt_PVMG;
# 1392| SvANY(sv) = (void*)any;
# 1393| SvPV_set(sv, NULL);
Error: CLANG_WARNING: [#def380]
perl-5.38.2-build/perl-5.38.2/universal.c:1277: included_from: Included from here.
perl-5.38.2-build/perl-5.38.2/vxs.inc:191:18: warning[deadcode.DeadStores]: Value stored to 'classname' during its initialization is never read
# 189| SV *vs;
# 190| SV *rv;
# 191|-> const char * classname = "";
# 192| STRLEN len;
# 193| U32 flags = 0;
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-35.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | perl-5.38.2-506.fc40 |
store-results-to | /tmp/tmpaocige10/perl-5.38.2-506.fc40.tar.xz |
time-created | 2024-07-03 16:33:00 |
time-finished | 2024-07-03 16:43:14 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpaocige10/perl-5.38.2-506.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpaocige10/perl-5.38.2-506.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |