perl-Clone-0.46-7.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
perl-Clone-0.46-build/Clone-0.46/Clone.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def2]
perl-Clone-0.46-build/Clone-0.46/Clone.xs: scope_hint: In function ‘av_clone’
perl-Clone-0.46-build/Clone-0.46/Clone.xs:67:7: warning[-Wunused-variable]: unused variable ‘val’
#   67 |   SV *val = NULL;
#      |       ^~~
#   65|     AV *self = (AV *) ref;
#   66|     SV **svp;
#   67|->   SV *val = NULL;
#   68|     I32 arrlen = 0;
#   69|     int i = 0;

Error: COMPILER_WARNING (CWE-1164): [#def3]
perl-Clone-0.46-build/Clone-0.46/Clone.xs: scope_hint: At top level
perl-Clone-0.46-build/Clone-0.46/Clone.xs:96:1: warning[-Wunused-function]: ‘rv_clone’ defined but not used
#   96 | rv_clone (SV * ref, HV* hseen, int depth)
#      | ^~~~~~~~
#   94|   
#   95|   static SV *
#   96|-> rv_clone (SV * ref, HV* hseen, int depth)
#   97|   {
#   98|     SV *clone = NULL;

Error: COMPILER_WARNING (CWE-563): [#def4]
perl-Clone-0.46-build/Clone-0.46/Clone.xs: scope_hint: In function ‘rv_clone’
perl-Clone-0.46-build/Clone-0.46/Clone.xs:99:7: warning[-Wunused-variable]: unused variable ‘rv’
#   99 |   SV *rv = NULL;
#      |       ^~
#   97|   {
#   98|     SV *clone = NULL;
#   99|->   SV *rv = NULL;
#  100|   
#  101|     assert(SvROK(ref));

Error: COMPILER_WARNING (CWE-563): [#def5]
perl-Clone-0.46-build/Clone-0.46/Clone.xs: scope_hint: In function ‘sv_clone’
perl-Clone-0.46-build/Clone-0.46/Clone.xs:277:15: warning[-Wunused-variable]: unused variable ‘vtable’
#  277 |       MGVTBL *vtable = 0;
#      |               ^~~~~~
#  275|       {
#  276|         MAGIC* mg;
#  277|->       MGVTBL *vtable = 0;
#  278|   
#  279|         for (mg = SvMAGIC(ref); mg; mg = mg->mg_moremagic) 

Error: CLANG_WARNING: [#def6]
perl-Clone-0.46-build/Clone-0.46/Clone.xs:384:6: warning[deadcode.DeadStores]: Value stored to 'clone' during its initialization is never read
#  382|   	int depth
#  383|   	PREINIT:
#  384|-> 	SV *clone = &PL_sv_undef;
#  385|           HV *hseen = newHV();
#  386|   	PPCODE:

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-63.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameperl-Clone-0.46-7.fc41
store-results-to/tmp/tmph96u1i9x/perl-Clone-0.46-7.fc41.tar.xz
time-created2024-07-03 16:37:53
time-finished2024-07-03 16:38:43
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmph96u1i9x/perl-Clone-0.46-7.fc41.tar.xz' '--gcc-analyze' '/tmp/tmph96u1i9x/perl-Clone-0.46-7.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9