perl-5.40.0-509.fc41
List of Defects
Error: COMPILER_WARNING (CWE-1164): [#def1]
perl-5.40.0-build/perl-5.40.0/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.40.0-build/perl-5.40.0/UU/dirfd.c: scope_hint: In function ‘main’
perl-5.40.0-build/perl-5.40.0/UU/dirfd.c:26:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘opendir(".")’ where non-null expected
perl-5.40.0-build/perl-5.40.0/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.40.0-build/perl-5.40.0/UU/signal.c: scope_hint: In function ‘main’
perl-5.40.0-build/perl-5.40.0/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.40.0-build/perl-5.40.0/ext/POSIX/POSIX.xs:12: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.c: scope_hint: In function ‘XS_POSIX_dup2’
perl-5.40.0-build/perl-5.40.0/XSUB.h:329:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘RETVAL’
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.c:4008:5: note: in expansion of macro ‘XSRETURN’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.xs:11: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/embed.h:104:65: note: in definition of macro ‘SvIV’
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.c:3975:33: note: in expansion of macro ‘ST’
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.c:4001:21: note: in expansion of macro ‘sv_setpvn’
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.c:4008: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.40.0-build/perl-5.40.0/_cflags.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
perl-5.40.0-build/perl-5.40.0/av.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
perl-5.40.0-build/perl-5.40.0/builtin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def8]
perl-5.40.0-build/perl-5.40.0/builtin.c:328:25: warning[deadcode.DeadStores]: Although the value stored to 'name' is used in the enclosing expression, the value is never actually read from 'name'
# 326| /* overwrites the pointer on the stack; but this is fine, the
# 327| * caller's value isn't modified */
# 328|-> ST(i) = name = sv_2mortal(Perl_newSVpvf(aTHX_ "&%" SVf, SVfARG(name)));
# 329|
# 330| /* FALLTHROUGH */
Error: CPPCHECK_WARNING: [#def9]
perl-5.40.0-build/perl-5.40.0/caretx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
perl-5.40.0-build/perl-5.40.0/class.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def11]
perl-5.40.0-build/perl-5.40.0/class.c:290:13: warning[deadcode.DeadStores]: Value stored to 'max_fieldix' during its initialization is never read
# 288|
# 289| U32 fieldcount = (aux++)->uv;
# 290|-> U32 max_fieldix = (aux++)->uv;
# 291|
# 292| assert((U32)(ObjectMAXFIELD(instance)+1) > max_fieldix);
Error: CLANG_WARNING: [#def12]
perl-5.40.0-build/perl-5.40.0/class.c:399:19: warning[deadcode.DeadStores]: Value stored to 'padix' during its initialization is never read
# 397| * still need to give it a name. Make it unusable from pure perl
# 398| */
# 399|-> PADOFFSET padix = pad_add_name_pvs("$(self)", 0, NULL, NULL);
# 400| assert(padix == PADIX_SELF);
# 401|
Error: CLANG_WARNING: [#def13]
perl-5.40.0-build/perl-5.40.0/class.c:402:9: warning[deadcode.DeadStores]: Value stored to 'padix' is never read
# 400| assert(padix == PADIX_SELF);
# 401|
# 402|-> padix = pad_add_name_pvs("%(params)", 0, NULL, NULL);
# 403| assert(padix == PADIX_PARAMS);
# 404|
Error: CLANG_WARNING: [#def14]
perl-5.40.0-build/perl-5.40.0/class.c:720:17: warning[core.NullDereference]: Access to field 'op_moresib' results in a dereference of a null pointer (loaded from variable 'valop')
# 718|
# 719| valop = o;
# 720|-> OpLASTSIB_set(valop, NULL);
# 721|
# 722| ops = op_append_list(OP_LINESEQ, ops, fieldcop);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
perl-5.40.0-build/perl-5.40.0/class.c:782:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aux’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/hv.h:705:17: note: in expansion of macro ‘MUTABLE_HV’
perl-5.40.0-build/perl-5.40.0/hv.h:705:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/class.c:658:32: note: in expansion of macro ‘newHV’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/hv.h:705:17: note: in expansion of macro ‘MUTABLE_HV’
perl-5.40.0-build/perl-5.40.0/hv.h:705:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/class.c:658:32: note: in expansion of macro ‘newHV’
perl-5.40.0-build/perl-5.40.0/class.c:698:27: note: in expansion of macro ‘PadnamelistARRAY’
perl-5.40.0-build/perl-5.40.0/class.c:725:29: note: in expansion of macro ‘PadnameFIELDINFO’
perl-5.40.0-build/perl-5.40.0/perl.h:4496: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/class.c:779:36: note: in expansion of macro ‘PerlMemShared_malloc’
# 780| sizeof(UNOP_AUX_item) * 2);
# 781|
# 782|-> aux[0].uv = fieldix;
# 783|
# 784| OP *fieldop = newUNOP_AUX(OP_INITFIELD, valop ? OPf_STACKED : 0, valop, aux);
Error: CLANG_WARNING: [#def16]
perl-5.40.0-build/perl-5.40.0/class.c:843:5: warning[deadcode.DeadStores]: Value stored to 'padix' is never read
# 841| PADOFFSET padix;
# 842|
# 843|-> padix = pad_add_name_pvs("$self", 0, NULL, NULL);
# 844| assert(padix == PADIX_SELF);
# 845| PERL_UNUSED_VAR(padix);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
perl-5.40.0-build/perl-5.40.0/class.c: scope_hint: In function ‘Perl_class_wrap_method_body’
perl-5.40.0-build/perl-5.40.0/class.c:898:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aux’
perl-5.40.0-build/perl-5.40.0/pad.h:319:34: note: in definition of macro ‘PadlistARRAY’
perl-5.40.0-build/perl-5.40.0/class.c:868:24: note: in expansion of macro ‘PadlistNAMES’
perl-5.40.0-build/perl-5.40.0/cv.h:66:20: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/cv.h:66:32: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/class.c:868:37: note: in expansion of macro ‘CvPADLIST’
perl-5.40.0-build/perl-5.40.0/class.c:868:47: note: in expansion of macro ‘PL_compcv’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/class.c:870:20: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/class.c:870:20: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/iperlsys.h:894:57: note: in definition of macro ‘PerlMemShared_malloc’
perl-5.40.0-build/perl-5.40.0/class.c:893:45: note: in expansion of macro ‘av_count’
perl-5.40.0-build/perl-5.40.0/class.c:891:32: note: in expansion of macro ‘PerlMemShared_malloc’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/class.c:898:22: note: in expansion of macro ‘av_count’
perl-5.40.0-build/perl-5.40.0/perl.h:7869: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perl.h:4541: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/av.h:81:36: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/av.h:97:54: note: in expansion of macro ‘AvFILLp’
perl-5.40.0-build/perl-5.40.0/inline.h:61:12: note: in expansion of macro ‘AvFILL’
perl-5.40.0-build/perl-5.40.0/class.c:898:22: note: in expansion of macro ‘av_count’
# 896| UNOP_AUX_item *ap = aux;
# 897|
# 898|-> (ap++)->uv = av_count(fieldmap) / 2;
# 899| (ap++)->uv = max_fieldix;
# 900|
Error: CLANG_WARNING: [#def18]
perl-5.40.0-build/perl-5.40.0/class.c:988:5: warning[deadcode.DeadStores]: Value stored to 'padix' is never read
# 986| PADOFFSET padix;
# 987|
# 988|-> padix = pad_add_name_pvs("$self", 0, NULL, NULL);
# 989| assert(padix == PADIX_SELF);
# 990|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
perl-5.40.0-build/perl-5.40.0/class.c: scope_hint: In function ‘apply_field_attribute_reader’
perl-5.40.0-build/perl-5.40.0/class.c:1001:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aux’
perl-5.40.0-build/perl-5.40.0/class.c:997:32: note: in expansion of macro ‘PerlMemShared_malloc’
# 999|
# 1000| UNOP_AUX_item *ap = aux;
# 1001|-> (ap++)->uv = 1; /* fieldcount */
# 1002| (ap++)->uv = fieldix; /* max_fieldix */
# 1003|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
perl-5.40.0-build/perl-5.40.0/class.c:1015:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aux’
perl-5.40.0-build/perl-5.40.0/class.c:1013:13: note: in expansion of macro ‘PerlMemShared_malloc’
# 1013| PerlMemShared_malloc(sizeof(*aux));
# 1014|
# 1015|-> aux->params = 0;
# 1016| aux->opt_params = 0;
# 1017| aux->slurpy = 0;
Error: CPPCHECK_WARNING: [#def21]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Bzip2/Bzip2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def22]
perl-5.40.0-build/perl-5.40.0/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: [#def23]
perl-5.40.0-build/perl-5.40.0/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: [#def24]
perl-5.40.0-build/perl-5.40.0/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: CPPCHECK_WARNING: [#def25]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def26]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:1455: error[uninitvar]: Uninitialized variable: RETVAL
# 1453| #line 1454 "Zlib.c"
# 1454| XSprePUSH;
# 1455|-> PUSHu((IV)RETVAL);
# 1456| }
# 1457| XSRETURN(1);
Error: CPPCHECK_WARNING (CWE-457): [#def27]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:1485: error[uninitvar]: Uninitialized variable: RETVAL
# 1483| #line 1484 "Zlib.c"
# 1484| XSprePUSH;
# 1485|-> PUSHu((IV)RETVAL);
# 1486| }
# 1487| XSRETURN(1);
Error: CPPCHECK_WARNING (CWE-457): [#def28]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:2644: error[uninitvar]: Uninitialized variable: RETVAL
# 2642| #line 2643 "Zlib.c"
# 2643| XSprePUSH;
# 2644|-> PUSHi((IV)RETVAL);
# 2645| }
# 2646| XSRETURN(1);
Error: CLANG_WARNING: [#def29]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:2771:6: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
# 2769|
# 2770| if (items < 4)
# 2771|-> eof = FALSE;
# 2772| else {
# 2773| eof = (bool)SvTRUE(ST(3))
Error: CLANG_WARNING: [#def30]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:2773:6: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
# 2771| eof = FALSE;
# 2772| else {
# 2773|-> eof = (bool)SvTRUE(ST(3))
# 2774| ;
# 2775| }
Error: CLANG_WARNING: [#def31]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:3628:6: warning[deadcode.DeadStores]: Value stored to 'out' is never read
# 3626| out = NULL;
# 3627| else {
# 3628|-> out = ST(2)
# 3629| ;
# 3630| }
Error: CLANG_WARNING: [#def32]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:3633:6: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
# 3631|
# 3632| if (items < 4)
# 3633|-> eof = FALSE;
# 3634| else {
# 3635| eof = (bool)SvTRUE(ST(3))
Error: CLANG_WARNING: [#def33]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:3635:6: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
# 3633| eof = FALSE;
# 3634| else {
# 3635|-> eof = (bool)SvTRUE(ST(3))
# 3636| ;
# 3637| }
Error: CPPCHECK_WARNING (CWE-457): [#def34]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:3747: error[uninitvar]: Uninitialized variable: RETVAL
# 3745| SV * RETVALSV;
# 3746| RETVALSV = sv_newmortal();
# 3747|-> setDUALstatus(RETVALSV, RETVAL) ;
# 3748| ST(0) = RETVALSV;
# 3749| }
Error: CPPCHECK_WARNING (CWE-457): [#def35]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:3787: error[uninitvar]: Uninitialized variable: RETVAL
# 3785| #line 3786 "Zlib.c"
# 3786| XSprePUSH;
# 3787|-> PUSHu((IV)RETVAL);
# 3788| }
# 3789| XSRETURN(1);
Error: CPPCHECK_WARNING (CWE-457): [#def36]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:3825: error[uninitvar]: Uninitialized variable: RETVAL
# 3823| #line 3824 "Zlib.c"
# 3824| XSprePUSH;
# 3825|-> PUSHu((IV)RETVAL);
# 3826| }
# 3827| XSRETURN(1);
Error: CPPCHECK_WARNING (CWE-457): [#def37]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:3931: error[uninitvar]: Uninitialized variable: RETVAL
# 3929| #line 3930 "Zlib.c"
# 3930| XSprePUSH;
# 3931|-> PUSHu((IV)RETVAL);
# 3932| }
# 3933| XSRETURN(1);
Error: CPPCHECK_WARNING (CWE-457): [#def38]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:3969: error[uninitvar]: Uninitialized variable: RETVAL
# 3967| #line 3968 "Zlib.c"
# 3968| XSprePUSH;
# 3969|-> PUSHu((IV)RETVAL);
# 3970| }
# 3971| XSRETURN(1);
Error: CLANG_WARNING: [#def39]
perl-5.40.0-build/perl-5.40.0/cpan/Compress-Raw-Zlib/Zlib.c:4243:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 4241| char* file = __FILE__;
# 4242| #else
# 4243|-> const char* file = __FILE__;
# 4244| #endif
# 4245|
Error: CPPCHECK_WARNING: [#def40]
perl-5.40.0-build/perl-5.40.0/cpan/DB_File/DB_File.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def41]
perl-5.40.0-build/perl-5.40.0/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: [#def42]
perl-5.40.0-build/perl-5.40.0/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: [#def43]
perl-5.40.0-build/perl-5.40.0/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: [#def44]
perl-5.40.0-build/perl-5.40.0/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: [#def45]
perl-5.40.0-build/perl-5.40.0/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: [#def46]
perl-5.40.0-build/perl-5.40.0/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: [#def47]
perl-5.40.0-build/perl-5.40.0/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: [#def48]
perl-5.40.0-build/perl-5.40.0/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: [#def49]
perl-5.40.0-build/perl-5.40.0/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: [#def50]
perl-5.40.0-build/perl-5.40.0/cpan/DB_File/version.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def51]
perl-5.40.0-build/perl-5.40.0/cpan/Digest-MD5/MD5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def52]
perl-5.40.0-build/perl-5.40.0/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: [#def53]
perl-5.40.0-build/perl-5.40.0/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): [#def54]
perl-5.40.0-build/perl-5.40.0/cpan/Digest-MD5/MD5.xs:508: warning[uninitvar]: Uninitialized variable: to
# 506| }
# 507| *d = '\0';
# 508|-> return to;
# 509| }
# 510|
Error: CPPCHECK_WARNING: [#def55]
perl-5.40.0-build/perl-5.40.0/cpan/Digest-SHA/SHA.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def56]
perl-5.40.0-build/perl-5.40.0/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): [#def57]
perl-5.40.0-build/perl-5.40.0/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: [#def58]
perl-5.40.0-build/perl-5.40.0/cpan/Encode/Byte/Byte.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def59]
perl-5.40.0-build/perl-5.40.0/cpan/Encode/CN/CN.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def60]
perl-5.40.0-build/perl-5.40.0/cpan/Encode/EBCDIC/EBCDIC.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def61]
perl-5.40.0-build/perl-5.40.0/cpan/Encode/Encode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def62]
perl-5.40.0-build/perl-5.40.0/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: [#def63]
perl-5.40.0-build/perl-5.40.0/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: [#def64]
perl-5.40.0-build/perl-5.40.0/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: [#def65]
perl-5.40.0-build/perl-5.40.0/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: [#def66]
perl-5.40.0-build/perl-5.40.0/cpan/Encode/JP/JP.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def67]
perl-5.40.0-build/perl-5.40.0/cpan/Encode/KR/KR.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def68]
perl-5.40.0-build/perl-5.40.0/cpan/Encode/Symbol/Symbol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def69]
perl-5.40.0-build/perl-5.40.0/cpan/Encode/TW/TW.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def70]
perl-5.40.0-build/perl-5.40.0/cpan/Encode/Unicode/Unicode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def71]
perl-5.40.0-build/perl-5.40.0/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: [#def72]
perl-5.40.0-build/perl-5.40.0/cpan/Encode/encengine.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def73]
perl-5.40.0-build/perl-5.40.0/cpan/Filter-Util-Call/Call.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def74]
perl-5.40.0-build/perl-5.40.0/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: [#def75]
perl-5.40.0-build/perl-5.40.0/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: [#def76]
perl-5.40.0-build/perl-5.40.0/cpan/IPC-SysV/SysV.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def77]
perl-5.40.0-build/perl-5.40.0/cpan/MIME-Base64/Base64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def78]
perl-5.40.0-build/perl-5.40.0/cpan/Math-BigInt-FastCalc/FastCalc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def79]
perl-5.40.0-build/perl-5.40.0/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: [#def80]
perl-5.40.0-build/perl-5.40.0/cpan/Scalar-List-Utils/ListUtil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def81]
perl-5.40.0-build/perl-5.40.0/cpan/Socket/Socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def82]
perl-5.40.0-build/perl-5.40.0/cpan/Socket/Socket.c:1882:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 1880| char* file = __FILE__;
# 1881| #else
# 1882|-> const char* file = __FILE__;
# 1883| #endif
# 1884|
Error: CPPCHECK_WARNING: [#def83]
perl-5.40.0-build/perl-5.40.0/cpan/Sys-Syslog/Syslog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def84]
perl-5.40.0-build/perl-5.40.0/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: [#def85]
perl-5.40.0-build/perl-5.40.0/cpan/Time-Piece/Piece.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def86]
perl-5.40.0-build/perl-5.40.0/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: [#def87]
perl-5.40.0-build/perl-5.40.0/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: [#def88]
perl-5.40.0-build/perl-5.40.0/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: [#def89]
perl-5.40.0-build/perl-5.40.0/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: [#def90]
perl-5.40.0-build/perl-5.40.0/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: [#def91]
perl-5.40.0-build/perl-5.40.0/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: [#def92]
perl-5.40.0-build/perl-5.40.0/cpan/Unicode-Collate/Collate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def93]
perl-5.40.0-build/perl-5.40.0/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: [#def94]
perl-5.40.0-build/perl-5.40.0/deb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def95]
perl-5.40.0-build/perl-5.40.0/dist/Data-Dumper/Dumper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def96]
perl-5.40.0-build/perl-5.40.0/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: [#def97]
perl-5.40.0-build/perl-5.40.0/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: [#def98]
perl-5.40.0-build/perl-5.40.0/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: [#def99]
perl-5.40.0-build/perl-5.40.0/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: [#def100]
perl-5.40.0-build/perl-5.40.0/dist/Devel-PPPort/RealPPPort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def101]
perl-5.40.0-build/perl-5.40.0/dist/Devel-PPPort/RealPPPort.c:5122:6: warning[deadcode.DeadStores]: Value stored to 'offset' during its initialization is never read
# 5120| unsigned char * s = (unsigned char *)SvPV_nolen(ST(0))
# 5121| ;
# 5122|-> int offset = (int)SvIV(ST(1))
# 5123| ;
# 5124| bool RETVAL;
Error: CLANG_WARNING: [#def102]
perl-5.40.0-build/perl-5.40.0/dist/Devel-PPPort/RealPPPort.c:5829:6: warning[deadcode.DeadStores]: Value stored to 'offset' during its initialization is never read
# 5827| unsigned char * s = (unsigned char *)SvPV_nolen(ST(0))
# 5828| ;
# 5829|-> int offset = (int)SvIV(ST(1))
# 5830| ;
# 5831| bool RETVAL;
Error: CPPCHECK_WARNING: [#def103]
perl-5.40.0-build/perl-5.40.0/dist/Devel-PPPort/module2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def104]
perl-5.40.0-build/perl-5.40.0/dist/Devel-PPPort/module3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def105]
perl-5.40.0-build/perl-5.40.0/dist/IO/IO.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def106]
perl-5.40.0-build/perl-5.40.0/dist/IO/poll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def107]
perl-5.40.0-build/perl-5.40.0/dist/PathTools/Cwd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def108]
perl-5.40.0-build/perl-5.40.0/dist/PathTools/Cwd.c:864:7: warning[deadcode.DeadStores]: Value stored to 'self' during its initialization is never read
# 862| {
# 863| SV * RETVAL;
# 864|-> SV * self = ST(0)
# 865| ;
# 866| SV * path;
Error: CLANG_WARNING: [#def109]
perl-5.40.0-build/perl-5.40.0/dist/PathTools/Cwd.c:1102:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 1100| char* file = __FILE__;
# 1101| #else
# 1102|-> const char* file = __FILE__;
# 1103| #endif
# 1104|
Error: CPPCHECK_WARNING: [#def110]
perl-5.40.0-build/perl-5.40.0/dist/Storable/Storable.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def111]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/HiRes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def112]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/HiRes.xs:1528: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1526| fakeop.op_flags = GIMME_V == G_LIST ? OPf_WANT_LIST :
# 1527| GIMME_V == G_SCALAR ? OPf_WANT_SCALAR : OPf_WANT_VOID;
# 1528|-> PL_op = &fakeop;
# 1529| (void)fakeop.op_ppaddr(aTHX);
# 1530| SPAGAIN;
Error: CPPCHECK_WARNING: [#def113]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def114]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c: scope_hint: In function ‘main’
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c:7:13: warning[-Wunused-variable]: unused variable ‘tictoc’
# 7 | clock_t tictoc;
# | ^~~~~~
Error: COMPILER_WARNING (CWE-457): [#def115]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c:9:12: warning[-Wmaybe-uninitialized]: ‘ts1’ may be used uninitialized
# 9 | ret1 = futimens(0, ts1);
# | ^~~~~~~~~~~~~~~~
perl-5.40.0-build/perl-5.40.0/perl.h:1785: 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.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c:8:21: note: ‘ts1’ declared here
# 8 | struct timespec ts1[2], ts2[2];
# | ^~~
Error: COMPILER_WARNING (CWE-252): [#def116]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c: scope_hint: In function ‘main’
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.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): [#def117]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c:12:12: warning[-Wmaybe-uninitialized]: ‘ts1’ may be used uninitialized
# 12 | ret1 = utimensat(AT_FDCWD, "/dev/stdin", ts1, 0);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
perl-5.40.0-build/perl-5.40.0/perl.h:1785: 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.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c:9:21: note: ‘ts1’ declared here
# 9 | struct timespec ts1[2], ts2[2];
# | ^~~
Error: GCC_ANALYZER_WARNING (CWE-457): [#def118]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c: scope_hint: In function ‘main’
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c:13:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ts1[0].tv_nsec’
Error: CLANG_WARNING: [#def119]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c:13:47: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
Error: COMPILER_WARNING (CWE-252): [#def120]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c: scope_hint: In function ‘main’
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.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): [#def121]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c:16:17: warning[-Wunused-but-set-variable]: variable ‘st’ set but not used
# 16 | struct stat st;
# | ^~
Error: GCC_ANALYZER_WARNING (CWE-457): [#def122]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c: scope_hint: In function ‘main’
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c:16:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ts1[0].tv_nsec’
Error: CLANG_WARNING: [#def123]
perl-5.40.0-build/perl-5.40.0/dist/Time-HiRes/tmp25008.c:16:47: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
Error: CPPCHECK_WARNING: [#def124]
perl-5.40.0-build/perl-5.40.0/dist/Unicode-Normalize/Normalize.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def125]
perl-5.40.0-build/perl-5.40.0/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: [#def126]
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def127]
perl-5.40.0-build/perl-5.40.0/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: [#def128]
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def129]
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.c:2232:17: warning[deadcode.DeadStores]: Value stored to 'file' during its initialization is never read
# 2230| char* file = __FILE__;
# 2231| #else
# 2232|-> const char* file = __FILE__;
# 2233| #endif
# 2234|
Error: GCC_ANALYZER_WARNING (CWE-416): [#def130]
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs: scope_hint: In function ‘S_ithread_create’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:1048:17: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘thread’
perl-5.40.0-build/perl-5.40.0/perl.h:6165: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:7: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:787:9: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/perl.h:6371:30: note: in definition of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:787:9: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/perl.h:4496: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:788:29: note: in expansion of macro ‘PerlMemShared_malloc’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:790:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/perl.h:4233:62: note: in definition of macro ‘EXPECT’
perl-5.40.0-build/perl-5.40.0/perl.h:4253:52: note: in expansion of macro ‘cBOOL’
perl-5.40.0-build/perl-5.40.0/perl.h:6362:15: note: in expansion of macro ‘LIKELY’
perl-5.40.0-build/perl-5.40.0/perl.h:6371:33: note: in expansion of macro ‘PERL_SET_LOCALE_CONTEXT’
perl-5.40.0-build/perl-5.40.0/thread.h:414:9: note: in expansion of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:790:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/handy.h:2881:73: note: in expansion of macro ‘memzero’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:805:5: note: in expansion of macro ‘Zero’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:825:5: note: in expansion of macro ‘MUTEX_INIT’
perl-5.40.0-build/perl-5.40.0/perl.h:1829: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/thread.h:204:9: note: in expansion of macro ‘dSAVE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:826:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:826:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:209:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:826:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:903:35: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/perl.h:7870: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:903:35: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:959:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/perl.h:4233:62: note: in definition of macro ‘EXPECT’
perl-5.40.0-build/perl-5.40.0/perl.h:4253:52: note: in expansion of macro ‘cBOOL’
perl-5.40.0-build/perl-5.40.0/perl.h:6362:15: note: in expansion of macro ‘LIKELY’
perl-5.40.0-build/perl-5.40.0/perl.h:6371:33: note: in expansion of macro ‘PERL_SET_LOCALE_CONTEXT’
perl-5.40.0-build/perl-5.40.0/thread.h:414:9: note: in expansion of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:959:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/thread.h:214:9: note: in expansion of macro ‘dSAVE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:1042:9: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:1042:9: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:1042:9: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:300:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:300:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:306:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:209:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:306:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:312:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:312:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:315:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:209:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:315:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:267:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/thread.h:414:9: note: in expansion of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:267:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/thread.h:414:9: note: in expansion of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:267:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/perl.h:4233:62: note: in definition of macro ‘EXPECT’
perl-5.40.0-build/perl-5.40.0/perl.h:4253:52: note: in expansion of macro ‘cBOOL’
perl-5.40.0-build/perl-5.40.0/perl.h:6362:15: note: in expansion of macro ‘LIKELY’
perl-5.40.0-build/perl-5.40.0/perl.h:6371:33: note: in expansion of macro ‘PERL_SET_LOCALE_CONTEXT’
perl-5.40.0-build/perl-5.40.0/thread.h:414:9: note: in expansion of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:267:5: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:322:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:322:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:331:5: note: in expansion of macro ‘PerlMemShared_free’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:339:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:209:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:339:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:341:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads/threads.xs:341:5: note: in expansion of macro ‘MUTEX_UNLOCK’
# 1046| if (ckWARN_d(WARN_THREADS)) {
# 1047| if (rc_stack_size) {
# 1048|-> Perl_warn(aTHX_ "Thread creation failed: pthread_attr_setstacksize(%" IVdf ") returned %d", thread->stack_size, rc_stack_size);
# 1049| } else {
# 1050| Perl_warn(aTHX_ "Thread creation failed: pthread_create returned %d", rc_thread_create);
Error: CPPCHECK_WARNING: [#def131]
perl-5.40.0-build/perl-5.40.0/doio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def132]
perl-5.40.0-build/perl-5.40.0/doio.c:911:17: warning[deadcode.DeadStores]: Value stored to 'len' is never read
# 909| ;
# 910| name = type;
# 911|-> len = tend-type;
# 912| }
# 913| if (*name == '\0') {
Error: CPPCHECK_WARNING: [#def133]
perl-5.40.0-build/perl-5.40.0/doop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def134]
perl-5.40.0-build/perl-5.40.0/doop.c:557:5: warning[deadcode.DeadStores]: Value stored to 's' is never read
# 555|
# 556| s_len = 0;
# 557|-> s += s_len;
# 558| if (! inplace) {
# 559| sv_setpvn(sv, (char*)d0, d - d0);
Error: CLANG_WARNING: [#def135]
perl-5.40.0-build/perl-5.40.0/doop.c:733:29: warning[core.NullDereference]: Access to field 'sv_flags' results in a dereference of a null pointer
# 731| s = SvPV_const(*mark,len);
# 732| sv_catpvn_flags(sv,s,len,
# 733|-> DO_UTF8(*mark) ? SV_CATUTF8 : SV_CATBYTES);
# 734| }
# 735| }
Error: CPPCHECK_WARNING: [#def136]
perl-5.40.0-build/perl-5.40.0/dquote.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def137]
perl-5.40.0-build/perl-5.40.0/dump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def138]
perl-5.40.0-build/perl-5.40.0/dump.c:303:17: warning[deadcode.DeadStores]: Value stored to 'wrote' is never read
# 301| if (dsv)
# 302| Perl_sv_catpvf( aTHX_ dsv,"%s...%s", qe, qs);
# 303|-> wrote += extra_len;
# 304| pv = restart;
# 305| max = tail;
Error: CLANG_WARNING: [#def139]
perl-5.40.0-build/perl-5.40.0/dump.c:915:22: warning[core.NullDereference]: Access to field 'sv_any' results in a dereference of a null pointer
# 913| char ch = (pm->op_pmflags & PMf_ONCE) ? '?' : '/';
# 914| S_opdump_indent(aTHX_ (OP*)pm, level, bar, file, "PMf_PRE %c%.*s%c\n",
# 915|-> ch,(int)RX_PRELEN(PM_GETRE(pm)), RX_PRECOMP(PM_GETRE(pm)), ch);
# 916| }
# 917| else
Error: CLANG_WARNING: [#def140]
perl-5.40.0-build/perl-5.40.0/dump.c:915:47: warning[core.NullDereference]: Dereference of null pointer
# 913| char ch = (pm->op_pmflags & PMf_ONCE) ? '?' : '/';
# 914| S_opdump_indent(aTHX_ (OP*)pm, level, bar, file, "PMf_PRE %c%.*s%c\n",
# 915|-> ch,(int)RX_PRELEN(PM_GETRE(pm)), RX_PRECOMP(PM_GETRE(pm)), ch);
# 916| }
# 917| else
Error: CLANG_WARNING: [#def141]
perl-5.40.0-build/perl-5.40.0/dump.c:2721:48: warning[core.NullDereference]: Access to field 'sv_any' results in a dereference of a null pointer (loaded from field 'xmg_stash')
# 2719| SSize_t count;
# 2720| SV **svp = ObjectFIELDS(sv);
# 2721|-> PADNAME **pname = PadnamelistARRAY(HvAUX(SvSTASH(sv))->xhv_class_fields);
# 2722| for (count = 0;
# 2723| count <= ObjectMAXFIELD(sv) && count < maxnest;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/universal.c:31: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/universal.c: scope_hint: In function ‘S_isa_lookup’
perl-5.40.0-build/perl-5.40.0/embed.h:292:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘canon_name’
perl-5.40.0-build/perl-5.40.0/universal.c:76:13: note: in expansion of macro ‘hv_common’
perl-5.40.0-build/perl-5.40.0/universal.c:70:17: note: in expansion of macro ‘gv_stashsvpvn_cached’
perl-5.40.0-build/perl-5.40.0/perl.h:4541: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/hv.h:315:26: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/hv.h:367:10: note: in expansion of macro ‘HvHasAUX’
perl-5.40.0-build/perl-5.40.0/hv.h:369:10: note: in expansion of macro ‘HvHasENAME_HEK’
perl-5.40.0-build/perl-5.40.0/universal.c:73:27: note: in expansion of macro ‘HvENAME_HEK’
perl-5.40.0-build/perl-5.40.0/perl.h:4550: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/universal.c:74:39: note: in expansion of macro ‘HvNAME_HEK’
perl-5.40.0-build/perl-5.40.0/universal.c:76:13: note: in expansion of macro ‘hv_common’
perl-5.40.0-build/perl-5.40.0/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: [#def143]
perl-5.40.0-build/perl-5.40.0/ext/B/B.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def144]
perl-5.40.0-build/perl-5.40.0/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: [#def145]
perl-5.40.0-build/perl-5.40.0/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: [#def146]
perl-5.40.0-build/perl-5.40.0/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: [#def147]
perl-5.40.0-build/perl-5.40.0/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: [#def148]
perl-5.40.0-build/perl-5.40.0/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): [#def149]
perl-5.40.0-build/perl-5.40.0/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: [#def150]
perl-5.40.0-build/perl-5.40.0/ext/Devel-Peek/Peek.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def151]
perl-5.40.0-build/perl-5.40.0/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: [#def152]
perl-5.40.0-build/perl-5.40.0/ext/Devel-Peek/Peek.xs:370:14: warning[core.NullDereference]: Access to field 'op_moresib' results in a dereference of a null pointer (loaded from variable 'first')
# 368| }
# 369| first = OpSIBLING(pm);
# 370|-> second = OpSIBLING(first);
# 371| if (!second) {
# 372| /* It doesn’t really matter what we return here, as this only
Error: CPPCHECK_WARNING: [#def153]
perl-5.40.0-build/perl-5.40.0/ext/DynaLoader/DynaLoader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def154]
perl-5.40.0-build/perl-5.40.0/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: [#def155]
perl-5.40.0-build/perl-5.40.0/ext/Fcntl/Fcntl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def156]
perl-5.40.0-build/perl-5.40.0/ext/File-DosGlob/DosGlob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def157]
perl-5.40.0-build/perl-5.40.0/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: [#def158]
perl-5.40.0-build/perl-5.40.0/ext/File-Glob/Glob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def159]
perl-5.40.0-build/perl-5.40.0/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: [#def160]
perl-5.40.0-build/perl-5.40.0/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: [#def161]
perl-5.40.0-build/perl-5.40.0/ext/File-Glob/bsd_glob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def162]
perl-5.40.0-build/perl-5.40.0/ext/GDBM_File/GDBM_File.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def163]
perl-5.40.0-build/perl-5.40.0/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: [#def164]
perl-5.40.0-build/perl-5.40.0/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: GCC_ANALYZER_WARNING (CWE-476): [#def165]
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util-FieldHash/FieldHash.xs: scope_hint: In function ‘HUF_fix_objects’
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util-FieldHash/FieldHash.xs:323:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util-FieldHash/FieldHash.xs:4: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:219:25: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:219:36: note: in expansion of macro ‘newSV_type_mortal’
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util-FieldHash/FieldHash.xs:317:18: note: in expansion of macro ‘newAV_mortal’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:538:14: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/perl.h:7870: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/sv_inline.h: scope_hint: In function ‘HUF_fix_objects’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:219:25: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:219:36: note: in expansion of macro ‘newSV_type_mortal’
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util-FieldHash/FieldHash.xs:317:18: note: in expansion of macro ‘newAV_mortal’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:538:14: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util-FieldHash/FieldHash.xs: scope_hint: In function ‘HUF_fix_objects’
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util-FieldHash/FieldHash.xs:321:11: note: in expansion of macro ‘av_count’
perl-5.40.0-build/perl-5.40.0/perl.h:7869: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/av.h:97:28: note: in expansion of macro ‘mg_size’
perl-5.40.0-build/perl-5.40.0/inline.h:61:12: note: in expansion of macro ‘AvFILL’
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util-FieldHash/FieldHash.xs:321:11: note: in expansion of macro ‘av_count’
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util-FieldHash/FieldHash.xs:323:23: note: in expansion of macro ‘av_fetch_simple’
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util-FieldHash/FieldHash.xs:323:23: note: in expansion of macro ‘av_fetch_simple’
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util-FieldHash/FieldHash.xs:323:23: note: in expansion of macro ‘av_fetch_simple’
# 321| len = av_count(oblist);
# 322| for (i = 0; i < len; ++i) {
# 323|-> SV* old_id = *av_fetch_simple(oblist, i, 0);
# 324| SV* trigger = hv_delete_ent(MY_CXT.ob_reg, old_id, 0, 0);
# 325| SV* obj = SvRV(trigger);
Error: CPPCHECK_WARNING: [#def166]
perl-5.40.0-build/perl-5.40.0/ext/Hash-Util/Util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def167]
perl-5.40.0-build/perl-5.40.0/ext/I18N-Langinfo/Langinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def168]
perl-5.40.0-build/perl-5.40.0/ext/NDBM_File/NDBM_File.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def169]
perl-5.40.0-build/perl-5.40.0/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: [#def170]
perl-5.40.0-build/perl-5.40.0/ext/ODBM_File/ODBM_File.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def171]
perl-5.40.0-build/perl-5.40.0/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: [#def172]
perl-5.40.0-build/perl-5.40.0/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: [#def173]
perl-5.40.0-build/perl-5.40.0/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: [#def174]
perl-5.40.0-build/perl-5.40.0/ext/Opcode/Opcode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def175]
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def176]
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.c: scope_hint: In function ‘XS_POSIX_tcdrain’
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.c:4826:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<unknown>’
perl-5.40.0-build/perl-5.40.0/embed.h:104:65: note: in definition of macro ‘SvIV’
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.c:4808:29: note: in expansion of macro ‘ST’
# 4824| RETVALSV = sv_newmortal();
# 4825| if (RETVAL != -1) {
# 4826|-> if (RETVAL == 0)
# 4827| sv_setpvn(RETVALSV, "0 but true", 10);
# 4828| else
Error: CLANG_WARNING: [#def177]
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.xs:2115:2: warning[deadcode.DeadStores]: Value stored to 'RETVAL' is never read
# 2113| PERL_UNUSED_VAR(x);
# 2114| #ifdef NV_NAN
# 2115|-> RETVAL = NV_NAN;
# 2116| #else
# 2117| RETVAL = 0;
Error: CLANG_WARNING: [#def178]
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.xs:2396:2: warning[deadcode.DeadStores]: Value stored to 'RETVAL' is never read
# 2394| CODE:
# 2395| PERL_UNUSED_VAR(x);
# 2396|-> RETVAL = -1;
# 2397| switch (ix) {
# 2398| case 0:
Error: CLANG_WARNING: [#def179]
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.xs:2532:2: warning[deadcode.DeadStores]: Value stored to 'RETVAL' is never read
# 2530| PERL_UNUSED_VAR(y);
# 2531| #ifdef NV_NAN
# 2532|-> RETVAL = NV_NAN;
# 2533| #else
# 2534| RETVAL = 0;
Error: CLANG_WARNING: [#def180]
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.xs:2759:2: warning[deadcode.DeadStores]: Value stored to 'RETVAL' is never read
# 2757| CODE:
# 2758| #ifdef NV_NAN
# 2759|-> RETVAL = NV_NAN;
# 2760| #else
# 2761| RETVAL = 0;
Error: CLANG_WARNING: [#def181]
perl-5.40.0-build/perl-5.40.0/ext/POSIX/POSIX.xs:2963:3: warning[core.NullDereference]: Access to field 'sv_flags' results in a dereference of a null pointer
# 2961| /* This call actually calls sigaction() with almost the
# 2962| right settings, including appropriate interpretation
# 2963|-> of DEFAULT and IGNORE. However, why are we doing
# 2964| this when we're about to do it again just below? XXX */
# 2965| SvSETMAGIC(*sigsvp);
Error: CPPCHECK_WARNING: [#def182]
perl-5.40.0-build/perl-5.40.0/ext/PerlIO-encoding/encoding.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def183]
perl-5.40.0-build/perl-5.40.0/ext/PerlIO-mmap/mmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def184]
perl-5.40.0-build/perl-5.40.0/ext/PerlIO-via/via.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def185]
perl-5.40.0-build/perl-5.40.0/ext/SDBM_File/SDBM_File.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def186]
perl-5.40.0-build/perl-5.40.0/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: [#def187]
perl-5.40.0-build/perl-5.40.0/ext/SDBM_File/sdbm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def188]
perl-5.40.0-build/perl-5.40.0/ext/Sys-Hostname/Hostname.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def189]
perl-5.40.0-build/perl-5.40.0/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: [#def190]
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-835): [#def191]
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs: scope_hint: In function ‘THX_parse_var’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:881:14: warning[-Wanalyzer-infinite-loop]: infinite loop
# 879| if(*s != '$') croak("RPN syntax error");
# 880| while(1) {
# 881|-> char c = *++s;
# 882| if(!isALNUM(c)) break;
# 883| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def192]
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs: scope_hint: In function ‘XS_XS__APItest_multicall_return’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4208:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/XSUB.h:150:41: note: in definition of macro ‘XS_INTERNAL’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.c:6631:1: note: in expansion of macro ‘XS_EUPXS’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.c:6637:25: note: in expansion of macro ‘ST’
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/cv.h:66:20: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/cop.h:1386:35: note: in expansion of macro ‘CvPADLIST’
perl-5.40.0-build/perl-5.40.0/cop.h:1376:5: note: in expansion of macro ‘PUSH_MULTICALL_FLAGS’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4172:5: note: in expansion of macro ‘PUSH_MULTICALL’
perl-5.40.0-build/perl-5.40.0/cop.h:1312:9: note: in expansion of macro ‘push_stackinfo’
perl-5.40.0-build/perl-5.40.0/cop.h:1389:9: note: in expansion of macro ‘PUSHSTACKi’
perl-5.40.0-build/perl-5.40.0/cop.h:1376:5: note: in expansion of macro ‘PUSH_MULTICALL_FLAGS’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4172:5: note: in expansion of macro ‘PUSH_MULTICALL’
perl-5.40.0-build/perl-5.40.0/perl.h:7869: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/sv.h:374:26: note: in definition of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/inline.h:4039:9: note: in expansion of macro ‘AvREAL_off’
perl-5.40.0-build/perl-5.40.0/cop.h:1312:9: note: in expansion of macro ‘push_stackinfo’
perl-5.40.0-build/perl-5.40.0/cop.h:1389:9: note: in expansion of macro ‘PUSHSTACKi’
perl-5.40.0-build/perl-5.40.0/cop.h:1376:5: note: in expansion of macro ‘PUSH_MULTICALL_FLAGS’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4172:5: note: in expansion of macro ‘PUSH_MULTICALL’
perl-5.40.0-build/perl-5.40.0/cop.h:1392:9: note: in expansion of macro ‘cx_pushsub’
perl-5.40.0-build/perl-5.40.0/cop.h:1376:5: note: in expansion of macro ‘PUSH_MULTICALL_FLAGS’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4172:5: note: in expansion of macro ‘PUSH_MULTICALL’
perl-5.40.0-build/perl-5.40.0/cop.h:1392:9: note: in expansion of macro ‘cx_pushsub’
perl-5.40.0-build/perl-5.40.0/cop.h:1376:5: note: in expansion of macro ‘PUSH_MULTICALL_FLAGS’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4172:5: note: in expansion of macro ‘PUSH_MULTICALL’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4183:14: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4183:14: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/cop.h:1324:18: note: in expansion of macro ‘pop_stackinfo’
perl-5.40.0-build/perl-5.40.0/cop.h:1418:9: note: in expansion of macro ‘POPSTACK’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4203:5: note: in expansion of macro ‘POP_MULTICALL’
perl-5.40.0-build/perl-5.40.0/inline.h:4066:5: note: in expansion of macro ‘switch_argstack’
perl-5.40.0-build/perl-5.40.0/cop.h:1324:18: note: in expansion of macro ‘pop_stackinfo’
perl-5.40.0-build/perl-5.40.0/cop.h:1418:9: note: in expansion of macro ‘POPSTACK’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4203:5: note: in expansion of macro ‘POP_MULTICALL’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4208:18: note: in expansion of macro ‘av_fetch_simple’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4208:18: note: in expansion of macro ‘av_fetch_simple’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:4208:18: note: in expansion of macro ‘av_fetch_simple’
# 4206| EXTEND(SP, size);
# 4207| for (i = 0; i < size; i++)
# 4208|-> ST(i) = *av_fetch_simple(av, i, FALSE);
# 4209| sv_2mortal((SV*)av);
# 4210| XSRETURN(size);
Error: CPPCHECK_WARNING: [#def193]
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/XSUB-redefined-macros.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def194]
perl-5.40.0-build/perl-5.40.0/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: [#def195]
perl-5.40.0-build/perl-5.40.0/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: [#def196]
perl-5.40.0-build/perl-5.40.0/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: [#def197]
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/core.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def198]
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/exception.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def199]
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/notcore.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def200]
perl-5.40.0-build/perl-5.40.0/ext/XS-Typemap/Typemap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def201]
perl-5.40.0-build/perl-5.40.0/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: [#def202]
perl-5.40.0-build/perl-5.40.0/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: CPPCHECK_WARNING: [#def203]
perl-5.40.0-build/perl-5.40.0/ext/attributes/attributes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def204]
perl-5.40.0-build/perl-5.40.0/ext/mro/mro.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def205]
perl-5.40.0-build/perl-5.40.0/ext/re/re.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def206]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_debug.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def207]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_invlist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def208]
perl-5.40.0-build/perl-5.40.0/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: [#def209]
perl-5.40.0-build/perl-5.40.0/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: [#def210]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:1746:41: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 1744| delta += max1 - min1;
# 1745| if (flags & SCF_DO_STCLASS_OR) {
# 1746|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass*) &accum);
# 1747| if (min1) {
# 1748| ssc_and(pRExC_state, data->start_class, (regnode_charclass *) and_withp);
Error: CLANG_WARNING: [#def211]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:1761:25: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 1759| * data->start_class */
# 1760| INIT_AND_WITHP;
# 1761|-> StructCopy(data->start_class, and_withp, regnode_ssc);
# 1762| flags &= ~SCF_DO_STCLASS_AND;
# 1763| StructCopy(&accum, data->start_class, regnode_ssc);
Error: CLANG_WARNING: [#def212]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:2195:38: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2193| is_inf = is_inf_internal = 1;
# 2194| if (flags & SCF_DO_STCLASS_OR) /* Allow everything */
# 2195|-> ssc_anything(data->start_class);
# 2196| flags &= ~SCF_DO_STCLASS;
# 2197|
Error: CLANG_WARNING: [#def213]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:2497:30: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2495| if (flags & SCF_DO_STCLASS) {
# 2496| ssc_init(pRExC_state, &this_class);
# 2497|-> oclass = data->start_class;
# 2498| data->start_class = &this_class;
# 2499| f |= SCF_DO_STCLASS_AND;
Error: CLANG_WARNING: [#def214]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:2532:45: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2530| if (mincount == 0 || minnext == 0) {
# 2531| if (flags & SCF_DO_STCLASS_OR) {
# 2532|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass *) &this_class);
# 2533| }
# 2534| else if (flags & SCF_DO_STCLASS_AND) {
Error: CLANG_WARNING: [#def215]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:2538:25: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2536| * data->start_class */
# 2537| INIT_AND_WITHP;
# 2538|-> StructCopy(data->start_class, and_withp, regnode_ssc);
# 2539| flags &= ~SCF_DO_STCLASS_AND;
# 2540| StructCopy(&this_class, data->start_class, regnode_ssc);
Error: CLANG_WARNING: [#def216]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:2547:45: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2545| } else { /* Non-zero len */
# 2546| if (flags & SCF_DO_STCLASS_OR) {
# 2547|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass *) &this_class);
# 2548| ssc_and(pRExC_state, data->start_class, (regnode_charclass *) and_withp);
# 2549| }
Error: CLANG_WARNING: [#def217]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:2551:46: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2549| }
# 2550| else if (flags & SCF_DO_STCLASS_AND)
# 2551|-> ssc_and(pRExC_state, data->start_class, (regnode_charclass *) &this_class);
# 2552| flags &= ~SCF_DO_STCLASS;
# 2553| }
Error: CLANG_WARNING: [#def218]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:2758:25: warning[core.NullDereference]: Access to field 'last_end' results in a dereference of a null pointer (loaded from variable 'data')
# 2756| int counted = mincount != 0;
# 2757|
# 2758|-> if (data->last_end > 0 && mincount != 0) { /* Ends with a
# 2759| string. */
# 2760| SSize_t b = pos_before >= data->last_start_min
Error: CLANG_WARNING: [#def219]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:3178:17: warning[deadcode.DeadStores]: Value stored to 'next' is never read
# 3176| if (flags & SCF_WHILEM_VISITED_POS)
# 3177| f |= SCF_WHILEM_VISITED_POS;
# 3178|-> next = regnext(scan);
# 3179| nscan = REGNODE_AFTER(scan);
# 3180|
Error: CLANG_WARNING: [#def220]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:3235:47: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 3233| * See [perl #56690].
# 3234| */
# 3235|-> ssc_init(pRExC_state, data->start_class);
# 3236| } else {
# 3237| /* AND before and after: combine and continue. These
Error: CLANG_WARNING: [#def221]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:3240:46: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 3238| * assertions are zero-length, so can match an EMPTY
# 3239| * string */
# 3240|-> ssc_and(pRExC_state, data->start_class, (regnode_charclass *) &intrnl);
# 3241| ANYOF_FLAGS(data->start_class)
# 3242| |= SSC_MATCHES_EMPTY_STRING;
Error: CLANG_WARNING: [#def222]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:3540:37: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 3538| }
# 3539| if (flags & SCF_DO_STCLASS_OR) {
# 3540|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass *) &accum);
# 3541| if (min1) {
# 3542| ssc_and(pRExC_state, data->start_class, (regnode_charclass *) and_withp);
Error: CLANG_WARNING: [#def223]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_study.c:3548:42: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 3546| else if (flags & SCF_DO_STCLASS_AND) {
# 3547| if (min1) {
# 3548|-> ssc_and(pRExC_state, data->start_class, (regnode_charclass *) &accum);
# 3549| flags &= ~SCF_DO_STCLASS;
# 3550| }
Error: CPPCHECK_WARNING: [#def224]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def225]
perl-5.40.0-build/perl-5.40.0/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): [#def226]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c: scope_hint: In function ‘my_make_trie’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:603:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘trie’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:2: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:549:1: note: in expansion of macro ‘Perl_make_trie’
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:9: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/perl.h:7870: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perl.h:4221: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.40.0-build/perl-5.40.0/perl.h:4541: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.40.0-build/perl-5.40.0/sv.h:1524:27: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:586:5: note: in expansion of macro ‘PERL_ARGS_ASSERT_MAKE_TRIE’
perl-5.40.0-build/perl-5.40.0/perl.h:4496: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:602:30: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:602:30: note: in expansion of macro ‘PerlMemShared_calloc’
# 601| /* create the trie struct, all zeroed */
# 602| trie = (reg_trie_data *) PerlMemShared_calloc( 1, sizeof(reg_trie_data) );
# 603|-> trie->refcount = 1;
# 604| trie->startstate = 1;
# 605| trie->wordcount = word_count;
Error: CLANG_WARNING: [#def227]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:843:25: warning[core.NullDereference]: Dereference of null pointer
# 841| : ARG2a(first); /* BRANCHJ */
# 842|
# 843|-> trie->after_paren = OP(lastbranch) == BRANCH
# 844| ? ARG1b(lastbranch)
# 845| : ARG2b(lastbranch); /* BRANCHJ */
Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1037:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:549:1: note: in expansion of macro ‘Perl_make_trie’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.40.0-build/perl-5.40.0/sv.h:1524:27: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:586:5: note: in expansion of macro ‘PERL_ARGS_ASSERT_MAKE_TRIE’
perl-5.40.0-build/perl-5.40.0/iperlsys.h:897:57: note: in definition of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/perl.h:5006:45: note: in definition of macro ‘DEBUG_r’
perl-5.40.0-build/perl-5.40.0/handy.h:104:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:614:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.40.0-build/perl-5.40.0/sv.h:1524:27: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.40.0-build/perl-5.40.0/perl.h:5006:45: note: in definition of macro ‘DEBUG_r’
perl-5.40.0-build/perl-5.40.0/handy.h:104:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:614:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/sv.h:1003:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:619:10: note: in expansion of macro ‘SvIOK’
perl-5.40.0-build/perl-5.40.0/handy.h:2773:32: note: in expansion of macro ‘MEM_WRAP_CHECK’
perl-5.40.0-build/perl-5.40.0/handy.h:2850:31: note: in expansion of macro ‘MEM_WRAP_CHECK_’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:877:5: note: in expansion of macro ‘Newx’
perl-5.40.0-build/perl-5.40.0/handy.h:2841:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.40.0-build/perl-5.40.0/perl.h:1751:23: note: in expansion of macro ‘safesysmalloc’
perl-5.40.0-build/perl-5.40.0/handy.h:2850:74: note: in expansion of macro ‘safemalloc’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:877:5: note: in expansion of macro ‘Newx’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:881:55: note: in expansion of macro ‘SvIV’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:817:5: note: in expansion of macro ‘PERL_ARGS_ASSERT_SVIV’
perl-5.40.0-build/perl-5.40.0/sv.h:1157:35: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:819:9: note: in expansion of macro ‘SvIOK_nog’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:881:55: note: in expansion of macro ‘SvIV’
perl-5.40.0-build/perl-5.40.0/perl.h:5006:45: note: in definition of macro ‘DEBUG_r’
perl-5.40.0-build/perl-5.40.0/perl.h:4254:45: note: in expansion of macro ‘EXPECT’
perl-5.40.0-build/perl-5.40.0/perl.h:4254:52: note: in expansion of macro ‘cBOOL’
perl-5.40.0-build/perl-5.40.0/perl.h:4880:25: note: in expansion of macro ‘UNLIKELY’
perl-5.40.0-build/perl-5.40.0/perl.h:4880:34: note: in expansion of macro ‘PL_debug’
perl-5.40.0-build/perl-5.40.0/perl.h:4927:24: note: in expansion of macro ‘DEBUG_v_TEST_’
perl-5.40.0-build/perl-5.40.0/regcomp.h:1388:9: note: in expansion of macro ‘DEBUG_v_TEST’
perl-5.40.0-build/perl-5.40.0/regcomp.h:1416:38: note: in expansion of macro ‘DEBUG_TRIE_COMPILE_r’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:897:9: note: in expansion of macro ‘DEBUG_TRIE_COMPILE_MORE_r’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:995:13: note: in expansion of macro ‘PerlMemShared_realloc’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1006:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1038:29: note: in expansion of macro ‘PerlMemShared_realloc’
# 1035| if ( transcount < tp + maxid - minid + 1) {
# 1036| transcount *= 2;
# 1037|-> trie->trans = (reg_trie_trans *)
# 1038| PerlMemShared_realloc( trie->trans,
# 1039| transcount
Error: GCC_ANALYZER_WARNING (CWE-476): [#def229]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1059:52: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*trie.trans + (long unsigned int)tp * 8’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:549:1: note: in expansion of macro ‘Perl_make_trie’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.40.0-build/perl-5.40.0/sv.h:1524:27: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:586:5: note: in expansion of macro ‘PERL_ARGS_ASSERT_MAKE_TRIE’
perl-5.40.0-build/perl-5.40.0/iperlsys.h:897:57: note: in definition of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/perl.h:5006:45: note: in definition of macro ‘DEBUG_r’
perl-5.40.0-build/perl-5.40.0/handy.h:104:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:614:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:417:9: note: in expansion of macro ‘SvSTASH_set’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.40.0-build/perl-5.40.0/sv.h:1524:27: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:418:9: note: in expansion of macro ‘SvMAGIC_set’
perl-5.40.0-build/perl-5.40.0/perl.h:5006:45: note: in definition of macro ‘DEBUG_r’
perl-5.40.0-build/perl-5.40.0/handy.h:104:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:614:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/sv.h:1003:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:619:10: note: in expansion of macro ‘SvIOK’
perl-5.40.0-build/perl-5.40.0/handy.h:2773:32: note: in expansion of macro ‘MEM_WRAP_CHECK’
perl-5.40.0-build/perl-5.40.0/handy.h:2850:31: note: in expansion of macro ‘MEM_WRAP_CHECK_’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:877:5: note: in expansion of macro ‘Newx’
perl-5.40.0-build/perl-5.40.0/handy.h:2841:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.40.0-build/perl-5.40.0/perl.h:1751:23: note: in expansion of macro ‘safesysmalloc’
perl-5.40.0-build/perl-5.40.0/handy.h:2850:74: note: in expansion of macro ‘safemalloc’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:877:5: note: in expansion of macro ‘Newx’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:881:55: note: in expansion of macro ‘SvIV’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:817:5: note: in expansion of macro ‘PERL_ARGS_ASSERT_SVIV’
perl-5.40.0-build/perl-5.40.0/sv.h:1157:35: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:819:9: note: in expansion of macro ‘SvIOK_nog’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:881:55: note: in expansion of macro ‘SvIV’
perl-5.40.0-build/perl-5.40.0/perl.h:5006:45: note: in definition of macro ‘DEBUG_r’
perl-5.40.0-build/perl-5.40.0/perl.h:4254:45: note: in expansion of macro ‘EXPECT’
perl-5.40.0-build/perl-5.40.0/perl.h:4254:52: note: in expansion of macro ‘cBOOL’
perl-5.40.0-build/perl-5.40.0/perl.h:4880:25: note: in expansion of macro ‘UNLIKELY’
perl-5.40.0-build/perl-5.40.0/perl.h:4880:34: note: in expansion of macro ‘PL_debug’
perl-5.40.0-build/perl-5.40.0/perl.h:4927:24: note: in expansion of macro ‘DEBUG_v_TEST_’
perl-5.40.0-build/perl-5.40.0/regcomp.h:1388:9: note: in expansion of macro ‘DEBUG_v_TEST’
perl-5.40.0-build/perl-5.40.0/regcomp.h:1416:38: note: in expansion of macro ‘DEBUG_TRIE_COMPILE_r’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:897:9: note: in expansion of macro ‘DEBUG_TRIE_COMPILE_MORE_r’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:995:13: note: in expansion of macro ‘PerlMemShared_realloc’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1006:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1059:54: note: in expansion of macro ‘TRIE_LIST_ITEM’
# 1057| }
# 1058| if ( !set ) {
# 1059|-> trie->trans[ tp ].next = TRIE_LIST_ITEM( state,
# 1060| 1).newstate;
# 1061| trie->trans[ tp ].check = state;
Error: CLANG_WARNING: [#def230]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1184:39: warning[core.DivideZero]: Division by zero
# 1182| trie->trans[ state ].check++;
# 1183| prev_states[TRIE_NODENUM(next_alloc)]
# 1184|-> = TRIE_NODENUM(state);
# 1185| next_alloc += trie->uniquecharcount;
# 1186| }
Error: CLANG_WARNING: [#def231]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1201:28: warning[core.DivideZero]: Division by zero
# 1199| noper= REGNODE_AFTER(cur);
# 1200| }
# 1201|-> accept_state = TRIE_NODENUM( state );
# 1202| TRIE_HANDLE_WORD(accept_state);
# 1203|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def232]
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1684:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)numstates, 4)’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1666:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/handy.h:2880:47: note: in expansion of macro ‘perl_assert_ptr’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1677:5: note: in expansion of macro ‘Copy’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1677:5: note: in expansion of macro ‘Copy’
perl-5.40.0-build/perl-5.40.0/ext/re/re_comp_trie.c:1679:25: note: in expansion of macro ‘PerlMemShared_calloc’
# 1682| /* initialize fail[0..1] to be 1 so that we always have
# 1683| a valid final fail state */
# 1684|-> fail[ 0 ] = fail[ 1 ] = 1;
# 1685|
# 1686| for ( charid = 0; charid < ucharcount ; charid++ ) {
Error: CPPCHECK_WARNING: [#def233]
perl-5.40.0-build/perl-5.40.0/generate_uudmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def234]
perl-5.40.0-build/perl-5.40.0/globals.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def235]
perl-5.40.0-build/perl-5.40.0/gv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def236]
perl-5.40.0-build/perl-5.40.0/perl.h:6166: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs: scope_hint: In function ‘XS_XS__APItest_newCONSTSUB’
perl-5.40.0-build/perl-5.40.0/handy.h:99:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mycv’
perl-5.40.0-build/perl-5.40.0/pp.h:549:35: note: in definition of macro ‘PUSHs’
perl-5.40.0-build/perl-5.40.0/cv.h:91:36: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/cv.h:186:34: note: in expansion of macro ‘CvFLAGS’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:2865:16: note: in expansion of macro ‘CvCONST’
perl-5.40.0-build/perl-5.40.0/XSUB.h:150:41: note: in definition of macro ‘XS_INTERNAL’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.c:4442:1: note: in expansion of macro ‘XS_EUPXS’
perl-5.40.0-build/perl-5.40.0/sv.h:1972:37: note: in expansion of macro ‘SvPV_flags’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:2851:26: note: in expansion of macro ‘SvPV’
perl-5.40.0-build/perl-5.40.0/sv.h:1156:35: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:923:44: note: in expansion of macro ‘SvPOK_nog’
perl-5.40.0-build/perl-5.40.0/sv.h:1972:37: note: in expansion of macro ‘SvPV_flags’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:2851:26: note: in expansion of macro ‘SvPV’
perl-5.40.0-build/perl-5.40.0/perl.h:4233:62: note: in definition of macro ‘EXPECT’
perl-5.40.0-build/perl-5.40.0/perl.h:4254:52: note: in expansion of macro ‘cBOOL’
perl-5.40.0-build/perl-5.40.0/pp.h:462:30: note: in expansion of macro ‘UNLIKELY’
perl-5.40.0-build/perl-5.40.0/XSUB.h:491:25: note: in expansion of macro ‘PERL_GET_THX’
perl-5.40.0-build/perl-5.40.0/embedvar.h:23:49: note: in expansion of macro ‘aTHX’
perl-5.40.0-build/perl-5.40.0/embedvar.h:286:50: note: in expansion of macro ‘vTHX’
perl-5.40.0-build/perl-5.40.0/pp.h:443:47: note: in expansion of macro ‘PL_stack_max’
perl-5.40.0-build/perl-5.40.0/pp.h:462:39: note: in expansion of macro ‘_EXTEND_NEEDS_GROW’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:2863:9: note: in expansion of macro ‘EXTEND’
perl-5.40.0-build/perl-5.40.0/pp.h:549:35: note: in definition of macro ‘PUSHs’
perl-5.40.0-build/perl-5.40.0/cv.h:91:36: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/cv.h:186:34: note: in expansion of macro ‘CvFLAGS’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:2865:16: note: in expansion of macro ‘CvCONST’
# 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): [#def237]
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/universal.c: scope_hint: In function ‘S_sv_derived_from_svpvn’
perl-5.40.0-build/perl-5.40.0/handy.h:702:23: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
perl-5.40.0-build/perl-5.40.0/universal.c:105:17: note: in expansion of macro ‘strEQ’
perl-5.40.0-build/perl-5.40.0/universal.c:149:12: note: in expansion of macro ‘sv_derived_from_svpvn’
perl-5.40.0-build/perl-5.40.0/universal.c:105:17: note: in expansion of macro ‘strEQ’
perl-5.40.0-build/perl-5.40.0/universal.c:105:17: note: in expansion of macro ‘strEQ’
perl-5.40.0-build/perl-5.40.0/perl.h:1711: 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): [#def238]
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c:9: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c: scope_hint: In function ‘Perl__invlistEQ’
perl-5.40.0-build/perl-5.40.0/handy.h:711:25: warning[-Wanalyzer-null-argument]: use of NULL ‘array_a’ where non-null expected
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c:1531:15: note: in expansion of macro ‘memEQ’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c:1479:22: note: in expansion of macro ‘_invlist_len’
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c: scope_hint: In function ‘Perl__invlistEQ’
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c:1480:16: note: in expansion of macro ‘_invlist_len’
perl-5.40.0-build/perl-5.40.0/sv.h:1434:31: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/invlist_inline.h:57:13: note: in expansion of macro ‘SvCUR’
perl-5.40.0-build/perl-5.40.0/invlist_inline.h:59:14: note: in expansion of macro ‘FROM_INTERNAL_SIZE’
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c: scope_hint: In function ‘Perl__invlistEQ’
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c:1500:19: note: in expansion of macro ‘invlist_array’
perl-5.40.0-build/perl-5.40.0/invlist_inline.h:92:20: note: in expansion of macro ‘SvPVX’
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c: scope_hint: In function ‘Perl__invlistEQ’
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c:1531:15: note: in expansion of macro ‘memEQ’
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c:1531:15: note: in expansion of macro ‘memEQ’
perl-5.40.0-build/perl-5.40.0/perl.h:1711: 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): [#def239]
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/hv.c:35: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/hv.c: scope_hint: In function ‘S_unshare_hek_or_pvn’
perl-5.40.0-build/perl-5.40.0/handy.h:711:25: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected
perl-5.40.0-build/perl-5.40.0/handy.h:712:27: note: in expansion of macro ‘memEQ’
perl-5.40.0-build/perl-5.40.0/hv.c:3300:40: note: in expansion of macro ‘memNE’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/hv.c:3233:5: note: in expansion of macro ‘unshare_hek_or_pvn’
perl-5.40.0-build/perl-5.40.0/perl.h:4550: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/hv.h:284:27: note: in definition of macro ‘HvARRAY’
perl-5.40.0-build/perl-5.40.0/hv.c:3286:24: note: in expansion of macro ‘PL_strtab’
perl-5.40.0-build/perl-5.40.0/hv.h:457:34: note: in definition of macro ‘HEK_HASH’
perl-5.40.0-build/perl-5.40.0/hv.h:431:42: note: in expansion of macro ‘HeKEY_hek’
perl-5.40.0-build/perl-5.40.0/hv.c:3296:17: note: in expansion of macro ‘HeHASH’
perl-5.40.0-build/perl-5.40.0/hv.h:425:33: note: in expansion of macro ‘HEK_LEN’
perl-5.40.0-build/perl-5.40.0/hv.c:3298:17: note: in expansion of macro ‘HeKLEN’
perl-5.40.0-build/perl-5.40.0/hv.h:423:33: note: in expansion of macro ‘HEK_KEY’
perl-5.40.0-build/perl-5.40.0/hv.c:3300:17: note: in expansion of macro ‘HeKEY’
perl-5.40.0-build/perl-5.40.0/handy.h:712:27: note: in expansion of macro ‘memEQ’
perl-5.40.0-build/perl-5.40.0/hv.c:3300:40: note: in expansion of macro ‘memNE’
perl-5.40.0-build/perl-5.40.0/handy.h:712:27: note: in expansion of macro ‘memEQ’
perl-5.40.0-build/perl-5.40.0/hv.c:3300:40: note: in expansion of macro ‘memNE’
perl-5.40.0-build/perl-5.40.0/perl.h:1711: 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): [#def240]
perl-5.40.0-build/perl-5.40.0/handy.h:2880:93: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)numstates * 16)’ where non-null expected
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1677:5: note: in expansion of macro ‘Copy’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1666:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1676:35: note: in expansion of macro ‘PerlMemShared_malloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1677:5: note: in expansion of macro ‘Copy’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 2878|
# 2879| #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)))
# 2880|-> #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)))
# 2881| #define Zero(d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), (void)memzero((char*)(d), (n) * sizeof(t)))
# 2882|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def241]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c: scope_hint: In function ‘Perl_construct_ahocorasick_from_trie’
perl-5.40.0-build/perl-5.40.0/handy.h:2905:39: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘op’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1662:9: note: in expansion of macro ‘StructCopy’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1661:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1661:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1662:9: note: in expansion of macro ‘StructCopy’
# 2903|
# 2904| /* Shallow copy */
# 2905|-> #define StructCopy(s,d,t) (*((t*)(d)) = *((t*)(s)))
# 2906|
# 2907| /*
Error: CPPCHECK_WARNING: [#def242]
perl-5.40.0-build/perl-5.40.0/hv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
perl-5.40.0-build/perl-5.40.0/hv.c: scope_hint: In function ‘Perl_refcounted_he_new_pvn’
perl-5.40.0-build/perl-5.40.0/hv.c:3913:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘he’
perl-5.40.0-build/perl-5.40.0/perl.h:4496: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/hv.c:3904:9: note: in expansion of macro ‘PerlMemShared_malloc’
# 3911| #endif
# 3912|
# 3913|-> he->refcounted_he_next = parent;
# 3914|
# 3915| if (is_pv) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def244]
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/pad.c:150: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/pad.c: scope_hint: In function ‘Perl_cv_name’
perl-5.40.0-build/perl-5.40.0/hv.h:458:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/embed.h:661:82: note: in definition of macro ‘sv_catpvn_flags’
perl-5.40.0-build/perl-5.40.0/hv.h:460:60: note: in expansion of macro ‘HEK_LEN’
perl-5.40.0-build/perl-5.40.0/hv.h:474:34: note: in expansion of macro ‘HEK_FLAGS’
perl-5.40.0-build/perl-5.40.0/sv.h:2251:29: note: in expansion of macro ‘HEK_UTF8’
perl-5.40.0-build/perl-5.40.0/pad.c:2329:21: note: in expansion of macro ‘sv_cathek’
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/cv.h:91:36: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/cv.h:216:34: note: in expansion of macro ‘CvFLAGS’
perl-5.40.0-build/perl-5.40.0/pad.c:2320:17: note: in expansion of macro ‘CvNAMED’
perl-5.40.0-build/perl-5.40.0/perl.h:4547: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/pad.c:2321:21: note: in expansion of macro ‘CvLEXICAL’
perl-5.40.0-build/perl-5.40.0/handy.h:107:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/cv.h:41:26: note: in expansion of macro ‘MUTABLE_HV’
perl-5.40.0-build/perl-5.40.0/pad.c:2324:25: note: in expansion of macro ‘CvSTASH’
perl-5.40.0-build/perl-5.40.0/perl.h:4541: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/sv.h:2249:32: note: in definition of macro ‘sv_cathek’
perl-5.40.0-build/perl-5.40.0/pad.c: scope_hint: In function ‘Perl_cv_name’
perl-5.40.0-build/perl-5.40.0/embed.h:661:82: note: in definition of macro ‘sv_catpvn_flags’
perl-5.40.0-build/perl-5.40.0/hv.h:474:34: note: in expansion of macro ‘HEK_FLAGS’
perl-5.40.0-build/perl-5.40.0/sv.h:2251:29: note: in expansion of macro ‘HEK_UTF8’
perl-5.40.0-build/perl-5.40.0/pad.c:2329:21: note: in expansion of macro ‘sv_cathek’
perl-5.40.0-build/perl-5.40.0/embed.h:661:82: note: in definition of macro ‘sv_catpvn_flags’
perl-5.40.0-build/perl-5.40.0/hv.h:460:60: note: in expansion of macro ‘HEK_LEN’
perl-5.40.0-build/perl-5.40.0/hv.h:474:34: note: in expansion of macro ‘HEK_FLAGS’
perl-5.40.0-build/perl-5.40.0/sv.h:2251:29: note: in expansion of macro ‘HEK_UTF8’
perl-5.40.0-build/perl-5.40.0/pad.c:2329: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): [#def245]
perl-5.40.0-build/perl-5.40.0/inline.h:1219:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/perl.h:6166: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/pp_hot.c: scope_hint: In function ‘Perl_pp_match’
perl-5.40.0-build/perl-5.40.0/pp_hot.c:3697:1: note: in expansion of macro ‘PP’
perl-5.40.0-build/perl-5.40.0/perl.h:4549: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/pp_hot.c:3708:18: note: in expansion of macro ‘PM_GETRE’
perl-5.40.0-build/perl-5.40.0/perl.h:4542: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/pp_hot.c:3709:20: note: in expansion of macro ‘ReANY’
# 1217| Perl_ReANY(const REGEXP * const re)
# 1218| {
# 1219|-> XPV* const p = (XPV*)SvANY(re);
# 1220|
# 1221| PERL_ARGS_ASSERT_REANY;
Error: CLANG_WARNING: [#def246]
perl-5.40.0-build/perl-5.40.0/dump.c:29: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perl.h:7869: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/inline.h:1219:26: warning[core.NullDereference]: Access to field 'sv_any' results in a dereference of a null pointer (loaded from variable 're')
# 1217| Perl_ReANY(const REGEXP * const re)
# 1218| {
# 1219|-> XPV* const p = (XPV*)SvANY(re);
# 1220|
# 1221| PERL_ARGS_ASSERT_REANY;
Error: CPPCHECK_WARNING: [#def247]
perl-5.40.0-build/perl-5.40.0/keywords.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def248]
perl-5.40.0-build/perl-5.40.0/locale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def249]
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/locale.c:383: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/locale.c: scope_hint: In function ‘S_setlocale_failure_panic_via_i’
perl-5.40.0-build/perl-5.40.0/locale.c:3399:62: warning[-Wanalyzer-null-argument]: use of NULL ‘current’ where non-null expected
perl-5.40.0-build/perl-5.40.0/embed.h:1396:82: note: in definition of macro ‘get_displayable_string’
perl-5.40.0-build/perl-5.40.0/locale.c:3672:9: note: in expansion of macro ‘isNAME_C_OR_POSIX’
perl-5.40.0-build/perl-5.40.0/locale.c:3681:31: note: in expansion of macro ‘is_locale_utf8’
perl-5.40.0-build/perl-5.40.0/locale.c:3681:31: note: in expansion of macro ‘is_locale_utf8’
perl-5.40.0-build/perl-5.40.0/locale.c:4832:9: note: in expansion of macro ‘isNAME_C_OR_POSIX’
perl-5.40.0-build/perl-5.40.0/locale.c:733:9: note: in expansion of macro ‘langinfo_sv_i’
perl-5.40.0-build/perl-5.40.0/locale.c:736:9: note: in expansion of macro ‘langinfo_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4911:28: note: in expansion of macro ‘langinfo_c’
perl-5.40.0-build/perl-5.40.0/locale.c:733:9: note: in expansion of macro ‘langinfo_sv_i’
perl-5.40.0-build/perl-5.40.0/locale.c:736:9: note: in expansion of macro ‘langinfo_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4911:28: note: in expansion of macro ‘langinfo_c’
perl-5.40.0-build/perl-5.40.0/locale.c:749:41: note: in expansion of macro ‘toggle_locale_i’
perl-5.40.0-build/perl-5.40.0/locale.c:392:42: note: in expansion of macro ‘toggle_locale_c’
perl-5.40.0-build/perl-5.40.0/locale.c:6440:5: note: in expansion of macro ‘start_DEALING_WITH_MISMATCHED_CTYPE’
perl-5.40.0-build/perl-5.40.0/locale.c:2005:31: note: in expansion of macro ‘querylocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4634:41: note: in expansion of macro ‘querylocale_i’
perl-5.40.0-build/perl-5.40.0/perl_langinfo.h:10: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perl.h:1152: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/locale.c:2193:22: note: in expansion of macro ‘my_querylocale’
perl-5.40.0-build/perl-5.40.0/locale.c:2005:31: note: in expansion of macro ‘querylocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4634:41: note: in expansion of macro ‘querylocale_i’
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/locale.c:4656:9: note: in expansion of macro ‘strEQ’
perl-5.40.0-build/perl-5.40.0/locale.c:2231:31: note: in expansion of macro ‘bool_setlocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2685:15: note: in expansion of macro ‘bool_setlocale_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4664:5: note: in expansion of macro ‘void_setlocale_i_with_caller’
perl-5.40.0-build/perl-5.40.0/locale.c:2231:31: note: in expansion of macro ‘bool_setlocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2685:15: note: in expansion of macro ‘bool_setlocale_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4664:5: note: in expansion of macro ‘void_setlocale_i_with_caller’
perl-5.40.0-build/perl-5.40.0/locale.c:2005:31: note: in expansion of macro ‘querylocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2263:36: note: in expansion of macro ‘querylocale_i’
perl-5.40.0-build/perl-5.40.0/perl.h:4233:62: note: in definition of macro ‘EXPECT’
perl-5.40.0-build/perl-5.40.0/perl.h:4253:52: note: in expansion of macro ‘cBOOL’
perl-5.40.0-build/perl-5.40.0/perl.h:6419:13: note: in expansion of macro ‘LIKELY’
perl-5.40.0-build/perl-5.40.0/perl.h:7078:8: note: in expansion of macro ‘PERL_REENTRANT_LOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7079:46: note: in expansion of macro ‘PL_locale_mutex_depth’
perl-5.40.0-build/perl-5.40.0/perl.h:7124:26: note: in expansion of macro ‘LOCALE_LOCK_’
perl-5.40.0-build/perl-5.40.0/perl.h:7171:37: note: in expansion of macro ‘gwLOCALE_LOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2075:9: note: in expansion of macro ‘POSIX_SETLOCALE_LOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2076:18: note: in expansion of macro ‘mortalized_pv_copy’
perl-5.40.0-build/perl-5.40.0/locale.c:2076:18: note: in expansion of macro ‘mortalized_pv_copy’
perl-5.40.0-build/perl-5.40.0/perl.h:7082:8: note: in expansion of macro ‘PERL_REENTRANT_UNLOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7125:26: note: in expansion of macro ‘LOCALE_UNLOCK_’
perl-5.40.0-build/perl-5.40.0/perl.h:7172:37: note: in expansion of macro ‘gwLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2077:9: note: in expansion of macro ‘POSIX_SETLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7082:8: note: in expansion of macro ‘PERL_REENTRANT_UNLOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7125:26: note: in expansion of macro ‘LOCALE_UNLOCK_’
perl-5.40.0-build/perl-5.40.0/perl.h:7172:37: note: in expansion of macro ‘gwLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2077:9: note: in expansion of macro ‘POSIX_SETLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2005:31: note: in expansion of macro ‘querylocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2263:36: note: in expansion of macro ‘querylocale_i’
perl-5.40.0-build/perl-5.40.0/locale.c:1121:5: note: in expansion of macro ‘setlocale_failure_panic_via_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2373:9: note: in expansion of macro ‘setlocale_failure_panic_i’
perl-5.40.0-build/perl-5.40.0/locale.c:1121:5: note: in expansion of macro ‘setlocale_failure_panic_via_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2373:9: note: in expansion of macro ‘setlocale_failure_panic_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2005:31: note: in expansion of macro ‘querylocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:3373:19: note: in expansion of macro ‘querylocale_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2005:31: note: in expansion of macro ‘querylocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:3373:19: note: in expansion of macro ‘querylocale_i’
perl-5.40.0-build/perl-5.40.0/perl.h:4233:62: note: in definition of macro ‘EXPECT’
perl-5.40.0-build/perl-5.40.0/perl.h:4253:52: note: in expansion of macro ‘cBOOL’
perl-5.40.0-build/perl-5.40.0/perl.h:6419:13: note: in expansion of macro ‘LIKELY’
perl-5.40.0-build/perl-5.40.0/perl.h:7078:8: note: in expansion of macro ‘PERL_REENTRANT_LOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7079:46: note: in expansion of macro ‘PL_locale_mutex_depth’
perl-5.40.0-build/perl-5.40.0/perl.h:7124:26: note: in expansion of macro ‘LOCALE_LOCK_’
perl-5.40.0-build/perl-5.40.0/perl.h:7171:37: note: in expansion of macro ‘gwLOCALE_LOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2075:9: note: in expansion of macro ‘POSIX_SETLOCALE_LOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2076:18: note: in expansion of macro ‘mortalized_pv_copy’
perl-5.40.0-build/perl-5.40.0/locale.c:2076:18: note: in expansion of macro ‘mortalized_pv_copy’
perl-5.40.0-build/perl-5.40.0/perl.h:7082:8: note: in expansion of macro ‘PERL_REENTRANT_UNLOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7125:26: note: in expansion of macro ‘LOCALE_UNLOCK_’
perl-5.40.0-build/perl-5.40.0/perl.h:7172:37: note: in expansion of macro ‘gwLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2077:9: note: in expansion of macro ‘POSIX_SETLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7082:8: note: in expansion of macro ‘PERL_REENTRANT_UNLOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7125:26: note: in expansion of macro ‘LOCALE_UNLOCK_’
perl-5.40.0-build/perl-5.40.0/perl.h:7172:37: note: in expansion of macro ‘gwLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2077:9: note: in expansion of macro ‘POSIX_SETLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2005:31: note: in expansion of macro ‘querylocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:3373:19: note: in expansion of macro ‘querylocale_i’
perl-5.40.0-build/perl-5.40.0/embed.h:1396:82: note: in definition of macro ‘get_displayable_string’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 3397| name, cat,
# 3398| get_displayable_string(current,
# 3399|-> current + strlen(current),
# 3400| false),
# 3401| get_displayable_string(failed,
Error: GCC_ANALYZER_WARNING (CWE-688): [#def250]
perl-5.40.0-build/perl-5.40.0/locale.c:3402:61: warning[-Wanalyzer-null-argument]: use of NULL ‘failed’ where non-null expected
perl-5.40.0-build/perl-5.40.0/embed.h:1396:82: note: in definition of macro ‘get_displayable_string’
perl-5.40.0-build/perl-5.40.0/locale.c:3672:9: note: in expansion of macro ‘isNAME_C_OR_POSIX’
perl-5.40.0-build/perl-5.40.0/locale.c:3681:31: note: in expansion of macro ‘is_locale_utf8’
perl-5.40.0-build/perl-5.40.0/locale.c:3681:31: note: in expansion of macro ‘is_locale_utf8’
perl-5.40.0-build/perl-5.40.0/locale.c:4832:9: note: in expansion of macro ‘isNAME_C_OR_POSIX’
perl-5.40.0-build/perl-5.40.0/locale.c:733:9: note: in expansion of macro ‘langinfo_sv_i’
perl-5.40.0-build/perl-5.40.0/locale.c:736:9: note: in expansion of macro ‘langinfo_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4911:28: note: in expansion of macro ‘langinfo_c’
perl-5.40.0-build/perl-5.40.0/locale.c:733:9: note: in expansion of macro ‘langinfo_sv_i’
perl-5.40.0-build/perl-5.40.0/locale.c:736:9: note: in expansion of macro ‘langinfo_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4911:28: note: in expansion of macro ‘langinfo_c’
perl-5.40.0-build/perl-5.40.0/locale.c:749:41: note: in expansion of macro ‘toggle_locale_i’
perl-5.40.0-build/perl-5.40.0/locale.c:392:42: note: in expansion of macro ‘toggle_locale_c’
perl-5.40.0-build/perl-5.40.0/locale.c:6440:5: note: in expansion of macro ‘start_DEALING_WITH_MISMATCHED_CTYPE’
perl-5.40.0-build/perl-5.40.0/locale.c:2005:31: note: in expansion of macro ‘querylocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4634:41: note: in expansion of macro ‘querylocale_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2193:22: note: in expansion of macro ‘my_querylocale’
perl-5.40.0-build/perl-5.40.0/locale.c:2005:31: note: in expansion of macro ‘querylocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4634:41: note: in expansion of macro ‘querylocale_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4656:9: note: in expansion of macro ‘strEQ’
perl-5.40.0-build/perl-5.40.0/locale.c:2231:31: note: in expansion of macro ‘bool_setlocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2685:15: note: in expansion of macro ‘bool_setlocale_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4664:5: note: in expansion of macro ‘void_setlocale_i_with_caller’
perl-5.40.0-build/perl-5.40.0/locale.c:2231:31: note: in expansion of macro ‘bool_setlocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2685:15: note: in expansion of macro ‘bool_setlocale_i’
perl-5.40.0-build/perl-5.40.0/locale.c:4664:5: note: in expansion of macro ‘void_setlocale_i_with_caller’
perl-5.40.0-build/perl-5.40.0/locale.c:2005:31: note: in expansion of macro ‘querylocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2263:36: note: in expansion of macro ‘querylocale_i’
perl-5.40.0-build/perl-5.40.0/perl.h:4233:62: note: in definition of macro ‘EXPECT’
perl-5.40.0-build/perl-5.40.0/perl.h:4253:52: note: in expansion of macro ‘cBOOL’
perl-5.40.0-build/perl-5.40.0/perl.h:6419:13: note: in expansion of macro ‘LIKELY’
perl-5.40.0-build/perl-5.40.0/perl.h:7078:8: note: in expansion of macro ‘PERL_REENTRANT_LOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7079:46: note: in expansion of macro ‘PL_locale_mutex_depth’
perl-5.40.0-build/perl-5.40.0/perl.h:7124:26: note: in expansion of macro ‘LOCALE_LOCK_’
perl-5.40.0-build/perl-5.40.0/perl.h:7171:37: note: in expansion of macro ‘gwLOCALE_LOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2075:9: note: in expansion of macro ‘POSIX_SETLOCALE_LOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2076:18: note: in expansion of macro ‘mortalized_pv_copy’
perl-5.40.0-build/perl-5.40.0/locale.c:2076:18: note: in expansion of macro ‘mortalized_pv_copy’
perl-5.40.0-build/perl-5.40.0/perl.h:7082:8: note: in expansion of macro ‘PERL_REENTRANT_UNLOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7125:26: note: in expansion of macro ‘LOCALE_UNLOCK_’
perl-5.40.0-build/perl-5.40.0/perl.h:7172:37: note: in expansion of macro ‘gwLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2077:9: note: in expansion of macro ‘POSIX_SETLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7082:8: note: in expansion of macro ‘PERL_REENTRANT_UNLOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:7125:26: note: in expansion of macro ‘LOCALE_UNLOCK_’
perl-5.40.0-build/perl-5.40.0/perl.h:7172:37: note: in expansion of macro ‘gwLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2077:9: note: in expansion of macro ‘POSIX_SETLOCALE_UNLOCK’
perl-5.40.0-build/perl-5.40.0/locale.c:2005:31: note: in expansion of macro ‘querylocale_2008_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2263:36: note: in expansion of macro ‘querylocale_i’
perl-5.40.0-build/perl-5.40.0/locale.c:1121:5: note: in expansion of macro ‘setlocale_failure_panic_via_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2617:9: note: in expansion of macro ‘setlocale_failure_panic_i’
perl-5.40.0-build/perl-5.40.0/locale.c:1121:5: note: in expansion of macro ‘setlocale_failure_panic_via_i’
perl-5.40.0-build/perl-5.40.0/locale.c:2617:9: note: in expansion of macro ‘setlocale_failure_panic_i’
perl-5.40.0-build/perl-5.40.0/embed.h:1396:82: note: in definition of macro ‘get_displayable_string’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 3400| false),
# 3401| get_displayable_string(failed,
# 3402|-> failed + strlen(failed),
# 3403| false),
# 3404| proxy_text);
Error: CPPCHECK_WARNING: [#def251]
perl-5.40.0-build/perl-5.40.0/mathoms.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def252]
perl-5.40.0-build/perl-5.40.0/mg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def253]
perl-5.40.0-build/perl-5.40.0/mg.c:2638:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mg’
perl-5.40.0-build/perl-5.40.0/mg.c:2635:19: note: in expansion of macro ‘mg_find’
perl-5.40.0-build/perl-5.40.0/mg.c:2635:19: note: in expansion of macro ‘mg_find’
perl-5.40.0-build/perl-5.40.0/sv.h:1440:36: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/mg.c:373:19: note: in expansion of macro ‘SvMAGIC’
perl-5.40.0-build/perl-5.40.0/mg.c: scope_hint: In function ‘Perl_defelem_target’
perl-5.40.0-build/perl-5.40.0/mg.c:2635:19: note: in expansion of macro ‘mg_find’
# 2636| assert(mg);
# 2637| if (LvTARGLEN(sv)) {
# 2638|-> if (mg->mg_obj) {
# 2639| SV * const ahv = LvTARG(sv);
# 2640| HE * const he = hv_fetch_ent(MUTABLE_HV(ahv), mg->mg_obj, FALSE, 0);
Error: GCC_ANALYZER_WARNING (CWE-835): [#def254]
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/mg.c: scope_hint: In function ‘Perl_magic_set’
perl-5.40.0-build/perl-5.40.0/mg.c:3457:28: warning[-Wanalyzer-infinite-loop]: infinite loop
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.40.0-build/perl-5.40.0/mg.c:3457:20: note: in expansion of macro ‘isSPACE’
perl-5.40.0-build/perl-5.40.0/perl.h:7870: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.40.0-build/perl-5.40.0/mg.c:3457:20: note: in expansion of macro ‘isSPACE’
perl-5.40.0-build/perl-5.40.0/handy.h:1658:26: note: in expansion of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.40.0-build/perl-5.40.0/mg.c:3457:20: note: in expansion of macro ‘isSPACE’
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.40.0-build/perl-5.40.0/mg.c:3457:20: note: in expansion of macro ‘isSPACE’
# 3455| #endif
# 3456|
# 3457|-> while (isSPACE(*p))
# 3458| ++p;
# 3459| if (grok_atoUV(p, &uv, &endptr))
Error: GCC_ANALYZER_WARNING (CWE-476): [#def255]
perl-5.40.0-build/perl-5.40.0/mg.c: scope_hint: In function ‘Perl_magic_copycallchecker’
perl-5.40.0-build/perl-5.40.0/mg.c:3998:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/mg.c:3996:11: note: in expansion of macro ‘mg_find’
perl-5.40.0-build/perl-5.40.0/mg.c: scope_hint: In function ‘Perl_magic_copycallchecker’
perl-5.40.0-build/perl-5.40.0/mg.c:3996:11: note: in expansion of macro ‘mg_find’
# 3996| nmg = mg_find(nsv, mg->mg_type);
# 3997| assert(nmg);
# 3998|-> if (nmg->mg_flags & MGf_REFCOUNTED) SvREFCNT_dec(nmg->mg_obj);
# 3999| nmg->mg_ptr = mg->mg_ptr;
# 4000| nmg->mg_obj = SvREFCNT_inc_simple(mg->mg_obj);
Error: CPPCHECK_WARNING: [#def256]
perl-5.40.0-build/perl-5.40.0/miniperlmain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def257]
perl-5.40.0-build/perl-5.40.0/mro_core.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-119): [#def258]
perl-5.40.0-build/perl-5.40.0/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): [#def259]
perl-5.40.0-build/perl-5.40.0/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: [#def260]
perl-5.40.0-build/perl-5.40.0/numeric.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def261]
perl-5.40.0-build/perl-5.40.0/op.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def262]
perl-5.40.0-build/perl-5.40.0/op.h:536:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:802:10: note: in expansion of macro ‘cSVOPx_sv’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:799:13: note: in expansion of macro ‘OpSIBLING’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:802:10: note: in expansion of macro ‘cSVOPx_sv’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:802:10: note: in expansion of macro ‘cSVOPx_sv’
# 534| (v && (SvREADONLY(v) || (SvIsCOW(v) && !SvLEN(v))))
# 535| # endif
# 536|-> # define cSVOPx_sv(v) (cSVOPx(v)->op_sv \
# 537| ? cSVOPx(v)->op_sv : PAD_SVl((v)->op_targ))
# 538| # define cSVOPx_svp(v) (cSVOPx(v)->op_sv \
Error: GCC_ANALYZER_WARNING (CWE-476): [#def263]
perl-5.40.0-build/perl-5.40.0/perl.h:4549: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/ext/Devel-Peek/Peek.xs:3: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/ext/Devel-Peek/Peek.xs: scope_hint: In function ‘S_ck_dump’
perl-5.40.0-build/perl-5.40.0/op.h:1080:74: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/ext/Devel-Peek/Peek.xs:370:14: note: in expansion of macro ‘OpSIBLING’
perl-5.40.0-build/perl-5.40.0/ext/Devel-Peek/Peek.xs:369:13: note: in expansion of macro ‘OpSIBLING’
perl-5.40.0-build/perl-5.40.0/ext/Devel-Peek/Peek.xs:370:14: note: in expansion of macro ‘OpSIBLING’
perl-5.40.0-build/perl-5.40.0/ext/Devel-Peek/Peek.xs:370:14: note: in expansion of macro ‘OpSIBLING’
perl-5.40.0-build/perl-5.40.0/ext/Devel-Peek/Peek.xs:370:14: note: in expansion of macro ‘OpSIBLING’
perl-5.40.0-build/perl-5.40.0/ext/Devel-Peek/Peek.xs:370: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): [#def264]
perl-5.40.0-build/perl-5.40.0/perl.h:4549: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs: scope_hint: In function ‘THX_ck_entersub_args_scalars’
perl-5.40.0-build/perl-5.40.0/op.h:1080:74: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘aop’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:595:58: note: in expansion of macro ‘OpSIBLING’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:595:32: note: in expansion of macro ‘OpHAS_SIBLING’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:596:9: note: in expansion of macro ‘op_contextualize’
perl-5.40.0-build/perl-5.40.0/ext/XS-APItest/APItest.xs:595:58: 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): [#def265]
perl-5.40.0-build/perl-5.40.0/perl.h:4549: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/class.c:16: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/class.c: scope_hint: In function ‘Perl_class_seal_stash’
perl-5.40.0-build/perl-5.40.0/op.h:1083:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/class.c:720:17: note: in expansion of macro ‘OpLASTSIB_set’
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/hv.h:705:17: note: in expansion of macro ‘MUTABLE_HV’
perl-5.40.0-build/perl-5.40.0/hv.h:705:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/class.c:658:32: note: in expansion of macro ‘newHV’
perl-5.40.0-build/perl-5.40.0/perl.h:7870: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/hv.h:705:17: note: in expansion of macro ‘MUTABLE_HV’
perl-5.40.0-build/perl-5.40.0/hv.h:705:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/class.c:658:32: note: in expansion of macro ‘newHV’
perl-5.40.0-build/perl-5.40.0/perl.h:4546: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/class.c:698:27: note: in expansion of macro ‘PadnamelistARRAY’
perl-5.40.0-build/perl-5.40.0/class.c:716:21: note: in expansion of macro ‘OpSIBLING’
perl-5.40.0-build/perl-5.40.0/class.c:717:17: note: in expansion of macro ‘OpLASTSIB_set’
perl-5.40.0-build/perl-5.40.0/class.c:720:17: note: in expansion of macro ‘OpLASTSIB_set’
perl-5.40.0-build/perl-5.40.0/class.c:720: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: [#def266]
perl-5.40.0-build/perl-5.40.0/pad.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def267]
perl-5.40.0-build/perl-5.40.0/peep.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def268]
perl-5.40.0-build/perl-5.40.0/peep.c:3649:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.40.0-build/perl-5.40.0/peep.c:2719:5: note: in expansion of macro ‘ENTER’
perl-5.40.0-build/perl-5.40.0/op.h:1080:39: note: in definition of macro ‘OpSIBLING’
perl-5.40.0-build/perl-5.40.0/op.h:474:25: note: in expansion of macro ‘cLISTOPx’
perl-5.40.0-build/perl-5.40.0/op.h:474:34: note: in expansion of macro ‘PL_op’
perl-5.40.0-build/perl-5.40.0/peep.c:3648:47: note: in expansion of macro ‘cLISTOP’
perl-5.40.0-build/perl-5.40.0/peep.c:3648:37: note: in expansion of macro ‘OpSIBLING’
# 3647| /* first arg is a code block */
# 3648| OP * const nullop = OpSIBLING(cLISTOP->op_first);
# 3649|-> OP * kid = cUNOPx(nullop)->op_first;
# 3650|
# 3651| assert(nullop->op_type == OP_NULL);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def269]
perl-5.40.0-build/perl-5.40.0/peep.c:3649:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldoldop’
perl-5.40.0-build/perl-5.40.0/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.40.0-build/perl-5.40.0/peep.c:2719:5: note: in expansion of macro ‘ENTER’
perl-5.40.0-build/perl-5.40.0/peep.c:3648:37: note: in expansion of macro ‘OpSIBLING’
# 3647| /* first arg is a code block */
# 3648| OP * const nullop = OpSIBLING(cLISTOP->op_first);
# 3649|-> OP * kid = cUNOPx(nullop)->op_first;
# 3650|
# 3651| assert(nullop->op_type == OP_NULL);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def270]
perl-5.40.0-build/perl-5.40.0/peep.c: scope_hint: In function ‘Perl_rpeep’
perl-5.40.0-build/perl-5.40.0/peep.c:3649:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldop’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/peep.c:26: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.40.0-build/perl-5.40.0/peep.c:2719:5: note: in expansion of macro ‘ENTER’
perl-5.40.0-build/perl-5.40.0/perl.h:4549: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/op.h:1080:39: note: in definition of macro ‘OpSIBLING’
perl-5.40.0-build/perl-5.40.0/op.h:474:25: note: in expansion of macro ‘cLISTOPx’
perl-5.40.0-build/perl-5.40.0/op.h:474:34: note: in expansion of macro ‘PL_op’
perl-5.40.0-build/perl-5.40.0/peep.c:3648:47: note: in expansion of macro ‘cLISTOP’
perl-5.40.0-build/perl-5.40.0/peep.c:3648:37: note: in expansion of macro ‘OpSIBLING’
# 3647| /* first arg is a code block */
# 3648| OP * const nullop = OpSIBLING(cLISTOP->op_first);
# 3649|-> OP * kid = cUNOPx(nullop)->op_first;
# 3650|
# 3651| assert(nullop->op_type == OP_NULL);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def271]
perl-5.40.0-build/perl-5.40.0/peep.c:3903:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.40.0-build/perl-5.40.0/peep.c:2719:5: note: in expansion of macro ‘ENTER’
# 3901| OP *left = OpSIBLING(right);
# 3902| if (left->op_type == OP_SUBSTR
# 3903|-> && (left->op_private & 7) < 4) {
# 3904| op_null(o);
# 3905| /* cut out right */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def272]
perl-5.40.0-build/perl-5.40.0/peep.c:3903:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldoldop’
perl-5.40.0-build/perl-5.40.0/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.40.0-build/perl-5.40.0/peep.c:2719:5: note: in expansion of macro ‘ENTER’
# 3901| OP *left = OpSIBLING(right);
# 3902| if (left->op_type == OP_SUBSTR
# 3903|-> && (left->op_private & 7) < 4) {
# 3904| op_null(o);
# 3905| /* cut out right */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def273]
perl-5.40.0-build/perl-5.40.0/peep.c:3903:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldop’
perl-5.40.0-build/perl-5.40.0/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.40.0-build/perl-5.40.0/peep.c:2719:5: note: in expansion of macro ‘ENTER’
perl-5.40.0-build/perl-5.40.0/peep.c:3901:32: note: in expansion of macro ‘OpSIBLING’
perl-5.40.0-build/perl-5.40.0/peep.c:3901:32: note: in expansion of macro ‘OpSIBLING’
# 3901| OP *left = OpSIBLING(right);
# 3902| if (left->op_type == OP_SUBSTR
# 3903|-> && (left->op_private & 7) < 4) {
# 3904| op_null(o);
# 3905| /* cut out right */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def274]
perl-5.40.0-build/perl-5.40.0/peep.c:4010:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldoldop’
perl-5.40.0-build/perl-5.40.0/scope.h:151:15: note: in expansion of macro ‘push_scope’
perl-5.40.0-build/perl-5.40.0/peep.c:2719:5: note: in expansion of macro ‘ENTER’
perl-5.40.0-build/perl-5.40.0/peep.c:3987:21: note: in expansion of macro ‘OP_GIMME’
perl-5.40.0-build/perl-5.40.0/peep.c:3992:17: note: in expansion of macro ‘OpTYPE_set’
# 4008| assert(oldop->op_type == OP_AELEMFAST_LEX);
# 4009| /* oldoldop can be arbitrarily deep in the RHS OP tree */
# 4010|-> oldoldop->op_next = o;
# 4011|
# 4012| /* Even when (rhs != oldoldop), rhs might still have a
Error: CPPCHECK_WARNING: [#def275]
perl-5.40.0-build/perl-5.40.0/perl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def276]
perl-5.40.0-build/perl-5.40.0/perl.c:1909: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1907| PL_dowarn = G_WARN_OFF;
# 1908|
# 1909|-> JMPENV_PUSH(ret);
# 1910| switch (ret) {
# 1911| case 0:
Error: CLANG_WARNING: [#def277]
perl-5.40.0-build/perl-5.40.0/perl.c:2248:17: warning[deadcode.DeadStores]: Value stored to 's' is never read
# 2246| forbid_setid('m', FALSE); /* XXX ? */
# 2247| if (*++s) /* -MModule */
# 2248|-> s = S_moreswitch_m(aTHX_ c, s);
# 2249| else if(argc && argv[1]) { /* -M Module */
# 2250| argc--; argv++;
Error: CLANG_WARNING: [#def278]
perl-5.40.0-build/perl-5.40.0/perl.c:2251:17: warning[deadcode.DeadStores]: Value stored to 's' is never read
# 2249| else if(argc && argv[1]) { /* -M Module */
# 2250| argc--; argv++;
# 2251|-> s = S_moreswitch_m(aTHX_ c, *argv);
# 2252| }
# 2253| else
Error: CPPCHECK_WARNING (CWE-562): [#def279]
perl-5.40.0-build/perl-5.40.0/perl.c:2773: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 2771| #endif
# 2772|
# 2773|-> JMPENV_PUSH(ret);
# 2774| switch (ret) {
# 2775| case 1:
Error: CPPCHECK_WARNING (CWE-562): [#def280]
perl-5.40.0-build/perl-5.40.0/perl.c:3162: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3160| myop.op_type = OP_ENTERSUB;
# 3161| SAVEOP();
# 3162|-> PL_op = (OP*)&myop;
# 3163|
# 3164| if (!(flags & G_METHOD_NAMED)) {
Error: CPPCHECK_WARNING (CWE-562): [#def281]
perl-5.40.0-build/perl-5.40.0/perl.c:3186: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3184| Zero(&method_op, 1, METHOP);
# 3185| method_op.op_next = (OP*)&myop;
# 3186|-> PL_op = (OP*)&method_op;
# 3187| if ( flags & G_METHOD_NAMED ) {
# 3188| method_op.op_ppaddr = PL_ppaddr[OP_METHOD_NAMED];
Error: CPPCHECK_WARNING (CWE-562): [#def282]
perl-5.40.0-build/perl-5.40.0/perl.c:3211: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3209| INCMARK;
# 3210|
# 3211|-> JMPENV_PUSH(ret);
# 3212|
# 3213| switch (ret) {
Error: CPPCHECK_WARNING (CWE-562): [#def283]
perl-5.40.0-build/perl-5.40.0/perl.c:3350: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3348| TAINT_PROPER("eval_sv()");
# 3349|
# 3350|-> JMPENV_PUSH(ret);
# 3351| switch (ret) {
# 3352| case 0:
Error: GCC_ANALYZER_WARNING (CWE-835): [#def284]
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perl.c:39: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perl.c: scope_hint: In function ‘Perl_moreswitches’
perl-5.40.0-build/perl-5.40.0/perl.c:3746:30: warning[-Wanalyzer-infinite-loop]: infinite loop
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.40.0-build/perl-5.40.0/perl.c:3746:19: note: in expansion of macro ‘isWORDCHAR’
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.40.0-build/perl-5.40.0/perl.c:3746:19: note: in expansion of macro ‘isWORDCHAR’
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.40.0-build/perl-5.40.0/perl.c:3746:19: note: in expansion of macro ‘isWORDCHAR’
# 3744|
# 3745| /* We now allow -d:Module=Foo,Bar and -d:-Module */
# 3746|-> while(isWORDCHAR(*s) || *s==':') ++s;
# 3747| if (*s != '=')
# 3748| sv_catpvn(sv, start, end - start);
Error: GCC_ANALYZER_WARNING (CWE-835): [#def285]
perl-5.40.0-build/perl-5.40.0/perl.c:3774:30: warning[-Wanalyzer-infinite-loop]: infinite loop
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.40.0-build/perl-5.40.0/perl.c:3774:19: note: in expansion of macro ‘isWORDCHAR’
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.40.0-build/perl-5.40.0/perl.c:3774:19: note: in expansion of macro ‘isWORDCHAR’
perl-5.40.0-build/perl-5.40.0/handy.h:1659:28: note: in expansion of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.40.0-build/perl-5.40.0/perl.c:3774:19: note: in expansion of macro ‘isWORDCHAR’
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1862:23: note: in expansion of macro ‘isWORDCHAR_A’
perl-5.40.0-build/perl-5.40.0/perl.c:3774:19: note: in expansion of macro ‘isWORDCHAR’
# 3772| Perl_warner(aTHX_ packWARN(WARN_DEBUGGING),
# 3773| "Recompile perl with -DDEBUGGING to use -D switch (did you mean -d ?)\n");
# 3774|-> for (s++; isWORDCHAR(*s); s++) ;
# 3775| #endif
# 3776| return s;
Error: GCC_ANALYZER_WARNING (CWE-835): [#def286]
perl-5.40.0-build/perl-5.40.0/perl.c:3813:32: warning[-Wanalyzer-infinite-loop]: infinite loop
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.40.0-build/perl-5.40.0/perl.c:3813:24: note: in expansion of macro ‘isSPACE’
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.40.0-build/perl-5.40.0/perl.c:3813:24: note: in expansion of macro ‘isSPACE’
perl-5.40.0-build/perl-5.40.0/handy.h:1658:26: note: in expansion of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.40.0-build/perl-5.40.0/perl.c:3813:24: note: in expansion of macro ‘isSPACE’
perl-5.40.0-build/perl-5.40.0/handy.h:1634:33: note: in definition of macro ‘generic_isCC_A_’
perl-5.40.0-build/perl-5.40.0/handy.h:1860:22: note: in expansion of macro ‘isSPACE_A’
perl-5.40.0-build/perl-5.40.0/perl.c:3813:24: note: in expansion of macro ‘isSPACE’
# 3811| for (e = p; *e && !isSPACE(*e); e++) ;
# 3812| p = e;
# 3813|-> while (isSPACE(*p))
# 3814| p++;
# 3815| } while (*p && *p != '-');
Error: CPPCHECK_WARNING (CWE-562): [#def287]
perl-5.40.0-build/perl-5.40.0/perl.c:5292: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5290| SAVEFREESV(cv);
# 5291| }
# 5292|-> JMPENV_PUSH(ret);
# 5293| switch (ret) {
# 5294| case 0:
Error: GCC_ANALYZER_WARNING (CWE-688): [#def288]
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:131: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs: scope_hint: In function ‘S_get_userlock’
perl-5.40.0-build/perl-5.40.0/perl.h:1773:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ul’ where non-null expected
perl-5.40.0-build/perl-5.40.0/handy.h:2881:73: note: in expansion of macro ‘memzero’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:424:9: note: in expansion of macro ‘Zero’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:132: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/XSUB.h:150:41: note: in definition of macro ‘XS_INTERNAL’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.c:2051:1: note: in expansion of macro ‘XS_EUPXS’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.c:2061:25: note: in expansion of macro ‘ST’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:407:5: note: in expansion of macro ‘ENTER_LOCK’
perl-5.40.0-build/perl-5.40.0/perl.h:6165: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:249:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:209:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:249:5: note: in expansion of macro ‘MUTEX_LOCK’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:279:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:221:9: note: in expansion of macro ‘RESTORE_ERRNO’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:279:5: note: in expansion of macro ‘MUTEX_UNLOCK’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:407:5: note: in expansion of macro ‘ENTER_LOCK’
perl-5.40.0-build/perl-5.40.0/thread.h:411:71: note: in definition of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:422:9: note: in expansion of macro ‘SHARED_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:165:9: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:422:9: note: in expansion of macro ‘SHARED_CONTEXT’
perl-5.40.0-build/perl-5.40.0/perl.h:6371:30: note: in definition of macro ‘PERL_SET_NON_tTHX_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:165:9: note: in expansion of macro ‘PERL_SET_CONTEXT’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:422:9: note: in expansion of macro ‘SHARED_CONTEXT’
perl-5.40.0-build/perl-5.40.0/perl.h:4496: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:423:28: note: in expansion of macro ‘PerlMemShared_malloc’
perl-5.40.0-build/perl-5.40.0/handy.h:2881:73: note: in expansion of macro ‘memzero’
perl-5.40.0-build/perl-5.40.0/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
# 1771| */
# 1772| #ifndef memzero
# 1773|-> # define memzero(d,l) memset(d,0,l)
# 1774| #endif
# 1775|
Error: CPPCHECK_WARNING: [#def289]
perl-5.40.0-build/perl-5.40.0/perlio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def290]
perl-5.40.0-build/perl-5.40.0/perlio.c:2380: warning[uninitvar]: Uninitialized variable: buf
# 2378| }
# 2379| *s = '\0';
# 2380|-> return buf;
# 2381| }
# 2382|
Error: CPPCHECK_WARNING (CWE-404): [#def291]
perl-5.40.0-build/perl-5.40.0/perlio.c:3455: error[resourceLeak]: Resource leak: stdio
# 3453| s->stdio);
# 3454| if (!s->stdio)
# 3455|-> return NULL;
# 3456| s->stdio = stdio;
# 3457| fd = fileno(stdio);
Error: CPPCHECK_WARNING (CWE-664): [#def292]
perl-5.40.0-build/perl-5.40.0/perlio.c:5409: error[va_list_usedBeforeStarted]: va_list 'apc' used before va_start() was called.
# 5407| #ifdef NEED_VA_COPY
# 5408| va_list apc;
# 5409|-> Perl_va_copy(ap, apc);
# 5410| sv = vnewSVpvf(fmt, &apc);
# 5411| va_end(apc);
Error: CPPCHECK_WARNING (CWE-664): [#def293]
perl-5.40.0-build/perl-5.40.0/perlio.c:5410: error[va_list_usedBeforeStarted]: va_list 'apc' used before va_start() was called.
# 5408| va_list apc;
# 5409| Perl_va_copy(ap, apc);
# 5410|-> sv = vnewSVpvf(fmt, &apc);
# 5411| va_end(apc);
# 5412| #else
Error: CPPCHECK_WARNING (CWE-664): [#def294]
perl-5.40.0-build/perl-5.40.0/perlio.c:5411: error[va_list_usedBeforeStarted]: va_list 'apc' used before va_start() was called.
# 5409| Perl_va_copy(ap, apc);
# 5410| sv = vnewSVpvf(fmt, &apc);
# 5411|-> va_end(apc);
# 5412| #else
# 5413| sv = vnewSVpvf(fmt, &ap);
Error: CPPCHECK_WARNING: [#def295]
perl-5.40.0-build/perl-5.40.0/perlmain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def296]
perl-5.40.0-build/perl-5.40.0/perly.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def297]
perl-5.40.0-build/perl-5.40.0/perly.c:449: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perly.y: scope_hint: In function ‘Perl_yyparse’
perl-5.40.0-build/perl-5.40.0/perly.y:993:45: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aux’
perl-5.40.0-build/perl-5.40.0/perly.c:75: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perly.c:300:15: note: in expansion of macro ‘YYTRANSLATE’
perl-5.40.0-build/perl-5.40.0/perl.h:4496: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perly.c:26: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/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: [#def298]
perl-5.40.0-build/perl-5.40.0/pp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def299]
perl-5.40.0-build/perl-5.40.0/pp_ctl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def300]
perl-5.40.0-build/perl-5.40.0/pp_ctl.c:92:44: warning: missing terminating ' character
# 92 | SV **args;
# | ^
# 90| {
# 91| PMOP *pm = cPMOPx(cLOGOP->op_other);
# 92|-> SV **args;
# 93| int nargs;
# 94| REGEXP *re = NULL;
Error: CPPCHECK_WARNING: [#def301]
perl-5.40.0-build/perl-5.40.0/pp_hot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def302]
perl-5.40.0-build/perl-5.40.0/pp_pack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def303]
perl-5.40.0-build/perl-5.40.0/pp_sort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def304]
perl-5.40.0-build/perl-5.40.0/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: [#def305]
perl-5.40.0-build/perl-5.40.0/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: CLANG_WARNING: [#def306]
perl-5.40.0-build/perl-5.40.0/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: CLANG_WARNING: [#def307]
perl-5.40.0-build/perl-5.40.0/pp_sort.c:776:41: warning[deadcode.DeadStores]: Value stored to 'cv' is never read
# 774| }
# 775| else if (!CvANON(cv) && (gv = CvGV(cv))) {
# 776|-> if (cv != GvCV(gv)) cv = GvCV(gv);
# 777| autoload:
# 778| if (!autogv && (
Error: CPPCHECK_WARNING: [#def308]
perl-5.40.0-build/perl-5.40.0/pp_sys.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def309]
perl-5.40.0-build/perl-5.40.0/pp_sys.c: scope_hint: In function ‘Perl_pp_listen’
perl-5.40.0-build/perl-5.40.0/pp_sys.c:2829:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘Perl_PerlIO_fileno(my_perl, *<unknown>.sv_u.svu_fp)’
perl-5.40.0-build/perl-5.40.0/perl.h:4496: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/pp_sys.c:2829:9: note: in expansion of macro ‘PerlSock_listen’
# 2827| goto nuts;
# 2828|
# 2829|-> if (PerlSock_listen(PerlIO_fileno(IoIFP(io)), backlog) >= 0)
# 2830| RETPUSHYES;
# 2831| else
Error: COMPILER_WARNING (CWE-1164): [#def310]
perl-5.40.0-build/perl-5.40.0/perl.h:6186: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/_cflags.c:2: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/proto.h:626:1: warning[-Wunused-function]: ‘Perl_croak_memory_wrap’ declared ‘static’ but never defined
# 626 | Perl_croak_memory_wrap(void)
# | ^~~~~~~~~~~~~~~~~~~~~~
# 624|
# 625| PERL_STATIC_NO_RET void
# 626|-> Perl_croak_memory_wrap(void)
# 627| __attribute__noreturn__;
# 628| #define PERL_ARGS_ASSERT_CROAK_MEMORY_WRAP
Error: CPPCHECK_WARNING: [#def311]
perl-5.40.0-build/perl-5.40.0/reentr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def312]
perl-5.40.0-build/perl-5.40.0/regcomp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def313]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:14: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/reginline.h: scope_hint: In function ‘Perl_regnode_after’
perl-5.40.0-build/perl-5.40.0/regcomp.h:514:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
perl-5.40.0-build/perl-5.40.0/regcomp.h:527:28: note: in definition of macro ‘STR_SZ’
perl-5.40.0-build/perl-5.40.0/regcomp.h:520:50: note: in expansion of macro ‘STR_LENl’
perl-5.40.0-build/perl-5.40.0/reginline.h:42:23: note: in expansion of macro ‘STR_LEN’
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:9: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/perl.h:7870: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:620:9: note: in expansion of macro ‘sv_setiv’
perl-5.40.0-build/perl-5.40.0/regcomp.h:652:37: note: in expansion of macro ‘regnode_after’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:663:26: note: in expansion of macro ‘REGNODE_AFTER’
perl-5.40.0-build/perl-5.40.0/regcomp.h:652:37: note: in expansion of macro ‘regnode_after’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:663:26: note: in expansion of macro ‘REGNODE_AFTER’
perl-5.40.0-build/perl-5.40.0/regcomp.h:1551: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/reginline.h:41:19: note: in expansion of macro ‘REGNODE_ARG_LEN_VARIES’
perl-5.40.0-build/perl-5.40.0/regcomp.h:652:37: note: in expansion of macro ‘regnode_after’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:663:26: note: in expansion of macro ‘REGNODE_AFTER’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:662:44: note: in expansion of macro ‘regnext’
perl-5.40.0-build/perl-5.40.0/reginline.h:16:9: note: in expansion of macro ‘OP’
perl-5.40.0-build/perl-5.40.0/regcomp.h:1545:59: note: in definition of macro ‘REGNODE_OFF_BY_ARG’
perl-5.40.0-build/perl-5.40.0/reginline.h:21:34: note: in expansion of macro ‘OP’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:662:44: note: in expansion of macro ‘regnext’
perl-5.40.0-build/perl-5.40.0/regcomp.h:652:37: note: in expansion of macro ‘regnode_after’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:663:26: note: in expansion of macro ‘REGNODE_AFTER’
perl-5.40.0-build/perl-5.40.0/regcomp.h:652:37: note: in expansion of macro ‘regnode_after’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:663:26: note: in expansion of macro ‘REGNODE_AFTER’
perl-5.40.0-build/perl-5.40.0/reginline.h:41:19: note: in expansion of macro ‘REGNODE_ARG_LEN_VARIES’
perl-5.40.0-build/perl-5.40.0/regcomp.h:527:28: note: in definition of macro ‘STR_SZ’
perl-5.40.0-build/perl-5.40.0/reginline.h:42:23: note: in expansion of macro ‘STR_LEN’
perl-5.40.0-build/perl-5.40.0/regcomp.h:527:28: note: in definition of macro ‘STR_SZ’
perl-5.40.0-build/perl-5.40.0/regcomp.h:520:50: note: in expansion of macro ‘STR_LENl’
perl-5.40.0-build/perl-5.40.0/reginline.h:42:23: note: in expansion of macro ‘STR_LEN’
perl-5.40.0-build/perl-5.40.0/regcomp.h:527:28: note: in definition of macro ‘STR_SZ’
perl-5.40.0-build/perl-5.40.0/regcomp.h:520:50: note: in expansion of macro ‘STR_LENl’
perl-5.40.0-build/perl-5.40.0/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: [#def314]
perl-5.40.0-build/perl-5.40.0/regcomp_debug.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def315]
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def316]
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c:819:9: warning[deadcode.DeadStores]: Value stored to 'array_u' is never read
# 817| invlist_set_len(u, len_u, *get_invlist_offset_addr(u));
# 818| invlist_trim(u);
# 819|-> array_u = invlist_array(u);
# 820| }
# 821|
Error: CLANG_WARNING: [#def317]
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c:1053:9: warning[deadcode.DeadStores]: Value stored to 'array_r' is never read
# 1051| invlist_set_len(r, len_r, *get_invlist_offset_addr(r));
# 1052| invlist_trim(r);
# 1053|-> array_r = invlist_array(r);
# 1054| }
# 1055|
Error: CLANG_WARNING: [#def318]
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c:1168:13: warning[deadcode.DeadStores]: Value stored to 'i_s' is never read
# 1166| * extend it, we have to insert it as an additional range */
# 1167| if (end < array[0] - 1) {
# 1168|-> i_s = i_e = -1;
# 1169| goto splice_in_new_range;
# 1170| }
Error: CLANG_WARNING: [#def319]
perl-5.40.0-build/perl-5.40.0/regcomp_invlist.c:1531:15: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1529|
# 1530| return len_a == len_b
# 1531|-> && memEQ(array_a, array_b, len_a * sizeof(array_a[0]));
# 1532|
# 1533| }
Error: CLANG_WARNING: [#def320]
perl-5.40.0-build/perl-5.40.0/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: [#def321]
perl-5.40.0-build/perl-5.40.0/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: [#def322]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:1746:41: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 1744| delta += max1 - min1;
# 1745| if (flags & SCF_DO_STCLASS_OR) {
# 1746|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass*) &accum);
# 1747| if (min1) {
# 1748| ssc_and(pRExC_state, data->start_class, (regnode_charclass *) and_withp);
Error: CLANG_WARNING: [#def323]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:1761:25: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 1759| * data->start_class */
# 1760| INIT_AND_WITHP;
# 1761|-> StructCopy(data->start_class, and_withp, regnode_ssc);
# 1762| flags &= ~SCF_DO_STCLASS_AND;
# 1763| StructCopy(&accum, data->start_class, regnode_ssc);
Error: CLANG_WARNING: [#def324]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:2195:38: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2193| is_inf = is_inf_internal = 1;
# 2194| if (flags & SCF_DO_STCLASS_OR) /* Allow everything */
# 2195|-> ssc_anything(data->start_class);
# 2196| flags &= ~SCF_DO_STCLASS;
# 2197|
Error: CLANG_WARNING: [#def325]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:2497:30: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2495| if (flags & SCF_DO_STCLASS) {
# 2496| ssc_init(pRExC_state, &this_class);
# 2497|-> oclass = data->start_class;
# 2498| data->start_class = &this_class;
# 2499| f |= SCF_DO_STCLASS_AND;
Error: CLANG_WARNING: [#def326]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:2532:45: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2530| if (mincount == 0 || minnext == 0) {
# 2531| if (flags & SCF_DO_STCLASS_OR) {
# 2532|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass *) &this_class);
# 2533| }
# 2534| else if (flags & SCF_DO_STCLASS_AND) {
Error: CLANG_WARNING: [#def327]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:2538:25: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2536| * data->start_class */
# 2537| INIT_AND_WITHP;
# 2538|-> StructCopy(data->start_class, and_withp, regnode_ssc);
# 2539| flags &= ~SCF_DO_STCLASS_AND;
# 2540| StructCopy(&this_class, data->start_class, regnode_ssc);
Error: CLANG_WARNING: [#def328]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:2547:45: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2545| } else { /* Non-zero len */
# 2546| if (flags & SCF_DO_STCLASS_OR) {
# 2547|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass *) &this_class);
# 2548| ssc_and(pRExC_state, data->start_class, (regnode_charclass *) and_withp);
# 2549| }
Error: CLANG_WARNING: [#def329]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:2551:46: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 2549| }
# 2550| else if (flags & SCF_DO_STCLASS_AND)
# 2551|-> ssc_and(pRExC_state, data->start_class, (regnode_charclass *) &this_class);
# 2552| flags &= ~SCF_DO_STCLASS;
# 2553| }
Error: CLANG_WARNING: [#def330]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:2758:25: warning[core.NullDereference]: Access to field 'last_end' results in a dereference of a null pointer (loaded from variable 'data')
# 2756| int counted = mincount != 0;
# 2757|
# 2758|-> if (data->last_end > 0 && mincount != 0) { /* Ends with a
# 2759| string. */
# 2760| SSize_t b = pos_before >= data->last_start_min
Error: CLANG_WARNING: [#def331]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:3178:17: warning[deadcode.DeadStores]: Value stored to 'next' is never read
# 3176| if (flags & SCF_WHILEM_VISITED_POS)
# 3177| f |= SCF_WHILEM_VISITED_POS;
# 3178|-> next = regnext(scan);
# 3179| nscan = REGNODE_AFTER(scan);
# 3180|
Error: CLANG_WARNING: [#def332]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:3235:47: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 3233| * See [perl #56690].
# 3234| */
# 3235|-> ssc_init(pRExC_state, data->start_class);
# 3236| } else {
# 3237| /* AND before and after: combine and continue. These
Error: CLANG_WARNING: [#def333]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:3240:46: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 3238| * assertions are zero-length, so can match an EMPTY
# 3239| * string */
# 3240|-> ssc_and(pRExC_state, data->start_class, (regnode_charclass *) &intrnl);
# 3241| ANYOF_FLAGS(data->start_class)
# 3242| |= SSC_MATCHES_EMPTY_STRING;
Error: CLANG_WARNING: [#def334]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:3540:37: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 3538| }
# 3539| if (flags & SCF_DO_STCLASS_OR) {
# 3540|-> ssc_or(pRExC_state, data->start_class, (regnode_charclass *) &accum);
# 3541| if (min1) {
# 3542| ssc_and(pRExC_state, data->start_class, (regnode_charclass *) and_withp);
Error: CLANG_WARNING: [#def335]
perl-5.40.0-build/perl-5.40.0/regcomp_study.c:3548:42: warning[core.NullDereference]: Access to field 'start_class' results in a dereference of a null pointer (loaded from variable 'data')
# 3546| else if (flags & SCF_DO_STCLASS_AND) {
# 3547| if (min1) {
# 3548|-> ssc_and(pRExC_state, data->start_class, (regnode_charclass *) &accum);
# 3549| flags &= ~SCF_DO_STCLASS;
# 3550| }
Error: CPPCHECK_WARNING: [#def336]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def337]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c: scope_hint: In function ‘Perl_make_trie’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:603:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘trie’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/perl.h:4496: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:602:30: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:602:30: note: in expansion of macro ‘PerlMemShared_calloc’
# 601| /* create the trie struct, all zeroed */
# 602| trie = (reg_trie_data *) PerlMemShared_calloc( 1, sizeof(reg_trie_data) );
# 603|-> trie->refcount = 1;
# 604| trie->startstate = 1;
# 605| trie->wordcount = word_count;
Error: CLANG_WARNING: [#def338]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:843:25: warning[core.NullDereference]: Dereference of null pointer
# 841| : ARG2a(first); /* BRANCHJ */
# 842|
# 843|-> trie->after_paren = OP(lastbranch) == BRANCH
# 844| ? ARG1b(lastbranch)
# 845| : ARG2b(lastbranch); /* BRANCHJ */
Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1037:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:839:26: note: in expansion of macro ‘OP’
perl-5.40.0-build/perl-5.40.0/handy.h:2773:32: note: in expansion of macro ‘MEM_WRAP_CHECK’
perl-5.40.0-build/perl-5.40.0/handy.h:2850:31: note: in expansion of macro ‘MEM_WRAP_CHECK_’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:877:5: note: in expansion of macro ‘Newx’
perl-5.40.0-build/perl-5.40.0/handy.h:2841:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.40.0-build/perl-5.40.0/perl.h:1751:23: note: in expansion of macro ‘safesysmalloc’
perl-5.40.0-build/perl-5.40.0/handy.h:2850:74: note: in expansion of macro ‘safemalloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:877:5: note: in expansion of macro ‘Newx’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:901:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:995:13: note: in expansion of macro ‘PerlMemShared_realloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1006:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1038:29: note: in expansion of macro ‘PerlMemShared_realloc’
# 1035| if ( transcount < tp + maxid - minid + 1) {
# 1036| transcount *= 2;
# 1037|-> trie->trans = (reg_trie_trans *)
# 1038| PerlMemShared_realloc( trie->trans,
# 1039| transcount
Error: GCC_ANALYZER_WARNING (CWE-476): [#def340]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1059:52: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*trie.trans + (long unsigned int)tp * 8’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/handy.h:99:41: note: in definition of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/av.h:218:17: note: in expansion of macro ‘MUTABLE_AV’
perl-5.40.0-build/perl-5.40.0/av.h:218:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:556:22: note: in expansion of macro ‘newAV’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:839:26: note: in expansion of macro ‘OP’
perl-5.40.0-build/perl-5.40.0/handy.h:2773:32: note: in expansion of macro ‘MEM_WRAP_CHECK’
perl-5.40.0-build/perl-5.40.0/handy.h:2850:31: note: in expansion of macro ‘MEM_WRAP_CHECK_’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:877:5: note: in expansion of macro ‘Newx’
perl-5.40.0-build/perl-5.40.0/handy.h:2841:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.40.0-build/perl-5.40.0/perl.h:1751:23: note: in expansion of macro ‘safesysmalloc’
perl-5.40.0-build/perl-5.40.0/handy.h:2850:74: note: in expansion of macro ‘safemalloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:877:5: note: in expansion of macro ‘Newx’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:901:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:995:13: note: in expansion of macro ‘PerlMemShared_realloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1006:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1059:54: note: in expansion of macro ‘TRIE_LIST_ITEM’
# 1057| }
# 1058| if ( !set ) {
# 1059|-> trie->trans[ tp ].next = TRIE_LIST_ITEM( state,
# 1060| 1).newstate;
# 1061| trie->trans[ tp ].check = state;
Error: CLANG_WARNING: [#def341]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1184:39: warning[core.DivideZero]: Division by zero
# 1182| trie->trans[ state ].check++;
# 1183| prev_states[TRIE_NODENUM(next_alloc)]
# 1184|-> = TRIE_NODENUM(state);
# 1185| next_alloc += trie->uniquecharcount;
# 1186| }
Error: CLANG_WARNING: [#def342]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1201:28: warning[core.DivideZero]: Division by zero
# 1199| noper= REGNODE_AFTER(cur);
# 1200| }
# 1201|-> accept_state = TRIE_NODENUM( state );
# 1202| TRIE_HANDLE_WORD(accept_state);
# 1203|
Error: CLANG_WARNING: [#def343]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1273:31: warning[core.DivideZero]: Division by zero
# 1271| demq
# 1272| */
# 1273|-> const U32 laststate = TRIE_NODENUM( next_alloc );
# 1274| U32 state, charid;
# 1275| U32 pos = 0, zp=0;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def344]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1675:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aho’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1666:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1673:27: note: in expansion of macro ‘PerlMemShared_calloc’
# 1673| aho = (reg_ac_data *) PerlMemShared_calloc( 1, sizeof(reg_ac_data) );
# 1674| RExC_rxi->data->data[ data_slot ] = (void*)aho;
# 1675|-> aho->trie=trie_offset;
# 1676| aho->states=(reg_trie_state *)PerlMemShared_malloc( numstates * sizeof(reg_trie_state) );
# 1677| Copy( trie->states, aho->states, numstates, reg_trie_state );
Error: GCC_ANALYZER_WARNING (CWE-476): [#def345]
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1684:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)numstates, 4)’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1666:13: note: in expansion of macro ‘PerlMemShared_calloc’
perl-5.40.0-build/perl-5.40.0/regcomp_trie.c:1679:25: note: in expansion of macro ‘PerlMemShared_calloc’
# 1682| /* initialize fail[0..1] to be 1 so that we always have
# 1683| a valid final fail state */
# 1684|-> fail[ 0 ] = fail[ 1 ] = 1;
# 1685|
# 1686| for ( charid = 0; charid < ucharcount ; charid++ ) {
Error: CPPCHECK_WARNING: [#def346]
perl-5.40.0-build/perl-5.40.0/regexec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def347]
perl-5.40.0-build/perl-5.40.0/regexec.c:210:253: warning: missing terminating " character
# 210 | rn = (FLAGS(rn) == 0) ? REGNODE_AFTER_type(rn,tregnode_IFMATCH) : rn + ARG1u(rn); \
# | ^
# 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); \
# 211| else rn += NEXT_OFF(rn); \
# 212| } \
Error: CPPCHECK_WARNING: [#def348]
perl-5.40.0-build/perl-5.40.0/run.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def349]
perl-5.40.0-build/perl-5.40.0/scope.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def350]
perl-5.40.0-build/perl-5.40.0/sv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def351]
perl-5.40.0-build/perl-5.40.0/perl.h:4541: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/cpan/Filter-Util-Call/Call.xs:17: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/cpan/Filter-Util-Call/Call.xs: scope_hint: In function ‘filter_call’
perl-5.40.0-build/perl-5.40.0/sv.h:373:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/sv.h:1434:31: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/cpan/Filter-Util-Call/Call.xs:64:50: note: in expansion of macro ‘SvCUR’
perl-5.40.0-build/perl-5.40.0/cpan/Filter-Util-Call/Call.xs:56:19: note: in expansion of macro ‘FILTER_DATA’
perl-5.40.0-build/perl-5.40.0/cpan/Filter-Util-Call/Call.xs:62:9: note: in expansion of macro ‘fdebug’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/cpan/Filter-Util-Call/Call.xs:63:9: note: in expansion of macro ‘warn’
perl-5.40.0-build/perl-5.40.0/sv.h:1434:31: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/cpan/Filter-Util-Call/Call.xs:64:50: note: in expansion of macro ‘SvCUR’
# 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): [#def352]
perl-5.40.0-build/perl-5.40.0/perl.h:4541: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/mg.c:45: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/mg.c: scope_hint: In function ‘Perl_defelem_target’
perl-5.40.0-build/perl-5.40.0/sv.h:373:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sv’
perl-5.40.0-build/perl-5.40.0/sv.h:1648:36: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/mg.c:2637:9: note: in expansion of macro ‘LvTARGLEN’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/mg.c:2635:19: note: in expansion of macro ‘mg_find’
perl-5.40.0-build/perl-5.40.0/mg.c:2635:19: note: in expansion of macro ‘mg_find’
perl-5.40.0-build/perl-5.40.0/mg.c: scope_hint: In function ‘Perl_defelem_target’
perl-5.40.0-build/perl-5.40.0/mg.c:2635:19: note: in expansion of macro ‘mg_find’
perl-5.40.0-build/perl-5.40.0/sv.h:1648:36: note: in expansion of macro ‘SvANY’
perl-5.40.0-build/perl-5.40.0/mg.c:2637: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): [#def353]
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perl.c: scope_hint: In function ‘S_mayberelocate’
perl-5.40.0-build/perl-5.40.0/sv.h:374:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/embed.h:441:79: note: in definition of macro ‘newSVpvn_flags’
perl-5.40.0-build/perl-5.40.0/sv.h:1070:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/perl.c:5037:44: note: in expansion of macro ‘SvUTF8’
perl-5.40.0-build/perl-5.40.0/perl.c:5025:38: note: in expansion of macro ‘get_sv’
perl-5.40.0-build/perl-5.40.0/perl.c:5025:38: note: in expansion of macro ‘get_sv’
perl-5.40.0-build/perl-5.40.0/perl.c:5025:38: note: in expansion of macro ‘get_sv’
perl-5.40.0-build/perl-5.40.0/embed.h:441:79: note: in definition of macro ‘newSVpvn_flags’
perl-5.40.0-build/perl-5.40.0/sv.h:1070:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/perl.c:5037: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): [#def354]
perl-5.40.0-build/perl-5.40.0/perl.h:4541: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/cpan/Scalar-List-Utils/ListUtil.xs:8: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/cpan/Scalar-List-Utils/ListUtil.xs: scope_hint: In function ‘XS_List__Util_uniq’
perl-5.40.0-build/perl-5.40.0/sv.h:374:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg’
perl-5.40.0-build/perl-5.40.0/sv.h:983:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/cpan/Scalar-List-Utils/ListUtil.xs:1376:17: note: in expansion of macro ‘SvOK’
perl-5.40.0-build/perl-5.40.0/cpan/Scalar-List-Utils/ListUtil.xs:9: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/XSUB.h:150:41: note: in definition of macro ‘XS_INTERNAL’
perl-5.40.0-build/perl-5.40.0/cpan/Scalar-List-Utils/ListUtil.c:1630:1: note: in expansion of macro ‘XS_EUPXS’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/embed.h:649:71: note: in definition of macro ‘sv_2mortal’
perl-5.40.0-build/perl-5.40.0/handy.h:107:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/hv.h:705:17: note: in expansion of macro ‘MUTABLE_HV’
perl-5.40.0-build/perl-5.40.0/hv.h:705:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/cpan/Scalar-List-Utils/ListUtil.xs:1343:30: note: in expansion of macro ‘newHV’
perl-5.40.0-build/perl-5.40.0/perl.h:7870: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/embed.h:649:71: note: in definition of macro ‘sv_2mortal’
perl-5.40.0-build/perl-5.40.0/handy.h:107:32: note: in expansion of macro ‘MUTABLE_PTR’
perl-5.40.0-build/perl-5.40.0/hv.h:705:17: note: in expansion of macro ‘MUTABLE_HV’
perl-5.40.0-build/perl-5.40.0/hv.h:705:28: note: in expansion of macro ‘newSV_type’
perl-5.40.0-build/perl-5.40.0/cpan/Scalar-List-Utils/ListUtil.xs:1343:30: note: in expansion of macro ‘newHV’
perl-5.40.0-build/perl-5.40.0/sv.h:1117:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/sv.h:1146:34: note: in expansion of macro ‘SvROK’
perl-5.40.0-build/perl-5.40.0/cpan/Scalar-List-Utils/ListUtil.xs:1372:16: note: in expansion of macro ‘SvAMAGIC’
perl-5.40.0-build/perl-5.40.0/pp.h:679:5: note: in expansion of macro ‘amagic_call’
perl-5.40.0-build/perl-5.40.0/pp.h:682:29: note: in expansion of macro ‘AMG_CALLunary’
perl-5.40.0-build/perl-5.40.0/cpan/Scalar-List-Utils/ListUtil.xs:1372:40: note: in expansion of macro ‘AMG_CALLun’
perl-5.40.0-build/perl-5.40.0/sv.h:983:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/cpan/Scalar-List-Utils/ListUtil.xs:1376:17: note: in expansion of macro ‘SvOK’
perl-5.40.0-build/perl-5.40.0/sv.h:983:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/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): [#def355]
perl-5.40.0-build/perl-5.40.0/perl.h:4541: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perl.c:39: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/inline.h: scope_hint: In function ‘Perl_av_count’
perl-5.40.0-build/perl-5.40.0/sv.h:374:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘av’
perl-5.40.0-build/perl-5.40.0/sv.h:1133:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/av.h:96:27: note: in expansion of macro ‘SvRMAGICAL’
perl-5.40.0-build/perl-5.40.0/inline.h:61:12: note: in expansion of macro ‘AvFILL’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perl.c:5188:28: note: in expansion of macro ‘av_count’
perl-5.40.0-build/perl-5.40.0/perl.c:5188:28: note: in expansion of macro ‘av_count’
perl-5.40.0-build/perl-5.40.0/perl.h:7869: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/sv.h:1133:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/av.h:96:27: note: in expansion of macro ‘SvRMAGICAL’
perl-5.40.0-build/perl-5.40.0/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): [#def356]
perl-5.40.0-build/perl-5.40.0/pp_hot.c: scope_hint: In function ‘Perl_pp_multiconcat’
perl-5.40.0-build/perl-5.40.0/sv.h:374:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘left’
perl-5.40.0-build/perl-5.40.0/sv.h:1074:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/pp_hot.c:1268:22: note: in expansion of macro ‘SvPOK’
perl-5.40.0-build/perl-5.40.0/pp_hot.c:1267:21: note: in expansion of macro ‘PL_op’
perl-5.40.0-build/perl-5.40.0/sv.h:1074:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/pp_hot.c:1268:22: note: in expansion of macro ‘SvPOK’
perl-5.40.0-build/perl-5.40.0/sv.h:1074:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/pp_hot.c:1268: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): [#def357]
perl-5.40.0-build/perl-5.40.0/sv_inline.h: scope_hint: In function ‘Perl_SvGETMAGIC’
perl-5.40.0-build/perl-5.40.0/sv.h:374:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sv’
perl-5.40.0-build/perl-5.40.0/perl.h:4233:62: note: in definition of macro ‘EXPECT’
perl-5.40.0-build/perl-5.40.0/perl.h:4254:52: note: in expansion of macro ‘cBOOL’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:601:9: note: in expansion of macro ‘UNLIKELY’
perl-5.40.0-build/perl-5.40.0/sv.h:1125:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:601:18: note: in expansion of macro ‘SvGMAGICAL’
perl-5.40.0-build/perl-5.40.0/pp_hot.c:4459:1: note: in expansion of macro ‘PP’
perl-5.40.0-build/perl-5.40.0/perl.h:6225: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/pp_hot.c:4513:18: note: in expansion of macro ‘vivify_ref’
perl-5.40.0-build/perl-5.40.0/pp_hot.c:6664:5: note: in expansion of macro ‘SvGETMAGIC’
perl-5.40.0-build/perl-5.40.0/perl.h:4233:62: note: in definition of macro ‘EXPECT’
perl-5.40.0-build/perl-5.40.0/perl.h:4254:52: note: in expansion of macro ‘cBOOL’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:601:9: note: in expansion of macro ‘UNLIKELY’
perl-5.40.0-build/perl-5.40.0/sv.h:1125:34: note: in expansion of macro ‘SvFLAGS’
perl-5.40.0-build/perl-5.40.0/sv_inline.h:601: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): [#def358]
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs: scope_hint: In function ‘XS_threads__shared__tie_EXISTS’
perl-5.40.0-build/perl-5.40.0/sv.h:402:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:1452:13: note: in expansion of macro ‘SvTYPE’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.c:1675:23: note: in expansion of macro ‘ST’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:1450:20: note: in expansion of macro ‘SHAREDSV_FROM_OBJ’
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:1452:13: note: in expansion of macro ‘SvTYPE’
perl-5.40.0-build/perl-5.40.0/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: [#def359]
perl-5.40.0-build/perl-5.40.0/dist/threads-shared/shared.xs:131: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/perl.h:7870: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/sv_inline.h:923:44: warning[core.NullDereference]: Access to field 'sv_flags' results in a dereference of a null pointer (loaded from variable 'sv')
# 921| || (type == SvPVforce_type_ && SvPOK_pure_nogthink(sv))
# 922| || (type == SvPVutf8_type_ && SvPOK_utf8_nog(sv))
# 923|-> || (type == SvPVnormal_type_ && SvPOK_nog(sv))
# 924| || (type == SvPVutf8_pure_type_ && SvPOK_utf8_pure_nogthink(sv))
# 925| || (type == SvPVbyte_pure_type_ && SvPOK_byte_pure_nogthink(sv))
Error: CPPCHECK_WARNING: [#def360]
perl-5.40.0-build/perl-5.40.0/taint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def361]
perl-5.40.0-build/perl-5.40.0/time64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def362]
perl-5.40.0-build/perl-5.40.0/toke.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def363]
perl-5.40.0-build/perl-5.40.0/universal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def364]
perl-5.40.0-build/perl-5.40.0/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: [#def365]
perl-5.40.0-build/perl-5.40.0/utf8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def366]
perl-5.40.0-build/perl-5.40.0/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: [#def367]
perl-5.40.0-build/perl-5.40.0/utf8.c:4472:22: warning[core.NullDereference]: Dereference of null pointer
# 4470| f1 = (U8 *) p1;
# 4471| assert(u1);
# 4472|-> n1 = UTF8SKIP(f1);
# 4473| }
# 4474| else {
Error: CLANG_WARNING: [#def368]
perl-5.40.0-build/perl-5.40.0/utf8.c:4475:21: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p1')
# 4473| }
# 4474| else {
# 4475|-> if (isASCII(*p1) && ! (flags & FOLDEQ_LOCALE)) {
# 4476|
# 4477| /* We have to forbid mixing ASCII with non-ASCII if the
Error: CLANG_WARNING: [#def369]
perl-5.40.0-build/perl-5.40.0/utf8.c:4504:21: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p2')
# 4502| /* Point to the already-folded character. But for non-UTF-8
# 4503| * variants, convert to UTF-8 for the algorithm below */
# 4504|-> if (UTF8_IS_INVARIANT(*p2)) {
# 4505| f2 = (U8 *) p2;
# 4506| n2 = 1;
Error: CLANG_WARNING: [#def370]
perl-5.40.0-build/perl-5.40.0/utf8.c:4520:21: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p2')
# 4518| }
# 4519| else {
# 4520|-> if (isASCII(*p2) && ! (flags & FOLDEQ_LOCALE)) {
# 4521| if ((flags & FOLDEQ_UTF8_NOMIX_ASCII) && ! isASCII(*p1)) {
# 4522| return 0;
Error: CPPCHECK_WARNING: [#def371]
perl-5.40.0-build/perl-5.40.0/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def372]
perl-5.40.0-build/perl-5.40.0/util.c: scope_hint: In function ‘S_mess_alloc.part.0’
perl-5.40.0-build/perl-5.40.0/util.c:1391:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Perl_safesysmalloc(24)’
perl-5.40.0-build/perl-5.40.0/perl.h:3329: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/util.c:26: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/handy.h:2841:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.40.0-build/perl-5.40.0/perl.h:1751:23: note: in expansion of macro ‘safesysmalloc’
perl-5.40.0-build/perl-5.40.0/handy.h:2850:74: note: in expansion of macro ‘safemalloc’
perl-5.40.0-build/perl-5.40.0/util.c:1389:5: note: in expansion of macro ‘Newx’
perl-5.40.0-build/perl-5.40.0/perl.h:228:25: note: in expansion of macro ‘pTHX’
perl-5.40.0-build/perl-5.40.0/util.c:203:13: note: in expansion of macro ‘dTHX’
perl-5.40.0-build/perl-5.40.0/handy.h:2841:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.40.0-build/perl-5.40.0/perl.h:1751:23: note: in expansion of macro ‘safesysmalloc’
perl-5.40.0-build/perl-5.40.0/handy.h:2850:74: note: in expansion of macro ‘safemalloc’
perl-5.40.0-build/perl-5.40.0/util.c:1389:5: note: in expansion of macro ‘Newx’
perl-5.40.0-build/perl-5.40.0/handy.h:2841:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.40.0-build/perl-5.40.0/perl.h:1752:23: note: in expansion of macro ‘safesyscalloc’
perl-5.40.0-build/perl-5.40.0/handy.h:2852:74: note: in expansion of macro ‘safecalloc’
perl-5.40.0-build/perl-5.40.0/util.c:1390:5: note: in expansion of macro ‘Newxz’
perl-5.40.0-build/perl-5.40.0/handy.h:2841:35: note: in definition of macro ‘MEM_LOG_ALLOC’
perl-5.40.0-build/perl-5.40.0/perl.h:1752:23: note: in expansion of macro ‘safesyscalloc’
perl-5.40.0-build/perl-5.40.0/handy.h:2852:74: note: in expansion of macro ‘safecalloc’
perl-5.40.0-build/perl-5.40.0/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: CPPCHECK_WARNING (CWE-664): [#def373]
perl-5.40.0-build/perl-5.40.0/util.c:5369: error[va_list_usedBeforeStarted]: va_list 'apc' used before va_start() was called.
# 5367|
# 5368| PERL_ARGS_ASSERT_MY_VSNPRINTF;
# 5369|-> Perl_va_copy(ap, apc);
# 5370| # ifdef HAS_VSNPRINTF
# 5371|
Error: CPPCHECK_WARNING (CWE-664): [#def374]
perl-5.40.0-build/perl-5.40.0/util.c:5372: error[va_list_usedBeforeStarted]: va_list 'apc' used before va_start() was called.
# 5370| # ifdef HAS_VSNPRINTF
# 5371|
# 5372|-> WITH_LC_NUMERIC_SET_TO_NEEDED(
# 5373| retval = vsnprintf(buffer, len, format, apc);
# 5374| );
Error: CPPCHECK_WARNING (CWE-664): [#def375]
perl-5.40.0-build/perl-5.40.0/util.c:5382: error[va_list_usedBeforeStarted]: va_list 'apc' used before va_start() was called.
# 5380| # endif
# 5381|
# 5382|-> va_end(apc);
# 5383| # else
# 5384| # ifdef HAS_VSNPRINTF
Error: CLANG_WARNING: [#def376]
perl-5.40.0-build/perl-5.40.0/universal.c:1321: included_from: Included from here.
perl-5.40.0-build/perl-5.40.0/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.40.0-509.fc41 |
store-results-to | /tmp/tmpbcwepj6a/perl-5.40.0-509.fc41.tar.xz |
time-created | 2024-07-03 16:43:39 |
time-finished | 2024-07-03 16:53:20 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpbcwepj6a/perl-5.40.0-509.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpbcwepj6a/perl-5.40.0-509.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |