perl-TermReadKey-2.38-22.fc41

List of Defects

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

Error: CLANG_WARNING: [#def2]
perl-TermReadKey-2.38-build/TermReadKey-2.38/ReadKey.xs:845:3: warning[deadcode.DeadStores]: Value stored to 'oldmode' is never read
#  843|   		if(!(temp=hv_fetch(modehash,(char*)&handle,sizeof(int),0))) 
#  844|   			croak("Unable to retrieve stashed terminal mode.\n");
#  845|-> 		oldmode=SvIV(*temp);
#  846|   	}
#  847|   

Error: COMPILER_WARNING (CWE-758): [#def3]
perl-TermReadKey-2.38-build/TermReadKey-2.38/ReadKey.xs: scope_hint: In function ‘selectfile’
perl-TermReadKey-2.38-build/TermReadKey-2.38/ReadKey.xs:1482:28: warning[-Wrestrict]: passing argument 2 to ‘restrict’-qualified parameter aliases with argument 4
# 1482 |         if(select(handle+1,(Select_fd_set_t)&fd,
#      |                            ^~~~~~~~~~~~~~~~~~~~
# 1483 |                            (Select_fd_set_t)0,
# 1484 |                            (Select_fd_set_t)&fd, &t)) return -1;
#      |                            ~~~~~~~~~~~~~~~~~~~~
# 1480|   	FD_ZERO(&fd);
# 1481|   	FD_SET(handle,&fd);
# 1482|-> 	if(select(handle+1,(Select_fd_set_t)&fd,
# 1483|   			   (Select_fd_set_t)0,
# 1484|   			   (Select_fd_set_t)&fd, &t)) return -1; 

Error: COMPILER_WARNING: [#def4]
perl-TermReadKey-2.38-build/TermReadKey-2.38/ReadKey.xs:7: included_from: Included from here.
perl-TermReadKey-2.38-build/TermReadKey-2.38/ppport.h:4385:10: warning: "WIDEST_UTYPE" redefined
/usr/lib64/perl5/CORE/perl.h:3329: included_from: Included from here.
perl-TermReadKey-2.38-build/TermReadKey-2.38/ReadKey.xs:5: included_from: Included from here.
/usr/lib64/perl5/CORE/handy.h:1422:9: note: this is the location of the previous definition
# 4383|   
# 4384|   #ifdef HAS_QUAD
# 4385|-> # define WIDEST_UTYPE U64TYPE
# 4386|   #else
# 4387|   # define WIDEST_UTYPE U32

Error: COMPILER_WARNING (CWE-563): [#def5]
perl-TermReadKey-2.38-build/TermReadKey-2.38/tmp66.c:2:27: warning[-Wunused-variable]: unused variable ‘s’

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-232.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameperl-TermReadKey-2.38-22.fc41
store-results-to/tmp/tmpbe58hivm/perl-TermReadKey-2.38-22.fc41.tar.xz
time-created2024-07-03 16:52:43
time-finished2024-07-03 16:53:32
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpbe58hivm/perl-TermReadKey-2.38-22.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpbe58hivm/perl-TermReadKey-2.38-22.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9