libsemanage-3.7-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libsemanage-3.7-build/libsemanage-3.7/src/compressed_file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libsemanage-3.7-build/libsemanage-3.7/src/conf-parse.y: scope_hint: In function ‘semanage_conf_init’
libsemanage-3.7-build/libsemanage-3.7/src/conf-parse.y:378:41: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("/sbin/load_policy")’
#  376|   
#  377|   	if (access("/sbin/load_policy", X_OK) == 0) {
#  378|-> 		conf->load_policy->path = strdup("/sbin/load_policy");
#  379|   	} else {
#  380|   		conf->load_policy->path = strdup("/usr/sbin/load_policy");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libsemanage-3.7-build/libsemanage-3.7/src/conf-parse.y:380:41: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("/usr/sbin/load_policy")’
#  378|   		conf->load_policy->path = strdup("/sbin/load_policy");
#  379|   	} else {
#  380|-> 		conf->load_policy->path = strdup("/usr/sbin/load_policy");
#  381|   	}
#  382|   	if (conf->load_policy->path == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libsemanage-3.7-build/libsemanage-3.7/src/conf-parse.y:392:38: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("/sbin/setfiles")’
#  390|   	}
#  391|   	if (access("/sbin/setfiles", X_OK) == 0) {
#  392|-> 		conf->setfiles->path = strdup("/sbin/setfiles");
#  393|   	} else {
#  394|   		conf->setfiles->path = strdup("/usr/sbin/setfiles");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libsemanage-3.7-build/libsemanage-3.7/src/conf-parse.y:394:38: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("/usr/sbin/setfiles")’
#  392|   		conf->setfiles->path = strdup("/sbin/setfiles");
#  393|   	} else {
#  394|-> 		conf->setfiles->path = strdup("/usr/sbin/setfiles");
#  395|   	}
#  396|   	if ((conf->setfiles->path == NULL) ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libsemanage-3.7-build/libsemanage-3.7/src/conf-parse.y:406:48: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("/sbin/sefcontext_compile")’
#  404|   	}
#  405|   	if (access("/sbin/sefcontext_compile", X_OK) == 0) {
#  406|-> 		conf->sefcontext_compile->path = strdup("/sbin/sefcontext_compile");
#  407|   	} else {
#  408|   		conf->sefcontext_compile->path = strdup("/usr/sbin/sefcontext_compile");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libsemanage-3.7-build/libsemanage-3.7/src/conf-parse.y:408:48: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("/usr/sbin/sefcontext_compile")’
#  406|   		conf->sefcontext_compile->path = strdup("/sbin/sefcontext_compile");
#  407|   	} else {
#  408|-> 		conf->sefcontext_compile->path = strdup("/usr/sbin/sefcontext_compile");
#  409|   	}
#  410|   	if ((conf->sefcontext_compile->path == NULL) ||

Error: CPPCHECK_WARNING: [#def8]
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c: scope_hint: In function ‘yy_get_next_buffer’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:1594:18: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:1596:41: note: in expansion of macro ‘yyrealloc’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c: scope_hint: In function ‘yy_get_next_buffer’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:1596:41: note: in expansion of macro ‘yyrealloc’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c: scope_hint: In function ‘yy_get_next_buffer’
# 1592|   				else
# 1593|   					b->yy_buf_size *= 2;
# 1594|-> 
# 1595|   				b->yy_ch_buf = (char *)
# 1596|   					/* Include room in for 2 EOB chars. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c: scope_hint: In function ‘semanage__create_buffer’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:1879:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:1865:21: note: in expansion of macro ‘yy_create_buffer’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:1869:24: note: in expansion of macro ‘yyalloc’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c: scope_hint: In function ‘semanage__create_buffer’
# 1877|   	 * we need to put in 2 end-of-buffer characters.
# 1878|   	 */
# 1879|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1880|   	if ( ! b->yy_ch_buf )
# 1881|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: CPPCHECK_WARNING (CWE-476): [#def11]
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:1919: warning[nullPointer]: Possible null pointer dereference: b
# 1917|       
# 1918|   	yy_flush_buffer( b );
# 1919|-> 
# 1920|   	b->yy_input_file = file;
# 1921|   	b->yy_fill_buffer = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def12]
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:1920: warning[nullPointer]: Possible null pointer dereference: b
# 1918|   	yy_flush_buffer( b );
# 1919|   
# 1920|-> 	b->yy_input_file = file;
# 1921|   	b->yy_fill_buffer = 1;
# 1922|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c: scope_hint: In function ‘semanage__scan_buffer’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:2133:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:2117:17: note: in expansion of macro ‘yy_scan_bytes’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:2126:24: note: in expansion of macro ‘yyalloc’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c: scope_hint: In function ‘semanage__scan_buffer’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:2135:6: note: in expansion of macro ‘yy_scan_buffer’
libsemanage-3.7-build/libsemanage-3.7/src/conf-scan.c:2067:17: note: in expansion of macro ‘yy_scan_buffer’
# 2131|   	for ( i = 0; i < _yybytes_len; ++i )
# 2132|   		buf[i] = yybytes[i];
# 2133|-> 
# 2134|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2135|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:53: included_from: Included from here.
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c: scope_hint: In function ‘read_from_pipe_to_data’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:38:12: warning[-Wanalyzer-malloc-leak]: leak of ‘data_read’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:604:33: note: in expansion of macro ‘ERR’
/usr/include/sepol/errcodes.h:6: included_from: Included from here.
/usr/include/sepol/policydb/hashtab.h:16: included_from: Included from here.
/usr/include/sepol/policydb/symtab.h:16: included_from: Included from here.
/usr/include/sepol/policydb/policydb.h:60: included_from: Included from here.
/usr/include/sepol/cil/cil.h:33: included_from: Included from here.
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:24: included_from: Included from here.
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:604:33: note: in expansion of macro ‘ERR’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:604:33: note: in expansion of macro ‘ERR’
#   36|   	          channel_arg, func_arg, ...) do {         \
#   37|   	                                                   \
#   38|->         if ((handle_arg)->msg_callback) {                  \
#   39|                   (handle_arg)->msg_fname = func_arg;        \
#   40|                   (handle_arg)->msg_channel = channel_arg;   \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:43:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data_read’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:604:33: note: in expansion of macro ‘ERR’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:604:33: note: in expansion of macro ‘ERR’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:604:33: note: in expansion of macro ‘ERR’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:604:33: note: in expansion of macro ‘ERR’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:604:33: note: in expansion of macro ‘ERR’
#   41|                   (handle_arg)->msg_level = level_arg;       \
#   42|                                                              \
#   43|->                 (handle_arg)->msg_callback(                \
#   44|                           (handle_arg)->msg_callback_arg,    \
#   45|                           handle_arg, __VA_ARGS__);          \

Error: CPPCHECK_WARNING: [#def16]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-401): [#def17]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:602: error[memleakOnRealloc]: Common realloc mistake: 'data_read' nulled but not freed upon failure
#  600|   		if (data_read_len == max_len) {
#  601|   			max_len *= 2;
#  602|-> 			data_read = realloc(data_read, max_len);
#  603|   			if (data_read == NULL) {
#  604|   				ERR(sh, "Failed to realloc, out of memory.\n");

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def18]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c: scope_hint: In function ‘semanage_pipe_data’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:786:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘output_fd[0]’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:687:25: note: in expansion of macro ‘ERR’
#  784|   
#  785|   	if (output_fd[PIPE_READ] != -1) {
#  786|-> 		close(output_fd[PIPE_READ]);
#  787|   	}
#  788|   	if (output_fd[PIPE_WRITE] != -1) {

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def19]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:801:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘input_fd[1]’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:682:25: note: in expansion of macro ‘ERR’
#  799|   	}
#  800|   	if (input_fd[PIPE_WRITE] != -1) {
#  801|-> 		close(input_fd[PIPE_WRITE]);
#  802|   	}
#  803|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:804:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘err_fd[0]’
#  802|   	}
#  803|   
#  804|-> 	return retval;
#  805|   }
#  806|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:804:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘err_fd[1]’
#  802|   	}
#  803|   
#  804|-> 	return retval;
#  805|   }
#  806|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:804:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘input_fd[0]’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:649:17: note: in expansion of macro ‘ERR’
#  802|   	}
#  803|   
#  804|-> 	return retval;
#  805|   }
#  806|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:804:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘input_fd[1]’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:649:17: note: in expansion of macro ‘ERR’
#  802|   	}
#  803|   
#  804|-> 	return retval;
#  805|   }
#  806|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:804:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘output_fd[0]’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:654:17: note: in expansion of macro ‘ERR’
#  802|   	}
#  803|   
#  804|-> 	return retval;
#  805|   }
#  806|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:804:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘output_fd[1]’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:654:17: note: in expansion of macro ‘ERR’
#  802|   	}
#  803|   
#  804|-> 	return retval;
#  805|   }
#  806|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:804:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘retval’
libsemanage-3.7-build/libsemanage-3.7/src/debug.h:50:9: note: in expansion of macro ‘msg_write’
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:671:25: note: in expansion of macro ‘ERR’
#  802|   	}
#  803|   
#  804|-> 	return retval;
#  805|   }
#  806|   

Error: CLANG_WARNING: [#def27]
libsemanage-3.7-build/libsemanage-3.7/src/direct_api.c:2635:4: warning[deadcode.DeadStores]: Value stored to 'modules_len' is never read
# 2633|   			free(modules);
# 2634|   			modules = NULL;
# 2635|-> 			modules_len = 0;
# 2636|   		}
# 2637|   

Error: CPPCHECK_WARNING: [#def28]
libsemanage-3.7-build/libsemanage-3.7/src/genhomedircon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def29]
libsemanage-3.7-build/libsemanage-3.7/src/genhomedircon.c:358:4: warning[deadcode.DeadStores]: Value stored to 'minuid_set' is never read
#  356|   		if (!minuid_set || temp < minuid) {
#  357|   			minuid = temp;
#  358|-> 			minuid_set = 1;
#  359|   		}
#  360|   	}

Error: CLANG_WARNING: [#def30]
libsemanage-3.7-build/libsemanage-3.7/src/genhomedircon.c:1349:7: warning[unix.Malloc]: Potential memory leak
# 1347|   		}
# 1348|   
# 1349|-> 		if (write_user_context(s, out, user_context_tpl,
# 1350|   				       s->fallback) != STATUS_SUCCESS) {
# 1351|   			retval = STATUS_ERR;

Error: CPPCHECK_WARNING: [#def31]
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c: scope_hint: In function ‘append_arg’
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c:1288:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c: scope_hint: In function ‘append_arg’
# 1286|   
# 1287|   	a = realloc(*argv, sizeof(**argv) * (*num_args + 1));
# 1288|-> 	if (a == NULL)
# 1289|   		return -1;
# 1290|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def33]
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c: scope_hint: In function ‘free_argv’
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c:1308:41: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c: scope_hint: In function ‘free_argv’
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c:1308:41: note: read of 8 bytes from after the end of the region
#                                      └──────────────────────────────────┘
#                                                       ^
# 1306|   {
# 1307|   	int i;
# 1308|-> 	for (i = 0; argv != NULL && argv[i] != NULL; i++) {
# 1309|   		free(argv[i]);
# 1310|   	}

Error: CLANG_WARNING: [#def34]
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c:1469:12: warning[security.insecureAPI.vfork]: Call to function 'vfork' is insecure as it can lead to denial of service situations in the parent process. Replace calls to vfork with calls to the safer 'posix_spawn' function
# 1467|   	/* no need to use pthread_atfork() -- child will not be using
# 1468|   	 * any mutexes. */
# 1469|-> 	forkval = vfork();
# 1470|   	if (forkval == 0) {
# 1471|   		/* child process.  file descriptors will be closed

Error: GCC_ANALYZER_WARNING (CWE-688): [#def35]
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c: scope_hint: In function ‘semanage_exec_prog’
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c:1473:17: warning[-Wanalyzer-null-argument]: use of NULL ‘*e.path’ where non-null expected
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c: scope_hint: In function ‘semanage_exec_prog’
/usr/include/bits/sigstksz.h:24: included_from: Included from here.
/usr/include/signal.h:328: included_from: Included from here.
/usr/include/sys/param.h:28: included_from: Included from here.
/usr/include/sepol/policydb/mls_types.h:36: included_from: Included from here.
/usr/include/sepol/policydb/context.h:23: included_from: Included from here.
/usr/include/sepol/policydb/policydb.h:62: included_from: Included from here.
/usr/include/sepol/cil/cil.h:33: included_from: Included from here.
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.h:30: included_from: Included from here.
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c:35: included_from: Included from here.
/usr/include/unistd.h:572:12: note: argument 1 of ‘execve’ must be non-null
# 1471|   		/* child process.  file descriptors will be closed
# 1472|   		 * because they were set as close-on-exec. */
# 1473|-> 		execve(e->path, argv, NULL);
# 1474|   		_exit(EXIT_FAILURE);	/* if execve() failed */
# 1475|   	}

Error: CLANG_WARNING: [#def36]
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c:2206:9: warning[deadcode.DeadStores]: Although the value stored to 'retval' is used in the enclosing expression, the value is never actually read from 'retval'
# 2204|   		external_prog_t *e;
# 2205|   		for (e = conf->mod_prog; e != NULL; e = e->next) {
# 2206|-> 			if ((retval =
# 2207|   			     semanage_exec_prog(sh, e, module, "$<")) != 0) {
# 2208|   				return -1;

Error: CLANG_WARNING: [#def37]
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c:2553:2: warning[deadcode.DeadStores]: Value stored to 'i' is never read
# 2551|   	semanage_file_context_bucket_t *bcurrent;
# 2552|   
# 2553|-> 	i = 0;
# 2554|   
# 2555|   	if (sh == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c: scope_hint: In function ‘semanage_nc_sort’
libsemanage-3.7-build/libsemanage-3.7/src/semanage_store.c:2985:26: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 2983|   		}
# 2984|   
# 2985|-> 		line_buf = line_end + 1;
# 2986|   	}
# 2987|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_MangledTypeQueryModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:621:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:3290:12: note: in expansion of macro ‘SWIG_TypeQuery’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:3290:12: note: in expansion of macro ‘SWIG_TypeQuery’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:2970:37: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:2970:37: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:2970:37: note: in expansion of macro ‘SWIG_GetModule’
#  619|     swig_module_info *iter = start;
#  620|     do {
#  621|->     if (iter->size) {
#  622|         size_t l = 0;
#  623|         size_t r = iter->size - 1;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def40]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1143:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18235:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18317:1: note: in expansion of macro ‘SWIG_init’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18436:3: note: in expansion of macro ‘SWIG_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18246:9: note: in expansion of macro ‘Py_DECREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18235:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1143:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18235:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1143:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18235:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
#                                                            └──────────────────────────┘
#                                                                         ^
# 1141|   #endif
# 1142|   
# 1143|-> #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
# 1144|   
# 1145|   #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty) 

Error: GCC_ANALYZER_WARNING (CWE-126): [#def41]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1151:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18317:1: note: in expansion of macro ‘SWIG_init’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18436:3: note: in expansion of macro ‘SWIG_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18246:9: note: in expansion of macro ‘Py_DECREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1151:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1151:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
#                                                            └──────────────────────────┘
#                                                                         ^
# 1149|   /* for raw packed data */
# 1150|   #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# 1151|-> #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
# 1152|   
# 1153|   /* for class or struct pointers */

Error: CLANG_WARNING: [#def42]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:7316:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
# 7314|         int value;
# 7315|         SWIG_AsVal_int(resultobj, &value);
# 7316|->       if (value >= 0) {
# 7317|           PyObject* plist = NULL;
# 7318|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_bool,

Error: CLANG_WARNING: [#def43]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:7625:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
# 7623|         int value;
# 7624|         SWIG_AsVal_int(resultobj, &value);
# 7625|->       if (value >= 0) {
# 7626|           PyObject* plist = NULL;
# 7627|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_bool,

Error: CLANG_WARNING: [#def44]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:7897:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
# 7895|         int value;
# 7896|         SWIG_AsVal_int(resultobj, &value);
# 7897|->       if (value >= 0) {
# 7898|           PyObject* plist = NULL;
# 7899|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_bool,

Error: CLANG_WARNING: [#def45]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:8712:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
# 8710|         int value;
# 8711|         SWIG_AsVal_int(resultobj, &value);
# 8712|->       if (value >= 0) {
# 8713|           PyObject* plist = NULL;
# 8714|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_iface,

Error: CLANG_WARNING: [#def46]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:8939:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
# 8937|         int value;
# 8938|         SWIG_AsVal_int(resultobj, &value);
# 8939|->       if (value >= 0) {
# 8940|           PyObject* plist = NULL;
# 8941|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_iface,

Error: CLANG_WARNING: [#def47]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:9628:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
# 9626|         int value;
# 9627|         SWIG_AsVal_int(resultobj, &value);
# 9628|->       if (value >= 0) {
# 9629|           PyObject* plist = NULL;
# 9630|           if (semanage_array2plist(arg1, (void**) *arg3, *arg4,

Error: CLANG_WARNING: [#def48]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:10097:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#10095|         int value;
#10096|         SWIG_AsVal_int(resultobj, &value);
#10097|->       if (value >= 0) {
#10098|           PyObject* plist = NULL;
#10099|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_user,

Error: CLANG_WARNING: [#def49]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:10324:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#10322|         int value;
#10323|         SWIG_AsVal_int(resultobj, &value);
#10324|->       if (value >= 0) {
#10325|           PyObject* plist = NULL;
#10326|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_user,

Error: CLANG_WARNING: [#def50]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:11223:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#11221|         int value;
#11222|         SWIG_AsVal_int(resultobj, &value);
#11223|->       if (value >= 0) {
#11224|           PyObject* plist = NULL;
#11225|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_port,

Error: CLANG_WARNING: [#def51]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:11450:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#11448|         int value;
#11449|         SWIG_AsVal_int(resultobj, &value);
#11450|->       if (value >= 0) {
#11451|           PyObject* plist = NULL;
#11452|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_port,

Error: CLANG_WARNING: [#def52]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:12416:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#12414|         int value;
#12415|         SWIG_AsVal_int(resultobj, &value);
#12416|->       if (value >= 0) {
#12417|           PyObject* plist = NULL;
#12418|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_ibpkey,

Error: CLANG_WARNING: [#def53]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:12643:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#12641|         int value;
#12642|         SWIG_AsVal_int(resultobj, &value);
#12643|->       if (value >= 0) {
#12644|           PyObject* plist = NULL;
#12645|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_ibpkey,

Error: CLANG_WARNING: [#def54]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:13479:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#13477|         int value;
#13478|         SWIG_AsVal_int(resultobj, &value);
#13479|->       if (value >= 0) {
#13480|           PyObject* plist = NULL;
#13481|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_ibendport,

Error: CLANG_WARNING: [#def55]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:13706:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#13704|         int value;
#13705|         SWIG_AsVal_int(resultobj, &value);
#13706|->       if (value >= 0) {
#13707|           PyObject* plist = NULL;
#13708|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_ibendport,

Error: CLANG_WARNING: [#def56]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:14544:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#14542|         int value;
#14543|         SWIG_AsVal_int(resultobj, &value);
#14544|->       if (value >= 0) {
#14545|           PyObject* plist = NULL;
#14546|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_fcontext,

Error: CLANG_WARNING: [#def57]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:14771:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#14769|         int value;
#14770|         SWIG_AsVal_int(resultobj, &value);
#14771|->       if (value >= 0) {
#14772|           PyObject* plist = NULL;
#14773|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_fcontext,

Error: CLANG_WARNING: [#def58]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:14824:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#14822|         int value;
#14823|         SWIG_AsVal_int(resultobj, &value);
#14824|->       if (value >= 0) {
#14825|           PyObject* plist = NULL;
#14826|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_fcontext,

Error: CLANG_WARNING: [#def59]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:15645:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#15643|         int value;
#15644|         SWIG_AsVal_int(resultobj, &value);
#15645|->       if (value >= 0) {
#15646|           PyObject* plist = NULL;
#15647|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_seuser,

Error: CLANG_WARNING: [#def60]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:15872:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#15870|         int value;
#15871|         SWIG_AsVal_int(resultobj, &value);
#15872|->       if (value >= 0) {
#15873|           PyObject* plist = NULL;
#15874|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_seuser,

Error: CLANG_WARNING: [#def61]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:17077:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#17075|         int value;
#17076|         SWIG_AsVal_int(resultobj, &value);
#17077|->       if (value >= 0) {
#17078|           PyObject* plist = NULL;
#17079|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_node,

Error: CLANG_WARNING: [#def62]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:17304:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
#17302|         int value;
#17303|         SWIG_AsVal_int(resultobj, &value);
#17304|->       if (value >= 0) {
#17305|           PyObject* plist = NULL;
#17306|           if (semanage_array2plist(arg1, (void**) *arg2, *arg3, SWIGTYPE_p_semanage_node,

Error: GCC_ANALYZER_WARNING (CWE-126): [#def63]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18232:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18317:1: note: in expansion of macro ‘SWIG_init’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18436:3: note: in expansion of macro ‘SWIG_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
/usr/include/python3.13/Python.h:68: included_from: Included from here.
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:198: included_from: Included from here.
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18246:9: note: in expansion of macro ‘Py_DECREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18232:29: note: read of 4 bytes from after the end of ‘swig_const_table’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18232:29: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
#                                                          └───────────────────────┘
#                                                                      ^
#18230|       PyObject *obj = 0;
#18231|       size_t i;
#18232|->     for (i = 0; constants[i].type; ++i) {
#18233|         switch(constants[i].type) {
#18234|         case SWIG_PY_POINTER:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def64]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18235:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1143:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18317:1: note: in expansion of macro ‘SWIG_init’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18436:3: note: in expansion of macro ‘SWIG_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18246:9: note: in expansion of macro ‘Py_DECREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1143:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18235:78: note: read of 8 bytes from after the end of ‘swig_const_table’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1143:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18235:78: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1143:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
#                                                            └─────────────────────────────────────────────┘
#                                                                                   ^
#18233|         switch(constants[i].type) {
#18234|         case SWIG_PY_POINTER:
#18235|->         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
#18236|           break;
#18237|         case SWIG_PY_BINARY:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def65]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1151:87: note: in definition of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18317:1: note: in expansion of macro ‘SWIG_init’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18436:3: note: in expansion of macro ‘SWIG_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18246:9: note: in expansion of macro ‘Py_DECREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1151:87: note: in definition of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:66: note: read of 8 bytes from after the end of ‘swig_const_table’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1151:87: note: in definition of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:66: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1151:87: note: in definition of macro ‘SWIG_NewPackedObj’
#                                                            └────────────────────────────┘
#                                                                          ^
#18236|           break;
#18237|         case SWIG_PY_BINARY:
#18238|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#18239|           break;
#18240|         default:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def66]
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1151:91: note: in definition of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18317:1: note: in expansion of macro ‘SWIG_init’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18057:17: note: in expansion of macro ‘SWIG_GetModule’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18436:3: note: in expansion of macro ‘SWIG_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18246:9: note: in expansion of macro ‘Py_DECREF’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1151:91: note: in definition of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:89: note: read of 8 bytes from after the end of ‘swig_const_table’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1151:91: note: in definition of macro ‘SWIG_NewPackedObj’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:18238:89: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libsemanage-3.7-build/libsemanage-3.7/src/semanageswig_wrap.c:1151:91: note: in definition of macro ‘SWIG_NewPackedObj’
#                                                            └─────────────────────────────────────────────┘
#                                                                                   ^
#18236|           break;
#18237|         case SWIG_PY_BINARY:
#18238|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#18239|           break;
#18240|         default:

Error: CPPCHECK_WARNING: [#def67]
libsemanage-3.7-build/libsemanage-3.7/src/seusers_local.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def68]
libsemanage-3.7-build/libsemanage-3.7/src/utilities.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-223.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibsemanage-3.7-1.fc41
store-results-to/tmp/tmpoj37xkiz/libsemanage-3.7-1.fc41.tar.xz
time-created2024-07-03 15:53:06
time-finished2024-07-03 15:54:54
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpoj37xkiz/libsemanage-3.7-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpoj37xkiz/libsemanage-3.7-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9