libtevent-0.16.1-3.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/getifaddrs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/os2_delete.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def3]
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/os2_delete.c: scope_hint: In function ‘test_readdir_os2_delete’
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/os2_delete.c:114:14: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘opendir("test.dir")’ where non-null expected
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/os2_delete.c:11: included_from: Included from here.
/usr/include/dirent.h:164:23: note: argument 1 of ‘readdir’ must be non-null
#  112|   
#  113|   	/* skip past . and .. */
#  114|-> 	de = readdir(d);
#  115|   	strcmp(de->d_name, ".") == 0 || FAILED("match .");
#  116|   	de = readdir(d);

Error: CPPCHECK_WARNING: [#def4]
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/strptime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_strdup’
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/testsuite.c:172:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘x’ where non-null expected
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/replace.h:176: included_from: Included from here.
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/testsuite.c:26: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#  170|   	x = strdup("bla");
#  171|   
#  172|-> 	cmp = strcmp("bla", x);
#  173|   	if (cmp != 0) {
#  174|   		printf("failure: strdup [\nfailed: expected \"bla\", got \"%s\"\n]\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_strndup’
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/testsuite.c:271:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘x’
#  269|   	printf("test: strndup\n");
#  270|   	x = strndup("bla", 0);
#  271|-> 	cmp = strcmp(x, "");
#  272|   	free(x);
#  273|   	if (cmp != 0) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/testsuite.c:279:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘x’ where non-null expected
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  277|   
#  278|   	x = strndup("bla", 2);
#  279|-> 	cmp = strcmp(x, "bl");
#  280|   	free(x);
#  281|   	if (cmp != 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_closefrom’
libtevent-0.16.1-build/tevent-0.16.1/lib/replace/tests/testsuite.c:1114:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
# 1112|   		if (fd >= 1000) {
# 1113|   			printf("fd=%d\n", fd);
# 1114|-> 			closefrom(3);
# 1115|   			return false;
# 1116|   		}

Error: CPPCHECK_WARNING: [#def9]
libtevent-0.16.1-build/tevent-0.16.1/tevent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
libtevent-0.16.1-build/tevent-0.16.1/tevent_debug.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
libtevent-0.16.1-build/tevent-0.16.1/tevent_epoll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def12]
libtevent-0.16.1-build/tevent-0.16.1/tevent_epoll.c:254: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  252|   
#  253|   	epoll_ev->pid = pid;
#  254|-> 	epoll_ev->panic_state = &panic_triggered;
#  255|   	for (fde=epoll_ev->ev->fd_events;fde;fde=fde->next) {
#  256|   		/*

Error: CPPCHECK_WARNING: [#def13]
libtevent-0.16.1-build/tevent-0.16.1/tevent_fd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
libtevent-0.16.1-build/tevent-0.16.1/tevent_immediate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def15]
libtevent-0.16.1-build/tevent-0.16.1/tevent_epoll.c:32: included_from: Included from here.
libtevent-0.16.1-build/tevent-0.16.1/tevent_internal.h:930:3: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer
#  928|   		next = mpx->next;
#  929|   
#  930|-> 		DLIST_REMOVE(primary->mpx.list, &mpx_fde->mpx);
#  931|   		tevent_common_fd_mpx_reinit(mpx_fde);
#  932|   		mpx->primary = new_primary;

Error: CPPCHECK_WARNING: [#def16]
libtevent-0.16.1-build/tevent-0.16.1/tevent_poll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
libtevent-0.16.1-build/tevent-0.16.1/tevent_queue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
libtevent-0.16.1-build/tevent-0.16.1/tevent_req.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
libtevent-0.16.1-build/tevent-0.16.1/tevent_signal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
libtevent-0.16.1-build/tevent-0.16.1/tevent_standard.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-465): [#def21]
libtevent-0.16.1-build/tevent-0.16.1/tevent_standard.c: scope_hint: In function ‘std_event_loop_once’
libtevent-0.16.1-build/tevent-0.16.1/tevent_standard.c:116:12: warning[-Wanalyzer-deref-before-check]: check of ‘*<unknown>.epoll_ops’ for NULL after already dereferencing it
#  114|   	 * signify fallback to poll_ops.
#  115|   	 */
#  116|-> 	if (glue->epoll_ops != NULL) {
#  117|   		/* No fallback */
#  118|   		return ret;

Error: GCC_ANALYZER_WARNING (CWE-465): [#def22]
libtevent-0.16.1-build/tevent-0.16.1/tevent_standard.c: scope_hint: In function ‘std_event_loop_wait’
libtevent-0.16.1-build/tevent-0.16.1/tevent_standard.c:147:12: warning[-Wanalyzer-deref-before-check]: check of ‘*<unknown>.epoll_ops’ for NULL after already dereferencing it
#  145|   	 * signify fallback to poll_ops.
#  146|   	 */
#  147|-> 	if (glue->epoll_ops != NULL) {
#  148|   		/* No fallback */
#  149|   		return ret;

Error: CPPCHECK_WARNING: [#def23]
libtevent-0.16.1-build/tevent-0.16.1/tevent_threads.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libtevent-0.16.1-build/tevent-0.16.1/tevent_timed.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
libtevent-0.16.1-build/tevent-0.16.1/tevent_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
libtevent-0.16.1-build/tevent-0.16.1/tevent_wakeup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
libtevent-0.16.1-build/tevent-0.16.1/tevent_wrapper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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-98.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibtevent-0.16.1-3.fc41
store-results-to/tmp/tmpyhjue967/libtevent-0.16.1-3.fc41.tar.xz
time-created2024-07-03 15:58:31
time-finished2024-07-03 16:00:07
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpyhjue967/libtevent-0.16.1-3.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpyhjue967/libtevent-0.16.1-3.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9