freerdp-3.16.0-4.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1]
FreeRDP-3.16.0/channels/ainput/server/ainput_main.c:352:14: warning[-Wanalyzer-use-after-free]: use after ‘ainput_server_context_free’ of ‘context’
FreeRDP-3.16.0/channels/ainput/server/ainput_main.c:399:24: enter_function: entry to ‘ainput_server_context_new’
FreeRDP-3.16.0/channels/ainput/server/ainput_main.c:403:12: branch_false: following ‘false’ branch (when ‘ainput’ is non-NULL)...
FreeRDP-3.16.0/channels/ainput/server/ainput_main.c:406:9: branch_false: ...to here
FreeRDP-3.16.0/channels/ainput/server/ainput_main.c:415:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/ainput/server/ainput_main.c:416:17: branch_true: ...to here
FreeRDP-3.16.0/channels/ainput/server/ainput_main.c:421:9: release_memory: deallocated here
FreeRDP-3.16.0/channels/ainput/server/ainput_main.c:421:9: call_function: calling ‘ainput_server_context_free’ from ‘ainput_server_context_new’
#  350|   	WINPR_ASSERT(ainput);
#  351|   
#  352|-> 	if (!ainput->externalThread && ainput->thread)
#  353|   	{
#  354|   		(void)SetEvent(ainput->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:71:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&dev_name, 0)’
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:141:21: enter_function: entry to ‘audin_oss_thread_func’
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:154:12: branch_false: following ‘false’ branch (when ‘arg’ is non-NULL)...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:160:13: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:27: acquire_resource: opened here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:29: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:64: branch_true: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:17: call_function: inlined call to ‘OSS_LOG_ERR’ from ‘audin_oss_thread_func’
 branch_true: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:17: call_function: inlined call to ‘OSS_LOG_ERR’ from ‘audin_oss_thread_func’
#   69|   	{
#   70|   		char buffer[256] = { 0 };
#   71|-> 		WLog_ERR(TAG, "%s: %i - %s\n", (_text), (_error),
#   72|   		         winpr_strerror((_error), buffer, sizeof(buffer)));
#   73|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&dev_name, 0)’
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:154:12: branch_false: following ‘false’ branch (when ‘arg’ is non-NULL)...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:160:13: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:27: acquire_resource: opened here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:29: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:29: danger: ‘open(&dev_name, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  174|   
#  175|   	/* Set rec volume to 100%. */
#  176|-> 	if ((mixer_handle = open(mixer_name, O_RDWR)) < 0)
#  177|   	{
#  178|   		OSS_LOG_ERR("mixer open failed, not critical", errno);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:192:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&dev_name, 0)’
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:154:12: branch_false: following ‘false’ branch (when ‘arg’ is non-NULL)...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:160:13: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:27: acquire_resource: opened here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:29: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:182:17: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:192:17: danger: ‘open(&dev_name, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  190|   			OSS_LOG_ERR("WRITE_MIXER - SOUND_MIXER_RECLEV, not critical", errno);
#  191|   
#  192|-> 		close(mixer_handle);
#  193|   	}
#  194|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:60:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cur’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:51:28: acquire_memory: this call could return NULL
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:54:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:56:36: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:58:57: branch_true: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:60:25: danger: ‘cur’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   58|   			const CLIPRDR_FORMAT* format = &list->formats[x];
#   59|   			CLIPRDR_FORMAT* cur = &filtered.formats[x];
#   60|-> 			cur->formatId = format->formatId;
#   61|   			if (format->formatName)
#   62|   				cur->formatName = _strdup(format->formatName);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:78:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cur’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:51:28: acquire_memory: this call could return NULL
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:54:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:66:18: branch_false: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:66:17: branch_true: following ‘true’ branch...
 branch_true: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:68:36: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:70:57: branch_true: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:73:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:75:29: branch_false: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:78:33: danger: ‘cur’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   76|   			    strcmp(format->formatName, type_FileContents) == 0)
#   77|   			{
#   78|-> 				cur->formatId = format->formatId;
#   79|   				cur->formatName = _strdup(format->formatName);
#   80|   				wpos++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:95:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cur’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:51:28: acquire_memory: this call could return NULL
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:54:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:66:18: branch_false: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:66:17: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:84:18: branch_false: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:84:17: branch_true: following ‘true’ branch...
 branch_true: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:86:36: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:88:57: branch_true: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_format.c:95:33: danger: ‘cur’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#   93|   			     strcmp(format->formatName, type_FileContents) != 0))
#   94|   			{
#   95|-> 				cur->formatId = format->formatId;
#   96|   				if (format->formatName)
#   97|   					cur->formatName = _strdup(format->formatName);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:263:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cliprdr’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:253:13: enter_function: entry to ‘cliprdr_process_monitor_ready’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:257:41: call_function: inlined call to ‘cliprdr_get_client_interface’ from ‘cliprdr_process_monitor_ready’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:263:9: branch_true: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:263:9: danger: dereference of NULL ‘cliprdr’
#  261|   	WINPR_ASSERT(s);
#  262|   
#  263|-> 	WLog_Print(cliprdr->log, WLOG_DEBUG, "MonitorReady");
#  264|   
#  265|   	if (!cliprdr->capabilitiesReceived)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:305:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cliprdr’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:295:13: enter_function: entry to ‘cliprdr_process_filecontents_request’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:299:41: call_function: inlined call to ‘cliprdr_get_client_interface’ from ‘cliprdr_process_filecontents_request’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:305:9: branch_true: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:305:9: danger: dereference of NULL ‘cliprdr’
#  303|   	WINPR_ASSERT(s);
#  304|   
#  305|-> 	WLog_Print(cliprdr->log, WLOG_DEBUG, "FileContentsRequest");
#  306|   
#  307|   	request.common.msgType = CB_FILECONTENTS_REQUEST;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:345:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cliprdr’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:335:13: enter_function: entry to ‘cliprdr_process_filecontents_response’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:339:41: call_function: inlined call to ‘cliprdr_get_client_interface’ from ‘cliprdr_process_filecontents_response’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:345:9: branch_true: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:345:9: danger: dereference of NULL ‘cliprdr’
#  343|   	WINPR_ASSERT(s);
#  344|   
#  345|-> 	WLog_Print(cliprdr->log, WLOG_DEBUG, "FileContentsResponse");
#  346|   
#  347|   	response.common.msgType = CB_FILECONTENTS_RESPONSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:378:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cliprdr’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:368:13: enter_function: entry to ‘cliprdr_process_lock_clipdata’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:372:41: call_function: inlined call to ‘cliprdr_get_client_interface’ from ‘cliprdr_process_lock_clipdata’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:378:9: branch_true: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:378:9: danger: dereference of NULL ‘cliprdr’
#  376|   	WINPR_ASSERT(s);
#  377|   
#  378|-> 	WLog_Print(cliprdr->log, WLOG_DEBUG, "LockClipData");
#  379|   
#  380|   	if (!Stream_CheckAndLogRequiredLengthWLog(cliprdr->log, s, 4))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:411:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cliprdr’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:401:13: enter_function: entry to ‘cliprdr_process_unlock_clipdata’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:405:41: call_function: inlined call to ‘cliprdr_get_client_interface’ from ‘cliprdr_process_unlock_clipdata’
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:411:9: branch_true: ...to here
FreeRDP-3.16.0/channels/cliprdr/client/cliprdr_main.c:411:9: danger: dereference of NULL ‘cliprdr’
#  409|   	WINPR_ASSERT(s);
#  410|   
#  411|-> 	WLog_Print(cliprdr->log, WLOG_DEBUG, "UnlockClipData");
#  412|   
#  413|   	if ((error = cliprdr_read_unlock_clipdata(s, &unlockClipboardData)))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
FreeRDP-3.16.0/channels/disp/client/disp_main.c:88:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(NumMonitors * 40 + 16))’
FreeRDP-3.16.0/channels/disp/client/disp_main.c:80:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/disp/client/disp_main.c:82:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/disp/client/disp_main.c:88:23: branch_false: ...to here
FreeRDP-3.16.0/channels/disp/client/disp_main.c:88:23: danger: ‘Stream_New(0, (long unsigned int)(NumMonitors * 40 + 16))’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   86|   	}
#   87|   
#   88|-> 	if ((status = disp_write_header(s, &header)))
#   89|   	{
#   90|   		WLog_ERR(TAG, "Failed to write header with error %" PRIu32 "!", status);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def14]
FreeRDP-3.16.0/channels/disp/server/disp_main.c:621:9: warning[-Wanalyzer-mismatching-deallocation]: ‘context’ should have been deallocated with ‘free’ but was deallocated with ‘disp_server_context_free’
FreeRDP-3.16.0/channels/disp/server/disp_main.c:588:39: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/channels/disp/server/disp_main.c:590:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/disp/server/disp_main.c:596:52: branch_false: ...to here
FreeRDP-3.16.0/channels/disp/server/disp_main.c:598:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/disp/server/disp_main.c:600:17: branch_true: ...to here
FreeRDP-3.16.0/channels/disp/server/disp_main.c:621:9: danger: deallocated with ‘disp_server_context_free’ here; allocation at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  619|   	WINPR_PRAGMA_DIAG_PUSH
#  620|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  621|-> 	disp_server_context_free(context);
#  622|   	WINPR_PRAGMA_DIAG_POP
#  623|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def15]
FreeRDP-3.16.0/channels/disp/server/disp_main.c:631:13: warning[-Wanalyzer-use-after-free]: use after ‘disp_server_context_free’ of ‘context’
FreeRDP-3.16.0/channels/disp/server/disp_main.c:584:20: enter_function: entry to ‘disp_server_context_new’
FreeRDP-3.16.0/channels/disp/server/disp_main.c:588:39: acquire_memory: allocated here
FreeRDP-3.16.0/channels/disp/server/disp_main.c:590:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/disp/server/disp_main.c:596:52: branch_false: ...to here
FreeRDP-3.16.0/channels/disp/server/disp_main.c:598:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/disp/server/disp_main.c:600:17: branch_true: ...to here
FreeRDP-3.16.0/channels/disp/server/disp_main.c:621:9: release_memory: deallocated here
FreeRDP-3.16.0/channels/disp/server/disp_main.c:621:9: call_function: calling ‘disp_server_context_free’ from ‘disp_server_context_new’
#  629|   		return;
#  630|   
#  631|-> 	if (context->priv)
#  632|   	{
#  633|   		disp_server_close(context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:13: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:161:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:163:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:36: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:13: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  168|   	}
#  169|   
#  170|-> 	if (WTSVirtualChannelQuery(context->priv->ChannelHandle, WTSVirtualEventHandle, &buffer,
#  171|   	                           &BytesReturned) == TRUE)
#  172|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:176:17: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:161:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:163:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:36: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:173:21: branch_true: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:173:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:176:17: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:176:17: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  174|   			ChannelEvent = *(HANDLE*)buffer;
#  175|   
#  176|-> 		WTSFreeMemory(buffer);
#  177|   	}
#  178|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:185:26: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:161:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:163:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:36: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:185:26: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  183|   	while (1)
#  184|   	{
#  185|-> 		status = WaitForMultipleObjects(nCount, events, FALSE, INFINITE);
#  186|   
#  187|   		if (status == WAIT_FAILED)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:189:33: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:161:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:163:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:36: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:189:33: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  187|   		if (status == WAIT_FAILED)
#  188|   		{
#  189|-> 			error = GetLastError();
#  190|   			WLog_ERR(TAG, "WaitForMultipleObjects failed with error %" PRIu32 "", error);
#  191|   			break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:194:26: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:161:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:163:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:36: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:187:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:194:46: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:194:26: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  192|   		}
#  193|   
#  194|-> 		status = WaitForSingleObject(context->priv->StopEvent, 0);
#  195|   
#  196|   		if (status == WAIT_FAILED)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:198:33: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:161:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:163:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:36: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:187:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:194:46: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:198:33: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  196|   		if (status == WAIT_FAILED)
#  197|   		{
#  198|-> 			error = GetLastError();
#  199|   			WLog_ERR(TAG, "WaitForSingleObject failed with error %" PRIu32 "", error);
#  200|   			break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:208:22: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:161:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:163:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:36: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:187:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:194:46: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:196:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:203:20: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:203:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:208:44: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:208:22: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  206|   		}
#  207|   
#  208|-> 		if (!WTSVirtualChannelRead(context->priv->ChannelHandle, 0, NULL, 0, &BytesReturned))
#  209|   		{
#  210|   			WLog_ERR(TAG, "WTSVirtualChannelRead failed!");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:218:22: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:161:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:163:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:36: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:187:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:194:46: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:196:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:203:20: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:203:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:208:44: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:208:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:215:21: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:218:22: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  216|   			continue;
#  217|   
#  218|-> 		if (!Stream_EnsureRemainingCapacity(s, BytesReturned))
#  219|   		{
#  220|   			WLog_ERR(TAG, "Stream_EnsureRemainingCapacity failed!");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:259:12: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:161:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:163:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:170:36: branch_false: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:259:12: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  257|   out:
#  258|   
#  259|-> 	if (error && context->rdpcontext)
#  260|   		setChannelError(context->rdpcontext, error, "encomsp_server_thread reported an error");
#  261|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:276:14: warning[-Wanalyzer-malloc-leak]: leak of ‘**context.priv.ChannelHandle’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:274:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:276:14: danger: ‘**context.priv.ChannelHandle’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  274|   	    WTSVirtualChannelOpen(context->vcm, WTS_CURRENT_SESSION, ENCOMSP_SVC_CHANNEL_NAME);
#  275|   
#  276|-> 	if (!context->priv->ChannelHandle)
#  277|   		return CHANNEL_RC_BAD_CHANNEL;
#  278|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:180:24: warning[-Wanalyzer-malloc-leak]: leak of ‘mappedGeometry’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:162:13: enter_function: entry to ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:179:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:182:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:184:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:191:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:192:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:197:12: branch_false: following ‘false’ branch (when ‘v != 2’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_true: following ‘true’ branch (when ‘v == 1’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:222:25: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:223:42: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:224:28: branch_false: following ‘false’ branch (when ‘mappedGeometry’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:227:25: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:230:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:244:17: call_function: inlined call to ‘stream_read_u64_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:246:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:247:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:248:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:249:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:251:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:252:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:253:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:254:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:256:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:261:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:262:20: branch_true: following ‘true’ branch...
 branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:180:24: danger: ‘mappedGeometry’ leaks here; was allocated at [(28)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/27)
#  178|   
#  179|   	if (!Stream_CheckAndLogRequiredLength(TAG, s, 4))
#  180|-> 		return ERROR_INVALID_DATA;
#  181|   
#  182|   	Stream_Read_UINT32(s, length); /* Length (4 bytes) */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:230:30: warning[-Wanalyzer-malloc-leak]: leak of ‘mappedGeometry’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:162:13: enter_function: entry to ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:179:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:182:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:184:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:191:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:192:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:197:12: branch_false: following ‘false’ branch (when ‘v != 2’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_true: following ‘true’ branch (when ‘v == 1’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:222:25: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:223:42: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:224:28: branch_false: following ‘false’ branch (when ‘mappedGeometry’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:227:25: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:230:30: danger: ‘mappedGeometry’ leaks here; was allocated at [(28)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/27)
#  228|   			mappedGeometry->mappingId = id;
#  229|   
#  230|-> 			if (!HashTable_Insert(context->geometries, &(mappedGeometry->mappingId),
#  231|   			                      mappedGeometry))
#  232|   			{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:233:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mappedGeometry’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:162:13: enter_function: entry to ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:179:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:182:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:184:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:191:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:192:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:197:12: branch_false: following ‘false’ branch (when ‘v != 2’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_true: following ‘true’ branch (when ‘v == 1’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:222:25: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:223:42: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:224:28: branch_false: following ‘false’ branch (when ‘mappedGeometry’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:227:25: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:230:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:233:33: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:233:33: danger: ‘mappedGeometry’ leaks here; was allocated at [(28)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/27)
#  231|   			                      mappedGeometry))
#  232|   			{
#  233|-> 				WLog_Print(logger, WLOG_ERROR,
#  234|   				           "unable to register geometry 0x%" PRIx64 " in the table", id);
#  235|   				free(mappedGeometry);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:258:25: warning[-Wanalyzer-malloc-leak]: leak of ‘mappedGeometry’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:162:13: enter_function: entry to ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:179:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:182:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:184:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:191:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:192:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:197:12: branch_false: following ‘false’ branch (when ‘v != 2’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_true: following ‘true’ branch (when ‘v == 1’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:222:25: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:223:42: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:224:28: branch_false: following ‘false’ branch (when ‘mappedGeometry’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:227:25: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:230:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:244:17: call_function: inlined call to ‘stream_read_u64_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:246:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:247:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:248:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:249:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:251:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:252:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:253:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:254:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:256:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:257:20: branch_true: following ‘true’ branch (when ‘v != 2’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:258:25: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:258:25: danger: ‘mappedGeometry’ leaks here; was allocated at [(28)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/27)
#  256|   		Stream_Read_UINT32(s, geometryType);
#  257|   		if (geometryType != 0x02)
#  258|-> 			WLog_Print(logger, WLOG_DEBUG, "geometryType should be set to 0x02 and is 0x%" PRIx32,
#  259|   			           geometryType);
#  260|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:262:22: warning[-Wanalyzer-malloc-leak]: leak of ‘mappedGeometry’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:162:13: enter_function: entry to ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:179:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:182:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:184:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:191:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:192:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:197:12: branch_false: following ‘false’ branch (when ‘v != 2’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_true: following ‘true’ branch (when ‘v == 1’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:222:25: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:223:42: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:224:28: branch_false: following ‘false’ branch (when ‘mappedGeometry’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:227:25: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:230:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:244:17: call_function: inlined call to ‘stream_read_u64_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:246:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:247:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:248:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:249:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:251:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:252:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:253:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:254:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:256:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:257:20: branch_false: following ‘false’ branch (when ‘v == 2’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:261:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:262:22: danger: ‘mappedGeometry’ leaks here; was allocated at [(28)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/27)
#  260|   
#  261|   		Stream_Read_UINT32(s, cbGeometryBuffer);
#  262|-> 		if (!Stream_CheckAndLogRequiredLength(TAG, s, cbGeometryBuffer))
#  263|   		{
#  264|   			// NOLINTNEXTLINE(clang-analyzer-unix.Malloc): HashTable_Insert ownership mappedGeometry

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:282:30: warning[-Wanalyzer-malloc-leak]: leak of ‘mappedGeometry’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:162:13: enter_function: entry to ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:179:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:182:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:184:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:191:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:192:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:197:12: branch_false: following ‘false’ branch (when ‘v != 2’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:215:17: branch_true: following ‘true’ branch (when ‘v == 1’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:219:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:222:25: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:223:42: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:224:28: branch_false: following ‘false’ branch (when ‘mappedGeometry’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:227:25: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:230:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:244:17: call_function: inlined call to ‘stream_read_u64_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:246:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:247:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:248:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:249:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:251:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:252:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:253:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:254:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:256:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:261:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:262:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:268:20: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:268:20: branch_false: following ‘false’ branch (when ‘v == 0’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:276:25: call_function: inlined call to ‘freerdp_rgndata_reset’ from ‘geometry_recv_pdu’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:279:20: branch_true: following ‘true’ branch (when ‘newOne != 0’)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:281:29: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:281:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:282:30: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:282:30: danger: ‘mappedGeometry’ leaks here; was allocated at [(28)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/27)
#  280|   		{
#  281|   			if (context->MappedGeometryAdded &&
#  282|-> 			    !context->MappedGeometryAdded(context, mappedGeometry))
#  283|   			{
#  284|   				WLog_Print(logger, WLOG_ERROR, "geometry added callback failed");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:359:31: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:352:43: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:353:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:359:31: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:359:31: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  357|   	}
#  358|   
#  359|-> 	context->geometries = HashTable_New(FALSE);
#  360|   	if (!context->geometries)
#  361|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:362:17: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:352:43: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:353:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:359:31: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:360:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:362:17: branch_true: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:362:17: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  360|   	if (!context->geometries)
#  361|   	{
#  362|-> 		WLog_Print(base->log, WLOG_ERROR, "unable to allocate geometries");
#  363|   		free(context);
#  364|   		return CHANNEL_RC_NO_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:367:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:353:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:359:31: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:359:31: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:360:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:367:9: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:367:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  365|   	}
#  366|   
#  367|-> 	HashTable_SetHashFunction(context->geometries, mappedGeometryHash);
#  368|   	{
#  369|   		wObject* obj = HashTable_KeyObject(context->geometries);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:367:9: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:352:43: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:353:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:359:31: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:360:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:367:9: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:367:9: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  365|   	}
#  366|   
#  367|-> 	HashTable_SetHashFunction(context->geometries, mappedGeometryHash);
#  368|   	{
#  369|   		wObject* obj = HashTable_KeyObject(context->geometries);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:369:32: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:352:43: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:353:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:359:31: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:360:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:367:9: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:369:32: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  367|   	HashTable_SetHashFunction(context->geometries, mappedGeometryHash);
#  368|   	{
#  369|-> 		wObject* obj = HashTable_KeyObject(context->geometries);
#  370|   		obj->fnObjectEquals = mappedGeometryKeyCompare;
#  371|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:373:32: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:352:43: acquire_memory: allocated here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:353:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:359:31: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:360:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:367:9: branch_false: ...to here
FreeRDP-3.16.0/channels/geometry/client/geometry_main.c:373:32: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  371|   	}
#  372|   	{
#  373|-> 		wObject* obj = HashTable_ValueObject(context->geometries);
#  374|   		obj->fnObjectFree = mappedGeometryUnref_void;
#  375|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def38]
FreeRDP-3.16.0/channels/location/client/location_main.c:82:14: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.16.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/location/client/location_main.c:379:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/location/client/location_main.c:383:66: branch_false: ...to here
FreeRDP-3.16.0/channels/location/client/location_main.c:397:39: call_function: calling ‘location_send_location2d_delta’ from ‘location_send’
#   80|   static BOOL location_write_header(wStream* s, UINT16 pduType, UINT32 pduLength)
#   81|   {
#   82|-> 	if (!Stream_EnsureRemainingCapacity(s, 6))
#   83|   		return FALSE;
#   84|   	Stream_Write_UINT16(s, pduType);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def39]
FreeRDP-3.16.0/channels/location/client/location_main.c:218:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.16.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/location/client/location_main.c:352:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/location/client/location_main.c:356:65: branch_false: ...to here
FreeRDP-3.16.0/channels/location/client/location_main.c:375:39: call_function: calling ‘location_send_base_location3d’ from ‘location_send’
#  216|   	wStream sbuffer = { 0 };
#  217|   	BYTE buffer[32] = { 0 };
#  218|-> 	wStream* s = Stream_StaticInit(&sbuffer, buffer, sizeof(buffer));
#  219|   	WINPR_ASSERT(s);
#  220|   	WINPR_ASSERT(channel);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def40]
FreeRDP-3.16.0/channels/location/client/location_main.c:259:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.16.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/location/client/location_main.c:379:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/location/client/location_main.c:383:66: branch_false: ...to here
FreeRDP-3.16.0/channels/location/client/location_main.c:397:39: call_function: calling ‘location_send_location2d_delta’ from ‘location_send’
#  257|   	wStream sbuffer = { 0 };
#  258|   	BYTE buffer[32] = { 0 };
#  259|-> 	wStream* s = Stream_StaticInit(&sbuffer, buffer, sizeof(buffer));
#  260|   	WINPR_ASSERT(s);
#  261|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def41]
FreeRDP-3.16.0/channels/location/client/location_main.c:295:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.16.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/location/client/location_main.c:401:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/location/client/location_main.c:405:66: branch_false: ...to here
FreeRDP-3.16.0/channels/location/client/location_main.c:419:39: call_function: calling ‘location_send_location3d_delta’ from ‘location_send’
#  293|   	wStream sbuffer = { 0 };
#  294|   	BYTE buffer[32] = { 0 };
#  295|-> 	wStream* s = Stream_StaticInit(&sbuffer, buffer, sizeof(buffer));
#  296|   	WINPR_ASSERT(s);
#  297|   

Error: CPPCHECK_WARNING (CWE-664): [#def42]
FreeRDP-3.16.0/channels/location/client/location_main.c:347: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  345|   
#  346|   	UINT32 res = ERROR_INTERNAL_ERROR;
#  347|-> 	va_list ap = { 0 };
#  348|   	va_start(ap, count);
#  349|   	switch (type)

Error: GCC_ANALYZER_WARNING (CWE-416): [#def43]
FreeRDP-3.16.0/channels/location/server/location_main.c:480:14: warning[-Wanalyzer-use-after-free]: use after ‘location_server_context_free’ of ‘context’
FreeRDP-3.16.0/channels/location/server/location_main.c:600:24: enter_function: entry to ‘location_server_context_new’
FreeRDP-3.16.0/channels/location/server/location_main.c:604:12: branch_false: following ‘false’ branch (when ‘location’ is non-NULL)...
FreeRDP-3.16.0/channels/location/server/location_main.c:607:9: branch_false: ...to here
FreeRDP-3.16.0/channels/location/server/location_main.c:617:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/location/server/location_main.c:618:17: branch_true: ...to here
FreeRDP-3.16.0/channels/location/server/location_main.c:624:9: release_memory: deallocated here
FreeRDP-3.16.0/channels/location/server/location_main.c:624:9: call_function: calling ‘location_server_context_free’ from ‘location_server_context_new’
#  478|   	WINPR_ASSERT(location);
#  479|   
#  480|-> 	if (!location->externalThread && location->thread)
#  481|   	{
#  482|   		(void)SetEvent(location->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def44]
FreeRDP-3.16.0/channels/rdpdr/client/rdpdr_main.c:1675:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/rdpdr/client/rdpdr_main.c:1774:13: enter_function: entry to ‘rdpdr_process_receive’
FreeRDP-3.16.0/channels/rdpdr/client/rdpdr_main.c:1786:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/rdpdr/client/rdpdr_main.c:1788:17: call_function: inlined call to ‘stream_read_u16_le’ from ‘rdpdr_process_receive’
FreeRDP-3.16.0/channels/rdpdr/client/rdpdr_main.c:1789:17: call_function: inlined call to ‘stream_read_u16_le’ from ‘rdpdr_process_receive’
FreeRDP-3.16.0/channels/rdpdr/client/rdpdr_main.c:1791:20: branch_true: following ‘true’ branch (when ‘v == 17522’)...
FreeRDP-3.16.0/channels/rdpdr/client/rdpdr_main.c:1793:30: branch_true: ...to here
FreeRDP-3.16.0/channels/rdpdr/client/rdpdr_main.c:1793:30: call_function: calling ‘rdpdr_check_channel_state’ from ‘rdpdr_process_receive’
# 1673|   		enum RDPDR_CHANNEL_STATE cur = va_arg(ap, enum RDPDR_CHANNEL_STATE);
# 1674|   		const char* curstr = rdpdr_state_str(cur);
# 1675|-> 		winpr_str_append(curstr, buffer, size, "|");
# 1676|   	}
# 1677|   	return buffer;

Error: CPPCHECK_WARNING (CWE-664): [#def45]
FreeRDP-3.16.0/channels/rdpdr/client/rdpdr_main.c:1683: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1681|                                 size_t count, ...)
# 1682|   {
# 1683|-> 	va_list ap = { 0 };
# 1684|   	WINPR_ASSERT(rdpdr);
# 1685|   

Error: COMPILER_WARNING (CWE-563): [#def46]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:491:16: warning[-Wunused-but-set-variable]: variable ‘ioCode1’ set but not used
#  491 |         UINT32 ioCode1 = 0;
#      |                ^~~~~~~
#  489|                                                        const RDPDR_CAPABILITY_HEADER* header)
#  490|   {
#  491|-> 	UINT32 ioCode1 = 0;
#  492|   	UINT32 extraFlags1 = 0;
#  493|   	UINT32 extendedPdu = 0;

Error: COMPILER_WARNING (CWE-563): [#def47]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:492:16: warning[-Wunused-but-set-variable]: variable ‘extraFlags1’ set but not used
#  492 |         UINT32 extraFlags1 = 0;
#      |                ^~~~~~~~~~~
#  490|   {
#  491|   	UINT32 ioCode1 = 0;
#  492|-> 	UINT32 extraFlags1 = 0;
#  493|   	UINT32 extendedPdu = 0;
#  494|   	UINT16 VersionMajor = 0;

Error: COMPILER_WARNING (CWE-563): [#def48]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_read_general_capability_set’
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:496:16: warning[-Wunused-but-set-variable]: variable ‘SpecialTypeDeviceCap’ set but not used
#  496 |         UINT32 SpecialTypeDeviceCap = 0;
#      |                ^~~~~~~~~~~~~~~~~~~~
#  494|   	UINT16 VersionMajor = 0;
#  495|   	UINT16 VersionMinor = 0;
#  496|-> 	UINT32 SpecialTypeDeviceCap = 0;
#  497|   	WINPR_ASSERT(context);
#  498|   	WINPR_ASSERT(context->priv);

Error: COMPILER_WARNING (CWE-563): [#def49]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:1228:16: warning[-Wunused-but-set-variable]: variable ‘DesiredAccess’ set but not used
# 1228 |         UINT32 DesiredAccess = 0;
#      |                ^~~~~~~~~~~~~
# 1226|   {
# 1227|   	const WCHAR* path = NULL;
# 1228|-> 	UINT32 DesiredAccess = 0;
# 1229|   	UINT32 AllocationSize = 0;
# 1230|   	UINT32 FileAttributes = 0;

Error: COMPILER_WARNING (CWE-563): [#def50]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:1229:16: warning[-Wunused-but-set-variable]: variable ‘AllocationSize’ set but not used
# 1229 |         UINT32 AllocationSize = 0;
#      |                ^~~~~~~~~~~~~~
# 1227|   	const WCHAR* path = NULL;
# 1228|   	UINT32 DesiredAccess = 0;
# 1229|-> 	UINT32 AllocationSize = 0;
# 1230|   	UINT32 FileAttributes = 0;
# 1231|   	UINT32 SharedAccess = 0;

Error: COMPILER_WARNING (CWE-563): [#def51]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:1230:16: warning[-Wunused-but-set-variable]: variable ‘FileAttributes’ set but not used
# 1230 |         UINT32 FileAttributes = 0;
#      |                ^~~~~~~~~~~~~~
# 1228|   	UINT32 DesiredAccess = 0;
# 1229|   	UINT32 AllocationSize = 0;
# 1230|-> 	UINT32 FileAttributes = 0;
# 1231|   	UINT32 SharedAccess = 0;
# 1232|   	UINT32 CreateDisposition = 0;

Error: COMPILER_WARNING (CWE-563): [#def52]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:1231:16: warning[-Wunused-but-set-variable]: variable ‘SharedAccess’ set but not used
# 1231 |         UINT32 SharedAccess = 0;
#      |                ^~~~~~~~~~~~
# 1229|   	UINT32 AllocationSize = 0;
# 1230|   	UINT32 FileAttributes = 0;
# 1231|-> 	UINT32 SharedAccess = 0;
# 1232|   	UINT32 CreateDisposition = 0;
# 1233|   	UINT32 CreateOptions = 0;

Error: COMPILER_WARNING (CWE-563): [#def53]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:1232:16: warning[-Wunused-but-set-variable]: variable ‘CreateDisposition’ set but not used
# 1232 |         UINT32 CreateDisposition = 0;
#      |                ^~~~~~~~~~~~~~~~~
# 1230|   	UINT32 FileAttributes = 0;
# 1231|   	UINT32 SharedAccess = 0;
# 1232|-> 	UINT32 CreateDisposition = 0;
# 1233|   	UINT32 CreateOptions = 0;
# 1234|   	UINT32 PathLength = 0;

Error: COMPILER_WARNING (CWE-563): [#def54]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_create_request’
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:1233:16: warning[-Wunused-but-set-variable]: variable ‘CreateOptions’ set but not used
# 1233 |         UINT32 CreateOptions = 0;
#      |                ^~~~~~~~~~~~~
# 1231|   	UINT32 SharedAccess = 0;
# 1232|   	UINT32 CreateDisposition = 0;
# 1233|-> 	UINT32 CreateOptions = 0;
# 1234|   	UINT32 PathLength = 0;
# 1235|   

Error: COMPILER_WARNING (CWE-563): [#def55]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_device_control_request’
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:1346:16: warning[-Wunused-but-set-variable]: variable ‘IoControlCode’ set but not used
# 1346 |         UINT32 IoControlCode = 0;
#      |                ^~~~~~~~~~~~~
# 1344|   	UINT32 OutputBufferLength = 0;
# 1345|   	UINT32 InputBufferLength = 0;
# 1346|-> 	UINT32 IoControlCode = 0;
# 1347|   
# 1348|   	WINPR_ASSERT(context);

Error: COMPILER_WARNING (CWE-563): [#def56]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:1556:14: warning[-Wunused-but-set-variable]: variable ‘WatchTree’ set but not used
# 1556 |         BYTE WatchTree = 0;
#      |              ^~~~~~~~~
# 1554|                                                                WINPR_ATTR_UNUSED UINT32 CompletionId)
# 1555|   {
# 1556|-> 	BYTE WatchTree = 0;
# 1557|   	UINT32 CompletionFilter = 0;
# 1558|   

Error: COMPILER_WARNING (CWE-563): [#def57]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_change_directory_request’
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:1557:16: warning[-Wunused-but-set-variable]: variable ‘CompletionFilter’ set but not used
# 1557 |         UINT32 CompletionFilter = 0;
#      |                ^~~~~~~~~~~~~~~~
# 1555|   {
# 1556|   	BYTE WatchTree = 0;
# 1557|-> 	UINT32 CompletionFilter = 0;
# 1558|   
# 1559|   	WINPR_ASSERT(context);

Error: COMPILER_WARNING (CWE-563): [#def58]
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_drive_rename_file_callback2’
FreeRDP-3.16.0/channels/rdpdr/server/rdpdr_main.c:3484:16: warning[-Wunused-but-set-variable]: variable ‘length’ set but not used
# 3484 |         UINT32 length = 0;
#      |                ^~~~~~
# 3482|                                                        UINT32 completionId, UINT32 ioStatus)
# 3483|   {
# 3484|-> 	UINT32 length = 0;
# 3485|   	WINPR_ASSERT(context);
# 3486|   	WINPR_ASSERT(context->priv);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def59]
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_enumerator_main.c:475:14: warning[-Wanalyzer-use-after-free]: use after ‘cam_dev_enum_server_context_free’ of ‘context’
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_enumerator_main.c:580:26: enter_function: entry to ‘cam_dev_enum_server_context_new’
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_enumerator_main.c:584:12: branch_false: following ‘false’ branch (when ‘enumerator’ is non-NULL)...
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_enumerator_main.c:587:9: branch_false: ...to here
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_enumerator_main.c:597:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_enumerator_main.c:598:17: branch_true: ...to here
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_enumerator_main.c:604:9: release_memory: deallocated here
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_enumerator_main.c:604:9: call_function: calling ‘cam_dev_enum_server_context_free’ from ‘cam_dev_enum_server_context_new’
#  473|   	WINPR_ASSERT(enumerator);
#  474|   
#  475|-> 	if (!enumerator->externalThread && enumerator->thread)
#  476|   	{
#  477|   		(void)SetEvent(enumerator->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def60]
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_main.c:631:14: warning[-Wanalyzer-use-after-free]: use after ‘camera_device_server_context_free’ of ‘context’
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_main.c:926:28: enter_function: entry to ‘camera_device_server_context_new’
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_main.c:930:12: branch_false: following ‘false’ branch (when ‘device’ is non-NULL)...
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_main.c:933:9: branch_false: ...to here
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_main.c:956:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_main.c:957:17: branch_true: ...to here
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_main.c:963:9: release_memory: deallocated here
FreeRDP-3.16.0/channels/rdpecam/server/camera_device_main.c:963:9: call_function: calling ‘camera_device_server_context_free’ from ‘camera_device_server_context_new’
#  629|   	WINPR_ASSERT(device);
#  630|   
#  631|-> 	if (!device->externalThread && device->thread)
#  632|   	{
#  633|   		(void)SetEvent(device->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def61]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1064:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1203:13: enter_function: entry to ‘rdpei_touch_raw_event’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1208:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1209:14: call_function: calling ‘rdpei_touch_process’ from ‘rdpei_touch_raw_event’
# 1062|   	RDPEI_PLUGIN* rdpei = (RDPEI_PLUGIN*)context->handle;
# 1063|   	/* Create a new contact point in an empty slot */
# 1064|-> 	EnterCriticalSection(&rdpei->lock);
# 1065|   	const BOOL begin = (contactFlags & RDPINPUT_CONTACT_FLAG_DOWN) != 0;
# 1066|   	contactPoint = rdpei_contact(rdpei, externalId, !begin);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def62]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1069:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1203:13: enter_function: entry to ‘rdpei_touch_raw_event’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1208:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1209:14: call_function: calling ‘rdpei_touch_process’ from ‘rdpei_touch_raw_event’
# 1067|   	if (contactPoint)
# 1068|   		contactIdlocal = contactPoint->contactId;
# 1069|-> 	LeaveCriticalSection(&rdpei->lock);
# 1070|   
# 1071|   	if (contactIdlocal > UINT32_MAX)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def63]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1102:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1203:13: enter_function: entry to ‘rdpei_touch_raw_event’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1208:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1209:14: call_function: calling ‘rdpei_touch_process’ from ‘rdpei_touch_raw_event’
# 1100|   			if (p >= 360)
# 1101|   			{
# 1102|-> 				WLog_Print(rdpei->base.log, WLOG_WARN,
# 1103|   				           "TouchContact %" PRId64 ": Invalid orientation value %" PRIu32
# 1104|   				           "degree, clamping to 359 degree",

Error: CPPCHECK_WARNING (CWE-664): [#def64]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1141: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1139|   {
# 1140|   	UINT rc = 0;
# 1141|-> 	va_list ap = { 0 };
# 1142|   	rc = rdpei_touch_process(context, externalId,
# 1143|   	                         RDPINPUT_CONTACT_FLAG_DOWN | RDPINPUT_CONTACT_FLAG_INRANGE |

Error: CPPCHECK_WARNING (CWE-664): [#def65]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1145: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1143|   	                         RDPINPUT_CONTACT_FLAG_DOWN | RDPINPUT_CONTACT_FLAG_INRANGE |
# 1144|   	                             RDPINPUT_CONTACT_FLAG_INCONTACT,
# 1145|-> 	                         x, y, contactId, 0, ap);
# 1146|   	return rc;
# 1147|   }

Error: CPPCHECK_WARNING (CWE-664): [#def66]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1158: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1156|   {
# 1157|   	UINT rc = 0;
# 1158|-> 	va_list ap = { 0 };
# 1159|   	rc = rdpei_touch_process(context, externalId,
# 1160|   	                         RDPINPUT_CONTACT_FLAG_UPDATE | RDPINPUT_CONTACT_FLAG_INRANGE |

Error: CPPCHECK_WARNING (CWE-664): [#def67]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1162: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1160|   	                         RDPINPUT_CONTACT_FLAG_UPDATE | RDPINPUT_CONTACT_FLAG_INRANGE |
# 1161|   	                             RDPINPUT_CONTACT_FLAG_INCONTACT,
# 1162|-> 	                         x, y, contactId, 0, ap);
# 1163|   	return rc;
# 1164|   }

Error: CPPCHECK_WARNING (CWE-664): [#def68]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1175: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1173|   {
# 1174|   	UINT error = 0;
# 1175|-> 	va_list ap = { 0 };
# 1176|   	error = rdpei_touch_process(context, externalId,
# 1177|   	                            RDPINPUT_CONTACT_FLAG_UPDATE | RDPINPUT_CONTACT_FLAG_INRANGE |

Error: CPPCHECK_WARNING (CWE-664): [#def69]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1179: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1177|   	                            RDPINPUT_CONTACT_FLAG_UPDATE | RDPINPUT_CONTACT_FLAG_INRANGE |
# 1178|   	                                RDPINPUT_CONTACT_FLAG_INCONTACT,
# 1179|-> 	                            x, y, contactId, 0, ap);
# 1180|   	if (error != CHANNEL_RC_OK)
# 1181|   		return error;

Error: CPPCHECK_WARNING (CWE-664): [#def70]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1196: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1194|   {
# 1195|   	UINT rc = 0;
# 1196|-> 	va_list ap = { 0 };
# 1197|   	rc = rdpei_touch_process(context, externalId,
# 1198|   	                         RDPINPUT_CONTACT_FLAG_UP | RDPINPUT_CONTACT_FLAG_CANCELED, x, y,

Error: CPPCHECK_WARNING (CWE-664): [#def71]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1199: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1197|   	rc = rdpei_touch_process(context, externalId,
# 1198|   	                         RDPINPUT_CONTACT_FLAG_UP | RDPINPUT_CONTACT_FLAG_CANCELED, x, y,
# 1199|-> 	                         contactId, 0, ap);
# 1200|   	return rc;
# 1201|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def72]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1287:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1460:13: enter_function: entry to ‘rdpei_pen_raw_event’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1466:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1467:17: call_function: calling ‘rdpei_pen_process’ from ‘rdpei_pen_raw_event’
# 1285|   	rdpei = (RDPEI_PLUGIN*)context->handle;
# 1286|   
# 1287|-> 	EnterCriticalSection(&rdpei->lock);
# 1288|   	// Start a new contact only when it is not active.
# 1289|   	contactPoint = rdpei_pen_contact(rdpei, externalId, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def73]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1298:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1460:13: enter_function: entry to ‘rdpei_pen_raw_event’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1466:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1467:17: call_function: calling ‘rdpei_pen_process’ from ‘rdpei_pen_raw_event’
# 1296|   		}
# 1297|   	}
# 1298|-> 	LeaveCriticalSection(&rdpei->lock);
# 1299|   	if (contactPoint != NULL)
# 1300|   	{

Error: GCC_ANALYZER_WARNING (CWE-404): [#def74]
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1335:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1445:13: enter_function: entry to ‘rdpei_pen_hover_cancel’
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1451:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/rdpei/client/rdpei_main.c:1452:17: call_function: calling ‘rdpei_pen_process’ from ‘rdpei_pen_hover_cancel’
# 1333|   		}
# 1334|   
# 1335|-> 		error = context->AddPen(context, externalId, &contact);
# 1336|   	}
# 1337|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def75]
FreeRDP-3.16.0/channels/rdpemsc/server/mouse_cursor_main.c:430:14: warning[-Wanalyzer-use-after-free]: use after ‘mouse_cursor_server_context_free’ of ‘context’
FreeRDP-3.16.0/channels/rdpemsc/server/mouse_cursor_main.c:695:27: enter_function: entry to ‘mouse_cursor_server_context_new’
FreeRDP-3.16.0/channels/rdpemsc/server/mouse_cursor_main.c:700:12: branch_false: following ‘false’ branch (when ‘mouse_cursor’ is non-NULL)...
FreeRDP-3.16.0/channels/rdpemsc/server/mouse_cursor_main.c:703:9: branch_false: ...to here
FreeRDP-3.16.0/channels/rdpemsc/server/mouse_cursor_main.c:714:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/rdpemsc/server/mouse_cursor_main.c:715:17: branch_true: ...to here
FreeRDP-3.16.0/channels/rdpemsc/server/mouse_cursor_main.c:721:9: release_memory: deallocated here
FreeRDP-3.16.0/channels/rdpemsc/server/mouse_cursor_main.c:721:9: call_function: calling ‘mouse_cursor_server_context_free’ from ‘mouse_cursor_server_context_new’
#  428|   	WINPR_ASSERT(mouse_cursor);
#  429|   
#  430|-> 	if (!mouse_cursor->externalThread && mouse_cursor->thread)
#  431|   	{
#  432|   		(void)SetEvent(mouse_cursor->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def76]
FreeRDP-3.16.0/channels/rdpgfx/client/rdpgfx_main.c:2328:9: warning[-Wanalyzer-use-after-free]: use after ‘rdpgfx_client_context_free’ of ‘context’
FreeRDP-3.16.0/channels/rdpgfx/client/rdpgfx_main.c:2132:13: enter_function: entry to ‘terminate_plugin_cb’
FreeRDP-3.16.0/channels/rdpgfx/client/rdpgfx_main.c:2139:9: release_memory: deallocated here
FreeRDP-3.16.0/channels/rdpgfx/client/rdpgfx_main.c:2139:9: call_function: calling ‘rdpgfx_client_context_free’ from ‘terminate_plugin_cb’
# 2326|   		return;
# 2327|   
# 2328|-> 	gfx = (RDPGFX_PLUGIN*)context->handle;
# 2329|   
# 2330|   	free_surfaces(context, gfx->SurfaceTable);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1314:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘capsSet’
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1285:13: enter_function: entry to ‘rdpgfx_recv_caps_advertise_pdu’
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1291:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1294:14: branch_false: ...to here
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1294:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1297:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘rdpgfx_recv_caps_advertise_pdu’
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1298:12: branch_false: following ‘false’ branch (when ‘v == 0’)...
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1305:9: branch_false: ...to here
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1307:32: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1309:44: branch_true: ...to here
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1309:44: release_memory: ‘capsSets’ is NULL
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1309:32: release_memory: ‘capsSets’ is NULL
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1311:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1314:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdpgfx_recv_caps_advertise_pdu’
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1314:17: danger: dereference of NULL ‘capsSet’
# 1312|   			goto fail;
# 1313|   
# 1314|-> 		Stream_Read_UINT32(s, capsSet->version); /* version (4 bytes) */
# 1315|   		Stream_Read_UINT32(s, capsSet->length);  /* capsDataLength (4 bytes) */
# 1316|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def78]
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1644:30: warning[-Wanalyzer-use-after-free]: use after ‘rdpgfx_server_context_free’ of ‘context’
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1697:22: enter_function: entry to ‘rdpgfx_server_context_new’
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1699:62: acquire_memory: allocated here
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1701:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1707:9: branch_false: ...to here
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1737:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1743:21: branch_false: ...to here
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1744:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1745:17: branch_true: ...to here
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1766:9: release_memory: deallocated here
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1766:9: call_function: calling ‘rdpgfx_server_context_free’ from ‘rdpgfx_server_context_new’
# 1642|   	WINPR_ASSERT(context);
# 1643|   
# 1644|-> 	RdpgfxServerPrivate* priv = context->priv;
# 1645|   	WINPR_ASSERT(priv);
# 1646|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def79]
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1766:9: warning[-Wanalyzer-mismatching-deallocation]: ‘context’ should have been deallocated with ‘free’ but was deallocated with ‘rdpgfx_server_context_free’
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1699:62: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1701:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1707:9: branch_false: ...to here
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1737:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1743:21: branch_false: ...to here
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1744:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1745:17: branch_true: ...to here
FreeRDP-3.16.0/channels/rdpgfx/server/rdpgfx_main.c:1766:9: danger: deallocated with ‘rdpgfx_server_context_free’ here; allocation at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 1764|   	WINPR_PRAGMA_DIAG_PUSH
# 1765|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1766|-> 	rdpgfx_server_context_free(context);
# 1767|   	WINPR_PRAGMA_DIAG_POP
# 1768|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def80]
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1092:9: warning[-Wanalyzer-mismatching-deallocation]: ‘context’ should have been deallocated with ‘free’ but was deallocated with ‘rdpsnd_server_context_free’
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1044:62: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1046:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1049:9: branch_false: ...to here
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1063:12: branch_true: following ‘true’ branch (when ‘priv’ is NULL)...
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1065:17: branch_true: ...to here
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1092:9: danger: deallocated with ‘rdpsnd_server_context_free’ here; allocation at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 1090|   	WINPR_PRAGMA_DIAG_PUSH
# 1091|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1092|-> 	rdpsnd_server_context_free(context);
# 1093|   	WINPR_PRAGMA_DIAG_POP
# 1094|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def81]
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1112:13: warning[-Wanalyzer-use-after-free]: use after ‘rdpsnd_server_context_free’ of ‘context’
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1041:22: enter_function: entry to ‘rdpsnd_server_context_new’
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1044:62: acquire_memory: allocated here
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1046:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1049:9: branch_false: ...to here
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1063:12: branch_true: following ‘true’ branch (when ‘priv’ is NULL)...
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1065:17: branch_true: ...to here
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1092:9: release_memory: deallocated here
FreeRDP-3.16.0/channels/rdpsnd/server/rdpsnd_main.c:1092:9: call_function: calling ‘rdpsnd_server_context_free’ from ‘rdpsnd_server_context_new’
# 1110|   		return;
# 1111|   
# 1112|-> 	if (context->priv)
# 1113|   	{
# 1114|   		rdpsnd_server_stop(context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:74:22: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(pdu.ctlHeader.ch.DataLength + 22))’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:267:13: enter_function: entry to ‘remdesk_recv_ctl_verify_password_pdu’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:272:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:275:36: call_function: inlined call to ‘Stream_ConstPointer’ from ‘remdesk_recv_ctl_verify_password_pdu’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:276:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:279:38: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:282:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:285:9: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:290:16: call_function: calling ‘remdesk_send_ctl_result_pdu’ from ‘remdesk_recv_ctl_verify_password_pdu’
#   72|   	}
#   73|   
#   74|-> 	if ((error = remdesk_write_ctl_header(s, &(pdu.ctlHeader))))
#   75|   	{
#   76|   		WLog_ERR(TAG, "remdesk_write_ctl_header failed with error %" PRIu32 "!", error);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:102:22: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:427:21: enter_function: entry to ‘remdesk_server_thread’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:436:22: acquire_memory: allocated here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:448:21: branch_true: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:448:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:451:17: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:464:22: call_function: calling ‘remdesk_send_ctl_version_info_pdu’ from ‘remdesk_server_thread’
#  100|   	UINT error = 0;
#  101|   
#  102|-> 	if ((error = remdesk_prepare_ctl_header(&(pdu.ctlHeader), REMDESK_CTL_VERSIONINFO, 8)))
#  103|   	{
#  104|   		WLog_ERR(TAG, "remdesk_prepare_ctl_header failed with error %" PRIu32 "!", error);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:110:13: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:427:21: enter_function: entry to ‘remdesk_server_thread’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:436:22: acquire_memory: allocated here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:448:21: branch_true: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:448:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:451:17: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:464:22: call_function: calling ‘remdesk_send_ctl_version_info_pdu’ from ‘remdesk_server_thread’
#  108|   	pdu.versionMajor = 1;
#  109|   	pdu.versionMinor = 2;
#  110|-> 	s = Stream_New(NULL, REMDESK_CHANNEL_CTL_SIZE + pdu.ctlHeader.ch.DataLength);
#  111|   
#  112|   	if (!s)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:118:22: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(pdu.ctlHeader.ch.DataLength + 22))’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:427:21: enter_function: entry to ‘remdesk_server_thread’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:448:21: branch_true: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:448:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:451:17: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:464:22: call_function: calling ‘remdesk_send_ctl_version_info_pdu’ from ‘remdesk_server_thread’
#  116|   	}
#  117|   
#  118|-> 	if ((error = remdesk_write_ctl_header(s, &(pdu.ctlHeader))))
#  119|   	{
#  120|   		WLog_ERR(TAG, "remdesk_write_ctl_header failed with error %" PRIu32 "!", error);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:118:22: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:427:21: enter_function: entry to ‘remdesk_server_thread’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:436:22: acquire_memory: allocated here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:448:21: branch_true: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:448:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:451:17: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:464:22: call_function: calling ‘remdesk_send_ctl_version_info_pdu’ from ‘remdesk_server_thread’
#  116|   	}
#  117|   
#  118|-> 	if ((error = remdesk_write_ctl_header(s, &(pdu.ctlHeader))))
#  119|   	{
#  120|   		WLog_ERR(TAG, "remdesk_write_ctl_header failed with error %" PRIu32 "!", error);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:126:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:427:21: enter_function: entry to ‘remdesk_server_thread’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:436:22: acquire_memory: allocated here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:448:21: branch_true: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:464:22: call_function: calling ‘remdesk_send_ctl_version_info_pdu’ from ‘remdesk_server_thread’
#  124|   	Stream_Write_UINT32(s, pdu.versionMajor); /* versionMajor (4 bytes) */
#  125|   	Stream_Write_UINT32(s, pdu.versionMinor); /* versionMinor (4 bytes) */
#  126|-> 	Stream_SealLength(s);
#  127|   
#  128|   	if ((error = remdesk_virtual_channel_write(context, s)))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:13: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:436:22: acquire_memory: allocated here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:13: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  443|   	}
#  444|   
#  445|-> 	if (WTSVirtualChannelQuery(context->priv->ChannelHandle, WTSVirtualEventHandle, &buffer,
#  446|   	                           &BytesReturned) == TRUE)
#  447|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:451:17: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:436:22: acquire_memory: allocated here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:448:21: branch_true: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:448:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:451:17: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:451:17: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  449|   			ChannelEvent = *(HANDLE*)buffer;
#  450|   
#  451|-> 		WTSFreeMemory(buffer);
#  452|   	}
#  453|   	else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:542:12: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:436:22: acquire_memory: allocated here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:455:17: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:542:12: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  540|   	Stream_Free(s, TRUE);
#  541|   
#  542|-> 	if (error && context->rdpcontext)
#  543|   		setChannelError(context->rdpcontext, error, "remdesk_server_thread reported an error");
#  544|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:559:14: warning[-Wanalyzer-malloc-leak]: leak of ‘**context.priv.ChannelHandle’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:557:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:559:14: danger: ‘**context.priv.ChannelHandle’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  557|   	    WTSVirtualChannelOpen(context->vcm, WTS_CURRENT_SESSION, REMDESK_SVC_CHANNEL_NAME);
#  558|   
#  559|-> 	if (!context->priv->ChannelHandle)
#  560|   	{
#  561|   		WLog_ERR(TAG, "WTSVirtualChannelOpen failed!");

Error: GCC_ANALYZER_WARNING (CWE-416): [#def92]
FreeRDP-3.16.0/channels/telemetry/server/telemetry_main.c:351:14: warning[-Wanalyzer-use-after-free]: use after ‘telemetry_server_context_free’ of ‘context’
FreeRDP-3.16.0/channels/telemetry/server/telemetry_main.c:410:25: enter_function: entry to ‘telemetry_server_context_new’
FreeRDP-3.16.0/channels/telemetry/server/telemetry_main.c:414:12: branch_false: following ‘false’ branch (when ‘telemetry’ is non-NULL)...
FreeRDP-3.16.0/channels/telemetry/server/telemetry_main.c:417:9: branch_false: ...to here
FreeRDP-3.16.0/channels/telemetry/server/telemetry_main.c:425:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/telemetry/server/telemetry_main.c:426:17: branch_true: ...to here
FreeRDP-3.16.0/channels/telemetry/server/telemetry_main.c:432:9: release_memory: deallocated here
FreeRDP-3.16.0/channels/telemetry/server/telemetry_main.c:432:9: call_function: calling ‘telemetry_server_context_free’ from ‘telemetry_server_context_new’
#  349|   	WINPR_ASSERT(telemetry);
#  350|   
#  351|-> 	if (!telemetry->externalThread && telemetry->thread)
#  352|   	{
#  353|   		(void)SetEvent(telemetry->stopEvent);

Error: CPPCHECK_WARNING (CWE-664): [#def93]
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:145: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  143|   	{
#  144|   		char buffer[8192] = { 0 };
#  145|-> 		va_list ap = { 0 };
#  146|   		va_start(ap, error);
#  147|   		(void)vsnprintf(buffer, sizeof(buffer), fmt, ap);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:633:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t_MsPipe’
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:599:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:616:31: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:618:43: branch_true: ...to here
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:626:39: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:628:60: branch_true: ...to here
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:628:60: acquire_memory: this call could return NULL
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:630:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:633:33: danger: ‘t_MsPipe’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/6)
#  631|   			{
#  632|   				MsPipe = MsInterface->MsPipes[pnum];
#  633|-> 				t_MsPipe->MaximumPacketSize = MsPipe->MaximumPacketSize;
#  634|   				t_MsPipe->MaximumTransferSize = MsPipe->MaximumTransferSize;
#  635|   				t_MsPipe->PipeFlags = MsPipe->PipeFlags;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:640:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t_MsPipe’
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:599:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:616:31: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:618:43: branch_true: ...to here
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:626:39: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:628:60: branch_true: ...to here
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:628:60: acquire_memory: this call could return NULL
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:640:33: danger: ‘t_MsPipe’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/6)
#  638|   			{
#  639|   				t_MsPipe->MaximumPacketSize = 0;
#  640|-> 				t_MsPipe->MaximumTransferSize = 0xffffffff;
#  641|   				t_MsPipe->PipeFlags = 0;
#  642|   			}

Error: CPPCHECK_WARNING (CWE-476): [#def96]
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:644: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t_MsPipe
#  642|   			}
#  643|   
#  644|-> 			t_MsPipe->PipeHandle = 0;
#  645|   			t_MsPipe->bEndpointAddress = 0;
#  646|   			t_MsPipe->bInterval = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def97]
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:645: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t_MsPipe
#  643|   
#  644|   			t_MsPipe->PipeHandle = 0;
#  645|-> 			t_MsPipe->bEndpointAddress = 0;
#  646|   			t_MsPipe->bInterval = 0;
#  647|   			t_MsPipe->PipeType = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def98]
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:646: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t_MsPipe
#  644|   			t_MsPipe->PipeHandle = 0;
#  645|   			t_MsPipe->bEndpointAddress = 0;
#  646|-> 			t_MsPipe->bInterval = 0;
#  647|   			t_MsPipe->PipeType = 0;
#  648|   			t_MsPipe->InitCompleted = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def99]
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:647: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t_MsPipe
#  645|   			t_MsPipe->bEndpointAddress = 0;
#  646|   			t_MsPipe->bInterval = 0;
#  647|-> 			t_MsPipe->PipeType = 0;
#  648|   			t_MsPipe->InitCompleted = 0;
#  649|   			t_MsPipes[pnum] = t_MsPipe;

Error: CPPCHECK_WARNING (CWE-476): [#def100]
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:648: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t_MsPipe
#  646|   			t_MsPipe->bInterval = 0;
#  647|   			t_MsPipe->PipeType = 0;
#  648|-> 			t_MsPipe->InitCompleted = 0;
#  649|   			t_MsPipes[pnum] = t_MsPipe;
#  650|   		}

Error: CPPCHECK_WARNING (CWE-476): [#def101]
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:649: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t_MsPipes
#  647|   			t_MsPipe->PipeType = 0;
#  648|   			t_MsPipe->InitCompleted = 0;
#  649|-> 			t_MsPipes[pnum] = t_MsPipe;
#  650|   		}
#  651|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:649:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t_MsPipes’
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:599:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:616:31: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:618:43: branch_true: ...to here
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:624:46: acquire_memory: this call could return NULL
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:626:39: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:628:60: branch_true: ...to here
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:649:25: danger: ‘t_MsPipes + (long unsigned int)pnum * 8’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
#  647|   			t_MsPipe->PipeType = 0;
#  648|   			t_MsPipe->InitCompleted = 0;
#  649|-> 			t_MsPipes[pnum] = t_MsPipe;
#  650|   		}
#  651|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1855:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1820:8: enter_function: entry to ‘udev_new_by_id’
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1834:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1839:12: branch_false: ...to here
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1839:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1845:38: branch_false: ...to here
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1847:12: branch_false: following ‘false’ branch (when ‘array’ is non-NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1850:29: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1852:49: branch_true: ...to here
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1853:56: call_function: calling ‘udev_new_descript’ from ‘udev_new_by_id’
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1853:56: return_function: returning to ‘udev_new_by_id’ from ‘udev_new_descript’
FreeRDP-3.16.0/channels/urbdrc/client/libusb/libusb_udevice.c:1855:22: danger: dereference of NULL ‘udev_new_descript(urbdrc,  dev)’
# 1853|   		LIBUSB_DEVICE_DESCRIPTOR* descriptor = udev_new_descript(urbdrc, dev);
# 1854|   
# 1855|-> 		if ((descriptor->idVendor == idVendor) && (descriptor->idProduct == idProduct))
# 1856|   		{
# 1857|   			const uint8_t nr = libusb_get_bus_number(dev);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
FreeRDP-3.16.0/channels/video/client/video_main.c:146:23: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  144|   		return NULL;
#  145|   
#  146|-> 	ret->frames = Queue_New(TRUE, 10, 2);
#  147|   	if (!ret->frames)
#  148|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
FreeRDP-3.16.0/channels/video/client/video_main.c:146:23: warning[-Wanalyzer-malloc-leak]: leak of ‘videoContext’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1237:53: acquire_memory: allocated here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  144|   		return NULL;
#  145|   
#  146|-> 	ret->frames = Queue_New(TRUE, 10, 2);
#  147|   	if (!ret->frames)
#  148|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
FreeRDP-3.16.0/channels/video/client/video_main.c:146:23: warning[-Wanalyzer-malloc-leak]: leak of ‘videoPlugin’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: acquire_memory: allocated here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  144|   		return NULL;
#  145|   
#  146|-> 	ret->frames = Queue_New(TRUE, 10, 2);
#  147|   	if (!ret->frames)
#  148|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
FreeRDP-3.16.0/channels/video/client/video_main.c:153:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  151|   	}
#  152|   
#  153|-> 	ret->surfacePool = BufferPool_New(FALSE, 0, 16);
#  154|   	if (!ret->surfacePool)
#  155|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
FreeRDP-3.16.0/channels/video/client/video_main.c:153:28: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  151|   	}
#  152|   
#  153|-> 	ret->surfacePool = BufferPool_New(FALSE, 0, 16);
#  154|   	if (!ret->surfacePool)
#  155|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
FreeRDP-3.16.0/channels/video/client/video_main.c:153:28: warning[-Wanalyzer-malloc-leak]: leak of ‘videoContext’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1237:53: acquire_memory: allocated here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  151|   	}
#  152|   
#  153|-> 	ret->surfacePool = BufferPool_New(FALSE, 0, 16);
#  154|   	if (!ret->surfacePool)
#  155|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
FreeRDP-3.16.0/channels/video/client/video_main.c:153:28: warning[-Wanalyzer-malloc-leak]: leak of ‘videoPlugin’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: acquire_memory: allocated here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  151|   	}
#  152|   
#  153|-> 	ret->surfacePool = BufferPool_New(FALSE, 0, 16);
#  154|   	if (!ret->surfacePool)
#  155|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
FreeRDP-3.16.0/channels/video/client/video_main.c:160:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  158|   	}
#  159|   
#  160|-> 	if (!InitializeCriticalSectionAndSpinCount(&ret->framesLock, 4 * 1000))
#  161|   	{
#  162|   		WLog_ERR(TAG, "unable to initialize frames lock");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
FreeRDP-3.16.0/channels/video/client/video_main.c:160:14: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  158|   	}
#  159|   
#  160|-> 	if (!InitializeCriticalSectionAndSpinCount(&ret->framesLock, 4 * 1000))
#  161|   	{
#  162|   		WLog_ERR(TAG, "unable to initialize frames lock");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
FreeRDP-3.16.0/channels/video/client/video_main.c:183:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/channels/video/client/video_main.c:527:13: enter_function: entry to ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:537:9: call_function: inlined call to ‘stream_read_u8’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:545:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:546:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:547:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:548:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:549:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:550:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:553:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:555:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:558:26: call_function: inlined call to ‘Stream_Pointer’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:568:16: call_function: calling ‘video_PresentationRequest’ from ‘video_read_tsmm_presentation_req’
#  181|   	WINPR_ASSERT(presentation);
#  182|   
#  183|-> 	InterlockedIncrement(&presentation->refCounter);
#  184|   	return TRUE;
#  185|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
FreeRDP-3.16.0/channels/video/client/video_main.c:183:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
#  181|   	WINPR_ASSERT(presentation);
#  182|   
#  183|-> 	InterlockedIncrement(&presentation->refCounter);
#  184|   	return TRUE;
#  185|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
FreeRDP-3.16.0/channels/video/client/video_main.c:183:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:527:13: enter_function: entry to ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:537:9: call_function: inlined call to ‘stream_read_u8’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:545:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:546:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:547:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:548:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:549:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:550:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:553:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:555:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:558:26: call_function: inlined call to ‘Stream_Pointer’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:568:16: call_function: calling ‘video_PresentationRequest’ from ‘video_read_tsmm_presentation_req’
#  181|   	WINPR_ASSERT(presentation);
#  182|   
#  183|-> 	InterlockedIncrement(&presentation->refCounter);
#  184|   	return TRUE;
#  185|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
FreeRDP-3.16.0/channels/video/client/video_main.c:205:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:527:13: enter_function: entry to ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:537:9: call_function: inlined call to ‘stream_read_u8’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:545:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:546:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:547:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:548:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:549:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:550:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:553:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:555:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:558:26: call_function: inlined call to ‘Stream_Pointer’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:568:16: call_function: calling ‘video_PresentationRequest’ from ‘video_read_tsmm_presentation_req’
#  203|   	ret->PresentationId = PresentationId;
#  204|   
#  205|-> 	ret->h264 = h264_context_new(FALSE);
#  206|   	if (!ret->h264)
#  207|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
FreeRDP-3.16.0/channels/video/client/video_main.c:211:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/channels/video/client/video_main.c:527:13: enter_function: entry to ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:537:9: call_function: inlined call to ‘stream_read_u8’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:545:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:546:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:547:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:548:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:549:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:550:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:553:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:555:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:558:26: call_function: inlined call to ‘Stream_Pointer’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:568:16: call_function: calling ‘video_PresentationRequest’ from ‘video_read_tsmm_presentation_req’
#  209|   		goto fail;
#  210|   	}
#  211|-> 	if (!h264_context_reset(ret->h264, width, height))
#  212|   		goto fail;
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
FreeRDP-3.16.0/channels/video/client/video_main.c:211:14: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:527:13: enter_function: entry to ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:537:9: call_function: inlined call to ‘stream_read_u8’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:545:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:546:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:547:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:548:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:549:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:550:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:553:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:555:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:558:26: call_function: inlined call to ‘Stream_Pointer’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:568:16: call_function: calling ‘video_PresentationRequest’ from ‘video_read_tsmm_presentation_req’
#  209|   		goto fail;
#  210|   	}
#  211|-> 	if (!h264_context_reset(ret->h264, width, height))
#  212|   		goto fail;
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
FreeRDP-3.16.0/channels/video/client/video_main.c:214:30: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:527:13: enter_function: entry to ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:537:9: call_function: inlined call to ‘stream_read_u8’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:545:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:546:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:547:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:548:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:549:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:550:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:553:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:555:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:558:26: call_function: inlined call to ‘Stream_Pointer’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:568:16: call_function: calling ‘video_PresentationRequest’ from ‘video_read_tsmm_presentation_req’
#  212|   		goto fail;
#  213|   
#  214|-> 	ret->currentSample = Stream_New(NULL, 4096);
#  215|   	if (!ret->currentSample)
#  216|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
FreeRDP-3.16.0/channels/video/client/video_main.c:221:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/channels/video/client/video_main.c:527:13: enter_function: entry to ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:537:9: call_function: inlined call to ‘stream_read_u8’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:545:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:546:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:547:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:548:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:549:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:550:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:553:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:555:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:558:26: call_function: inlined call to ‘Stream_Pointer’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:568:16: call_function: calling ‘video_PresentationRequest’ from ‘video_read_tsmm_presentation_req’
#  219|   	}
#  220|   
#  221|-> 	ret->surface = video->createSurface(video, x, y, width, height);
#  222|   	if (!ret->surface)
#  223|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
FreeRDP-3.16.0/channels/video/client/video_main.c:221:24: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:527:13: enter_function: entry to ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:537:9: call_function: inlined call to ‘stream_read_u8’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:545:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:546:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:547:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:548:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:549:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:550:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:553:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:555:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:558:26: call_function: inlined call to ‘Stream_Pointer’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:568:16: call_function: calling ‘video_PresentationRequest’ from ‘video_read_tsmm_presentation_req’
#  219|   	}
#  220|   
#  221|-> 	ret->surface = video->createSurface(video, x, y, width, height);
#  222|   	if (!ret->surface)
#  223|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
FreeRDP-3.16.0/channels/video/client/video_main.c:249:13: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:922:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:924:33: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:924:33: call_function: calling ‘VideoFrame_free’ from ‘video_VideoData’
#  247|   		return;
#  248|   
#  249|-> 	if (InterlockedDecrement(&presentation->refCounter) > 0)
#  250|   		return;
#  251|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
FreeRDP-3.16.0/channels/video/client/video_main.c:249:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:527:13: enter_function: entry to ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:537:9: call_function: inlined call to ‘stream_read_u8’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:545:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:546:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:547:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:548:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:549:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:550:9: call_function: inlined call to ‘stream_read_u64_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:553:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:555:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:558:26: call_function: inlined call to ‘Stream_Pointer’ from ‘video_read_tsmm_presentation_req’
FreeRDP-3.16.0/channels/video/client/video_main.c:568:16: call_function: calling ‘video_PresentationRequest’ from ‘video_read_tsmm_presentation_req’
#  247|   		return;
#  248|   
#  249|-> 	if (InterlockedDecrement(&presentation->refCounter) > 0)
#  250|   		return;
#  251|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
FreeRDP-3.16.0/channels/video/client/video_main.c:261:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:922:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:924:33: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:924:33: call_function: calling ‘VideoFrame_free’ from ‘video_VideoData’
#  259|   	}
#  260|   
#  261|-> 	h264_context_free(presentation->h264);
#  262|   	Stream_Free(presentation->currentSample, TRUE);
#  263|   	presentation->video->deleteSurface(presentation->video, presentation->surface);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
FreeRDP-3.16.0/channels/video/client/video_main.c:262:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:922:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:924:33: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:924:33: call_function: calling ‘VideoFrame_free’ from ‘video_VideoData’
#  260|   
#  261|   	h264_context_free(presentation->h264);
#  262|-> 	Stream_Free(presentation->currentSample, TRUE);
#  263|   	presentation->video->deleteSurface(presentation->video, presentation->surface);
#  264|   	free(presentation);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
FreeRDP-3.16.0/channels/video/client/video_main.c:277:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
#  275|   		return;
#  276|   
#  277|-> 	mappedGeometryUnref(frame->geometry);
#  278|   
#  279|   	WINPR_ASSERT(frame->presentation);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
FreeRDP-3.16.0/channels/video/client/video_main.c:282:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:922:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:924:33: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:924:33: call_function: calling ‘VideoFrame_free’ from ‘video_VideoData’
#  280|   	WINPR_ASSERT(frame->presentation->video);
#  281|   	WINPR_ASSERT(frame->presentation->video->priv);
#  282|-> 	BufferPool_Return(frame->presentation->video->priv->surfacePool, frame->surfaceData);
#  283|   	PresentationContext_unref(&frame->presentation);
#  284|   	free(frame);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
FreeRDP-3.16.0/channels/video/client/video_main.c:282:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
#  280|   	WINPR_ASSERT(frame->presentation->video);
#  281|   	WINPR_ASSERT(frame->presentation->video->priv);
#  282|-> 	BufferPool_Return(frame->presentation->video->priv->surfacePool, frame->surfaceData);
#  283|   	PresentationContext_unref(&frame->presentation);
#  284|   	free(frame);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
FreeRDP-3.16.0/channels/video/client/video_main.c:305:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
#  303|   		goto fail;
#  304|   
#  305|-> 	mappedGeometryRef(geom);
#  306|   
#  307|   	frame->publishTime = presentation->lastPublishTime;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
FreeRDP-3.16.0/channels/video/client/video_main.c:313:30: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
#  311|   	frame->scanline = surface->scanline;
#  312|   
#  313|-> 	frame->surfaceData = BufferPool_Take(priv->surfacePool, 1ll * frame->scanline * frame->h);
#  314|   	if (!frame->surfaceData)
#  315|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
FreeRDP-3.16.0/channels/video/client/video_main.c:663:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(&buf, 32)’
FreeRDP-3.16.0/channels/video/client/video_main.c:621:13: enter_function: entry to ‘video_control_send_client_notification’
FreeRDP-3.16.0/channels/video/client/video_main.c:637:13: acquire_memory: allocated here
FreeRDP-3.16.0/channels/video/client/video_main.c:638:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:642:9: call_function: inlined call to ‘Stream_Seek_UINT32’ from ‘video_control_send_client_notification’
FreeRDP-3.16.0/channels/video/client/video_main.c:663:9: danger: ‘Stream_New(&buf, 32)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/1)
#  661|   	}
#  662|   
#  663|-> 	Stream_SealLength(s);
#  664|   	Stream_SetPosition(s, 0);
#  665|   	Stream_Write_UINT32(s, cbSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: danger: ‘frame’ leaks here; was allocated at [(16)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/15)
#  917|   
#  918|   			status =
#  919|-> 			    avc420_decompress(h264, Stream_Pointer(presentation->currentSample), (UINT32)len,
#  920|   			                      frame->surfaceData, surface->format, surface->scanline,
#  921|   			                      surface->alignedWidth, surface->alignedHeight, &rect, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
FreeRDP-3.16.0/channels/video/client/video_main.c:928:25: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:928:25: danger: ‘frame’ leaks here; was allocated at [(16)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/15)
#  926|   			}
#  927|   
#  928|-> 			EnterCriticalSection(&priv->framesLock);
#  929|   			enqueueResult = Queue_Enqueue(priv->frames, frame);
#  930|   			LeaveCriticalSection(&priv->framesLock);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
FreeRDP-3.16.0/channels/video/client/video_main.c:929:41: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:929:41: danger: ‘frame’ leaks here; was allocated at [(16)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/15)
#  927|   
#  928|   			EnterCriticalSection(&priv->framesLock);
#  929|-> 			enqueueResult = Queue_Enqueue(priv->frames, frame);
#  930|   			LeaveCriticalSection(&priv->framesLock);
#  931|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
FreeRDP-3.16.0/channels/video/client/video_main.c:930:25: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:930:25: danger: ‘frame’ leaks here; was allocated at [(16)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/15)
#  928|   			EnterCriticalSection(&priv->framesLock);
#  929|   			enqueueResult = Queue_Enqueue(priv->frames, frame);
#  930|-> 			LeaveCriticalSection(&priv->framesLock);
#  931|   
#  932|   			if (!enqueueResult)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
FreeRDP-3.16.0/channels/video/client/video_main.c:945:1: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:932:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:940:25: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:945:1: danger: ‘frame’ leaks here; was allocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
#  943|   
#  944|   	return CHANNEL_RC_OK;
#  945|-> }
#  946|   
#  947|   static UINT video_data_on_data_received(IWTSVirtualChannelCallback* pChannelCallback, wStream* s)

Error: CPPCHECK_WARNING (CWE-664): [#def137]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_connection_dialog.cpp:49: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   47|   {
#   48|   	std::lock_guard lock(_mux);
#   49|-> 	va_list ap = {};
#   50|   	va_start(ap, fmt);
#   51|   	_title = print(fmt, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def138]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_connection_dialog.cpp:59: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   57|   bool SDLConnectionDialog::showInfo(const char* fmt, ...)
#   58|   {
#   59|-> 	va_list ap = {};
#   60|   	va_start(ap, fmt);
#   61|   	auto rc = show(SdlConnectionDialogWrapper::MSG_INFO, fmt, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def139]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_connection_dialog.cpp:68: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   66|   bool SDLConnectionDialog::showWarn(const char* fmt, ...)
#   67|   {
#   68|-> 	va_list ap = {};
#   69|   	va_start(ap, fmt);
#   70|   	auto rc = show(SdlConnectionDialogWrapper::MSG_WARN, fmt, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def140]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_connection_dialog.cpp:77: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   75|   bool SDLConnectionDialog::showError(const char* fmt, ...)
#   76|   {
#   77|-> 	va_list ap = {};
#   78|   	va_start(ap, fmt);
#   79|   	auto rc = show(SdlConnectionDialogWrapper::MSG_ERROR, fmt, ap);

Error: CPPCHECK_WARNING (CWE-480): [#def141]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:162: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  160|   		{
#  161|   			if (!update())
#  162|-> 				throw;
#  163|   
#  164|   			SDL_Event event = {};

Error: CPPCHECK_WARNING (CWE-480): [#def142]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:166: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  164|   			SDL_Event event = {};
#  165|   			if (!SDL_WaitEvent(&event))
#  166|-> 				throw;
#  167|   			do
#  168|   			{

Error: CPPCHECK_WARNING (CWE-480): [#def143]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:183: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  181|   									{
#  182|   										if (!cur->set_str(""))
#  183|-> 											throw;
#  184|   									}
#  185|   									else

Error: CPPCHECK_WARNING (CWE-480): [#def144]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:188: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  186|   									{
#  187|   										if (!cur->remove_str(1))
#  188|-> 											throw;
#  189|   									}
#  190|   								}

Error: CPPCHECK_WARNING (CWE-480): [#def145]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:228: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  226|   						{
#  227|   							if (!cur->append_str(event.text.text))
#  228|-> 								throw;
#  229|   						}
#  230|   					}

Error: CPPCHECK_WARNING (CWE-480): [#def146]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:238: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  236|   						{
#  237|   							if (!cur->set_mouseover(false))
#  238|-> 								throw;
#  239|   						}
#  240|   						if (TextInputIndex >= 0)

Error: CPPCHECK_WARNING (CWE-480): [#def147]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:244: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  242|   							auto& cur = _list[static_cast<size_t>(TextInputIndex)];
#  243|   							if (!cur->set_mouseover(true))
#  244|-> 								throw;
#  245|   						}
#  246|   

Error: CPPCHECK_WARNING (CWE-480): [#def148]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:284: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  282|   			{
#  283|   				if (!cur->set_highlight(false))
#  284|-> 					throw;
#  285|   			}
#  286|   			auto cur = get(CurrentActiveTextInput);

Error: CPPCHECK_WARNING (CWE-480): [#def149]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:290: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  288|   			{
#  289|   				if (!cur->set_highlight(true))
#  290|-> 					throw;
#  291|   			}
#  292|   

Error: CPPCHECK_WARNING (CWE-480): [#def150]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_select_list.cpp:48: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#   46|   		{
#   47|   			if (!update())
#   48|-> 				throw;
#   49|   
#   50|   			SDL_Event event = {};

Error: CPPCHECK_WARNING (CWE-480): [#def151]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_select_list.cpp:52: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#   50|   			SDL_Event event = {};
#   51|   			if (!SDL_WaitEvent(&event))
#   52|-> 				throw;
#   53|   			do
#   54|   			{

Error: CPPCHECK_WARNING (CWE-480): [#def152]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_select_list.cpp:111: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  109|   							auto& cur = _list[WINPR_ASSERTING_INT_CAST(size_t, TextInputIndex)];
#  110|   							if (!cur.mouseover(true))
#  111|-> 								throw;
#  112|   						}
#  113|   

Error: CPPCHECK_WARNING (CWE-480): [#def153]
FreeRDP-3.16.0/client/SDL/SDL3/dialogs/sdl_select_list.cpp:147: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  145|   				auto& cur = _list[WINPR_ASSERTING_INT_CAST(size_t, CurrentActiveTextInput)];
#  146|   				if (!cur.highlight(true))
#  147|-> 					throw;
#  148|   			}
#  149|   

Error: CPPCHECK_WARNING (CWE-664): [#def154]
FreeRDP-3.16.0/client/SDL/SDL3/sdl_utils.cpp:205: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  203|   	SDL_UserEvent* event = &ev.user;
#  204|   
#  205|-> 	va_list ap = {};
#  206|   	va_start(ap, type);
#  207|   	event->type = type;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def155]
FreeRDP-3.16.0/client/X11/xf_client.c:1263:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1281:13: enter_function: entry to ‘xf_process_pipe’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1293:22: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1309:25: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1318:66: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1318:30: call_function: calling ‘xf_inject_keypress’ from ‘xf_process_pipe’
# 1261|   {
# 1262|   	WCHAR wbuffer[64] = { 0 };
# 1263|-> 	const SSIZE_T len = ConvertUtf8NToWChar(buffer, size, wbuffer, ARRAYSIZE(wbuffer));
# 1264|   	if (len < 0)
# 1265|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def156]
FreeRDP-3.16.0/client/X11/xf_client.c:1273:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1281:13: enter_function: entry to ‘xf_process_pipe’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1293:22: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1309:25: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1318:66: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1318:30: call_function: calling ‘xf_inject_keypress’ from ‘xf_process_pipe’
# 1271|   	{
# 1272|   		const WCHAR code = wbuffer[x];
# 1273|-> 		freerdp_input_send_unicode_keyboard_event(input, 0, code);
# 1274|   		Sleep(5);
# 1275|   		freerdp_input_send_unicode_keyboard_event(input, KBD_FLAGS_RELEASE, code);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def157]
FreeRDP-3.16.0/client/X11/xf_client.c:1274:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1281:13: enter_function: entry to ‘xf_process_pipe’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1293:22: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1309:25: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1318:66: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1318:30: call_function: calling ‘xf_inject_keypress’ from ‘xf_process_pipe’
# 1272|   		const WCHAR code = wbuffer[x];
# 1273|   		freerdp_input_send_unicode_keyboard_event(input, 0, code);
# 1274|-> 		Sleep(5);
# 1275|   		freerdp_input_send_unicode_keyboard_event(input, KBD_FLAGS_RELEASE, code);
# 1276|   		Sleep(5);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def158]
FreeRDP-3.16.0/client/X11/xf_client.c:1275:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1281:13: enter_function: entry to ‘xf_process_pipe’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1293:22: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1309:25: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1318:66: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1318:30: call_function: calling ‘xf_inject_keypress’ from ‘xf_process_pipe’
# 1273|   		freerdp_input_send_unicode_keyboard_event(input, 0, code);
# 1274|   		Sleep(5);
# 1275|-> 		freerdp_input_send_unicode_keyboard_event(input, KBD_FLAGS_RELEASE, code);
# 1276|   		Sleep(5);
# 1277|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def159]
FreeRDP-3.16.0/client/X11/xf_client.c:1276:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1281:13: enter_function: entry to ‘xf_process_pipe’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1293:22: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1309:25: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1318:66: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1318:30: call_function: calling ‘xf_inject_keypress’ from ‘xf_process_pipe’
# 1274|   		Sleep(5);
# 1275|   		freerdp_input_send_unicode_keyboard_event(input, KBD_FLAGS_RELEASE, code);
# 1276|-> 		Sleep(5);
# 1277|   	}
# 1278|   	return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def160]
FreeRDP-3.16.0/client/X11/xf_client.c:1291:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:17: danger: ‘open(pipe, 2048)’ leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1289|   		return FALSE;
# 1290|   	}
# 1291|-> 	while (!freerdp_shall_disconnect_context(context))
# 1292|   	{
# 1293|   		char buffer[64] = { 0 };

Error: GCC_ANALYZER_WARNING (CWE-775): [#def161]
FreeRDP-3.16.0/client/X11/xf_client.c:1300:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1293:22: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1298:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1300:33: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1300:33: danger: ‘open(pipe, 2048)’ leaks here; was opened at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1298|   			if ((errno == EAGAIN) || (errno == 0))
# 1299|   			{
# 1300|-> 				Sleep(100);
# 1301|   				continue;
# 1302|   			}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def162]
FreeRDP-3.16.0/client/X11/xf_client.c:1305:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1293:22: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1305:25: danger: ‘open(pipe, 2048)’ leaks here; was opened at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1303|   
# 1304|   			// EOF, abort reading.
# 1305|-> 			WLog_ERR(TAG, "pipe '%s' read returned %s [%d]", pipe,
# 1306|   			         winpr_strerror(errno, ebuffer, sizeof(ebuffer)), errno);
# 1307|   			break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def163]
FreeRDP-3.16.0/client/X11/xf_client.c:1312:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1293:22: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1312:25: danger: ‘open(pipe, 2048)’ leaks here; was opened at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1310|   		{
# 1311|   			char ebuffer[256] = { 0 };
# 1312|-> 			WLog_ERR(TAG, "pipe '%s' read returned %s [%d]", pipe,
# 1313|   			         winpr_strerror(errno, ebuffer, sizeof(ebuffer)), errno);
# 1314|   			break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def164]
FreeRDP-3.16.0/client/X11/xf_client.c:1322:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1322:9: danger: ‘open(pipe, 2048)’ leaks here; was opened at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 1320|   		}
# 1321|   	}
# 1322|-> 	close(fd);
# 1323|   	return TRUE;
# 1324|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def165]
FreeRDP-3.16.0/client/X11/xf_cliprdr.c:252:13: warning[-Wanalyzer-use-after-free]: use after ‘xf_clipboard_free’ of ‘clipboard’
FreeRDP-3.16.0/client/X11/xf_cliprdr.c:2403:14: enter_function: entry to ‘xf_clipboard_new’
FreeRDP-3.16.0/client/X11/xf_cliprdr.c:2415:41: acquire_memory: allocated here
FreeRDP-3.16.0/client/X11/xf_cliprdr.c:2415:12: branch_false: following ‘false’ branch (when ‘clipboard’ is non-NULL)...
FreeRDP-3.16.0/client/X11/xf_cliprdr.c:2421:27: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_cliprdr.c:2635:9: release_memory: deallocated here
FreeRDP-3.16.0/client/X11/xf_cliprdr.c:2635:9: call_function: calling ‘xf_clipboard_free’ from ‘xf_clipboard_new’
#  250|   {
#  251|   	WINPR_ASSERT(clipboard);
#  252|-> 	if (clipboard->serverFormats)
#  253|   	{
#  254|   		for (size_t i = 0; i < clipboard->numServerFormats; i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
FreeRDP-3.16.0/client/X11/xf_cliprdr.c:731:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cformat’
FreeRDP-3.16.0/client/X11/xf_cliprdr.c:1821:13: enter_function: entry to ‘xf_cliprdr_send_client_format_list’
FreeRDP-3.16.0/client/X11/xf_cliprdr.c:1829:35: call_function: calling ‘xf_cliprdr_get_client_formats’ from ‘xf_cliprdr_send_client_format_list’
#  729|   		{
#  730|   			CLIPRDR_FORMAT* cformat = &formats[*numFormats];
#  731|-> 			cformat->formatId = format->formatToRequest;
#  732|   
#  733|   			/* We do not want to double register a format, so check if HTML was already registered.

Error: CPPCHECK_WARNING (CWE-476): [#def167]
FreeRDP-3.16.0/client/X11/xf_floatbar.c:278: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: button
#  276|   
#  277|   	button = (xfFloatbarButton*)calloc(1, sizeof(xfFloatbarButton));
#  278|-> 	button->type = type;
#  279|   
#  280|   	switch (type)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
FreeRDP-3.16.0/client/X11/xf_floatbar.c:278:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘button’
FreeRDP-3.16.0/client/X11/xf_floatbar.c:277:37: acquire_memory: this call could return NULL
FreeRDP-3.16.0/client/X11/xf_floatbar.c:278:9: danger: ‘button’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  276|   
#  277|   	button = (xfFloatbarButton*)calloc(1, sizeof(xfFloatbarButton));
#  278|-> 	button->type = type;
#  279|   
#  280|   	switch (type)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def169]
FreeRDP-3.16.0/client/X11/xf_floatbar.c:364:9: warning[-Wanalyzer-mismatching-deallocation]: ‘floatbar’ should have been deallocated with ‘free’ but was deallocated with ‘xf_floatbar_free’
FreeRDP-3.16.0/client/X11/xf_floatbar.c:325:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/X11/xf_floatbar.c:328:12: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:328:12: branch_false: following ‘false’ branch (when ‘xfc’ is non-NULL)...
FreeRDP-3.16.0/client/X11/xf_floatbar.c:332:13: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:332:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/X11/xf_floatbar.c:335:45: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:335:45: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/client/X11/xf_floatbar.c:337:12: branch_false: following ‘false’ branch (when ‘floatbar’ is non-NULL)...
FreeRDP-3.16.0/client/X11/xf_floatbar.c:340:27: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:342:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_floatbar.c:343:17: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:364:9: danger: deallocated with ‘xf_floatbar_free’ here; allocation at [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6) expects deallocation with ‘free’
#  362|   	WINPR_PRAGMA_DIAG_PUSH
#  363|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  364|-> 	xf_floatbar_free(floatbar);
#  365|   	WINPR_PRAGMA_DIAG_POP
#  366|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def170]
FreeRDP-3.16.0/client/X11/xf_floatbar.c:914:14: warning[-Wanalyzer-use-after-free]: use after ‘xf_floatbar_free’ of ‘floatbar’
FreeRDP-3.16.0/client/X11/xf_floatbar.c:318:13: enter_function: entry to ‘xf_floatbar_new’
FreeRDP-3.16.0/client/X11/xf_floatbar.c:325:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/X11/xf_floatbar.c:328:12: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:328:12: branch_false: following ‘false’ branch (when ‘xfc’ is non-NULL)...
FreeRDP-3.16.0/client/X11/xf_floatbar.c:332:13: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:332:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/X11/xf_floatbar.c:335:45: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:335:45: acquire_memory: allocated here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:337:12: branch_false: following ‘false’ branch (when ‘floatbar’ is non-NULL)...
FreeRDP-3.16.0/client/X11/xf_floatbar.c:340:27: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:342:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_floatbar.c:343:17: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:364:9: release_memory: deallocated here
FreeRDP-3.16.0/client/X11/xf_floatbar.c:364:9: call_function: calling ‘xf_floatbar_free’ from ‘xf_floatbar_new’
#  912|   		return;
#  913|   
#  914|-> 	free(floatbar->title);
#  915|   	xfc = floatbar->xfc;
#  916|   	WINPR_ASSERT(xfc);

Error: CPPCHECK_WARNING (CWE-664): [#def171]
FreeRDP-3.16.0/client/X11/xf_utils.c:47: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   45|   static void write_log(wLog* log, DWORD level, const char* fname, const char* fkt, size_t line, ...)
#   46|   {
#   47|-> 	va_list ap = { 0 };
#   48|   	va_start(ap, line);
#   49|   	WLog_PrintMessageVA(log, WLOG_MESSAGE_TEXT, level, line, fname, fkt, ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def172]
FreeRDP-3.16.0/client/X11/xf_utils.c:49:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/X11/xf_utils.c:727:5: enter_function: entry to ‘LogDynAndXReparentWindow_ex’
FreeRDP-3.16.0/client/X11/xf_utils.c:730:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_utils.c:732:17: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_utils.c:732:17: call_function: calling ‘write_log’ from ‘LogDynAndXReparentWindow_ex’
#   47|   	va_list ap = { 0 };
#   48|   	va_start(ap, line);
#   49|-> 	WLog_PrintMessageVA(log, WLOG_MESSAGE_TEXT, level, line, fname, fkt, ap);
#   50|   	va_end(ap);
#   51|   }

Error: CPPCHECK_WARNING (CWE-457): [#def173]
FreeRDP-3.16.0/client/X11/xf_utils.c:91: error[uninitvar]: Uninitialized variable: ap
#   89|   	{
#   90|   		va_list ap;
#   91|-> 		(void)write_result_log_va(log, level, fname, fkt, line, display, name, rc, 0, ap);
#   92|   		va_end(ap);
#   93|   	}

Error: CPPCHECK_WARNING (CWE-664): [#def174]
FreeRDP-3.16.0/client/X11/xf_utils.c:91: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   89|   	{
#   90|   		va_list ap;
#   91|-> 		(void)write_result_log_va(log, level, fname, fkt, line, display, name, rc, 0, ap);
#   92|   		va_end(ap);
#   93|   	}

Error: CPPCHECK_WARNING (CWE-664): [#def175]
FreeRDP-3.16.0/client/X11/xf_utils.c:92: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   90|   		va_list ap;
#   91|   		(void)write_result_log_va(log, level, fname, fkt, line, display, name, rc, 0, ap);
#   92|-> 		va_end(ap);
#   93|   	}
#   94|   	return rc;

Error: CPPCHECK_WARNING (CWE-457): [#def176]
FreeRDP-3.16.0/client/X11/xf_utils.c:103: error[uninitvar]: Uninitialized variable: ap
#  101|   	{
#  102|   		va_list ap;
#  103|-> 		(void)write_result_log_va(log, level, fname, fkt, line, display, name, rc, 0, ap);
#  104|   		va_end(ap);
#  105|   	}

Error: CPPCHECK_WARNING (CWE-664): [#def177]
FreeRDP-3.16.0/client/X11/xf_utils.c:103: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  101|   	{
#  102|   		va_list ap;
#  103|-> 		(void)write_result_log_va(log, level, fname, fkt, line, display, name, rc, 0, ap);
#  104|   		va_end(ap);
#  105|   	}

Error: CPPCHECK_WARNING (CWE-664): [#def178]
FreeRDP-3.16.0/client/X11/xf_utils.c:104: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  102|   		va_list ap;
#  103|   		(void)write_result_log_va(log, level, fname, fkt, line, display, name, rc, 0, ap);
#  104|-> 		va_end(ap);
#  105|   	}
#  106|   	return rc;

Error: COMPILER_WARNING (CWE-1164): [#def179]
FreeRDP-3.16.0/client/X11/xf_utils.c:109:12: warning[-Wunused-function]: ‘write_result_log_ex’ defined but not used
#  109 | static int write_result_log_ex(wLog* log, DWORD level, const char* fname, const char* fkt,
#      |            ^~~~~~~~~~~~~~~~~~~
#  107|   }
#  108|   
#  109|-> static int write_result_log_ex(wLog* log, DWORD level, const char* fname, const char* fkt,
#  110|                                  size_t line, Display* display, char* name, int rc, size_t count, ...)
#  111|   {

Error: CPPCHECK_WARNING (CWE-758): [#def180]
FreeRDP-3.16.0/client/X11/xf_window.c:145: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  143|   	for (size_t x = 0; x < 32; x++)
#  144|   	{
#  145|-> 		const UINT32 val = 1 << x;
#  146|   		if ((style & val) != 0)
#  147|   		{

Error: GCC_ANALYZER_WARNING (CWE-686): [#def181]
FreeRDP-3.16.0/client/X11/xf_window.c:248:44: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘Atom’ {{aka ‘long unsigned int’}} for variadic argument 2 of ‘argp’
FreeRDP-3.16.0/client/X11/xf_window.c:1220:6: enter_function: entry to ‘xf_ShowWindow’
FreeRDP-3.16.0/client/X11/xf_window.c:1263:25: call_function: calling ‘xf_SendClientEvent’ from ‘xf_ShowWindow’ with 4 variadic arguments
#  246|   	for (size_t i = 0; i < numArgs; i++)
#  247|   	{
#  248|-> 		xevent.xclient.data.l[i] = va_arg(argp, int);
#  249|   	}
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def182]
FreeRDP-3.16.0/client/X11/xf_window.c:248:44: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘long unsigned int’ for variadic argument 2 of ‘argp’
FreeRDP-3.16.0/client/X11/xf_window.c:1220:6: enter_function: entry to ‘xf_ShowWindow’
FreeRDP-3.16.0/client/X11/xf_window.c:1240:25: call_function: calling ‘xf_SendClientEvent’ from ‘xf_ShowWindow’ with 4 variadic arguments
#  246|   	for (size_t i = 0; i < numArgs; i++)
#  247|   	{
#  248|-> 		xevent.xclient.data.l[i] = va_arg(argp, int);
#  249|   	}
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def183]
FreeRDP-3.16.0/client/X11/xf_window.c:252:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/X11/xf_window.c:236:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/X11/xf_window.c:252:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  250|   
#  251|   	DEBUG_X11("Send ClientMessage Event: wnd=0x%04lX", (unsigned long)xevent.xclient.window);
#  252|-> 	LogDynAndXSendEvent(xfc->log, xfc->display, RootWindowOfScreen(xfc->screen), False,
#  253|   	                    SubstructureRedirectMask | SubstructureNotifyMask, &xevent);
#  254|   	LogDynAndXSync(xfc->log, xfc->display, False);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def184]
FreeRDP-3.16.0/client/X11/xf_window.c:254:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/X11/xf_window.c:236:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/X11/xf_window.c:254:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  252|   	LogDynAndXSendEvent(xfc->log, xfc->display, RootWindowOfScreen(xfc->screen), False,
#  253|   	                    SubstructureRedirectMask | SubstructureNotifyMask, &xevent);
#  254|-> 	LogDynAndXSync(xfc->log, xfc->display, False);
#  255|   	va_end(argp);
#  256|   }

Error: CPPCHECK_WARNING (CWE-476): [#def185]
FreeRDP-3.16.0/client/X11/xf_window.c:1302: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xrects
# 1300|   	for (int i = 0; i < nrects; i++)
# 1301|   	{
# 1302|-> 		xrects[i].x = WINPR_ASSERTING_INT_CAST(short, rects[i].left);
# 1303|   		xrects[i].y = WINPR_ASSERTING_INT_CAST(short, rects[i].top);
# 1304|   		xrects[i].width = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].right - rects[i].left);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def186]
FreeRDP-3.16.0/client/X11/xf_window.c:1302:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xrects’
FreeRDP-3.16.0/client/X11/xf_window.c:1294:12: branch_false: following ‘false’ branch (when ‘nrects > 0’)...
FreeRDP-3.16.0/client/X11/xf_window.c:1298:31: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_window.c:1298:31: acquire_memory: this call could return NULL
FreeRDP-3.16.0/client/X11/xf_window.c:1300:25: branch_true: following ‘true’ branch (when ‘i < nrects’)...
FreeRDP-3.16.0/client/X11/xf_window.c:1302:31: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_window.c:1302:17: danger: ‘xrects + (long unsigned int)i * 8’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/2)
# 1300|   	for (int i = 0; i < nrects; i++)
# 1301|   	{
# 1302|-> 		xrects[i].x = WINPR_ASSERTING_INT_CAST(short, rects[i].left);
# 1303|   		xrects[i].y = WINPR_ASSERTING_INT_CAST(short, rects[i].top);
# 1304|   		xrects[i].width = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].right - rects[i].left);

Error: CPPCHECK_WARNING (CWE-476): [#def187]
FreeRDP-3.16.0/client/X11/xf_window.c:1303: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xrects
# 1301|   	{
# 1302|   		xrects[i].x = WINPR_ASSERTING_INT_CAST(short, rects[i].left);
# 1303|-> 		xrects[i].y = WINPR_ASSERTING_INT_CAST(short, rects[i].top);
# 1304|   		xrects[i].width = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].right - rects[i].left);
# 1305|   		xrects[i].height = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].bottom - rects[i].top);

Error: CPPCHECK_WARNING (CWE-476): [#def188]
FreeRDP-3.16.0/client/X11/xf_window.c:1304: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xrects
# 1302|   		xrects[i].x = WINPR_ASSERTING_INT_CAST(short, rects[i].left);
# 1303|   		xrects[i].y = WINPR_ASSERTING_INT_CAST(short, rects[i].top);
# 1304|-> 		xrects[i].width = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].right - rects[i].left);
# 1305|   		xrects[i].height = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].bottom - rects[i].top);
# 1306|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def189]
FreeRDP-3.16.0/client/X11/xf_window.c:1305: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xrects
# 1303|   		xrects[i].y = WINPR_ASSERTING_INT_CAST(short, rects[i].top);
# 1304|   		xrects[i].width = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].right - rects[i].left);
# 1305|-> 		xrects[i].height = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].bottom - rects[i].top);
# 1306|   	}
# 1307|   

Error: CPPCHECK_WARNING (CWE-476): [#def190]
FreeRDP-3.16.0/client/X11/xf_window.c:1327: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xrects
# 1325|   	for (int i = 0; i < nrects; i++)
# 1326|   	{
# 1327|-> 		xrects[i].x = WINPR_ASSERTING_INT_CAST(short, rects[i].left);
# 1328|   		xrects[i].y = WINPR_ASSERTING_INT_CAST(short, rects[i].top);
# 1329|   		xrects[i].width = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].right - rects[i].left);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def191]
FreeRDP-3.16.0/client/X11/xf_window.c:1327:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xrects’
FreeRDP-3.16.0/client/X11/xf_window.c:1319:12: branch_false: following ‘false’ branch (when ‘nrects > 0’)...
FreeRDP-3.16.0/client/X11/xf_window.c:1323:31: branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_window.c:1323:31: acquire_memory: this call could return NULL
FreeRDP-3.16.0/client/X11/xf_window.c:1325:25: branch_true: following ‘true’ branch (when ‘i < nrects’)...
FreeRDP-3.16.0/client/X11/xf_window.c:1327:31: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_window.c:1327:17: danger: ‘xrects + (long unsigned int)i * 8’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/2)
# 1325|   	for (int i = 0; i < nrects; i++)
# 1326|   	{
# 1327|-> 		xrects[i].x = WINPR_ASSERTING_INT_CAST(short, rects[i].left);
# 1328|   		xrects[i].y = WINPR_ASSERTING_INT_CAST(short, rects[i].top);
# 1329|   		xrects[i].width = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].right - rects[i].left);

Error: CPPCHECK_WARNING (CWE-476): [#def192]
FreeRDP-3.16.0/client/X11/xf_window.c:1328: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xrects
# 1326|   	{
# 1327|   		xrects[i].x = WINPR_ASSERTING_INT_CAST(short, rects[i].left);
# 1328|-> 		xrects[i].y = WINPR_ASSERTING_INT_CAST(short, rects[i].top);
# 1329|   		xrects[i].width = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].right - rects[i].left);
# 1330|   		xrects[i].height = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].bottom - rects[i].top);

Error: CPPCHECK_WARNING (CWE-476): [#def193]
FreeRDP-3.16.0/client/X11/xf_window.c:1329: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xrects
# 1327|   		xrects[i].x = WINPR_ASSERTING_INT_CAST(short, rects[i].left);
# 1328|   		xrects[i].y = WINPR_ASSERTING_INT_CAST(short, rects[i].top);
# 1329|-> 		xrects[i].width = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].right - rects[i].left);
# 1330|   		xrects[i].height = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].bottom - rects[i].top);
# 1331|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def194]
FreeRDP-3.16.0/client/X11/xf_window.c:1330: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xrects
# 1328|   		xrects[i].y = WINPR_ASSERTING_INT_CAST(short, rects[i].top);
# 1329|   		xrects[i].width = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].right - rects[i].left);
# 1330|-> 		xrects[i].height = WINPR_ASSERTING_INT_CAST(unsigned short, rects[i].bottom - rects[i].top);
# 1331|   	}
# 1332|   

Error: CPPCHECK_WARNING (CWE-664): [#def195]
FreeRDP-3.16.0/client/common/client.c:1166: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1164|   				          ", ignoring",
# 1165|   				          count);
# 1166|-> 			va_list ap = { 0 };
# 1167|   			va_start(ap, count);
# 1168|   			const char* scope = va_arg(ap, const char*);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def196]
FreeRDP-3.16.0/client/common/client.c:2253:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2397:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2251|   {
# 2252|   	char* redirect_uri = NULL;
# 2253|-> 	const bool cli = freerdp_settings_get_bool(settings, FreeRDP_UseCommonStdioCallbacks);
# 2254|   	if (cli)
# 2255|   	{

Error: GCC_ANALYZER_WARNING (CWE-404): [#def197]
FreeRDP-3.16.0/client/common/client.c:2257:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2397:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2255|   	{
# 2256|   		const char* redirect_fmt =
# 2257|-> 		    freerdp_settings_get_string(settings, FreeRDP_GatewayAvdAccessAadFormat);
# 2258|   		const BOOL useTenant = freerdp_settings_get_bool(settings, FreeRDP_GatewayAvdUseTenantid);
# 2259|   		const char* tenantid = "common";

Error: GCC_ANALYZER_WARNING (CWE-404): [#def198]
FreeRDP-3.16.0/client/common/client.c:2258:40: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2397:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2256|   		const char* redirect_fmt =
# 2257|   		    freerdp_settings_get_string(settings, FreeRDP_GatewayAvdAccessAadFormat);
# 2258|-> 		const BOOL useTenant = freerdp_settings_get_bool(settings, FreeRDP_GatewayAvdUseTenantid);
# 2259|   		const char* tenantid = "common";
# 2260|   		if (useTenant)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def199]
FreeRDP-3.16.0/client/common/client.c:2261:36: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2397:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2259|   		const char* tenantid = "common";
# 2260|   		if (useTenant)
# 2261|-> 			tenantid = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdAadtenantid);
# 2262|   
# 2263|   		if (tenantid && redirect_fmt)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def200]
FreeRDP-3.16.0/client/common/client.c:2266:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2397:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2264|   		{
# 2265|   			const char* url =
# 2266|-> 			    freerdp_settings_get_string(settings, FreeRDP_GatewayAzureActiveDirectory);
# 2267|   
# 2268|   			size_t redirect_len = 0;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def201]
FreeRDP-3.16.0/client/common/client.c:2269:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2397:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2267|   
# 2268|   			size_t redirect_len = 0;
# 2269|-> 			winpr_asprintf(&redirect_uri, &redirect_len, redirect_fmt, url, tenantid);
# 2270|   		}
# 2271|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def202]
FreeRDP-3.16.0/client/common/client.c:2274:41: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2397:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2272|   	else
# 2273|   	{
# 2274|-> 		const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2275|   		const char* redirect_fmt =
# 2276|   		    freerdp_settings_get_string(settings, FreeRDP_GatewayAvdAccessTokenFormat);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def203]
FreeRDP-3.16.0/client/common/client.c:2276:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2397:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2274|   		const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2275|   		const char* redirect_fmt =
# 2276|-> 		    freerdp_settings_get_string(settings, FreeRDP_GatewayAvdAccessTokenFormat);
# 2277|   
# 2278|   		size_t redirect_len = 0;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def204]
FreeRDP-3.16.0/client/common/client.c:2287:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2403:31: call_function: calling ‘avd_auth_request’ from ‘freerdp_client_get_aad_url’
# 2285|   {
# 2286|   	const rdpSettings* settings = cctx->context.settings;
# 2287|-> 	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2288|   	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2289|   	                                                        AAD_WELLKNOWN_authorization_endpoint);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def205]
FreeRDP-3.16.0/client/common/client.c:2288:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2403:31: call_function: calling ‘avd_auth_request’ from ‘freerdp_client_get_aad_url’
# 2286|   	const rdpSettings* settings = cctx->context.settings;
# 2287|   	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2288|-> 	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2289|   	                                                        AAD_WELLKNOWN_authorization_endpoint);
# 2290|   	const char* scope = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdScope);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def206]
FreeRDP-3.16.0/client/common/client.c:2290:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2403:31: call_function: calling ‘avd_auth_request’ from ‘freerdp_client_get_aad_url’
# 2288|   	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2289|   	                                                        AAD_WELLKNOWN_authorization_endpoint);
# 2290|-> 	const char* scope = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdScope);
# 2291|   
# 2292|   	if (!client_id || !ep || !scope)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def207]
FreeRDP-3.16.0/client/common/client.c:2310:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2406:31: call_function: calling ‘avd_token_request’ from ‘freerdp_client_get_aad_url’
# 2308|   {
# 2309|   	const rdpSettings* settings = cctx->context.settings;
# 2310|-> 	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2311|   	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2312|   	                                                        AAD_WELLKNOWN_authorization_endpoint);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def208]
FreeRDP-3.16.0/client/common/client.c:2311:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2406:31: call_function: calling ‘avd_token_request’ from ‘freerdp_client_get_aad_url’
# 2309|   	const rdpSettings* settings = cctx->context.settings;
# 2310|   	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2311|-> 	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2312|   	                                                        AAD_WELLKNOWN_authorization_endpoint);
# 2313|   	const char* scope = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdScope);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def209]
FreeRDP-3.16.0/client/common/client.c:2313:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2406:31: call_function: calling ‘avd_token_request’ from ‘freerdp_client_get_aad_url’
# 2311|   	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2312|   	                                                        AAD_WELLKNOWN_authorization_endpoint);
# 2313|-> 	const char* scope = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdScope);
# 2314|   
# 2315|   	if (!client_id || !ep || !scope)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def210]
FreeRDP-3.16.0/client/common/client.c:2360:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2400:31: call_function: calling ‘aad_token_request’ from ‘freerdp_client_get_aad_url’
# 2358|   {
# 2359|   	const rdpSettings* settings = cctx->context.settings;
# 2360|-> 	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2361|   	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2362|   	                                                        AAD_WELLKNOWN_authorization_endpoint);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def211]
FreeRDP-3.16.0/client/common/client.c:2361:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client.c:2386:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.16.0/client/common/client.c:2392:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/client/common/client.c:2400:31: call_function: calling ‘aad_token_request’ from ‘freerdp_client_get_aad_url’
# 2359|   	const rdpSettings* settings = cctx->context.settings;
# 2360|   	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2361|-> 	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2362|   	                                                        AAD_WELLKNOWN_authorization_endpoint);
# 2363|   	const char* scope = va_arg(ap, const char*);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def212]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:209:9: warning[-Wanalyzer-use-after-free]: use after ‘fuse_file_free’ of ‘data’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2365:18: enter_function: entry to ‘fuse_file_new_root’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2367:37: call_function: calling ‘fuse_file_new’ from ‘fuse_file_new_root’
#  207|   		return;
#  208|   
#  209|-> 	ArrayList_Free(fuse_file->children);
#  210|   	free(fuse_file->filename_with_root);
#  211|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def213]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:232:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2365:18: enter_function: entry to ‘fuse_file_new_root’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2367:37: call_function: calling ‘fuse_file_new’ from ‘fuse_file_new_root’
#  230|   	va_start(ap, fmt);
#  231|   	const int rc =
#  232|-> 	    winpr_vasprintf(&file->filename_with_root, &file->filename_with_root_len, fmt, ap);
#  233|   	va_end(ap);
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def214]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:247:9: warning[-Wanalyzer-mismatching-deallocation]: ‘file’ should have been deallocated with ‘free’ but was deallocated with ‘fuse_file_free’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2365:18: enter_function: entry to ‘fuse_file_new_root’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2367:37: call_function: calling ‘fuse_file_new’ from ‘fuse_file_new_root’
#  245|   	return file;
#  246|   fail:
#  247|-> 	fuse_file_free(file);
#  248|   	return NULL;
#  249|   }

Error: CPPCHECK_WARNING (CWE-664): [#def215]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:648: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  646|   		return;
#  647|   
#  648|-> 	va_list ap = { 0 };
#  649|   	va_start(ap, line);
#  650|   	WLog_PrintMessageVA(log, WLOG_MESSAGE_TEXT, level, line, fname, fkt, ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def216]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:650:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1296:13: enter_function: entry to ‘cliprdr_file_context_send_file_contents_failure’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1306:9: call_function: calling ‘writelog’ from ‘cliprdr_file_context_send_file_contents_failure’
#  648|   	va_list ap = { 0 };
#  649|   	va_start(ap, line);
#  650|-> 	WLog_PrintMessageVA(log, WLOG_MESSAGE_TEXT, level, line, fname, fkt, ap);
#  651|   	va_end(ap);
#  652|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def217]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1743:17: warning[-Wanalyzer-mismatching-deallocation]: ‘fuse_file_new("/%lu", data_id)’ should have been deallocated with ‘free’ but was deallocated with ‘fuse_file_free’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1720:25: enter_function: entry to ‘clip_data_dir_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1729:42: call_function: calling ‘fuse_file_new’ from ‘clip_data_dir_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1729:42: return_function: returning to ‘clip_data_dir_new’ from ‘fuse_file_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1730:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1733:30: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1740:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1742:17: branch_true: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1742:17: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1743:17: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1743:17: danger: deallocated with ‘fuse_file_free’ here; allocation at [(4)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘free’
# 1741|   	{
# 1742|   		WLog_Print(file_context->log, WLOG_ERROR, "FUSE root directory missing");
# 1743|-> 		fuse_file_free(clip_data_dir);
# 1744|   		return NULL;
# 1745|   	}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def218]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1749:17: warning[-Wanalyzer-mismatching-deallocation]: ‘fuse_file_new("/%lu", data_id)’ should have been deallocated with ‘free’ but was deallocated with ‘fuse_file_free’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1720:25: enter_function: entry to ‘clip_data_dir_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1729:42: call_function: calling ‘fuse_file_new’ from ‘clip_data_dir_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1729:42: return_function: returning to ‘clip_data_dir_new’ from ‘fuse_file_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1730:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1733:30: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1740:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1746:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1746:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1748:17: branch_true: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1748:17: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1749:17: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1749:17: danger: deallocated with ‘fuse_file_free’ here; allocation at [(4)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘free’
# 1747|   	{
# 1748|   		WLog_Print(file_context->log, WLOG_ERROR, "Failed to append FUSE file");
# 1749|-> 		fuse_file_free(clip_data_dir);
# 1750|   		return NULL;
# 1751|   	}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def219]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1759:17: warning[-Wanalyzer-mismatching-deallocation]: ‘fuse_file_new("/%lu", data_id)’ should have been deallocated with ‘free’ but was deallocated with ‘fuse_file_free’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1720:25: enter_function: entry to ‘clip_data_dir_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1729:42: call_function: calling ‘fuse_file_new’ from ‘clip_data_dir_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1729:42: return_function: returning to ‘clip_data_dir_new’ from ‘fuse_file_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1730:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1733:30: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1740:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1746:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1746:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1752:9: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1754:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1757:17: branch_true: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1759:17: danger: deallocated with ‘fuse_file_free’ here; allocation at [(4)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘free’
# 1757|   		WLog_Print(file_context->log, WLOG_ERROR, "Failed to insert inode into inode table");
# 1758|   		ArrayList_Remove(root_dir->children, clip_data_dir);
# 1759|-> 		fuse_file_free(clip_data_dir);
# 1760|   		return NULL;
# 1761|   	}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def220]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1916:17: warning[-Wanalyzer-mismatching-deallocation]: ‘fuse_file_new("%.*s/%s", (int)*clip_data_dir.filename_with_root_len, *clip_data_dir.filename_with_root, & filename)’ should have been deallocated with ‘free’ but was deallocated with ‘fuse_file_free’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1829:13: enter_function: entry to ‘selection_handle_file’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1844:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1857:38: call_function: calling ‘fuse_file_new’ from ‘selection_handle_file’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1857:38: return_function: returning to ‘selection_handle_file’ from ‘fuse_file_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1860:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1866:64: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1866:29: call_function: calling ‘get_parent_directory’ from ‘selection_handle_file’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1866:29: return_function: returning to ‘selection_handle_file’ from ‘get_parent_directory’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1867:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1869:17: branch_true: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1869:17: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1870:17: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:1916:17: danger: deallocated with ‘fuse_file_free’ here; allocation at [(6)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/5) expects deallocation with ‘free’
# 1914|   	if (!crc)
# 1915|   	{
# 1916|-> 		fuse_file_free(fuse_file);
# 1917|   		clear_entry_selection(clip_data_entry);
# 1918|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def221]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2076:13: warning[-Wanalyzer-use-after-free]: use after ‘cliprdr_file_context_free’ of ‘file’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2385:21: enter_function: entry to ‘cliprdr_file_context_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2387:36: acquire_memory: allocated here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2391:21: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2449:9: release_memory: deallocated here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2449:9: call_function: calling ‘cliprdr_file_context_free’ from ‘cliprdr_file_context_new’
# 2074|   
# 2075|   #if defined(WITH_FUSE)
# 2076|-> 	if (file->fuse_thread)
# 2077|   	{
# 2078|   		WINPR_ASSERT(file->fuse_stop_sync);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def222]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2377:17: warning[-Wanalyzer-mismatching-deallocation]: ‘fuse_file_new("/")’ should have been deallocated with ‘free’ but was deallocated with ‘fuse_file_free’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2365:18: enter_function: entry to ‘fuse_file_new_root’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2367:37: call_function: calling ‘fuse_file_new’ from ‘fuse_file_new_root’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2367:37: return_function: returning to ‘fuse_file_new_root’ from ‘fuse_file_new’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2368:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2371:9: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2375:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2377:17: branch_true: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2377:17: danger: deallocated with ‘fuse_file_free’ here; allocation at [(4)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘free’
# 2375|   	if (!HashTable_Insert(file_context->inode_table, (void*)(uintptr_t)root_dir->ino, root_dir))
# 2376|   	{
# 2377|-> 		fuse_file_free(root_dir);
# 2378|   		return NULL;
# 2379|   	}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def223]
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2449:9: warning[-Wanalyzer-mismatching-deallocation]: ‘file’ should have been deallocated with ‘free’ but was deallocated with ‘cliprdr_file_context_free’
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2387:36: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2391:21: branch_false: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2395:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2396:17: branch_true: ...to here
FreeRDP-3.16.0/client/common/client_cliprdr_file.c:2449:9: danger: deallocated with ‘cliprdr_file_context_free’ here; allocation at [(1)](sarif:/runs/0/results/101/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 2447|   	WINPR_PRAGMA_DIAG_PUSH
# 2448|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2449|-> 	cliprdr_file_context_free(file);
# 2450|   	WINPR_PRAGMA_DIAG_POP
# 2451|   	return NULL;

Error: CPPCHECK_WARNING (CWE-664): [#def224]
FreeRDP-3.16.0/client/common/file.c:1455: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1453|                                                         WINPR_FORMAT_ARG const char* fmt, ...)
# 1454|   {
# 1455|-> 	va_list ap = { 0 };
# 1456|   	SSIZE_T len = 0;
# 1457|   	char* buf = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def225]
FreeRDP-3.16.0/client/common/file.c:1732:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘CommandLineParseCommaSeparatedValues(values, & count) + x * 8’
FreeRDP-3.16.0/client/common/file.c:1723:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/file.c:1725:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/file.c:1725:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/file.c:1728:13: branch_false: ...to here
FreeRDP-3.16.0/client/common/file.c:1728:13: acquire_memory: this call could return NULL
FreeRDP-3.16.0/client/common/file.c:1729:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/common/file.c:1732:36: branch_true: ...to here
FreeRDP-3.16.0/client/common/file.c:1732:29: danger: ‘CommandLineParseCommaSeparatedValues(values, & count) + x * 8’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 1730|   	{
# 1731|   		BOOL rc = 0;
# 1732|-> 		const char* val = p[x];
# 1733|   		const size_t len = strlen(val) + 8;
# 1734|   		char* str = calloc(len, sizeof(char));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def226]
FreeRDP-3.16.0/client/common/file.c:2544:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘CommandLineParseCommaSeparatedValues(*file.SelectedMonitors, & count) + x * 8’
FreeRDP-3.16.0/client/common/file.c:1757:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/file.c:1760:23: branch_false: ...to here
FreeRDP-3.16.0/client/common/file.c:2523:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/common/file.c:2525:24: branch_true: ...to here
FreeRDP-3.16.0/client/common/file.c:2526:30: acquire_memory: this call could return NULL
FreeRDP-3.16.0/client/common/file.c:2529:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/file.c:2534:24: branch_false: ...to here
FreeRDP-3.16.0/client/common/file.c:2535:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/common/file.c:2540:36: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/common/file.c:2543:25: branch_true: ...to here
FreeRDP-3.16.0/client/common/file.c:2544:31: danger: ‘CommandLineParseCommaSeparatedValues(*file.SelectedMonitors, & count) + x * 8’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
# 2542|   			unsigned long val = 0;
# 2543|   			errno = 0;
# 2544|-> 			val = strtoul(ptr[x], NULL, 0);
# 2545|   			if ((val >= UINT32_MAX) && (errno != 0))
# 2546|   			{

Error: GCC_ANALYZER_WARNING (CWE-762): [#def227]
FreeRDP-3.16.0/client/common/file.c:2750:9: warning[-Wanalyzer-mismatching-deallocation]: ‘file’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_client_rdp_file_free’
FreeRDP-3.16.0/client/common/file.c:2725:35: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/client/common/file.c:2727:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/client/common/file.c:2732:9: branch_false: ...to here
FreeRDP-3.16.0/client/common/file.c:2740:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/common/file.c:2741:17: branch_true: ...to here
FreeRDP-3.16.0/client/common/file.c:2750:9: danger: deallocated with ‘freerdp_client_rdp_file_free’ here; allocation at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 2748|   	WINPR_PRAGMA_DIAG_PUSH
# 2749|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2750|-> 	freerdp_client_rdp_file_free(file);
# 2751|   	WINPR_PRAGMA_DIAG_POP
# 2752|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def228]
FreeRDP-3.16.0/client/common/file.c:2758:21: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_client_rdp_file_free’ of ‘file’
FreeRDP-3.16.0/client/common/file.c:2723:10: enter_function: entry to ‘freerdp_client_rdp_file_new_ex’
FreeRDP-3.16.0/client/common/file.c:2725:35: acquire_memory: allocated here
FreeRDP-3.16.0/client/common/file.c:2727:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/client/common/file.c:2732:9: branch_false: ...to here
FreeRDP-3.16.0/client/common/file.c:2750:9: release_memory: deallocated here
FreeRDP-3.16.0/client/common/file.c:2750:9: call_function: calling ‘freerdp_client_rdp_file_free’ from ‘freerdp_client_rdp_file_new_ex’
# 2756|   	if (file)
# 2757|   	{
# 2758|-> 		if (file->lineCount)
# 2759|   		{
# 2760|   			for (size_t i = 0; i < file->lineCount; i++)

Error: CPPCHECK_WARNING (CWE-664): [#def229]
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:242: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  240|   	int rc = 0;
#  241|   	char* dst = NULL;
#  242|-> 	va_list ap = { 0 };
#  243|   
#  244|   	va_start(ap, fmt);

Error: GCC_ANALYZER_WARNING (CWE-415): [#def230]
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:581:9: warning[-Wanalyzer-double-free]: double-‘freerdp_client_rdp_file_free’ of ‘file’
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:287:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:293:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:293:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:296:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:296:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:299:13: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:299:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:306:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:306:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:313:13: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:313:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:322:13: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:322:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:331:9: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:334:16: acquire_memory: allocated here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:336:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:342:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:342:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:346:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:346:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:349:13: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:349:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:356:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:356:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:363:13: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:363:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:372:13: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:372:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:381:18: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:382:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:387:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:387:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:392:18: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:393:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:398:20: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:398:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:449:36: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:450:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:455:21: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:455:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:461:33: branch_true: following ‘true’ branch (when ‘x != 4’)...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:463:29: branch_true: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:463:28: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:461:49: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:474:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:479:34: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:480:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:485:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:485:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:494:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:499:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:499:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:504:14: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:504:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:510:18: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:511:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:514:13: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:514:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:520:18: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:521:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:524:20: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:526:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:529:20: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:532:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:535:9: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:537:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:543:9: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:543:9: release_memory: first ‘freerdp_client_rdp_file_free’ here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:546:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:547:17: branch_true: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:573:12: branch_false: following ‘false’ branch (when ‘uniname’ is NULL)...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:575:12: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:575:12: branch_false: following ‘false’ branch (when ‘base’ is NULL)...
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:577:9: branch_false: ...to here
FreeRDP-3.16.0/client/common/test/TestClientRdpFile.c:581:9: danger: second ‘freerdp_client_rdp_file_free’ here; first ‘freerdp_client_rdp_file_free’ was at [(71)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/70)
#  579|   	free(base);
#  580|   	free(tmp);
#  581|-> 	freerdp_client_rdp_file_free(file);
#  582|   	freerdp_settings_free(settings);
#  583|   	return rc;

Error: COMPILER_WARNING (CWE-477): [#def231]
FreeRDP-3.16.0/include/freerdp/client/rdpgfx.h:28: included_from: Included from here.
FreeRDP-3.16.0/include/freerdp/gdi/gdi.h:34: included_from: Included from here.
FreeRDP-3.16.0/include/freerdp/freerdp.h:35: included_from: Included from here.
FreeRDP-3.16.0/libfreerdp/codec/bulk.h:26: included_from: Included from here.
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:26: included_from: Included from here.
FreeRDP-3.16.0/include/freerdp/codecs.h:93:9: warning[-Wdeprecated-declarations]: ‘codecs_free’ is deprecated: [since 3.6.0] Use freerdp_client_codecs_free
#   93 |         WINPR_DEPRECATED_VAR("[since 3.6.0] Use freerdp_client_codecs_new",
#      |         ^~~~~~~~~~~~~~~~~~~~
FreeRDP-3.16.0/winpr/include/winpr/winpr.h:22: included_from: Included from here.
FreeRDP-3.16.0/winpr/include/winpr/assert.h:27: included_from: Included from here.
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:21: included_from: Included from here.
FreeRDP-3.16.0/include/freerdp/codecs.h:91:47: note: declared here
#   91 |                              FREERDP_API void codecs_free(rdpCodecs* codecs));
#      |                                               ^~~~~~~~~~~
FreeRDP-3.16.0/winpr/include/winpr/platform.h:497:41: note: in definition of macro ‘WINPR_DEPRECATED_VAR’
#  497 | #define WINPR_DEPRECATED_VAR(text, obj) obj __attribute__((deprecated(text)))
#      |                                         ^~~
#   91|   	                     FREERDP_API void codecs_free(rdpCodecs* codecs));
#   92|   
#   93|-> 	WINPR_DEPRECATED_VAR("[since 3.6.0] Use freerdp_client_codecs_new",
#   94|   	                     WINPR_ATTR_MALLOC(codecs_free, 1)
#   95|   	                         FREERDP_API rdpCodecs* codecs_new(rdpContext* context));

Error: COMPILER_WARNING (CWE-477): [#def232]
FreeRDP-3.16.0/include/freerdp/codecs.h:93:9: warning[-Wdeprecated-declarations]: ‘codecs_free’ is deprecated: [since 3.6.0] Use freerdp_client_codecs_free
#   91|   	                     FREERDP_API void codecs_free(rdpCodecs* codecs));
#   92|   
#   93|-> 	WINPR_DEPRECATED_VAR("[since 3.6.0] Use freerdp_client_codecs_new",
#   94|   	                     WINPR_ATTR_MALLOC(codecs_free, 1)
#   95|   	                         FREERDP_API rdpCodecs* codecs_new(rdpContext* context));

Error: GCC_ANALYZER_WARNING (CWE-126): [#def233]
FreeRDP-3.16.0/include/freerdp/utils/pod_arrays.h:131:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:62:5: enter_function: entry to ‘TestPodArrays’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:76:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: call_function: calling ‘array_uint32_append’ from ‘TestPodArrays’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: return_function: returning to ‘TestPodArrays’ from ‘array_uint32_append’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:76:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:76:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: call_function: calling ‘array_uint32_append’ from ‘TestPodArrays’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: return_function: returning to ‘TestPodArrays’ from ‘array_uint32_append’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:76:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:81:14: call_function: calling ‘array_uint32_foreach’ from ‘TestPodArrays’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:81:14: return_function: returning to ‘TestPodArrays’ from ‘array_uint32_foreach’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:81:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:84:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:84:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:87:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:88:13: call_function: calling ‘array_uint32_foreach’ from ‘TestPodArrays’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:88:13: return_function: returning to ‘TestPodArrays’ from ‘array_uint32_foreach’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:91:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:91:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:94:13: call_function: inlined call to ‘array_uint32_get’ from ‘TestPodArrays’
#  129|   
#  130|   	POD_ARRAYS_IMPL(UINT16, uint16)
#  131|-> 	POD_ARRAYS_IMPL(UINT32, uint32)
#  132|   	POD_ARRAYS_IMPL(UINT64, uint64)
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def234]
FreeRDP-3.16.0/include/freerdp/utils/pod_arrays.h:131:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:62:5: enter_function: entry to ‘TestPodArrays’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:76:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: call_function: calling ‘array_uint32_append’ from ‘TestPodArrays’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: return_function: returning to ‘TestPodArrays’ from ‘array_uint32_append’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:76:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:76:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: call_function: calling ‘array_uint32_append’ from ‘TestPodArrays’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:22: return_function: returning to ‘TestPodArrays’ from ‘array_uint32_append’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:77:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:76:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:81:14: call_function: calling ‘array_uint32_foreach’ from ‘TestPodArrays’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:81:14: return_function: returning to ‘TestPodArrays’ from ‘array_uint32_foreach’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:81:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:84:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:84:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:87:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:88:13: call_function: calling ‘array_uint32_foreach’ from ‘TestPodArrays’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:88:13: return_function: returning to ‘TestPodArrays’ from ‘array_uint32_foreach’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:91:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:91:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:94:13: call_function: inlined call to ‘array_uint32_get’ from ‘TestPodArrays’
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:94:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/test/TestPodArrays.c:97:9: call_function: inlined call to ‘array_uint32_set’ from ‘TestPodArrays’
#  129|   
#  130|   	POD_ARRAYS_IMPL(UINT16, uint16)
#  131|-> 	POD_ARRAYS_IMPL(UINT32, uint32)
#  132|   	POD_ARRAYS_IMPL(UINT64, uint64)
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def235]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:292:21: warning[-Wanalyzer-use-after-free]: use after ‘bitmap_cache_free’ of ‘bitmapCache’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:358:17: enter_function: entry to ‘bitmap_cache_new’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:378:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:379:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:400:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:400:9: call_function: calling ‘bitmap_cache_free’ from ‘bitmap_cache_new’
#  290|   static int bitmap_cache_save_persistent(rdpBitmapCache* bitmapCache)
#  291|   {
#  292|-> 	rdpContext* context = bitmapCache->context;
#  293|   	rdpSettings* settings = context->settings;
#  294|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:313:22: warning[-Wanalyzer-malloc-leak]: leak of ‘persistent_cache_new()’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:297:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:300:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:300:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:304:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:305:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:308:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:308:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:310:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:313:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:313:22: danger: ‘persistent_cache_new()’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  311|   		return -1;
#  312|   
#  313|-> 	int status = persistent_cache_open(persistent, BitmapCachePersistFile, TRUE, version);
#  314|   
#  315|   	if (status < 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:374:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapCache’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:374:13: danger: ‘bitmapCache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  372|   
#  373|   	const UINT32 BitmapCacheV2NumCells =
#  374|-> 	    freerdp_settings_get_uint32(settings, FreeRDP_BitmapCacheV2NumCells);
#  375|   	bitmapCache->context = context;
#  376|   	bitmapCache->cells = (BITMAP_V2_CELL*)calloc(BitmapCacheV2NumCells, sizeof(BITMAP_V2_CELL));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:378:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:380:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:389:46: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:391:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:393:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#  383|   	{
#  384|   		const BITMAP_CACHE_V2_CELL_INFO* info =
#  385|-> 		    freerdp_settings_get_pointer_array(settings, FreeRDP_BitmapCacheV2CellInfo, i);
#  386|   		BITMAP_V2_CELL* cell = &bitmapCache->cells[i];
#  387|   		UINT32 nr = info->numEntries;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapCache’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:378:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:380:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: danger: ‘bitmapCache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  383|   	{
#  384|   		const BITMAP_CACHE_V2_CELL_INFO* info =
#  385|-> 		    freerdp_settings_get_pointer_array(settings, FreeRDP_BitmapCacheV2CellInfo, i);
#  386|   		BITMAP_V2_CELL* cell = &bitmapCache->cells[i];
#  387|   		UINT32 nr = info->numEntries;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)freerdp_settings_get_uint32(settings, 2501), 16)’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:376:47: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:378:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:380:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: danger: ‘calloc((long unsigned int)freerdp_settings_get_uint32(settings, 2501), 16)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  383|   	{
#  384|   		const BITMAP_CACHE_V2_CELL_INFO* info =
#  385|-> 		    freerdp_settings_get_pointer_array(settings, FreeRDP_BitmapCacheV2CellInfo, i);
#  386|   		BITMAP_V2_CELL* cell = &bitmapCache->cells[i];
#  387|   		UINT32 nr = info->numEntries;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: warning[-Wanalyzer-malloc-leak]: leak of ‘cell’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:376:47: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:378:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:380:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:391:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:393:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: danger: ‘cell’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  383|   	{
#  384|   		const BITMAP_CACHE_V2_CELL_INFO* info =
#  385|-> 		    freerdp_settings_get_pointer_array(settings, FreeRDP_BitmapCacheV2CellInfo, i);
#  386|   		BITMAP_V2_CELL* cell = &bitmapCache->cells[i];
#  387|   		UINT32 nr = info->numEntries;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:400:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:376:47: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:378:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:380:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:391:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:393:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:391:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:392:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:400:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  398|   	WINPR_PRAGMA_DIAG_PUSH
#  399|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  400|-> 	bitmap_cache_free(bitmapCache);
#  401|   	WINPR_PRAGMA_DIAG_POP
#  402|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def243]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:400:9: warning[-Wanalyzer-mismatching-deallocation]: ‘bitmapCache’ should have been deallocated with ‘free’ but was deallocated with ‘bitmap_cache_free’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:378:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:379:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:400:9: danger: deallocated with ‘bitmap_cache_free’ here; allocation at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  398|   	WINPR_PRAGMA_DIAG_PUSH
#  399|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  400|-> 	bitmap_cache_free(bitmapCache);
#  401|   	WINPR_PRAGMA_DIAG_POP
#  402|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def244]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:484:47: warning[-Wanalyzer-use-after-free]: use after ‘free_bitmap_update’ of ‘pointer’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:488:16: enter_function: entry to ‘copy_bitmap_update’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:490:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:492:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:493:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:505:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:505:9: call_function: calling ‘free_bitmap_update’ from ‘copy_bitmap_update’
#  482|   		return;
#  483|   
#  484|-> 	free_bitmap_data(pointer->rectangles, pointer->number);
#  485|   	free(pointer);
#  486|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def245]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:505:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_bitmap_update’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:490:30: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:492:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:493:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:505:9: danger: deallocated with ‘free_bitmap_update’ here; allocation at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  503|   	WINPR_PRAGMA_DIAG_PUSH
#  504|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  505|-> 	free_bitmap_update(context, dst);
#  506|   	WINPR_PRAGMA_DIAG_POP
#  507|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def246]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:533:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_cache_bitmap_order’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:512:35: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:514:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:515:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:533:9: danger: deallocated with ‘free_cache_bitmap_order’ here; allocation at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  531|   	WINPR_PRAGMA_DIAG_PUSH
#  532|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  533|-> 	free_cache_bitmap_order(context, dst);
#  534|   	WINPR_PRAGMA_DIAG_POP
#  535|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def247]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:541:22: warning[-Wanalyzer-use-after-free]: use after ‘free_cache_bitmap_order’ of ‘order’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:510:21: enter_function: entry to ‘copy_cache_bitmap_order’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:512:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:514:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:515:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:533:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:533:9: call_function: calling ‘free_cache_bitmap_order’ from ‘copy_cache_bitmap_order’
#  539|   {
#  540|   	if (order)
#  541|-> 		free(order->bitmapDataStream);
#  542|   
#  543|   	free(order);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def248]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:570:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_cache_bitmap_v2_order’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:549:38: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:551:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:552:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:570:9: danger: deallocated with ‘free_cache_bitmap_v2_order’ here; allocation at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  568|   	WINPR_PRAGMA_DIAG_PUSH
#  569|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  570|-> 	free_cache_bitmap_v2_order(context, dst);
#  571|   	WINPR_PRAGMA_DIAG_POP
#  572|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def249]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:579:22: warning[-Wanalyzer-use-after-free]: use after ‘free_cache_bitmap_v2_order’ of ‘order’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:546:24: enter_function: entry to ‘copy_cache_bitmap_v2_order’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:549:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:551:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:552:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:570:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:570:9: call_function: calling ‘free_cache_bitmap_v2_order’ from ‘copy_cache_bitmap_v2_order’
#  577|   {
#  578|   	if (order)
#  579|-> 		free(order->bitmapDataStream);
#  580|   
#  581|   	free(order);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def250]
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:608:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_cache_bitmap_v3_order’
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:587:38: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:589:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:590:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/bitmap.c:608:9: danger: deallocated with ‘free_cache_bitmap_v3_order’ here; allocation at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  606|   	WINPR_PRAGMA_DIAG_PUSH
#  607|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  608|-> 	free_cache_bitmap_v3_order(context, dst);
#  609|   	WINPR_PRAGMA_DIAG_POP
#  610|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def251]
FreeRDP-3.16.0/libfreerdp/cache/brush.c:80:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘((const rdpCache)**context.cache).brush’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:59:13: enter_function: entry to ‘update_gdi_patblt’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:73:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/brush.c:75:31: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:75:31: call_function: calling ‘brush_cache_get’ from ‘update_gdi_patblt’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:75:31: return_function: returning to ‘update_gdi_patblt’ from ‘brush_cache_get’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:80:9: danger: dereference of NULL ‘*cache.brush’
#   78|   
#   79|   	WINPR_ASSERT(cache->brush);
#   80|-> 	IFCALLRET(cache->brush->PatBlt, ret, context, patblt);
#   81|   	brush->style = style;
#   82|   	return ret;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def252]
FreeRDP-3.16.0/libfreerdp/cache/brush.c:116:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘**context.cache.brush’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:95:13: enter_function: entry to ‘update_gdi_polygon_cb’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:109:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/brush.c:111:31: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:111:31: call_function: calling ‘brush_cache_get’ from ‘update_gdi_polygon_cb’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:111:31: return_function: returning to ‘update_gdi_polygon_cb’ from ‘brush_cache_get’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:116:9: danger: dereference of NULL ‘*cache.brush’
#  114|   
#  115|   	WINPR_ASSERT(cache->brush);
#  116|-> 	IFCALLRET(cache->brush->PolygonCB, ret, context, polygon_cb);
#  117|   	brush->style = style;
#  118|   	return ret;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
FreeRDP-3.16.0/libfreerdp/cache/brush.c:271:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:251:12: branch_false: following ‘false’ branch (when ‘brushCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/brush.c:254:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:257:45: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:259:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/brush.c:262:49: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:264:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/brush.c:265:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:271:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  269|   	WINPR_PRAGMA_DIAG_PUSH
#  270|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  271|-> 	brush_cache_free(brushCache);
#  272|   	WINPR_PRAGMA_DIAG_POP
#  273|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def254]
FreeRDP-3.16.0/libfreerdp/cache/brush.c:271:9: warning[-Wanalyzer-mismatching-deallocation]: ‘brushCache’ should have been deallocated with ‘free’ but was deallocated with ‘brush_cache_free’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:249:38: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/brush.c:251:12: branch_false: following ‘false’ branch (when ‘brushCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/brush.c:254:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:259:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/brush.c:260:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:271:9: danger: deallocated with ‘brush_cache_free’ here; allocation at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  269|   	WINPR_PRAGMA_DIAG_PUSH
#  270|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  271|-> 	brush_cache_free(brushCache);
#  272|   	WINPR_PRAGMA_DIAG_POP
#  273|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def255]
FreeRDP-3.16.0/libfreerdp/cache/brush.c:280:21: warning[-Wanalyzer-use-after-free]: use after ‘brush_cache_free’ of ‘brushCache’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:243:16: enter_function: entry to ‘brush_cache_new’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:249:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:251:12: branch_false: following ‘false’ branch (when ‘brushCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/brush.c:254:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:271:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:271:9: call_function: calling ‘brush_cache_free’ from ‘brush_cache_new’
#  278|   	if (brushCache)
#  279|   	{
#  280|-> 		if (brushCache->entries)
#  281|   		{
#  282|   			for (size_t i = 0; i < brushCache->maxEntries; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: danger: ‘cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   37|   		return NULL;
#   38|   
#   39|-> 	cache->glyph = glyph_cache_new(context);
#   40|   
#   41|   	if (!cache->glyph)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   42|   		goto error;
#   43|   
#   44|-> 	cache->brush = brush_cache_new(context);
#   45|   
#   46|   	if (!cache->brush)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: danger: ‘cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   42|   		goto error;
#   43|   
#   44|-> 	cache->brush = brush_cache_new(context);
#   45|   
#   46|   	if (!cache->brush)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#   47|   		goto error;
#   48|   
#   49|-> 	cache->pointer = pointer_cache_new(context);
#   50|   
#   51|   	if (!cache->pointer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: danger: ‘cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   47|   		goto error;
#   48|   
#   49|-> 	cache->pointer = pointer_cache_new(context);
#   50|   
#   51|   	if (!cache->pointer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#   52|   		goto error;
#   53|   
#   54|-> 	cache->bitmap = bitmap_cache_new(context);
#   55|   
#   56|   	if (!cache->bitmap)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: danger: ‘cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#   52|   		goto error;
#   53|   
#   54|-> 	cache->bitmap = bitmap_cache_new(context);
#   55|   
#   56|   	if (!cache->bitmap)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:59:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:56:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:59:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:59:28: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
#   57|   		goto error;
#   58|   
#   59|-> 	cache->offscreen = offscreen_cache_new(context);
#   60|   
#   61|   	if (!cache->offscreen)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:59:28: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:56:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:59:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:59:28: danger: ‘cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#   57|   		goto error;
#   58|   
#   59|-> 	cache->offscreen = offscreen_cache_new(context);
#   60|   
#   61|   	if (!cache->offscreen)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:64:26: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:56:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:59:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:61:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:64:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:64:26: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
#   62|   		goto error;
#   63|   
#   64|-> 	cache->palette = palette_cache_new(context);
#   65|   
#   66|   	if (!cache->palette)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:64:26: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:56:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:59:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:61:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:64:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:64:26: danger: ‘cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#   62|   		goto error;
#   63|   
#   64|-> 	cache->palette = palette_cache_new(context);
#   65|   
#   66|   	if (!cache->palette)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:69:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:56:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:59:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:61:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:64:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:66:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:69:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:69:28: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#   67|   		goto error;
#   68|   
#   69|-> 	cache->nine_grid = nine_grid_cache_new(context);
#   70|   
#   71|   	if (!cache->nine_grid)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:69:28: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:56:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:59:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:61:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:64:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:66:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:69:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:69:28: danger: ‘cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#   67|   		goto error;
#   68|   
#   69|-> 	cache->nine_grid = nine_grid_cache_new(context);
#   70|   
#   71|   	if (!cache->nine_grid)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:78:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:46:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:47:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:78:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
#   76|   	WINPR_PRAGMA_DIAG_PUSH
#   77|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#   78|-> 	cache_free(cache);
#   79|   	WINPR_PRAGMA_DIAG_POP
#   80|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def270]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:78:9: warning[-Wanalyzer-mismatching-deallocation]: ‘cache’ should have been deallocated with ‘free’ but was deallocated with ‘cache_free’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:41:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:42:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:78:9: danger: deallocated with ‘cache_free’ here; allocation at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#   76|   	WINPR_PRAGMA_DIAG_PUSH
#   77|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#   78|-> 	cache_free(cache);
#   79|   	WINPR_PRAGMA_DIAG_POP
#   80|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def271]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:87:17: warning[-Wanalyzer-use-after-free]: use after ‘cache_free’ of ‘cache’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:28:11: enter_function: entry to ‘cache_new’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:78:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:78:9: call_function: calling ‘cache_free’ from ‘cache_new’
#   85|   	if (cache != NULL)
#   86|   	{
#   87|-> 		glyph_cache_free(cache->glyph);
#   88|   		brush_cache_free(cache->brush);
#   89|   		pointer_cache_free(cache->pointer);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def272]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:111:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_cache_color_table_order’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:101:40: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/cache.c:103:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:104:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:111:9: danger: deallocated with ‘free_cache_color_table_order’ here; allocation at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  109|   	WINPR_PRAGMA_DIAG_PUSH
#  110|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  111|-> 	free_cache_color_table_order(context, dst);
#  112|   	WINPR_PRAGMA_DIAG_POP
#  113|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def273]
FreeRDP-3.16.0/libfreerdp/cache/cache.c:143:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_surface_bits_command’
FreeRDP-3.16.0/libfreerdp/cache/cache.c:125:37: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/cache.c:126:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/cache.c:127:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/cache.c:143:9: danger: deallocated with ‘free_surface_bits_command’ here; allocation at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  141|   	WINPR_PRAGMA_DIAG_PUSH
#  142|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  143|-> 	free_surface_bits_command(context, dst);
#  144|   	WINPR_PRAGMA_DIAG_POP
#  145|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:663:9: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:649:12: branch_false: following ‘false’ branch (when ‘index <= 255’)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:655:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:655:12: branch_false: following ‘false’ branch (when ‘size != 0’)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:658:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:658:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:660:12: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:663:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:663:9: danger: ‘copy’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  661|   		return FALSE;
#  662|   
#  663|-> 	WLog_Print(glyphCache->log, WLOG_DEBUG,
#  664|   	           "GlyphCacheFragmentPut: index: %" PRIu32 " size: %" PRIu32 "", index, size);
#  665|   	CopyMemory(copy, fragment, size);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def275]
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:665:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fragment’
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:405:13: enter_function: entry to ‘update_gdi_fast_glyph’
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:420:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:498:16: call_function: calling ‘update_process_glyph_fragments’ from ‘update_gdi_fast_glyph’
#  663|   	WLog_Print(glyphCache->log, WLOG_DEBUG,
#  664|   	           "GlyphCacheFragmentPut: index: %" PRIu32 " size: %" PRIu32 "", index, size);
#  665|-> 	CopyMemory(copy, fragment, size);
#  666|   
#  667|   	void* prevFragment = glyphCache->fragCache.entries[index].fragment;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:706:27: warning[-Wanalyzer-malloc-leak]: leak of ‘glyphCache’
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:701:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:703:12: branch_false: following ‘false’ branch (when ‘glyphCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:706:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:706:27: danger: ‘glyphCache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  704|   		return NULL;
#  705|   
#  706|-> 	glyphCache->log = WLog_Get("com.freerdp.cache.glyph");
#  707|   	glyphCache->context = context;
#  708|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:712:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:703:12: branch_false: following ‘false’ branch (when ‘glyphCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:706:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:709:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:712:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:716:53: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:718:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:709:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:709:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:712:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:712:21: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#  710|   	{
#  711|   		const GLYPH_CACHE_DEFINITION* currentGlyph =
#  712|-> 		    freerdp_settings_get_pointer_array(settings, FreeRDP_GlyphCache, i);
#  713|   		GLYPH_CACHE* currentCache = &glyphCache->glyphCache[i];
#  714|   		currentCache->number = currentGlyph->cacheEntries;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:712:21: warning[-Wanalyzer-malloc-leak]: leak of ‘glyphCache’
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:701:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:703:12: branch_false: following ‘false’ branch (when ‘glyphCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:706:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:709:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:712:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:712:21: danger: ‘glyphCache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  710|   	{
#  711|   		const GLYPH_CACHE_DEFINITION* currentGlyph =
#  712|-> 		    freerdp_settings_get_pointer_array(settings, FreeRDP_GlyphCache, i);
#  713|   		GLYPH_CACHE* currentCache = &glyphCache->glyphCache[i];
#  714|   		currentCache->number = currentGlyph->cacheEntries;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:726:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:703:12: branch_false: following ‘false’ branch (when ‘glyphCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:706:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:709:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:712:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:716:53: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:718:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:709:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:709:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:712:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:718:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:719:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:726:9: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  724|   	WINPR_PRAGMA_DIAG_PUSH
#  725|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  726|-> 	glyph_cache_free(glyphCache);
#  727|   	WINPR_PRAGMA_DIAG_POP
#  728|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def280]
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:726:9: warning[-Wanalyzer-mismatching-deallocation]: ‘glyphCache’ should have been deallocated with ‘free’ but was deallocated with ‘glyph_cache_free’
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:701:38: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:703:12: branch_false: following ‘false’ branch (when ‘glyphCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:706:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:709:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:712:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:718:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:719:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:726:9: danger: deallocated with ‘glyph_cache_free’ here; allocation at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  724|   	WINPR_PRAGMA_DIAG_PUSH
#  725|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  726|-> 	glyph_cache_free(glyphCache);
#  727|   	WINPR_PRAGMA_DIAG_POP
#  728|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def281]
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:739:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.entries’
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:691:16: enter_function: entry to ‘glyph_cache_new’
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:703:12: branch_false: following ‘false’ branch (when ‘glyphCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:706:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:709:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:712:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:718:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:719:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/glyph.c:726:9: call_function: calling ‘glyph_cache_free’ from ‘glyph_cache_new’
#  737|   		for (size_t i = 0; i < 10; i++)
#  738|   		{
#  739|-> 			rdpGlyph** entries = cache[i].entries;
#  740|   
#  741|   			if (!entries)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:96:14: warning[-Wanalyzer-malloc-leak]: leak of ‘nine_grid’
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:87:40: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:88:12: branch_false: following ‘false’ branch (when ‘nine_grid’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:91:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:96:14: danger: ‘nine_grid’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   94|   	nine_grid->maxEntries = 256;
#   95|   
#   96|-> 	if (!freerdp_settings_set_uint32(settings, FreeRDP_DrawNineGridCacheSize, nine_grid->maxSize))
#   97|   		goto fail;
#   98|   	if (!freerdp_settings_set_uint32(settings, FreeRDP_DrawNineGridCacheEntries,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:98:14: warning[-Wanalyzer-malloc-leak]: leak of ‘nine_grid’
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:87:40: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:88:12: branch_false: following ‘false’ branch (when ‘nine_grid’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:91:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:96:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:98:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:98:14: danger: ‘nine_grid’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   96|   	if (!freerdp_settings_set_uint32(settings, FreeRDP_DrawNineGridCacheSize, nine_grid->maxSize))
#   97|   		goto fail;
#   98|-> 	if (!freerdp_settings_set_uint32(settings, FreeRDP_DrawNineGridCacheEntries,
#   99|   	                                 nine_grid->maxEntries))
#  100|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def284]
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:111:9: warning[-Wanalyzer-mismatching-deallocation]: ‘nine_grid’ should have been deallocated with ‘free’ but was deallocated with ‘nine_grid_cache_free’
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:87:40: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:88:12: branch_false: following ‘false’ branch (when ‘nine_grid’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:91:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:111:9: danger: deallocated with ‘nine_grid_cache_free’ here; allocation at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  109|   	WINPR_PRAGMA_DIAG_PUSH
#  110|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  111|-> 	nine_grid_cache_free(nine_grid);
#  112|   	WINPR_PRAGMA_DIAG_POP
#  113|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def285]
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:120:21: warning[-Wanalyzer-use-after-free]: use after ‘nine_grid_cache_free’ of ‘nine_grid’
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:77:19: enter_function: entry to ‘nine_grid_cache_new’
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:87:40: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:88:12: branch_false: following ‘false’ branch (when ‘nine_grid’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:91:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:111:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/cache/nine_grid.c:111:9: call_function: calling ‘nine_grid_cache_free’ from ‘nine_grid_cache_new’
#  118|   	if (nine_grid != NULL)
#  119|   	{
#  120|-> 		if (nine_grid->entries != NULL)
#  121|   		{
#  122|   			for (size_t i = 0; i < nine_grid->maxEntries; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:213:14: warning[-Wanalyzer-malloc-leak]: leak of ‘offscreenCache’
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:204:46: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:206:12: branch_false: following ‘false’ branch (when ‘offscreenCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:209:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:213:14: danger: ‘offscreenCache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  211|   	offscreenCache->maxSize = 7680;
#  212|   	offscreenCache->maxEntries = 2000;
#  213|-> 	if (!freerdp_settings_set_uint32(settings, FreeRDP_OffscreenCacheSize, offscreenCache->maxSize))
#  214|   		goto fail;
#  215|   	if (!freerdp_settings_set_uint32(settings, FreeRDP_OffscreenCacheEntries,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:215:14: warning[-Wanalyzer-malloc-leak]: leak of ‘offscreenCache’
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:204:46: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:206:12: branch_false: following ‘false’ branch (when ‘offscreenCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:209:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:213:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:215:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:215:14: danger: ‘offscreenCache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  213|   	if (!freerdp_settings_set_uint32(settings, FreeRDP_OffscreenCacheSize, offscreenCache->maxSize))
#  214|   		goto fail;
#  215|-> 	if (!freerdp_settings_set_uint32(settings, FreeRDP_OffscreenCacheEntries,
#  216|   	                                 offscreenCache->maxEntries))
#  217|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def288]
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:227:9: warning[-Wanalyzer-mismatching-deallocation]: ‘offscreenCache’ should have been deallocated with ‘free’ but was deallocated with ‘offscreen_cache_free’
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:204:46: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:206:12: branch_false: following ‘false’ branch (when ‘offscreenCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:209:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:227:9: danger: deallocated with ‘offscreen_cache_free’ here; allocation at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  225|   	WINPR_PRAGMA_DIAG_PUSH
#  226|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  227|-> 	offscreen_cache_free(offscreenCache);
#  228|   	WINPR_PRAGMA_DIAG_POP
#  229|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def289]
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:236:21: warning[-Wanalyzer-use-after-free]: use after ‘offscreen_cache_free’ of ‘offscreenCache’
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:194:20: enter_function: entry to ‘offscreen_cache_new’
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:204:46: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:206:12: branch_false: following ‘false’ branch (when ‘offscreenCache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:209:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:227:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/cache/offscreen.c:227:9: call_function: calling ‘offscreen_cache_free’ from ‘offscreen_cache_new’
#  234|   	if (offscreenCache)
#  235|   	{
#  236|-> 		if (offscreenCache->entries)
#  237|   		{
#  238|   			for (size_t i = 0; i < offscreenCache->maxEntries; i++)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def290]
FreeRDP-3.16.0/libfreerdp/cache/palette.c:118:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_palette_update’
FreeRDP-3.16.0/libfreerdp/cache/palette.c:108:31: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/cache/palette.c:110:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/cache/palette.c:111:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/cache/palette.c:118:9: danger: deallocated with ‘free_palette_update’ here; allocation at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  116|   	WINPR_PRAGMA_DIAG_PUSH
#  117|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  118|-> 	free_palette_update(context, dst);
#  119|   	WINPR_PRAGMA_DIAG_POP
#  120|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
FreeRDP-3.16.0/libfreerdp/cache/pointer.c:361:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_cache’
FreeRDP-3.16.0/libfreerdp/cache/pointer.c:352:43: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/pointer.c:354:12: branch_false: following ‘false’ branch (when ‘pointer_cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/pointer.c:357:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/pointer.c:361:29: danger: ‘pointer_cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  359|   	/* seen invalid pointer cache requests by mstsc (off by 1) so we ensure the cache entry size
#  360|   	 * matches */
#  361|-> 	const UINT32 size = freerdp_settings_get_uint32(settings, FreeRDP_PointerCacheSize);
#  362|   	const UINT32 colorSize = freerdp_settings_get_uint32(settings, FreeRDP_ColorPointerCacheSize);
#  363|   	pointer_cache->cacheSize = MAX(size, colorSize) + 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
FreeRDP-3.16.0/libfreerdp/cache/pointer.c:362:34: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_cache’
FreeRDP-3.16.0/libfreerdp/cache/pointer.c:352:43: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/pointer.c:354:12: branch_false: following ‘false’ branch (when ‘pointer_cache’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/pointer.c:357:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/pointer.c:362:34: danger: ‘pointer_cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  360|   	 * matches */
#  361|   	const UINT32 size = freerdp_settings_get_uint32(settings, FreeRDP_PointerCacheSize);
#  362|-> 	const UINT32 colorSize = freerdp_settings_get_uint32(settings, FreeRDP_ColorPointerCacheSize);
#  363|   	pointer_cache->cacheSize = MAX(size, colorSize) + 1;
#  364|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def293]
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:370:9: warning[-Wanalyzer-mismatching-deallocation]: ‘bulk’ should have been deallocated with ‘free’ but was deallocated with ‘bulk_free’
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:340:26: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:342:12: branch_false: following ‘false’ branch (when ‘bulk’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:345:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:347:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:348:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:370:9: danger: deallocated with ‘bulk_free’ here; allocation at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  368|   	WINPR_PRAGMA_DIAG_PUSH
#  369|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  370|-> 	bulk_free(bulk);
#  371|   	WINPR_PRAGMA_DIAG_POP
#  372|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def294]
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:380:9: warning[-Wanalyzer-use-after-free]: use after ‘bulk_free’ of ‘bulk’
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:335:10: enter_function: entry to ‘bulk_new’
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:340:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:342:12: branch_false: following ‘false’ branch (when ‘bulk’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:345:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:370:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/codec/bulk.c:370:9: call_function: calling ‘bulk_free’ from ‘bulk_new’
#  378|   		return;
#  379|   
#  380|-> 	mppc_context_free(bulk->mppcSend);
#  381|   	mppc_context_free(bulk->mppcRecv);
#  382|   	ncrush_context_free(bulk->ncrushRecv);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def295]
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1205:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_aligned_calloc(1, 850496, 32)’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘clear_context_free’
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1178:48: acquire_memory: allocated here (expects deallocation with ‘winpr_aligned_free’)
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1180:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1183:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1186:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1187:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1205:9: danger: deallocated with ‘clear_context_free’ here; allocation at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘winpr_aligned_free’
# 1203|   	WINPR_PRAGMA_DIAG_PUSH
# 1204|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1205|-> 	clear_context_free(clear);
# 1206|   	WINPR_PRAGMA_DIAG_POP
# 1207|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def296]
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1215:9: warning[-Wanalyzer-use-after-free]: use after ‘clear_context_free’ of ‘clear’
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1176:16: enter_function: entry to ‘clear_context_new’
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1178:48: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1180:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1183:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1186:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1187:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1205:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/codec/clear.c:1205:9: call_function: calling ‘clear_context_free’ from ‘clear_context_new’
# 1213|   		return;
# 1214|   
# 1215|-> 	nsc_context_free(clear->nsc);
# 1216|   	winpr_aligned_free(clear->TempBuffer);
# 1217|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def297]
FreeRDP-3.16.0/libfreerdp/codec/color.c:1691:56: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘palette’
FreeRDP-3.16.0/libfreerdp/codec/color.c:1688:28: branch_true: following ‘true’ branch (when ‘color <= 255’)...
FreeRDP-3.16.0/libfreerdp/codec/color.c:1690:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/color.c:1688:28: branch_true: following ‘true’ branch (when ‘color <= 255’)...
FreeRDP-3.16.0/libfreerdp/codec/color.c:1690:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/color.c:1691:56: danger: dereference of NULL ‘palette’
# 1689|   			{
# 1690|   				tmp = palette->palette[color];
# 1691|-> 				FreeRDPSplitColor(tmp, palette->format, _r, _g, _b, _a, NULL);
# 1692|   			}
# 1693|   			else

Error: CPPCHECK_WARNING (CWE-664): [#def298]
FreeRDP-3.16.0/libfreerdp/codec/dsp_fdk_aac.c:35: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   33|   		char buffer[1024] = { 0 };
#   34|   
#   35|-> 		va_list ap = { 0 };
#   36|   		va_start(ap, fmt);
#   37|   		(void)vsnprintf(buffer, sizeof(buffer), fmt, ap);

Error: COMPILER_WARNING (CWE-1164): [#def299]
FreeRDP-3.16.0/libfreerdp/codec/dsp_fdk_impl.c:165:13: warning[-Wunused-function]: ‘log_dec_info’ defined but not used
#  165 | static void log_dec_info(const CStreamInfo* info, void (*log)(const char* fmt, ...))
#      |             ^~~~~~~~~~~~
#  163|   }
#  164|   
#  165|-> static void log_dec_info(const CStreamInfo* info, void (*log)(const char* fmt, ...))
#  166|   {
#  167|   	assert(info);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def300]
FreeRDP-3.16.0/libfreerdp/codec/h264.c:749:9: warning[-Wanalyzer-mismatching-deallocation]: ‘h264’ should have been deallocated with ‘free’ but was deallocated with ‘h264_context_free’
FreeRDP-3.16.0/libfreerdp/codec/h264.c:720:45: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/codec/h264.c:721:12: branch_false: following ‘false’ branch (when ‘h264’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/codec/h264.c:724:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/h264.c:726:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/h264.c:727:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/h264.c:749:9: danger: deallocated with ‘h264_context_free’ here; allocation at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  747|   	WINPR_PRAGMA_DIAG_PUSH
#  748|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  749|-> 	h264_context_free(h264);
#  750|   	WINPR_PRAGMA_DIAG_POP
#  751|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def301]
FreeRDP-3.16.0/libfreerdp/codec/h264.c:758:21: warning[-Wanalyzer-use-after-free]: use after ‘h264_context_free’ of ‘h264’
FreeRDP-3.16.0/libfreerdp/codec/h264.c:718:15: enter_function: entry to ‘h264_context_new’
FreeRDP-3.16.0/libfreerdp/codec/h264.c:720:45: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/codec/h264.c:721:12: branch_false: following ‘false’ branch (when ‘h264’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/codec/h264.c:724:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/h264.c:749:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/codec/h264.c:749:9: call_function: calling ‘h264_context_free’ from ‘h264_context_new’
#  756|   	if (h264)
#  757|   	{
#  758|-> 		if (h264->subsystem)
#  759|   		{
#  760|   			WINPR_ASSERT(h264->subsystem->Uninit);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def302]
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:745:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_aligned_recalloc(0, 1, 24, 32)’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘bitmap_interleaved_context_free’
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:723:52: acquire_memory: allocated here (expects deallocation with ‘winpr_aligned_free’)
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:726:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:728:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:731:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:732:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:745:9: danger: deallocated with ‘bitmap_interleaved_context_free’ here; allocation at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘winpr_aligned_free’
#  743|   	WINPR_PRAGMA_DIAG_PUSH
#  744|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  745|-> 	bitmap_interleaved_context_free(interleaved);
#  746|   	WINPR_PRAGMA_DIAG_POP
#  747|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def303]
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:755:28: warning[-Wanalyzer-use-after-free]: use after ‘bitmap_interleaved_context_free’ of ‘interleaved’
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:720:29: enter_function: entry to ‘bitmap_interleaved_context_new’
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:723:52: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:726:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:728:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:731:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:732:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:745:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/codec/interleaved.c:745:9: call_function: calling ‘bitmap_interleaved_context_free’ from ‘bitmap_interleaved_context_new’
#  753|   		return;
#  754|   
#  755|-> 	winpr_aligned_free(interleaved->TempBuffer);
#  756|   	Stream_Free(interleaved->bts, TRUE);
#  757|   	winpr_aligned_free(interleaved);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def304]
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:373:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_aligned_calloc(1, 120, 32)’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘nsc_context_free’
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:343:46: acquire_memory: allocated here (expects deallocation with ‘winpr_aligned_free’)
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:345:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:348:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:350:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:351:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:373:9: danger: deallocated with ‘nsc_context_free’ here; allocation at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘winpr_aligned_free’
#  371|   	WINPR_PRAGMA_DIAG_PUSH
#  372|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  373|-> 	nsc_context_free(context);
#  374|   	WINPR_PRAGMA_DIAG_POP
#  375|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def305]
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:383:13: warning[-Wanalyzer-use-after-free]: use after ‘nsc_context_free’ of ‘context’
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:341:14: enter_function: entry to ‘nsc_context_new’
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:343:46: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:345:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:348:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:350:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:351:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:373:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/codec/nsc.c:373:9: call_function: calling ‘nsc_context_free’ from ‘nsc_context_new’
#  381|   		return;
#  382|   
#  383|-> 	if (context->priv)
#  384|   	{
#  385|   		for (size_t i = 0; i < 5; i++)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def306]
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1767:17: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_aligned_calloc(1, 176, 32)’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘freerdp_bitmap_planar_context_free’
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1740:24: enter_function: entry to ‘freerdp_bitmap_planar_context_new’
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1744:37: acquire_memory: allocated here (expects deallocation with ‘winpr_aligned_free’)
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1746:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1749:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1763:14: call_function: calling ‘freerdp_bitmap_planar_context_reset’ from ‘freerdp_bitmap_planar_context_new’
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1763:14: return_function: returning to ‘freerdp_bitmap_planar_context_new’ from ‘freerdp_bitmap_planar_context_reset’
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1763:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1767:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1767:17: danger: deallocated with ‘freerdp_bitmap_planar_context_free’ here; allocation at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1) expects deallocation with ‘winpr_aligned_free’
# 1765|   		WINPR_PRAGMA_DIAG_PUSH
# 1766|   		WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1767|-> 		freerdp_bitmap_planar_context_free(context);
# 1768|   		WINPR_PRAGMA_DIAG_POP
# 1769|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def307]
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1780:28: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_bitmap_planar_context_free’ of ‘context’
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1740:24: enter_function: entry to ‘freerdp_bitmap_planar_context_new’
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1744:37: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1746:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1749:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1763:14: call_function: calling ‘freerdp_bitmap_planar_context_reset’ from ‘freerdp_bitmap_planar_context_new’
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1763:14: return_function: returning to ‘freerdp_bitmap_planar_context_new’ from ‘freerdp_bitmap_planar_context_reset’
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1763:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1767:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1767:17: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/codec/planar.c:1767:17: call_function: calling ‘freerdp_bitmap_planar_context_free’ from ‘freerdp_bitmap_planar_context_new’
# 1778|   		return;
# 1779|   
# 1780|-> 	winpr_aligned_free(context->pTempData);
# 1781|   	winpr_aligned_free(context->planesBuffer);
# 1782|   	winpr_aligned_free(context->deltaPlanesBuffer);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def308]
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2329:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘progressive’
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2316:7: enter_function: entry to ‘progressive_decompress’
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2325:48: call_function: calling ‘progressive_get_surface_data’ from ‘progressive_decompress’
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2325:48: return_function: returning to ‘progressive_decompress’ from ‘progressive_get_surface_data’
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2327:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2329:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2329:17: danger: dereference of NULL ‘progressive’
# 2327|   	if (!surface)
# 2328|   	{
# 2329|-> 		WLog_Print(progressive->log, WLOG_ERROR, "ProgressiveRegion no surface for %" PRIu16,
# 2330|   		           surfaceId);
# 2331|   		return -1001;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def309]
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2580:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_aligned_calloc(1, 3680648, 32)’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘progressive_context_free’
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2545:35: acquire_memory: allocated here (expects deallocation with ‘winpr_aligned_free’)
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2553:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2554:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2580:9: danger: deallocated with ‘progressive_context_free’ here; allocation at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘winpr_aligned_free’
# 2578|   	WINPR_PRAGMA_DIAG_PUSH
# 2579|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2580|-> 	progressive_context_free(progressive);
# 2581|   	WINPR_PRAGMA_DIAG_POP
# 2582|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def310]
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2590:9: warning[-Wanalyzer-use-after-free]: use after ‘progressive_context_free’ of ‘progressive’
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2542:22: enter_function: entry to ‘progressive_context_new_ex’
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2545:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2553:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2554:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2580:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/codec/progressive.c:2580:9: call_function: calling ‘progressive_context_free’ from ‘progressive_context_new_ex’
# 2588|   		return;
# 2589|   
# 2590|-> 	Stream_Free(progressive->buffer, TRUE);
# 2591|   	Stream_Free(progressive->rects, TRUE);
# 2592|   	rfx_context_free(progressive->rfx_context);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def311]
FreeRDP-3.16.0/libfreerdp/codec/region.c:88:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘region’
FreeRDP-3.16.0/libfreerdp/codec/region.c:576:6: enter_function: entry to ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:584:42: call_function: calling ‘region16_extents’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:584:42: return_function: returning to ‘region16_union_rect’ from ‘region16_extents’
FreeRDP-3.16.0/libfreerdp/codec/region.c:585:36: call_function: inlined call to ‘region16_extents_noconst’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:587:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:587:32: call_function: calling ‘region16_n_rects’ from ‘region16_union_rect’
#   86|   {
#   87|   	WINPR_ASSERT(region);
#   88|-> 	if (!region->data)
#   89|   		return 0;
#   90|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def312]
FreeRDP-3.16.0/libfreerdp/codec/region.c:191:22: warning[-Wanalyzer-use-after-free]: use after ‘freeRegion’ of ‘data’
FreeRDP-3.16.0/libfreerdp/codec/region.c:880:6: enter_function: entry to ‘region16_uninit’
FreeRDP-3.16.0/libfreerdp/codec/region.c:884:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/codec/region.c:884:9: call_function: calling ‘freeRegion’ from ‘region16_uninit’
#  189|   {
#  190|   	if (data)
#  191|-> 		free(data->rects);
#  192|   	free(data);
#  193|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def313]
FreeRDP-3.16.0/libfreerdp/codec/region.c:191:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*data.rects’
FreeRDP-3.16.0/libfreerdp/codec/region.c:576:6: enter_function: entry to ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:584:42: call_function: calling ‘region16_extents’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:584:42: return_function: returning to ‘region16_union_rect’ from ‘region16_extents’
FreeRDP-3.16.0/libfreerdp/codec/region.c:585:36: call_function: inlined call to ‘region16_extents_noconst’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:587:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:587:32: call_function: calling ‘region16_n_rects’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:587:32: return_function: returning to ‘region16_union_rect’ from ‘region16_n_rects’
FreeRDP-3.16.0/libfreerdp/codec/region.c:588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:607:50: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:607:35: call_function: calling ‘allocateRegion’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:607:35: return_function: returning to ‘region16_union_rect’ from ‘allocateRegion’
FreeRDP-3.16.0/libfreerdp/codec/region.c:609:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:612:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:615:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:617:60: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:617:41: call_function: calling ‘nextRect’ from ‘region16_union_rect’
#  189|   {
#  190|   	if (data)
#  191|-> 		free(data->rects);
#  192|   	free(data);
#  193|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def314]
FreeRDP-3.16.0/libfreerdp/codec/region.c:235:25: warning[-Wanalyzer-mismatching-deallocation]: ‘data’ should have been deallocated with ‘free’ but was deallocated with ‘freeRegion’
FreeRDP-3.16.0/libfreerdp/codec/region.c:576:6: enter_function: entry to ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:584:42: call_function: calling ‘region16_extents’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:584:42: return_function: returning to ‘region16_union_rect’ from ‘region16_extents’
FreeRDP-3.16.0/libfreerdp/codec/region.c:585:36: call_function: inlined call to ‘region16_extents_noconst’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:587:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:587:32: call_function: calling ‘region16_n_rects’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:587:32: return_function: returning to ‘region16_union_rect’ from ‘region16_n_rects’
FreeRDP-3.16.0/libfreerdp/codec/region.c:588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:607:50: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:607:35: call_function: calling ‘allocateRegion’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:607:35: return_function: returning to ‘region16_union_rect’ from ‘allocateRegion’
FreeRDP-3.16.0/libfreerdp/codec/region.c:609:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:612:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:615:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:617:60: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:617:41: call_function: calling ‘nextRect’ from ‘region16_union_rect’
#  233|   		if (!rects)
#  234|   		{
#  235|-> 			freeRegion(data);
#  236|   			return NULL;
#  237|   		}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def315]
FreeRDP-3.16.0/libfreerdp/codec/region.c:252:17: warning[-Wanalyzer-mismatching-deallocation]: ‘*region.data’ should have been deallocated with ‘free’ but was deallocated with ‘freeRegion’
FreeRDP-3.16.0/libfreerdp/codec/region.c:798:6: enter_function: entry to ‘region16_intersect_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:807:38: call_function: calling ‘region16_rects’ from ‘region16_intersect_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:807:38: return_function: returning to ‘region16_intersect_rect’ from ‘region16_rects’
FreeRDP-3.16.0/libfreerdp/codec/region.c:809:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:815:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:815:42: call_function: calling ‘region16_extents’ from ‘region16_intersect_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:815:42: return_function: returning to ‘region16_intersect_rect’ from ‘region16_extents’
FreeRDP-3.16.0/libfreerdp/codec/region.c:817:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:828:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:828:35: call_function: calling ‘allocateRegion’ from ‘region16_intersect_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:828:35: return_function: returning to ‘region16_intersect_rect’ from ‘allocateRegion’
FreeRDP-3.16.0/libfreerdp/codec/region.c:830:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:833:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:840:41: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:842:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:848:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:854:29: call_function: calling ‘rectangle_is_empty’ from ‘region16_intersect_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:854:29: return_function: returning to ‘region16_intersect_rect’ from ‘rectangle_is_empty’
FreeRDP-3.16.0/libfreerdp/codec/region.c:854:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:860:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:842:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:848:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:874:9: call_function: calling ‘freeRegion’ from ‘region16_intersect_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:874:9: return_function: returning to ‘region16_intersect_rect’ from ‘freeRegion’
FreeRDP-3.16.0/libfreerdp/codec/region.c:877:16: call_function: calling ‘region16_simplify_bands’ from ‘region16_intersect_rect’
#  250|   	if (nbItems == 0)
#  251|   	{
#  252|-> 		freeRegion(region->data);
#  253|   		region->data = NULL;
#  254|   		return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def316]
FreeRDP-3.16.0/libfreerdp/codec/region.c:591:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst’
FreeRDP-3.16.0/libfreerdp/codec/region.c:576:6: enter_function: entry to ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:584:42: call_function: calling ‘region16_extents’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:584:42: return_function: returning to ‘region16_union_rect’ from ‘region16_extents’
FreeRDP-3.16.0/libfreerdp/codec/region.c:585:36: call_function: inlined call to ‘region16_extents_noconst’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:587:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:588:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:591:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:591:17: danger: dereference of NULL ‘dst’
#  589|   	{
#  590|   		/* source is empty, so the union is rect */
#  591|-> 		dst->extents = *rect;
#  592|   
#  593|   		if (!resizeRegion(dst, 1))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def317]
FreeRDP-3.16.0/libfreerdp/codec/region.c:599:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.16.0/libfreerdp/codec/region.c:576:6: enter_function: entry to ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:584:42: call_function: calling ‘region16_extents’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:584:42: return_function: returning to ‘region16_union_rect’ from ‘region16_extents’
FreeRDP-3.16.0/libfreerdp/codec/region.c:585:36: call_function: inlined call to ‘region16_extents_noconst’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:588:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:591:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:593:22: call_function: calling ‘resizeRegion’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:593:22: return_function: returning to ‘region16_union_rect’ from ‘resizeRegion’
FreeRDP-3.16.0/libfreerdp/codec/region.c:593:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:596:41: call_function: inlined call to ‘region16_rects_noconst’ from ‘region16_union_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:599:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:599:17: danger: dereference of NULL ‘<unknown>’
#  597|   		WINPR_ASSERT(dstRect);
#  598|   
#  599|-> 		dstRect->top = rect->top;
#  600|   		dstRect->left = rect->left;
#  601|   		dstRect->right = rect->right;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def318]
FreeRDP-3.16.0/libfreerdp/codec/region.c:844:25: warning[-Wanalyzer-mismatching-deallocation]: ‘allocateRegion((long unsigned int)nbRects)’ should have been deallocated with ‘free’ but was deallocated with ‘freeRegion’
FreeRDP-3.16.0/libfreerdp/codec/region.c:798:6: enter_function: entry to ‘region16_intersect_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:807:38: call_function: calling ‘region16_rects’ from ‘region16_intersect_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:807:38: return_function: returning to ‘region16_intersect_rect’ from ‘region16_rects’
FreeRDP-3.16.0/libfreerdp/codec/region.c:809:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:815:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:815:42: call_function: calling ‘region16_extents’ from ‘region16_intersect_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:815:42: return_function: returning to ‘region16_intersect_rect’ from ‘region16_extents’
FreeRDP-3.16.0/libfreerdp/codec/region.c:817:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:828:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:828:35: call_function: calling ‘allocateRegion’ from ‘region16_intersect_rect’
FreeRDP-3.16.0/libfreerdp/codec/region.c:828:35: return_function: returning to ‘region16_intersect_rect’ from ‘allocateRegion’
FreeRDP-3.16.0/libfreerdp/codec/region.c:830:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:833:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:840:41: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:842:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/region.c:844:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/region.c:844:25: danger: deallocated with ‘freeRegion’ here; allocation at [(24)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/23) expects deallocation with ‘free’
#  842|   		if (usedRects > nbRects)
#  843|   		{
#  844|-> 			freeRegion(newItems);
#  845|   			return FALSE;
#  846|   		}

Error: CPPCHECK_WARNING (CWE-476): [#def319]
FreeRDP-3.16.0/libfreerdp/codec/rfx_dwt.c:158: warning[nullPointer]: Possible null pointer dereference: h
#  156|   
#  157|   			/* H */
#  158|-> 			*h = WINPR_ASSERTING_INT_CAST(
#  159|   			    int16_t, (src[total_width] -
#  160|   			              ((src[0] + src[n < subband_width - 1 ? 2 * total_width : 0]) >> 1)) >>

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
FreeRDP-3.16.0/libfreerdp/codec/test/img2bgra.c:114:25: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_image_new()’
FreeRDP-3.16.0/libfreerdp/codec/test/img2bgra.c:101:12: branch_false: following ‘false’ branch (when ‘argc == 3’)...
FreeRDP-3.16.0/libfreerdp/codec/test/img2bgra.c:108:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/test/img2bgra.c:110:23: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/codec/test/img2bgra.c:111:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/test/img2bgra.c:114:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/codec/test/img2bgra.c:114:25: danger: ‘winpr_image_new()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  112|   		goto fail;
#  113|   
#  114|-> 	const int res = winpr_image_read(img, src);
#  115|   	if (res <= 0)
#  116|   	{

Error: GCC_ANALYZER_WARNING: [#def321]
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:157:17: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:407:5: enter_function: entry to ‘zgfx_decompress’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:426:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:429:9: call_function: inlined call to ‘stream_read_u8’ from ‘zgfx_decompress’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:431:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:433:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:433:22: call_function: calling ‘zgfx_decompress_segment’ from ‘zgfx_decompress’
#  155|   	if (zgfx->HistoryIndex + count <= zgfx->HistoryBufferSize)
#  156|   	{
#  157|-> 		CopyMemory(&(zgfx->HistoryBuffer[zgfx->HistoryIndex]), src, count);
#  158|   
#  159|   		zgfx->HistoryIndex += WINPR_ASSERTING_INT_CAST(uint32_t, count);

Error: GCC_ANALYZER_WARNING: [#def322]
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:166:17: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:407:5: enter_function: entry to ‘zgfx_decompress’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:426:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:429:9: call_function: inlined call to ‘stream_read_u8’ from ‘zgfx_decompress’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:431:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:433:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:433:22: call_function: calling ‘zgfx_decompress_segment’ from ‘zgfx_decompress’
#  164|   	{
#  165|   		const UINT32 front = zgfx->HistoryBufferSize - zgfx->HistoryIndex;
#  166|-> 		CopyMemory(&(zgfx->HistoryBuffer[zgfx->HistoryIndex]), src, front);
#  167|   		CopyMemory(zgfx->HistoryBuffer, &src[front], count - front);
#  168|   		zgfx->HistoryIndex = (UINT32)(count - front);

Error: GCC_ANALYZER_WARNING: [#def323]
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:194:17: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:407:5: enter_function: entry to ‘zgfx_decompress’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:426:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:429:9: call_function: inlined call to ‘stream_read_u8’ from ‘zgfx_decompress’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:431:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:433:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:433:22: call_function: calling ‘zgfx_decompress_segment’ from ‘zgfx_decompress’
#  192|   	if ((index + WINPR_ASSERTING_INT_CAST(uint32_t, bytes)) <= zgfx->HistoryBufferSize)
#  193|   	{
#  194|-> 		CopyMemory(dptr, &(zgfx->HistoryBuffer[index]), WINPR_ASSERTING_INT_CAST(size_t, bytes));
#  195|   	}
#  196|   	else

Error: GCC_ANALYZER_WARNING: [#def324]
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:199:17: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:407:5: enter_function: entry to ‘zgfx_decompress’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:426:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:429:9: call_function: inlined call to ‘stream_read_u8’ from ‘zgfx_decompress’
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:431:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:433:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/codec/zgfx.c:433:22: call_function: calling ‘zgfx_decompress_segment’ from ‘zgfx_decompress’
#  197|   	{
#  198|   		front = zgfx->HistoryBufferSize - index;
#  199|-> 		CopyMemory(dptr, &(zgfx->HistoryBuffer[index]), front);
#  200|   		CopyMemory(&dptr[front], zgfx->HistoryBuffer,
#  201|   		           WINPR_ASSERTING_INT_CAST(uint32_t, bytes) - front);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def325]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:131:14: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_assistance_file_free’ of ‘file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1384:20: enter_function: entry to ‘freerdp_assistance_file_new’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1406:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1406:9: call_function: calling ‘freerdp_assistance_file_free’ from ‘freerdp_assistance_file_new’
#  129|   {
#  130|   	WINPR_ASSERT(file);
#  131|-> 	free(file->password);
#  132|   	file->password = NULL;
#  133|   	if (!password)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:135:26: warning[-Wanalyzer-malloc-leak]: leak of ‘abuffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1184:5: enter_function: entry to ‘freerdp_assistance_parse_file_buffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1193:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1199:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1199:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1204:12: branch_false: following ‘false’ branch (when ‘abuffer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1207:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1207:24: call_function: calling ‘freerdp_assistance_parse_file_buffer_int’ from ‘freerdp_assistance_parse_file_buffer’
#  133|   	if (!password)
#  134|   		return TRUE;
#  135|-> 	file->password = _strdup(password);
#  136|   	return file->password != NULL;
#  137|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:135:26: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1212:5: enter_function: entry to ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:14: call_function: calling ‘update_name’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:14: return_function: returning to ‘freerdp_assistance_parse_file’ from ‘update_name’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1227:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1229:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1235:15: call_function: inlined call to ‘_fseeki64’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1239:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1246:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1246:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1248:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1254:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1264:12: branch_false: following ‘false’ branch (when ‘readSize != 0’)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1272:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1274:18: call_function: calling ‘freerdp_assistance_parse_file_buffer’ from ‘freerdp_assistance_parse_file’
#  133|   	if (!password)
#  134|   		return TRUE;
#  135|-> 	file->password = _strdup(password);
#  136|   	return file->password != NULL;
#  137|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1376:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1384:20: enter_function: entry to ‘freerdp_assistance_file_new’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1395:12: branch_false: following ‘false’ branch...
# 1374|   	WINPR_ASSERT(list);
# 1375|   
# 1376|-> 	wObject* obj = ArrayList_Object(list);
# 1377|   	if (!obj)
# 1378|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1376:24: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1384:20: enter_function: entry to ‘freerdp_assistance_file_new’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1395:12: branch_false: following ‘false’ branch...
# 1374|   	WINPR_ASSERT(list);
# 1375|   
# 1376|-> 	wObject* obj = ArrayList_Object(list);
# 1377|   	if (!obj)
# 1378|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: danger: ‘file’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 1389|   		return NULL;
# 1390|   
# 1391|-> 	file->MachineAddresses = ArrayList_New(FALSE);
# 1392|   	file->MachinePorts = ArrayList_New(FALSE);
# 1393|   	file->MachineUris = ArrayList_New(FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1392:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1392:30: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
# 1390|   
# 1391|   	file->MachineAddresses = ArrayList_New(FALSE);
# 1392|-> 	file->MachinePorts = ArrayList_New(FALSE);
# 1393|   	file->MachineUris = ArrayList_New(FALSE);
# 1394|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1392:30: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1392:30: danger: ‘file’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
# 1390|   
# 1391|   	file->MachineAddresses = ArrayList_New(FALSE);
# 1392|-> 	file->MachinePorts = ArrayList_New(FALSE);
# 1393|   	file->MachineUris = ArrayList_New(FALSE);
# 1394|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1393:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1393:29: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
# 1391|   	file->MachineAddresses = ArrayList_New(FALSE);
# 1392|   	file->MachinePorts = ArrayList_New(FALSE);
# 1393|-> 	file->MachineUris = ArrayList_New(FALSE);
# 1394|   
# 1395|   	if (!file->MachineAddresses || !file->MachinePorts || !file->MachineUris)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1393:29: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1393:29: danger: ‘file’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
# 1391|   	file->MachineAddresses = ArrayList_New(FALSE);
# 1392|   	file->MachinePorts = ArrayList_New(FALSE);
# 1393|-> 	file->MachineUris = ArrayList_New(FALSE);
# 1394|   
# 1395|   	if (!file->MachineAddresses || !file->MachinePorts || !file->MachineUris)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1406:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1392:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1395:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1396:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1406:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
# 1404|   	WINPR_PRAGMA_DIAG_PUSH
# 1405|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1406|-> 	freerdp_assistance_file_free(file);
# 1407|   	WINPR_PRAGMA_DIAG_POP
# 1408|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def336]
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1406:9: warning[-Wanalyzer-mismatching-deallocation]: ‘file’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_assistance_file_free’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1395:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1396:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1406:9: danger: deallocated with ‘freerdp_assistance_file_free’ here; allocation at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 1404|   	WINPR_PRAGMA_DIAG_PUSH
# 1405|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1406|-> 	freerdp_assistance_file_free(file);
# 1407|   	WINPR_PRAGMA_DIAG_POP
# 1408|   	return NULL;

Error: COMPILER_WARNING (CWE-563): [#def337]
FreeRDP-3.16.0/libfreerdp/common/settings_getters.c: scope_hint: In function ‘freerdp_settings_set_int16’
FreeRDP-3.16.0/libfreerdp/common/settings_getters.c:1617:11: warning[-Wunused-but-set-variable]: variable ‘cnv’ set but not used
# 1617 |         } cnv;
#      |           ^~~
# 1615|   		INT16 c;
# 1616|   		const INT16 cc;
# 1617|-> 	} cnv;
# 1618|   	WINPR_ASSERT(settings);
# 1619|   

Error: COMPILER_WARNING (CWE-1023): [#def338]
FreeRDP-3.16.0/libfreerdp/common/settings_getters.c: scope_hint: In function ‘freerdp_settings_get_uint32’
FreeRDP-3.16.0/libfreerdp/common/settings_getters.c:2014:17: warning[-Wswitch]: case value ‘395’ not in enumerated type ‘FreeRDP_Settings_Keys_UInt32’
# 2014 |                 case (FreeRDP_Settings_Keys_UInt32)FreeRDP_MonitorLocalShiftX:
#      |                 ^~~~
# 2012|   #if !defined(WITHOUT_FREERDP_3x_DEPRECATED)
# 2013|   		// API Compatibility section, remove with FreeRDP 4.x
# 2014|-> 		case (FreeRDP_Settings_Keys_UInt32)FreeRDP_MonitorLocalShiftX:
# 2015|   			return (UINT32)settings->MonitorLocalShiftX;
# 2016|   

Error: COMPILER_WARNING (CWE-1023): [#def339]
FreeRDP-3.16.0/libfreerdp/common/settings_getters.c:2018:17: warning[-Wswitch]: case value ‘396’ not in enumerated type ‘FreeRDP_Settings_Keys_UInt32’
# 2018 |                 case (FreeRDP_Settings_Keys_UInt32)FreeRDP_MonitorLocalShiftY:
#      |                 ^~~~
# 2016|   
# 2017|   		// API Compatibility section, remove with FreeRDP 4.x
# 2018|-> 		case (FreeRDP_Settings_Keys_UInt32)FreeRDP_MonitorLocalShiftY:
# 2019|   			return (UINT32)settings->MonitorLocalShiftY;
# 2020|   

Error: COMPILER_WARNING (CWE-1023): [#def340]
FreeRDP-3.16.0/libfreerdp/common/settings_getters.c: scope_hint: In function ‘freerdp_settings_set_uint32’
FreeRDP-3.16.0/libfreerdp/common/settings_getters.c:2543:17: warning[-Wswitch]: case value ‘395’ not in enumerated type ‘FreeRDP_Settings_Keys_UInt32’
# 2543 |                 case FreeRDP_MonitorLocalShiftX:
#      |                 ^~~~
# 2541|   #if !defined(WITHOUT_FREERDP_3x_DEPRECATED)
# 2542|   		// API Compatibility section, remove with FreeRDP 4.x
# 2543|-> 		case FreeRDP_MonitorLocalShiftX:
# 2544|   			settings->MonitorLocalShiftX = (int32_t)cnv.c;
# 2545|   			break;

Error: COMPILER_WARNING (CWE-1023): [#def341]
FreeRDP-3.16.0/libfreerdp/common/settings_getters.c:2548:17: warning[-Wswitch]: case value ‘396’ not in enumerated type ‘FreeRDP_Settings_Keys_UInt32’
# 2548 |                 case FreeRDP_MonitorLocalShiftY:
#      |                 ^~~~
# 2546|   
# 2547|   		// API Compatibility section, remove with FreeRDP 4.x
# 2548|-> 		case FreeRDP_MonitorLocalShiftY:
# 2549|   			settings->MonitorLocalShiftY = (int32_t)cnv.c;
# 2550|   			break;

Error: COMPILER_WARNING (CWE-563): [#def342]
FreeRDP-3.16.0/libfreerdp/common/settings_getters.c: scope_hint: In function ‘freerdp_settings_set_int64’
FreeRDP-3.16.0/libfreerdp/common/settings_getters.c:2711:11: warning[-Wunused-but-set-variable]: variable ‘cnv’ set but not used
# 2711 |         } cnv;
#      |           ^~~
# 2709|   		INT64 c;
# 2710|   		const INT64 cc;
# 2711|-> 	} cnv;
# 2712|   	WINPR_ASSERT(settings);
# 2713|   

Error: CPPCHECK_WARNING (CWE-664): [#def343]
FreeRDP-3.16.0/libfreerdp/core/aad.c:62: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   60|   static SSIZE_T stream_sprintf(wStream* s, WINPR_FORMAT_ARG const char* fmt, ...)
#   61|   {
#   62|-> 	va_list ap = { 0 };
#   63|   	va_start(ap, fmt);
#   64|   	const int rc = vsnprintf(NULL, 0, fmt, ap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
FreeRDP-3.16.0/libfreerdp/core/aad.c:89:14: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(*s.pointer,  Stream_GetRemainingLength(s))’
FreeRDP-3.16.0/libfreerdp/core/aad.c:526:12: enter_function: entry to ‘aad_parse_state_initial’
FreeRDP-3.16.0/libfreerdp/core/aad.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:538:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: call_function: calling ‘json_get_const_string’ from ‘aad_parse_state_initial’
#   87|   	WINPR_ASSERT(key);
#   88|   
#   89|-> 	if (!WINPR_JSON_HasObjectItem(json, key))
#   90|   	{
#   91|   		WLog_Print(wlog, WLOG_ERROR, "[json] does not contain a key '%s'", key);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
FreeRDP-3.16.0/libfreerdp/core/aad.c:91:17: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(*s.pointer,  Stream_GetRemainingLength(s))’
FreeRDP-3.16.0/libfreerdp/core/aad.c:526:12: enter_function: entry to ‘aad_parse_state_initial’
FreeRDP-3.16.0/libfreerdp/core/aad.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:538:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: call_function: calling ‘json_get_const_string’ from ‘aad_parse_state_initial’
#   89|   	if (!WINPR_JSON_HasObjectItem(json, key))
#   90|   	{
#   91|-> 		WLog_Print(wlog, WLOG_ERROR, "[json] does not contain a key '%s'", key);
#   92|   		return FALSE;
#   93|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
FreeRDP-3.16.0/libfreerdp/core/aad.c:95:28: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(*s.pointer,  Stream_GetRemainingLength(s))’
FreeRDP-3.16.0/libfreerdp/core/aad.c:526:12: enter_function: entry to ‘aad_parse_state_initial’
FreeRDP-3.16.0/libfreerdp/core/aad.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:538:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: call_function: calling ‘json_get_const_string’ from ‘aad_parse_state_initial’
#   93|   	}
#   94|   
#   95|-> 	WINPR_JSON* prop = WINPR_JSON_GetObjectItem(json, key);
#   96|   	if (!prop)
#   97|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
FreeRDP-3.16.0/libfreerdp/core/aad.c:98:17: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(*s.pointer,  Stream_GetRemainingLength(s))’
FreeRDP-3.16.0/libfreerdp/core/aad.c:526:12: enter_function: entry to ‘aad_parse_state_initial’
FreeRDP-3.16.0/libfreerdp/core/aad.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:538:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: call_function: calling ‘json_get_const_string’ from ‘aad_parse_state_initial’
#   96|   	if (!prop)
#   97|   	{
#   98|-> 		WLog_Print(wlog, WLOG_ERROR, "[json] object for key '%s' is NULL", key);
#   99|   		return FALSE;
#  100|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
FreeRDP-3.16.0/libfreerdp/core/aad.c:112:14: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(*s.pointer,  Stream_GetRemainingLength(s))’
FreeRDP-3.16.0/libfreerdp/core/aad.c:550:12: enter_function: entry to ‘aad_parse_state_auth’
FreeRDP-3.16.0/libfreerdp/core/aad.c:559:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:562:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:562:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:563:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:566:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:566:14: call_function: calling ‘json_get_number’ from ‘aad_parse_state_auth’
#  110|   		return FALSE;
#  111|   
#  112|-> 	if (!WINPR_JSON_IsNumber(prop))
#  113|   	{
#  114|   		WLog_Print(wlog, WLOG_ERROR, "[json] object for key '%s' is NOT a NUMBER", key);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
FreeRDP-3.16.0/libfreerdp/core/aad.c:114:17: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(*s.pointer,  Stream_GetRemainingLength(s))’
FreeRDP-3.16.0/libfreerdp/core/aad.c:550:12: enter_function: entry to ‘aad_parse_state_auth’
FreeRDP-3.16.0/libfreerdp/core/aad.c:559:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:562:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:562:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:563:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:566:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:566:14: call_function: calling ‘json_get_number’ from ‘aad_parse_state_auth’
#  112|   	if (!WINPR_JSON_IsNumber(prop))
#  113|   	{
#  114|-> 		WLog_Print(wlog, WLOG_ERROR, "[json] object for key '%s' is NOT a NUMBER", key);
#  115|   		goto fail;
#  116|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
FreeRDP-3.16.0/libfreerdp/core/aad.c:137:14: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(*s.pointer,  Stream_GetRemainingLength(s))’
FreeRDP-3.16.0/libfreerdp/core/aad.c:526:12: enter_function: entry to ‘aad_parse_state_initial’
FreeRDP-3.16.0/libfreerdp/core/aad.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:538:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: call_function: calling ‘json_get_const_string’ from ‘aad_parse_state_initial’
#  135|   		return FALSE;
#  136|   
#  137|-> 	if (!WINPR_JSON_IsString(prop))
#  138|   	{
#  139|   		WLog_Print(wlog, WLOG_ERROR, "[json] object for key '%s' is NOT a STRING", key);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
FreeRDP-3.16.0/libfreerdp/core/aad.c:139:17: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(*s.pointer,  Stream_GetRemainingLength(s))’
FreeRDP-3.16.0/libfreerdp/core/aad.c:526:12: enter_function: entry to ‘aad_parse_state_initial’
FreeRDP-3.16.0/libfreerdp/core/aad.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:537:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:538:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:541:14: call_function: calling ‘json_get_const_string’ from ‘aad_parse_state_initial’
#  137|   	if (!WINPR_JSON_IsString(prop))
#  138|   	{
#  139|-> 		WLog_Print(wlog, WLOG_ERROR, "[json] object for key '%s' is NOT a STRING", key);
#  140|   		goto fail;
#  141|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
FreeRDP-3.16.0/libfreerdp/core/aad.c:339:13: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:468:12: enter_function: entry to ‘aad_send_auth_request’
FreeRDP-3.16.0/libfreerdp/core/aad.c:478:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:479:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: call_function: calling ‘aad_create_jws_header’ from ‘aad_send_auth_request’
#  337|   	size_t bufferlen = 0;
#  338|   	const int length =
#  339|-> 	    winpr_asprintf(&buffer, &bufferlen, "{\"alg\":\"RS256\",\"kid\":\"%s\"}", aad->kid);
#  340|   	if (length < 0)
#  341|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
FreeRDP-3.16.0/libfreerdp/core/aad.c:343:28: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:468:12: enter_function: entry to ‘aad_send_auth_request’
FreeRDP-3.16.0/libfreerdp/core/aad.c:478:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:479:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: call_function: calling ‘aad_create_jws_header’ from ‘aad_send_auth_request’
#  341|   		return NULL;
#  342|   
#  343|-> 	char* jws_header = crypto_base64url_encode((const BYTE*)buffer, bufferlen);
#  344|   	free(buffer);
#  345|   	return jws_header;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
FreeRDP-3.16.0/libfreerdp/core/aad.c:422:26: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.16.0/libfreerdp/core/aad.c:408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:414:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:414:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:415:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/aad.c:421:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:422:26: danger: ‘buffer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#  420|   
#  421|   	size_t fsiglen = siglen;
#  422|-> 	const int dsf2 = winpr_DigestSign_Final(ctx, (BYTE*)buffer, &fsiglen);
#  423|   	if (dsf2 <= 0)
#  424|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
FreeRDP-3.16.0/libfreerdp/core/aad.c:519:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:478:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:479:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:484:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:485:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:519:9: danger: ‘Stream_New(0, 1024)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  517|   fail:
#  518|   	Stream_Free(s, TRUE);
#  519|-> 	free(jws_header);
#  520|   	free(jws_payload);
#  521|   	free(jws_signature);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
FreeRDP-3.16.0/libfreerdp/core/aad.c:617:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/aad.c:610:36: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:611:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:617:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:617:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  615|   	}
#  616|   
#  617|-> 	if (!winpr_Digest_Init(digest, WINPR_MD_SHA256))
#  618|   	{
#  619|   		WLog_Print(aad->log, WLOG_ERROR, "winpr_Digest_Init(WINPR_MD_SHA256) failed");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
FreeRDP-3.16.0/libfreerdp/core/aad.c:712:20: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:468:12: enter_function: entry to ‘aad_send_auth_request’
FreeRDP-3.16.0/libfreerdp/core/aad.c:478:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:479:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: call_function: calling ‘aad_create_jws_header’ from ‘aad_send_auth_request’
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: return_function: returning to ‘aad_send_auth_request’ from ‘aad_create_jws_header’
FreeRDP-3.16.0/libfreerdp/core/aad.c:484:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:488:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:488:23: call_function: calling ‘aad_create_jws_payload’ from ‘aad_send_auth_request’
#  710|   
#  711|   	size_t len = 0;
#  712|-> 	BYTE* bn = freerdp_key_get_param(key, param, &len);
#  713|   	if (!bn)
#  714|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
FreeRDP-3.16.0/libfreerdp/core/aad.c:716:21: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:468:12: enter_function: entry to ‘aad_send_auth_request’
FreeRDP-3.16.0/libfreerdp/core/aad.c:478:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:479:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: call_function: calling ‘aad_create_jws_header’ from ‘aad_send_auth_request’
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: return_function: returning to ‘aad_send_auth_request’ from ‘aad_create_jws_header’
FreeRDP-3.16.0/libfreerdp/core/aad.c:484:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:488:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:488:23: call_function: calling ‘aad_create_jws_payload’ from ‘aad_send_auth_request’
#  714|   		return NULL;
#  715|   
#  716|-> 	char* b64 = crypto_base64url_encode(bn, len);
#  717|   	free(bn);
#  718|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
FreeRDP-3.16.0/libfreerdp/core/aad.c:720:17: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:468:12: enter_function: entry to ‘aad_send_auth_request’
FreeRDP-3.16.0/libfreerdp/core/aad.c:478:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:479:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: call_function: calling ‘aad_create_jws_header’ from ‘aad_send_auth_request’
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: return_function: returning to ‘aad_send_auth_request’ from ‘aad_create_jws_header’
FreeRDP-3.16.0/libfreerdp/core/aad.c:484:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:488:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:488:23: call_function: calling ‘aad_create_jws_payload’ from ‘aad_send_auth_request’
#  718|   
#  719|   	if (!b64)
#  720|-> 		WLog_Print(wlog, WLOG_ERROR, "failed  base64 url encode BIGNUM");
#  721|   
#  722|   	return b64;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
FreeRDP-3.16.0/libfreerdp/core/aad.c:742:17: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:468:12: enter_function: entry to ‘aad_send_auth_request’
FreeRDP-3.16.0/libfreerdp/core/aad.c:478:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:479:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: call_function: calling ‘aad_create_jws_header’ from ‘aad_send_auth_request’
FreeRDP-3.16.0/libfreerdp/core/aad.c:483:22: return_function: returning to ‘aad_send_auth_request’ from ‘aad_create_jws_header’
FreeRDP-3.16.0/libfreerdp/core/aad.c:484:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:488:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:488:23: call_function: calling ‘aad_create_jws_payload’ from ‘aad_send_auth_request’
#  740|   	if (!e)
#  741|   	{
#  742|-> 		WLog_Print(wlog, WLOG_ERROR, "failed  base64 url encode RSA E");
#  743|   		goto fail;
#  744|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
FreeRDP-3.16.0/libfreerdp/core/aad.c:799:20: warning[-Wanalyzer-malloc-leak]: leak of ‘aad’
FreeRDP-3.16.0/libfreerdp/core/aad.c:794:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:796:12: branch_false: following ‘false’ branch (when ‘aad’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/aad.c:799:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:799:20: danger: ‘aad’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  797|   		return NULL;
#  798|   
#  799|-> 	aad->log = WLog_Get(FREERDP_TAG("aad"));
#  800|   	aad->key = freerdp_key_new();
#  801|   	if (!aad->key)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
FreeRDP-3.16.0/libfreerdp/core/aad.c:800:20: warning[-Wanalyzer-malloc-leak]: leak of ‘aad’
FreeRDP-3.16.0/libfreerdp/core/aad.c:794:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:796:12: branch_false: following ‘false’ branch (when ‘aad’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/aad.c:799:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:800:20: danger: ‘aad’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  798|   
#  799|   	aad->log = WLog_Get(FREERDP_TAG("aad"));
#  800|-> 	aad->key = freerdp_key_new();
#  801|   	if (!aad->key)
#  802|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def363]
FreeRDP-3.16.0/libfreerdp/core/aad.c:810:9: warning[-Wanalyzer-mismatching-deallocation]: ‘aad’ should have been deallocated with ‘free’ but was deallocated with ‘aad_free’
FreeRDP-3.16.0/libfreerdp/core/aad.c:794:32: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/aad.c:796:12: branch_false: following ‘false’ branch (when ‘aad’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/aad.c:799:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:801:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:802:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:810:9: danger: deallocated with ‘aad_free’ here; allocation at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  808|   	WINPR_PRAGMA_DIAG_PUSH
#  809|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  810|-> 	aad_free(aad);
#  811|   	WINPR_PRAGMA_DIAG_POP
#  812|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def364]
FreeRDP-3.16.0/libfreerdp/core/aad.c:820:14: warning[-Wanalyzer-use-after-free]: use after ‘aad_free’ of ‘aad’
FreeRDP-3.16.0/libfreerdp/core/aad.c:789:9: enter_function: entry to ‘aad_new’
FreeRDP-3.16.0/libfreerdp/core/aad.c:794:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:796:12: branch_false: following ‘false’ branch (when ‘aad’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/aad.c:799:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:801:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:802:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:810:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:810:9: call_function: calling ‘aad_free’ from ‘aad_new’
#  818|   		return;
#  819|   
#  820|-> 	free(aad->hostname);
#  821|   	free(aad->scope);
#  822|   	free(aad->nonce);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
FreeRDP-3.16.0/libfreerdp/core/aad.c:859:29: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:851:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:852:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:859:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:859:29: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  857|   	}
#  858|   
#  859|-> 	access_token_prop = WINPR_JSON_GetObjectItem(json, "access_token");
#  860|   	if (!access_token_prop)
#  861|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
FreeRDP-3.16.0/libfreerdp/core/aad.c:862:17: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:851:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:852:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:859:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:860:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:862:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:862:17: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#  860|   	if (!access_token_prop)
#  861|   	{
#  862|-> 		WLog_Print(log, WLOG_ERROR, "Response has no \"access_token\" property");
#  863|   		goto cleanup;
#  864|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
FreeRDP-3.16.0/libfreerdp/core/aad.c:866:28: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:851:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:852:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:859:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:860:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:866:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:866:28: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
#  864|   	}
#  865|   
#  866|-> 	access_token_str = WINPR_JSON_GetStringValue(access_token_prop);
#  867|   	if (!access_token_str)
#  868|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
FreeRDP-3.16.0/libfreerdp/core/aad.c:869:17: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:851:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:852:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:859:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:860:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:866:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:867:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:869:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:869:17: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
#  867|   	if (!access_token_str)
#  868|   	{
#  869|-> 		WLog_Print(log, WLOG_ERROR, "Invalid value for \"access_token\"");
#  870|   		goto cleanup;
#  871|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
FreeRDP-3.16.0/libfreerdp/core/aad.c:873:17: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:851:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:852:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:859:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:860:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:866:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:867:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:873:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:873:17: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
#  871|   	}
#  872|   
#  873|-> 	token = _strdup(access_token_str);
#  874|   
#  875|   cleanup:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
FreeRDP-3.16.0/libfreerdp/core/aad.c:876:9: warning[-Wanalyzer-malloc-leak]: leak of ‘token’
FreeRDP-3.16.0/libfreerdp/core/aad.c:852:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:859:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:860:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:866:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:867:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:873:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:873:17: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:876:9: danger: ‘token’ leaks here; was allocated at [(7)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/6)
#  874|   
#  875|   cleanup:
#  876|-> 	WINPR_JSON_Delete(json);
#  877|   	return token;
#  878|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
FreeRDP-3.16.0/libfreerdp/core/aad.c:877:16: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:851:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:852:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:859:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:860:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:866:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:867:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:873:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:877:16: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
#  875|   cleanup:
#  876|   	WINPR_JSON_Delete(json);
#  877|-> 	return token;
#  878|   }
#  879|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
FreeRDP-3.16.0/libfreerdp/core/aad.c:898:16: warning[-Wanalyzer-malloc-leak]: leak of ‘**context.rdp.wellknown’
FreeRDP-3.16.0/libfreerdp/core/aad.c:880:6: enter_function: entry to ‘aad_fetch_wellknown’
FreeRDP-3.16.0/libfreerdp/core/aad.c:887:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:891:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:897:26: call_function: calling ‘freerdp_utils_aad_get_wellknown’ from ‘aad_fetch_wellknown’
FreeRDP-3.16.0/libfreerdp/core/aad.c:897:26: return_function: returning to ‘aad_fetch_wellknown’ from ‘freerdp_utils_aad_get_wellknown’
FreeRDP-3.16.0/libfreerdp/core/aad.c:898:16: danger: ‘**context.rdp.wellknown’ leaks here; was allocated at [(10)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/9)
#  896|   		tenantid = freerdp_settings_get_string(context->settings, FreeRDP_GatewayAvdAadtenantid);
#  897|   	rdp->wellknown = freerdp_utils_aad_get_wellknown(log, base, tenantid);
#  898|-> 	return rdp->wellknown ? TRUE : FALSE;
#  899|   }
#  900|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
FreeRDP-3.16.0/libfreerdp/core/aad.c:898:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_utils_aad_get_wellknown(log,  freerdp_settings_get_string(*context.settings, 2014), tenantid)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:880:6: enter_function: entry to ‘aad_fetch_wellknown’
FreeRDP-3.16.0/libfreerdp/core/aad.c:887:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:891:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:897:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:897:26: call_function: calling ‘freerdp_utils_aad_get_wellknown’ from ‘aad_fetch_wellknown’
#  896|   		tenantid = freerdp_settings_get_string(context->settings, FreeRDP_GatewayAvdAadtenantid);
#  897|   	rdp->wellknown = freerdp_utils_aad_get_wellknown(log, base, tenantid);
#  898|-> 	return rdp->wellknown ? TRUE : FALSE;
#  899|   }
#  900|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
FreeRDP-3.16.0/libfreerdp/core/aad.c:1005:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_utils_aad_get_wellknown(log,  freerdp_settings_get_string(*context.settings, 2014), tenantid)’
FreeRDP-3.16.0/libfreerdp/core/aad.c:880:6: enter_function: entry to ‘aad_fetch_wellknown’
FreeRDP-3.16.0/libfreerdp/core/aad.c:887:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/aad.c:891:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/aad.c:897:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/aad.c:897:26: call_function: calling ‘freerdp_utils_aad_get_wellknown’ from ‘aad_fetch_wellknown’
# 1003|   	               tenantid);
# 1004|   
# 1005|-> 	if (!str)
# 1006|   	{
# 1007|   		WLog_Print(log, WLOG_ERROR, "failed to create request URL for tenantid='%s'", tenantid);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
FreeRDP-3.16.0/libfreerdp/core/activation.c:304:13: warning[-Wanalyzer-malloc-leak]: leak of ‘persistent_cache_new()’
FreeRDP-3.16.0/libfreerdp/core/activation.c:292:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/activation.c:295:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/activation.c:295:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/activation.c:298:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/activation.c:298:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/activation.c:300:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/activation.c:304:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/activation.c:304:13: danger: ‘persistent_cache_new()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  302|   
#  303|   	const int status =
#  304|-> 	    persistent_cache_open(persistent, settings->BitmapCachePersistFile, FALSE, 0);
#  305|   
#  306|   	if (status < 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
FreeRDP-3.16.0/libfreerdp/core/activation.c:323:21: warning[-Wanalyzer-malloc-leak]: leak of ‘keyList’
FreeRDP-3.16.0/libfreerdp/core/activation.c:292:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/activation.c:295:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/activation.c:295:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/activation.c:298:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/activation.c:300:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/activation.c:304:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/activation.c:306:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/activation.c:309:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/activation.c:310:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/activation.c:313:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/activation.c:314:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/activation.c:316:12: branch_false: following ‘false’ branch (when ‘keyList’ is non-NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/activation.c:319:29: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/activation.c:321:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/activation.c:323:21: danger: ‘keyList’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
#  321|   		PERSISTENT_CACHE_ENTRY cacheEntry = { 0 };
#  322|   
#  323|-> 		if (persistent_cache_read_entry(persistent, &cacheEntry) < 1)
#  324|   			continue;
#  325|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
FreeRDP-3.16.0/libfreerdp/core/autodetect.c:1046:27: warning[-Wanalyzer-malloc-leak]: leak of ‘autoDetect’
FreeRDP-3.16.0/libfreerdp/core/autodetect.c:1042:53: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/autodetect.c:1043:12: branch_false: following ‘false’ branch (when ‘autoDetect’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/autodetect.c:1045:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/autodetect.c:1046:27: danger: ‘autoDetect’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1044|   		return NULL;
# 1045|   	autoDetect->context = context;
# 1046|-> 	autoDetect->log = WLog_Get(AUTODETECT_TAG);
# 1047|   
# 1048|   	return autoDetect;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def378]
FreeRDP-3.16.0/libfreerdp/core/childsession.c:229:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
FreeRDP-3.16.0/libfreerdp/core/childsession.c:262:12: enter_function: entry to ‘transport_bio_named_gets’
FreeRDP-3.16.0/libfreerdp/core/childsession.c:267:16: call_function: calling ‘transport_bio_named_read’ from ‘transport_bio_named_gets’
#  227|   		for (int i = 0; i < nchunks; i++)
#  228|   		{
#  229|-> 			memcpy(buf, chunks[i].data, chunks[i].size);
#  230|   			buf += chunks[i].size;
#  231|   		}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def379]
FreeRDP-3.16.0/libfreerdp/core/childsession.c:229:37: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
FreeRDP-3.16.0/libfreerdp/core/childsession.c:262:12: enter_function: entry to ‘transport_bio_named_gets’
FreeRDP-3.16.0/libfreerdp/core/childsession.c:267:16: call_function: calling ‘transport_bio_named_read’ from ‘transport_bio_named_gets’
#  227|   		for (int i = 0; i < nchunks; i++)
#  228|   		{
#  229|-> 			memcpy(buf, chunks[i].data, chunks[i].size);
#  230|   			buf += chunks[i].size;
#  231|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
FreeRDP-3.16.0/libfreerdp/core/childsession.c:388:14: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.16.0/libfreerdp/core/childsession.c:384:50: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/childsession.c:385:12: branch_false: following ‘false’ branch (when ‘ptr’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/childsession.c:388:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/childsession.c:388:14: danger: ‘ptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  386|   		return 0;
#  387|   
#  388|-> 	if (!ringbuffer_init(&ptr->readBuffer, 0xfffff))
#  389|   		goto error;
#  390|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
FreeRDP-3.16.0/libfreerdp/core/childsession.c:513:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateFileW(&pipePath, 3221225472, 0, 0, 3, 1073741824, 0)’
FreeRDP-3.16.0/libfreerdp/core/childsession.c:453:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/childsession.c:459:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/childsession.c:471:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/childsession.c:473:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/childsession.c:478:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/childsession.c:484:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/childsession.c:485:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/childsession.c:491:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/childsession.c:511:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/childsession.c:513:12: danger: ‘CreateFileW(&pipePath, 3221225472, 0, 0, 3, 1073741824, 0)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
#  511|   	HANDLE f = CreateFileW(pipePath, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING,
#  512|   	                       FILE_FLAG_OVERLAPPED, NULL);
#  513|-> 	if (f == INVALID_HANDLE_VALUE)
#  514|   	{
#  515|   		WLog_ERR(TAG, "error when connecting to local named pipe");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
FreeRDP-3.16.0/libfreerdp/core/client.c:164:9: warning[-Wanalyzer-malloc-leak]: leak of ‘channels’
FreeRDP-3.16.0/libfreerdp/core/client.c:159:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/client.c:161:12: branch_false: following ‘false’ branch (when ‘channels’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/client.c:164:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:164:9: danger: ‘channels’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  162|   		return NULL;
#  163|   
#  164|-> 	InitOnceExecuteOnce(&g_ChannelHandlesOnce, init_channel_handles_table, NULL, NULL);
#  165|   
#  166|   	if (!g_ChannelHandles)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
FreeRDP-3.16.0/libfreerdp/core/client.c:168:14: warning[-Wanalyzer-malloc-leak]: leak of ‘channels’
FreeRDP-3.16.0/libfreerdp/core/client.c:159:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/client.c:161:12: branch_false: following ‘false’ branch (when ‘channels’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/client.c:164:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:166:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/client.c:168:52: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:168:14: danger: ‘channels’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  166|   	if (!g_ChannelHandles)
#  167|   		goto error;
#  168|-> 	if (!InitializeCriticalSectionAndSpinCount(&channels->channelsLock, 4000))
#  169|   		goto error;
#  170|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def384]
FreeRDP-3.16.0/libfreerdp/core/client.c:192:9: warning[-Wanalyzer-mismatching-deallocation]: ‘channels’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_channels_free’
FreeRDP-3.16.0/libfreerdp/core/client.c:159:34: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/client.c:161:12: branch_false: following ‘false’ branch (when ‘channels’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/client.c:164:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:166:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/client.c:167:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:192:9: danger: deallocated with ‘freerdp_channels_free’ here; allocation at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  190|   	WINPR_PRAGMA_DIAG_PUSH
#  191|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  192|-> 	freerdp_channels_free(channels);
#  193|   	WINPR_PRAGMA_DIAG_POP
#  194|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def385]
FreeRDP-3.16.0/libfreerdp/core/client.c:202:9: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_channels_free’ of ‘channels’
FreeRDP-3.16.0/libfreerdp/core/client.c:155:14: enter_function: entry to ‘freerdp_channels_new’
FreeRDP-3.16.0/libfreerdp/core/client.c:159:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/client.c:161:12: branch_false: following ‘false’ branch (when ‘channels’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/client.c:164:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:192:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/client.c:192:9: call_function: calling ‘freerdp_channels_free’ from ‘freerdp_channels_new’
#  200|   		return;
#  201|   
#  202|-> 	HashTable_Free(channels->channelEvents);
#  203|   
#  204|   	DeleteCriticalSection(&channels->channelsLock);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
FreeRDP-3.16.0/libfreerdp/core/client.c:1300:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pChannelOpenEvent’
FreeRDP-3.16.0/libfreerdp/core/client.c:1259:12: branch_false: following ‘false’ branch (when ‘pInitHandle’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/client.c:1263:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1265:12: branch_false: following ‘false’ branch (when ‘channels’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/client.c:1268:76: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1270:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/client.c:1273:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1273:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/client.c:1276:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1276:12: branch_false: following ‘false’ branch (when ‘pData’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/client.c:1279:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1279:12: branch_false: following ‘false’ branch (when ‘dataLength != 0’)...
FreeRDP-3.16.0/libfreerdp/core/client.c:1282:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1282:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/client.c:1285:50: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1285:50: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/client.c:1287:12: branch_false: following ‘false’ branch (when ‘pChannelOpenEvent’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/client.c:1290:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1300:14: danger: ‘pChannelOpenEvent’ leaks here; was allocated at [(15)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/14)
# 1298|   	message.Free = channel_queue_message_free;
# 1299|   
# 1300|-> 	if (!MessageQueue_Dispatch(channels->queue, &message))
# 1301|   	{
# 1302|   		free(pChannelOpenEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
FreeRDP-3.16.0/libfreerdp/core/client.c:1353:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pChannelOpenEvent’
FreeRDP-3.16.0/libfreerdp/core/client.c:1319:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/client.c:1322:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1323:12: branch_false: following ‘false’ branch (when ‘channels’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/client.c:1326:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1326:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/client.c:1329:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1329:12: branch_false: following ‘false’ branch (when ‘pData’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/client.c:1332:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1332:12: branch_false: following ‘false’ branch (when ‘dataLength != 0’)...
FreeRDP-3.16.0/libfreerdp/core/client.c:1335:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1335:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/client.c:1338:50: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1338:50: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/client.c:1340:12: branch_false: following ‘false’ branch (when ‘pChannelOpenEvent’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/client.c:1343:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/client.c:1353:14: danger: ‘pChannelOpenEvent’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
# 1351|   	message.Free = channel_queue_message_free;
# 1352|   
# 1353|-> 	if (!MessageQueue_Dispatch(channels->queue, &message))
# 1354|   	{
# 1355|   		free(pChannelOpenEvent);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def388]
FreeRDP-3.16.0/libfreerdp/core/codecs.c:36:21: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_client_codecs_free’ of ‘codecs’
FreeRDP-3.16.0/libfreerdp/core/codecs.c:252:6: enter_function: entry to ‘codecs_free’
FreeRDP-3.16.0/libfreerdp/core/codecs.c:254:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/codecs.c:254:9: call_function: calling ‘freerdp_client_codecs_free’ from ‘codecs_free’
#   34|   	if (flags & FREERDP_CODEC_REMOTEFX)
#   35|   	{
#   36|-> 		if (codecs->rfx)
#   37|   		{
#   38|   			rfx_context_free(codecs->rfx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
FreeRDP-3.16.0/libfreerdp/core/codecs.c:262:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_client_codecs_new(freerdp_settings_get_uint32(*context.settings, 64))’
FreeRDP-3.16.0/libfreerdp/core/codecs.c:243:12: enter_function: entry to ‘codecs_new’
FreeRDP-3.16.0/libfreerdp/core/codecs.c:245:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/codecs.c:249:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/codecs.c:249:16: call_function: calling ‘freerdp_client_codecs_new’ from ‘codecs_new’
#  260|   	rdpCodecs* codecs = (rdpCodecs*)calloc(1, sizeof(rdpCodecs));
#  261|   
#  262|-> 	if (!codecs)
#  263|   		return NULL;
#  264|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
FreeRDP-3.16.0/libfreerdp/core/codecs.c:265:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_client_codecs_new(freerdp_settings_get_uint32(*context.settings, 64))’
FreeRDP-3.16.0/libfreerdp/core/codecs.c:243:12: enter_function: entry to ‘codecs_new’
FreeRDP-3.16.0/libfreerdp/core/codecs.c:245:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/codecs.c:249:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/codecs.c:249:16: call_function: calling ‘freerdp_client_codecs_new’ from ‘codecs_new’
#  263|   		return NULL;
#  264|   
#  265|-> 	codecs->ThreadingFlags = ThreadingFlags;
#  266|   
#  267|   	return codecs;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
FreeRDP-3.16.0/libfreerdp/core/connection.c:1727:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_addin_argv_new(1, &params)’
FreeRDP-3.16.0/libfreerdp/core/connection.c:1706:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/connection.c:1710:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/connection.c:1710:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/connection.c:1713:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/connection.c:1717:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/connection.c:1720:39: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/connection.c:1723:23: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/connection.c:1724:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/connection.c:1727:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/connection.c:1727:22: danger: ‘freerdp_addin_argv_new(1, &params)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
# 1725|   			return FALSE;
# 1726|   
# 1727|-> 		if (!freerdp_static_channel_collection_add(rdp->settings, arg))
# 1728|   		{
# 1729|   			freerdp_addin_argv_free(arg);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:536:18: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:510:9: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:520:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:520:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:521:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:524:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:536:18: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  534|   
#  535|   	WINPR_ASSERT(auth->table->EncryptMessage);
#  536|-> 	status = auth->table->EncryptMessage(&auth->context, 0, &buffer_desc, sequence);
#  537|   	if (status != SEC_E_OK)
#  538|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:796:13: warning[-Wanalyzer-malloc-leak]: leak of ‘module’
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:779:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:783:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:783:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:789:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:789:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:790:12: branch_false: following ‘false’ branch (when ‘module’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:796:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/credssp_auth.c:796:13: danger: ‘module’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  794|   	}
#  795|   
#  796|-> 	if (RegQueryValueExA(hKey, "SspiModule", NULL, &dwType, (BYTE*)module, &dwSize) !=
#  797|   	    ERROR_SUCCESS)
#  798|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:312:30: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_bitmap_update(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  310|   				return FALSE;
#  311|   
#  312|-> 			rc = IFCALLRESULT(defaultReturn, update->BitmapUpdate, context, bitmap_update);
#  313|   			free_bitmap_update(context, bitmap_update);
#  314|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:313:25: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_bitmap_update(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  311|   
#  312|   			rc = IFCALLRESULT(defaultReturn, update->BitmapUpdate, context, bitmap_update);
#  313|-> 			free_bitmap_update(context, bitmap_update);
#  314|   		}
#  315|   		break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:324:30: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_palette(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  322|   				return FALSE;
#  323|   
#  324|-> 			rc = IFCALLRESULT(defaultReturn, update->Palette, context, palette_update);
#  325|   			free_palette_update(context, palette_update);
#  326|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:325:25: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_palette(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  323|   
#  324|   			rc = IFCALLRESULT(defaultReturn, update->Palette, context, palette_update);
#  325|-> 			free_palette_update(context, palette_update);
#  326|   		}
#  327|   		break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:423:38: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_position(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  421|   			if (pointer_position)
#  422|   			{
#  423|-> 				rc = IFCALLRESULT(defaultReturn, pointer->PointerPosition, context,
#  424|   				                  pointer_position);
#  425|   				free_pointer_position_update(context, pointer_position);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:425:33: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_position(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  423|   				rc = IFCALLRESULT(defaultReturn, pointer->PointerPosition, context,
#  424|   				                  pointer_position);
#  425|-> 				free_pointer_position_update(context, pointer_position);
#  426|   			}
#  427|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:436:38: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_color(update,  s, 24)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  434|   			if (pointer_color)
#  435|   			{
#  436|-> 				rc = IFCALLRESULT(defaultReturn, pointer->PointerColor, context, pointer_color);
#  437|   				free_pointer_color_update(context, pointer_color);
#  438|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:437:33: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_color(update,  s, 24)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  435|   			{
#  436|   				rc = IFCALLRESULT(defaultReturn, pointer->PointerColor, context, pointer_color);
#  437|-> 				free_pointer_color_update(context, pointer_color);
#  438|   			}
#  439|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:448:38: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_cached(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  446|   			if (pointer_cached)
#  447|   			{
#  448|-> 				rc = IFCALLRESULT(defaultReturn, pointer->PointerCached, context, pointer_cached);
#  449|   				free_pointer_cached_update(context, pointer_cached);
#  450|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:449:33: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_cached(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  447|   			{
#  448|   				rc = IFCALLRESULT(defaultReturn, pointer->PointerCached, context, pointer_cached);
#  449|-> 				free_pointer_cached_update(context, pointer_cached);
#  450|   			}
#  451|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:460:38: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_new(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  458|   			if (pointer_new)
#  459|   			{
#  460|-> 				rc = IFCALLRESULT(defaultReturn, pointer->PointerNew, context, pointer_new);
#  461|   				free_pointer_new_update(context, pointer_new);
#  462|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:461:33: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_new(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  459|   			{
#  460|   				rc = IFCALLRESULT(defaultReturn, pointer->PointerNew, context, pointer_new);
#  461|-> 				free_pointer_new_update(context, pointer_new);
#  462|   			}
#  463|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:472:38: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_large(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  470|   			if (pointer_large)
#  471|   			{
#  472|-> 				rc = IFCALLRESULT(defaultReturn, pointer->PointerLarge, context, pointer_large);
#  473|   				free_pointer_large_update(context, pointer_large);
#  474|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:473:33: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_large(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  471|   			{
#  472|   				rc = IFCALLRESULT(defaultReturn, pointer->PointerLarge, context, pointer_large);
#  473|-> 				free_pointer_large_update(context, pointer_large);
#  474|   			}
#  475|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1387:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1380:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1387:24: danger: ‘fastpath’ leaks here; was allocated at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
# 1385|   	fastpath->rdp = rdp;
# 1386|   	fastpath->fragmentation = -1;
# 1387|-> 	fastpath->fs = Stream_New(NULL, FASTPATH_MAX_PACKET_SIZE);
# 1388|   	fastpath->updateData = Stream_New(NULL, FASTPATH_MAX_PACKET_SIZE);
# 1389|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1388:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1387:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1388:32: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
# 1386|   	fastpath->fragmentation = -1;
# 1387|   	fastpath->fs = Stream_New(NULL, FASTPATH_MAX_PACKET_SIZE);
# 1388|-> 	fastpath->updateData = Stream_New(NULL, FASTPATH_MAX_PACKET_SIZE);
# 1389|   
# 1390|   	if (!fastpath->fs || !fastpath->updateData)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1388:32: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1380:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1388:32: danger: ‘fastpath’ leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
# 1386|   	fastpath->fragmentation = -1;
# 1387|   	fastpath->fs = Stream_New(NULL, FASTPATH_MAX_PACKET_SIZE);
# 1388|-> 	fastpath->updateData = Stream_New(NULL, FASTPATH_MAX_PACKET_SIZE);
# 1389|   
# 1390|   	if (!fastpath->fs || !fastpath->updateData)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1403:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1374:14: enter_function: entry to ‘fastpath_new’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1388:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1390:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1391:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1395:9: call_function: inlined call to ‘fastpath_free’ from ‘fastpath_new’
# 1401|   	if (fastpath)
# 1402|   	{
# 1403|-> 		Stream_Free(fastpath->updateData, TRUE);
# 1404|   		Stream_Free(fastpath->fs, TRUE);
# 1405|   		free(fastpath);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1403:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1374:14: enter_function: entry to ‘fastpath_new’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1380:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1390:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1391:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1395:9: call_function: inlined call to ‘fastpath_free’ from ‘fastpath_new’
# 1401|   	if (fastpath)
# 1402|   	{
# 1403|-> 		Stream_Free(fastpath->updateData, TRUE);
# 1404|   		Stream_Free(fastpath->fs, TRUE);
# 1405|   		free(fastpath);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1404:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1374:14: enter_function: entry to ‘fastpath_new’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1387:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1390:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1390:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1390:13: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1391:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1395:9: call_function: inlined call to ‘fastpath_free’ from ‘fastpath_new’
# 1402|   	{
# 1403|   		Stream_Free(fastpath->updateData, TRUE);
# 1404|-> 		Stream_Free(fastpath->fs, TRUE);
# 1405|   		free(fastpath);
# 1406|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1404:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1374:14: enter_function: entry to ‘fastpath_new’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1380:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1390:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1391:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:1395:9: call_function: inlined call to ‘fastpath_free’ from ‘fastpath_new’
# 1402|   	{
# 1403|   		Stream_Free(fastpath->updateData, TRUE);
# 1404|-> 		Stream_Free(fastpath->fs, TRUE);
# 1405|   		free(fastpath);
# 1406|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def415]
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:817:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:798:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:802:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:806:28: branch_false: following ‘false’ branch (when ‘count == 2’)...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:815:45: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:817:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  815|   				const char* scope = va_arg(ap, const char*);
#  816|   				const char* req_cnf = va_arg(ap, const char*);
#  817|-> 				rc = context->instance->GetAccessToken(context->instance, tokenType, token, count,
#  818|   				                                       scope, req_cnf);
#  819|   			}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def416]
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:831:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:798:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:802:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:822:28: branch_false: following ‘false’ branch (when ‘count == 0’)...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:831:38: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:831:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  829|   			else
#  830|   			{
#  831|-> 				rc = context->instance->GetAccessToken(context->instance, tokenType, token, count);
#  832|   			}
#  833|   			break;

Error: CPPCHECK_WARNING (CWE-664): [#def417]
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1386: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1384|   void setChannelError(rdpContext* context, UINT errorNum, WINPR_FORMAT_ARG const char* format, ...)
# 1385|   {
# 1386|-> 	va_list ap = { 0 };
# 1387|   	va_start(ap, format);
# 1388|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1490:14: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1486:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1488:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1490:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1490:14: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1488|   	if (!settings)
# 1489|   		goto fail;
# 1490|-> 	if (!freerdp_settings_set_bool(settings, FreeRDP_TransportDumpReplay, TRUE))
# 1491|   		goto fail;
# 1492|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1490:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1485:33: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1488:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1490:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1490:14: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1488|   	if (!settings)
# 1489|   		goto fail;
# 1490|-> 	if (!freerdp_settings_set_bool(settings, FreeRDP_TransportDumpReplay, TRUE))
# 1491|   		goto fail;
# 1492|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def420]
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1496:21: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1486:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1488:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1490:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1493:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1493:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1495:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1496:21: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 1494|   		goto fail;
# 1495|   	context->settings = settings;
# 1496|-> 	transport = transport_new(context);
# 1497|   	if (!transport)
# 1498|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1499:16: warning[-Wanalyzer-malloc-leak]: leak of ‘transport_new(context)’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1488:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1490:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1493:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1493:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1495:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1496:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1497:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1499:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1499:16: danger: ‘transport_new(context)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
# 1497|   	if (!transport)
# 1498|   		goto fail;
# 1499|-> 	return mcs_new(transport);
# 1500|   
# 1501|   fail:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1502:9: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1486:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1488:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1489:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1502:9: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 1500|   
# 1501|   fail:
# 1502|-> 	transport_free(transport);
# 1503|   	free(context);
# 1504|   	freerdp_settings_free(settings);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1521:23: warning[-Wanalyzer-malloc-leak]: leak of ‘test_mcs_new()’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1509:6: enter_function: entry to ‘freerdp_is_valid_mcs_create_request’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1518:23: call_function: calling ‘test_mcs_new’ from ‘freerdp_is_valid_mcs_create_request’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1518:23: return_function: returning to ‘freerdp_is_valid_mcs_create_request’ from ‘test_mcs_new’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1521:23: danger: ‘test_mcs_new()’ leaks here; was allocated at [(12)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/11)
# 1519|   	WINPR_ASSERT(mcs);
# 1520|   
# 1521|-> 	BOOL result = mcs_recv_connect_initial(mcs, s);
# 1522|   	test_mcs_free(mcs);
# 1523|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1538:23: warning[-Wanalyzer-malloc-leak]: leak of ‘test_mcs_new()’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1526:6: enter_function: entry to ‘freerdp_is_valid_mcs_create_response’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1535:23: call_function: calling ‘test_mcs_new’ from ‘freerdp_is_valid_mcs_create_response’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1535:23: return_function: returning to ‘freerdp_is_valid_mcs_create_response’ from ‘test_mcs_new’
FreeRDP-3.16.0/libfreerdp/core/freerdp.c:1538:23: danger: ‘test_mcs_new()’ leaks here; was allocated at [(12)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/11)
# 1536|   	WINPR_ASSERT(mcs);
# 1537|   
# 1538|-> 	BOOL result = mcs_recv_connect_response(mcs, s);
# 1539|   	test_mcs_free(mcs);
# 1540|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def425]
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:165:9: warning[-Wanalyzer-mismatching-deallocation]: ‘context’ should have been deallocated with ‘free’ but was deallocated with ‘http_context_free’
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:142:46: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:143:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:146:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:147:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:148:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:165:9: danger: deallocated with ‘http_context_free’ here; allocation at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  163|   	WINPR_PRAGMA_DIAG_PUSH
#  164|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  165|-> 	http_context_free(context);
#  166|   	WINPR_PRAGMA_DIAG_POP
#  167|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def426]
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:313:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:312:9: acquire_resource: ‘va_copy’ called here
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:313:26: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  311|   
#  312|   	va_copy(vat, ap);
#  313|-> 	const int size = winpr_vasprintf(&Pragma, &PragmaSize, str, ap);
#  314|   	va_end(vat);
#  315|   

Error: CPPCHECK_WARNING (CWE-664): [#def427]
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:349: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  347|   	context->Pragma = NULL;
#  348|   
#  349|-> 	va_list ap = { 0 };
#  350|   	va_start(ap, Pragma);
#  351|   	return list_append(context, Pragma, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def428]
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:351: error[va_end_missing]: va_list 'ap' was opened but not closed by va_end().
#  349|   	va_list ap = { 0 };
#  350|   	va_start(ap, Pragma);
#  351|-> 	return list_append(context, Pragma, ap);
#  352|   }
#  353|   

Error: CPPCHECK_WARNING (CWE-664): [#def429]
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:360: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  358|   		return FALSE;
#  359|   
#  360|-> 	va_list ap = { 0 };
#  361|   	va_start(ap, Pragma);
#  362|   	return list_append(context, Pragma, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def430]
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:362: error[va_end_missing]: va_list 'ap' was opened but not closed by va_end().
#  360|   	va_list ap = { 0 };
#  361|   	va_start(ap, Pragma);
#  362|-> 	return list_append(context, Pragma, ap);
#  363|   }
#  364|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def431]
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:467:22: warning[-Wanalyzer-use-after-free]: use after ‘http_context_free’ of ‘context’
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:140:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:142:46: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:143:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:146:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:165:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:165:9: call_function: calling ‘http_context_free’ from ‘http_context_new’
#  465|   	if (context)
#  466|   	{
#  467|-> 		free(context->SecWebsocketKey);
#  468|   		free(context->UserAgent);
#  469|   		free(context->X_MS_UserAgent);

Error: CPPCHECK_WARNING (CWE-664): [#def432]
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:555: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  553|   {
#  554|   	char* str = NULL;
#  555|-> 	va_list ap = { 0 };
#  556|   	int length = 0;
#  557|   	int used = 0;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def433]
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1588:9: warning[-Wanalyzer-mismatching-deallocation]: ‘response’ should have been deallocated with ‘free’ but was deallocated with ‘http_response_free’
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1557:49: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1559:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1562:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1564:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1565:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1588:9: danger: deallocated with ‘http_response_free’ here; allocation at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 1586|   	WINPR_PRAGMA_DIAG_PUSH
# 1587|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1588|-> 	http_response_free(response);
# 1589|   	WINPR_PRAGMA_DIAG_POP
# 1590|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def434]
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1598:21: warning[-Wanalyzer-use-after-free]: use after ‘http_response_free’ of ‘response’
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1555:15: enter_function: entry to ‘http_response_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1557:49: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1559:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1562:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1588:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/http.c:1588:9: call_function: calling ‘http_response_free’ from ‘http_response_new’
# 1596|   		return;
# 1597|   
# 1598|-> 	free((void*)response->lines);
# 1599|   	ListDictionary_Free(response->Authenticates);
# 1600|   	ListDictionary_Free(response->SetCookie);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:309:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, strnlen(&chunkSize, 11) + *sPacket.length + 2)’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1524:13: enter_function: entry to ‘rdg_tunnel_connect’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1528:9: call_function: calling ‘rdg_send_handshake’ from ‘rdg_tunnel_connect’
#  307|   	Stream_Write(sChunk, Stream_Buffer(sPacket), Stream_Length(sPacket));
#  308|   	Stream_Write(sChunk, "\r\n", 2);
#  309|-> 	Stream_SealLength(sChunk);
#  310|   	len = Stream_Length(sChunk);
#  311|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:345:24: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, payloadSize)’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1780:13: enter_function: entry to ‘rdg_process_control_packet’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1787:12: branch_false: following ‘false’ branch (when ‘packetLength > 7’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1793:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1793:12: branch_true: following ‘true’ branch (when ‘payloadSize != 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1795:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1795:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1797:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1800:24: branch_true: following ‘true’ branch (when ‘readCount < payloadSize’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1802:29: call_function: inlined call to ‘rdg_shall_abort’ from ‘rdg_process_control_packet’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1802:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1807:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1807:34: call_function: calling ‘rdg_socket_read’ from ‘rdg_process_control_packet’
#  343|   
#  344|   	if (encodingContext->isWebsocketTransport)
#  345|-> 		return websocket_context_read(encodingContext->context.websocket, bio, pBuffer, size);
#  346|   
#  347|   	switch (encodingContext->httpTransferEncoding)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, payloadSize)’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1780:13: enter_function: entry to ‘rdg_process_control_packet’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1787:12: branch_false: following ‘false’ branch (when ‘packetLength > 7’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1793:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1793:12: branch_true: following ‘true’ branch (when ‘payloadSize != 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1795:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1795:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1797:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1800:24: branch_true: following ‘true’ branch (when ‘readCount < payloadSize’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1802:29: call_function: inlined call to ‘rdg_shall_abort’ from ‘rdg_process_control_packet’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1802:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1807:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1807:34: call_function: calling ‘rdg_socket_read’ from ‘rdg_process_control_packet’
#  348|   	{
#  349|   		case TransferEncodingIdentity:
#  350|-> 			ERR_clear_error();
#  351|   			return BIO_read(bio, pBuffer, (int)size);
#  352|   		case TransferEncodingChunked:

Error: GCC_ANALYZER_WARNING (CWE-762): [#def438]
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2247:9: warning[-Wanalyzer-mismatching-deallocation]: ‘rdg’ should have been deallocated with ‘free’ but was deallocated with ‘rdg_free’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2156:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2159:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2159:32: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2160:12: branch_false: following ‘false’ branch (when ‘rdg’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2163:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2177:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2178:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2247:9: danger: deallocated with ‘rdg_free’ here; allocation at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2) expects deallocation with ‘free’
# 2245|   	WINPR_PRAGMA_DIAG_PUSH
# 2246|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2247|-> 	rdg_free(rdg);
# 2248|   	WINPR_PRAGMA_DIAG_POP
# 2249|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def439]
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2257:9: warning[-Wanalyzer-use-after-free]: use after ‘rdg_free’ of ‘rdg’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2154:9: enter_function: entry to ‘rdg_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2156:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2159:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2159:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2160:12: branch_false: following ‘false’ branch (when ‘rdg’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2163:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2247:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:2247:9: call_function: calling ‘rdg_free’ from ‘rdg_new’
# 2255|   		return;
# 2256|   
# 2257|-> 	freerdp_tls_free(rdg->tlsOut);
# 2258|   	freerdp_tls_free(rdg->tlsIn);
# 2259|   	http_context_free(rdg->http);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def440]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:612:9: warning[-Wanalyzer-use-after-free]: use after ‘rpc_channel_free’ of ‘channel’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:671:13: enter_function: entry to ‘rpc_virtual_connection_free’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:673:12: branch_false: following ‘false’ branch (when ‘connection’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:676:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:676:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:677:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:677:17: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:677:17: call_function: calling ‘rpc_channel_free’ from ‘rpc_virtual_connection_free’
#  610|   		return;
#  611|   
#  612|-> 	credssp_auth_free(channel->auth);
#  613|   	http_context_free(channel->http);
#  614|   	freerdp_tls_free(channel->tls);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def441]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:971:9: warning[-Wanalyzer-mismatching-deallocation]: ‘rpc’ should have been deallocated with ‘free’ but was deallocated with ‘rpc_free’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:930:24: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:932:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:935:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:941:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:942:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:971:9: danger: deallocated with ‘rpc_free’ here; allocation at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  969|   	WINPR_PRAGMA_DIAG_PUSH
#  970|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  971|-> 	rpc_free(rpc);
#  972|   	WINPR_PRAGMA_DIAG_POP
#  973|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def442]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:980:17: warning[-Wanalyzer-use-after-free]: use after ‘rpc_free’ of ‘rpc’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:923:9: enter_function: entry to ‘rpc_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:930:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:932:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:935:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:971:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc.c:971:9: call_function: calling ‘rpc_free’ from ‘rpc_new’
#  978|   	if (rpc)
#  979|   	{
#  980|-> 		rpc_client_free(rpc->client);
#  981|   		credssp_auth_free(rpc->auth);
#  982|   		rpc_virtual_connection_free(rpc->VirtualConnection);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:251:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:228:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:251:13: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  249|   
#  250|   	bind_pdu.auth_verifier.auth_type =
#  251|-> 	    rpc_auth_pkg_to_security_provider(credssp_auth_pkg_name(rpc->auth));
#  252|   	bind_pdu.auth_verifier.auth_level = RPC_C_AUTHN_LEVEL_PKT_INTEGRITY;
#  253|   	bind_pdu.auth_verifier.auth_reserved = 0x00;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:251:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bind_pdu.p_context_elem.p_cont_elem’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:217:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:251:13: danger: ‘bind_pdu.p_context_elem.p_cont_elem’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  249|   
#  250|   	bind_pdu.auth_verifier.auth_type =
#  251|-> 	    rpc_auth_pkg_to_security_provider(credssp_auth_pkg_name(rpc->auth));
#  252|   	bind_pdu.auth_verifier.auth_level = RPC_C_AUTHN_LEVEL_PKT_INTEGRITY;
#  253|   	bind_pdu.auth_verifier.auth_reserved = 0x00;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:260:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:228:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:260:18: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  258|   	bind_pdu.header.frag_length = (UINT16)offset;
#  259|   
#  260|-> 	buffer = Stream_New(NULL, bind_pdu.header.frag_length);
#  261|   
#  262|   	if (!buffer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:260:18: warning[-Wanalyzer-malloc-leak]: leak of ‘bind_pdu.p_context_elem.p_cont_elem’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:217:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:260:18: danger: ‘bind_pdu.p_context_elem.p_cont_elem’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#  258|   	bind_pdu.header.frag_length = (UINT16)offset;
#  259|   
#  260|-> 	buffer = Stream_New(NULL, bind_pdu.header.frag_length);
#  261|   
#  262|   	if (!buffer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:228:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:262:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  263|   		goto fail;
#  264|   
#  265|-> 	if (!rts_write_pdu_bind(buffer, &bind_pdu))
#  266|   		goto fail;
#  267|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(bind_pdu.header.auth_length + 124))’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:260:18: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:262:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: danger: ‘Stream_New(0, (long unsigned int)(bind_pdu.header.auth_length + 124))’ leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
#  263|   		goto fail;
#  264|   
#  265|-> 	if (!rts_write_pdu_bind(buffer, &bind_pdu))
#  266|   		goto fail;
#  267|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: warning[-Wanalyzer-malloc-leak]: leak of ‘bind_pdu.p_context_elem.p_cont_elem’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:217:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:262:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: danger: ‘bind_pdu.p_context_elem.p_cont_elem’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#  263|   		goto fail;
#  264|   
#  265|-> 	if (!rts_write_pdu_bind(buffer, &bind_pdu))
#  266|   		goto fail;
#  267|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:273:14: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_client_call_new(bind_pdu.header.call_id, 0)’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:262:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:268:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:268:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:270:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:273:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:273:14: danger: ‘rpc_client_call_new(bind_pdu.header.call_id, 0)’ leaks here; was allocated at [(17)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/16)
#  271|   		goto fail;
#  272|   
#  273|-> 	if (!ArrayList_Append(rpc->client->ClientCallList, clientCall))
#  274|   	{
#  275|   		rpc_client_call_free(clientCall);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:273:31: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_client_call_new(bind_pdu.header.call_id, 0)’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:262:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:268:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:268:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:270:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:273:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:273:31: danger: ‘rpc_client_call_new(bind_pdu.header.call_id, 0)’ leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
#  271|   		goto fail;
#  272|   
#  273|-> 	if (!ArrayList_Append(rpc->client->ClientCallList, clientCall))
#  274|   	{
#  275|   		rpc_client_call_free(clientCall);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:276:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_client_call_new(bind_pdu.header.call_id, 0)’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:262:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:265:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:268:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:268:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:270:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:273:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:273:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:275:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:276:17: danger: ‘rpc_client_call_new(bind_pdu.header.call_id, 0)’ leaks here; was allocated at [(17)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/16)
#  274|   	{
#  275|   		rpc_client_call_free(clientCall);
#  276|-> 		goto fail;
#  277|   	}
#  278|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:357:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer.pvBuffer’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:336:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:339:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:353:27: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:354:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:356:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:357:9: danger: ‘buffer.pvBuffer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  355|   		goto fail;
#  356|   	memcpy(buffer.pvBuffer, auth_data, buffer.cbBuffer);
#  357|-> 	credssp_auth_take_input_buffer(rpc->auth, &buffer);
#  358|   
#  359|   	if (credssp_auth_authenticate(rpc->auth) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:429:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)((int)auth_3_pdu.header.auth_length + 8) + offset & 65535)’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:398:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:401:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:424:18: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:426:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:429:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:429:14: danger: ‘Stream_New(0, (long unsigned int)((int)auth_3_pdu.header.auth_length + 8) + offset & 65535)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  427|   		return -1;
#  428|   
#  429|-> 	if (!rts_write_pdu_auth3(buffer, &auth_3_pdu))
#  430|   		goto fail;
#  431|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:434:12: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_client_call_new(auth_3_pdu.header.call_id, 0)’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:398:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:401:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:426:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:429:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:429:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:432:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:432:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_bind.c:434:12: danger: ‘rpc_client_call_new(auth_3_pdu.header.call_id, 0)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
#  432|   	clientCall = rpc_client_call_new(auth_3_pdu.header.call_id, 0);
#  433|   
#  434|-> 	if (ArrayList_Append(rpc->client->ClientCallList, clientCall))
#  435|   	{
#  436|   		Stream_SealLength(buffer);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def456]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1080:17: warning[-Wanalyzer-mismatching-deallocation]: ‘rpc_client_call_new(*rpc.CallId, (unsigned int)opnum)’ should have been deallocated with ‘free’ but was deallocated with ‘rpc_client_call_free’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1021:6: enter_function: entry to ‘rpc_client_write_call’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1035:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1038:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1038:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1041:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1044:12: branch_false: following ‘false’ branch (when ‘auth’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1050:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1050:12: branch_false: following ‘false’ branch (when ‘connection’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1055:12: branch_false: following ‘false’ branch (when ‘inChannel’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1058:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1060:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1063:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1073:22: call_function: calling ‘rpc_client_call_new’ from ‘rpc_client_write_call’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1073:22: return_function: returning to ‘rpc_client_write_call’ from ‘rpc_client_call_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1075:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1078:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1078:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1080:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1080:17: danger: deallocated with ‘rpc_client_call_free’ here; allocation at [(16)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/15) expects deallocation with ‘free’
# 1078|   	if (!ArrayList_Append(rpc->client->ClientCallList, clientCall))
# 1079|   	{
# 1080|-> 		rpc_client_call_free(clientCall);
# 1081|   		goto fail;
# 1082|   	}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def457]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1227:9: warning[-Wanalyzer-mismatching-deallocation]: ‘client’ should have been deallocated with ‘free’ but was deallocated with ‘rpc_client_free’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1178:12: enter_function: entry to ‘rpc_client_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1181:41: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1183:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1186:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1186:14: call_function: calling ‘rpc_client_resolve_gateway’ from ‘rpc_client_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1186:14: return_function: returning to ‘rpc_client_new’ from ‘rpc_client_resolve_gateway’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1186:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1188:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1227:9: danger: deallocated with ‘rpc_client_free’ here; allocation at [(2)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/1) expects deallocation with ‘free’
# 1225|   	WINPR_PRAGMA_DIAG_PUSH
# 1226|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1227|-> 	rpc_client_free(client);
# 1228|   	WINPR_PRAGMA_DIAG_POP
# 1229|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def458]
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1237:14: warning[-Wanalyzer-use-after-free]: use after ‘rpc_client_free’ of ‘client’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1178:12: enter_function: entry to ‘rpc_client_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1181:41: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1183:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1186:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1186:14: call_function: calling ‘rpc_client_resolve_gateway’ from ‘rpc_client_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1186:14: return_function: returning to ‘rpc_client_new’ from ‘rpc_client_resolve_gateway’
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1186:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1188:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1227:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rpc_client.c:1227:9: call_function: calling ‘rpc_client_free’ from ‘rpc_client_new’
# 1235|   		return;
# 1236|   
# 1237|-> 	free(client->host);
# 1238|   
# 1239|   	if (client->ReceiveFragment)

Error: GCC_ANALYZER_WARNING (CWE-416): [#def459]
FreeRDP-3.16.0/libfreerdp/core/gateway/rts.c:598:9: warning[-Wanalyzer-use-after-free]: use after ‘rts_context_elem_free’ of ‘ptr’
FreeRDP-3.16.0/libfreerdp/core/gateway/rts.c:689:13: enter_function: entry to ‘rts_free_context_list’
FreeRDP-3.16.0/libfreerdp/core/gateway/rts.c:693:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/rts.c:693:9: call_function: calling ‘rts_context_elem_free’ from ‘rts_free_context_list’
#  596|   	if (!ptr)
#  597|   		return;
#  598|-> 	rts_syntax_id_free(ptr->transfer_syntaxes);
#  599|   	free(ptr);
#  600|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:334:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (_wcslen(*tsg.Hostname) + 31) * 2)’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2027:13: enter_function: entry to ‘TsProxyCreateChannelWriteRequest’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2034:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2039:12: branch_false: following ‘false’ branch (when ‘count <= 4294967295’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2042:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2042:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2043:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2047:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2047:14: call_function: calling ‘TsProxyWriteTunnelContext’ from ‘TsProxyCreateChannelWriteRequest’
#  332|                                         const CONTEXT_HANDLE* tunnelContext)
#  333|   {
#  334|-> 	if (!Stream_EnsureRemainingCapacity(s, 20))
#  335|   		return FALSE;
#  336|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def461]
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:334:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (_wcslen(*tsg.MachineName) + 513) * 2)’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1732:13: enter_function: entry to ‘TsProxyAuthorizeTunnelWriteRequest’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1740:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1744:12: branch_false: following ‘false’ branch (when ‘count <= 4294967295’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1747:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1749:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1751:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1754:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1754:14: call_function: calling ‘TsProxyWriteTunnelContext’ from ‘TsProxyAuthorizeTunnelWriteRequest’
#  332|                                         const CONTEXT_HANDLE* tunnelContext)
#  333|   {
#  334|-> 	if (!Stream_EnsureRemainingCapacity(s, 20))
#  335|   		return FALSE;
#  336|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:334:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 20)’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2162:13: enter_function: entry to ‘TsProxyCloseTunnelWriteRequest’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2172:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2174:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2178:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2178:14: call_function: calling ‘TsProxyWriteTunnelContext’ from ‘TsProxyCloseTunnelWriteRequest’
#  332|                                         const CONTEXT_HANDLE* tunnelContext)
#  333|   {
#  334|-> 	if (!Stream_EnsureRemainingCapacity(s, 20))
#  335|   		return FALSE;
#  336|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:334:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 40)’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1889:13: enter_function: entry to ‘TsProxyMakeTunnelCallWriteRequest’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1895:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1900:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1902:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1906:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:1907:14: call_function: calling ‘TsProxyWriteTunnelContext’ from ‘TsProxyMakeTunnelCallWriteRequest’
#  332|                                         const CONTEXT_HANDLE* tunnelContext)
#  333|   {
#  334|-> 	if (!Stream_EnsureRemainingCapacity(s, 20))
#  335|   		return FALSE;
#  336|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:334:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, length)’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2849:12: enter_function: entry to ‘tsg_write’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2853:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2856:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2862:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2862:18: call_function: calling ‘TsProxySendToServer’ from ‘tsg_write’
#  332|                                         const CONTEXT_HANDLE* tunnelContext)
#  333|   {
#  334|-> 	if (!Stream_EnsureRemainingCapacity(s, 20))
#  335|   		return FALSE;
#  336|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def465]
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:337:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tunnelContext’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2336:6: enter_function: entry to ‘tsg_recv_pdu’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2538:30: call_function: calling ‘TsProxyCloseChannelReadResponse’ from ‘tsg_recv_pdu’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2538:30: return_function: returning to ‘tsg_recv_pdu’ from ‘TsProxyCloseChannelReadResponse’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2538:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2544:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2544:30: call_function: calling ‘tsg_transition_to_state’ from ‘tsg_recv_pdu’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2544:30: return_function: returning to ‘tsg_recv_pdu’ from ‘tsg_transition_to_state’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2547:30: call_function: calling ‘TsProxyCloseChannelWriteRequest’ from ‘tsg_recv_pdu’
#  335|   		return FALSE;
#  336|   
#  337|-> 	Stream_Write_UINT32(s, tunnelContext->ContextType); /* ContextType (4 bytes) */
#  338|   	Stream_Write(s, &tunnelContext->ContextUuid,
#  339|   	             sizeof(tunnelContext->ContextUuid)); /* ContextUuid (16 bytes) */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:351:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 108)’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2284:6: enter_function: entry to ‘tsg_proxy_begin’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2292:14: call_function: calling ‘TsProxyCreateTunnelWriteRequest’ from ‘tsg_proxy_begin’
#  349|   	if (!s)
#  350|   		return FALSE;
#  351|-> 	if (!Stream_EnsureRemainingCapacity(s, 4))
#  352|   		return FALSE;
#  353|   

Error: COMPILER_WARNING (CWE-563): [#def467]
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c: scope_hint: In function ‘tsg_ndr_read_packet_response’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:767:22: warning[-Wunused-variable]: unused variable ‘MaxOffsetValue’
#  767 |         const UINT32 MaxOffsetValue = Stream_Get_UINT32(s); /* (4 bytes) */
#      |                      ^~~~~~~~~~~~~~
#  765|   
#  766|   	const UINT32 MaxSizeValue = Stream_Get_UINT32(s);   /* (4 bytes) */
#  767|-> 	const UINT32 MaxOffsetValue = Stream_Get_UINT32(s); /* (4 bytes) */
#  768|   
#  769|   	if (MaxSizeValue != response->responseDataLen)

Error: CPPCHECK_WARNING (CWE-664): [#def468]
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:795: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  793|   {
#  794|   	int rc = 0;
#  795|-> 	va_list ap = { 0 };
#  796|   	if (!buffer || !len || !fmt)
#  797|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2876:20: warning[-Wanalyzer-malloc-leak]: leak of ‘tsg’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2872:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2874:12: branch_false: following ‘false’ branch (when ‘tsg’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2876:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2876:20: danger: ‘tsg’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 2874|   	if (!tsg)
# 2875|   		return NULL;
# 2876|-> 	tsg->log = WLog_Get(TAG);
# 2877|   	tsg->transport = transport;
# 2878|   	tsg->rpc = rpc_new(tsg->transport);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2878:20: warning[-Wanalyzer-malloc-leak]: leak of ‘tsg’
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2872:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2874:12: branch_false: following ‘false’ branch (when ‘tsg’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2876:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/tsg.c:2878:20: danger: ‘tsg’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 2876|   	tsg->log = WLog_Get(TAG);
# 2877|   	tsg->transport = transport;
# 2878|-> 	tsg->rpc = rpc_new(tsg->transport);
# 2879|   
# 2880|   	if (!tsg->rpc)

Error: GCC_ANALYZER_WARNING (CWE-835): [#def471]
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:365:25: warning[-Wanalyzer-infinite-loop]: infinite loop
#  363|   	while (TRUE)
#  364|   	{
#  365|-> 		switch (encodingContext->state)
#  366|   		{
#  367|   			case WebsocketStateOpcodeAndFin:

Error: GCC_ANALYZER_WARNING (CWE-762): [#def472]
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:478:9: warning[-Wanalyzer-mismatching-deallocation]: ‘context’ should have been deallocated with ‘free’ but was deallocated with ‘websocket_context_free’
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:465:38: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:466:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:469:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:470:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:471:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:478:9: danger: deallocated with ‘websocket_context_free’ here; allocation at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  476|   	return context;
#  477|   fail:
#  478|-> 	websocket_context_free(context);
#  479|   	return NULL;
#  480|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def473]
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:487:9: warning[-Wanalyzer-use-after-free]: use after ‘websocket_context_free’ of ‘context’
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:463:20: enter_function: entry to ‘websocket_context_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:465:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:466:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:469:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:478:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/websocket.c:478:9: call_function: calling ‘websocket_context_free’ from ‘websocket_context_new’
#  485|   		return;
#  486|   
#  487|-> 	Stream_Free(context->responseStreamBuffer, TRUE);
#  488|   	free(context);
#  489|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def474]
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:836:9: warning[-Wanalyzer-mismatching-deallocation]: ‘wst’ should have been deallocated with ‘free’ but was deallocated with ‘wst_free’
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:777:9: enter_function: entry to ‘wst_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:779:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:782:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:782:32: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:783:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:786:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:792:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:792:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:792:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:793:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:836:9: danger: deallocated with ‘wst_free’ here; allocation at [(4)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘free’
#  834|   	WINPR_PRAGMA_DIAG_PUSH
#  835|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  836|-> 	wst_free(wst);
#  837|   	WINPR_PRAGMA_DIAG_POP
#  838|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def475]
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:846:9: warning[-Wanalyzer-use-after-free]: use after ‘wst_free’ of ‘wst’
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:777:9: enter_function: entry to ‘wst_new’
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:779:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:782:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:782:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:783:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:786:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:792:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:793:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:836:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/gateway/wst.c:836:9: call_function: calling ‘wst_free’ from ‘wst_new’
#  844|   		return;
#  845|   
#  846|-> 	freerdp_tls_free(wst->tls);
#  847|   	http_context_free(wst->http);
#  848|   	credssp_auth_free(wst->auth);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
FreeRDP-3.16.0/libfreerdp/core/graphics.c:148:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/graphics.c:119:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/graphics.c:124:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/graphics.c:127:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/graphics.c:129:12: branch_false: following ‘false’ branch (when ‘glyph’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/graphics.c:132:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/graphics.c:138:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/graphics.c:140:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/graphics.c:146:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/graphics.c:148:14: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  146|   	CopyMemory(glyph->aj, aj, cb);
#  147|   
#  148|-> 	if (!glyph->New(context, glyph))
#  149|   	{
#  150|   		free(glyph->aj);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
FreeRDP-3.16.0/libfreerdp/core/graphics.c:148:14: warning[-Wanalyzer-malloc-leak]: leak of ‘glyph’
FreeRDP-3.16.0/libfreerdp/core/graphics.c:119:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/graphics.c:124:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/graphics.c:127:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/graphics.c:127:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/graphics.c:129:12: branch_false: following ‘false’ branch (when ‘glyph’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/graphics.c:132:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/graphics.c:140:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/graphics.c:146:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/graphics.c:148:14: danger: ‘glyph’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  146|   	CopyMemory(glyph->aj, aj, cb);
#  147|   
#  148|-> 	if (!glyph->New(context, glyph))
#  149|   	{
#  150|   		free(glyph->aj);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
FreeRDP-3.16.0/libfreerdp/core/info.c:135:25: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
FreeRDP-3.16.0/libfreerdp/core/info.c:743:13: enter_function: entry to ‘rdp_write_info_packet’
FreeRDP-3.16.0/libfreerdp/core/info.c:813:43: call_function: calling ‘rdp_info_package_flags_description’ from ‘rdp_write_info_packet’
#  133|   		if (cur->flag & flags)
#  134|   		{
#  135|-> 			winpr_str_append(cur->label, result, maximum_size, "|");
#  136|   		}
#  137|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
FreeRDP-3.16.0/libfreerdp/core/input.c:1070:24: warning[-Wanalyzer-malloc-leak]: leak of ‘input’
FreeRDP-3.16.0/libfreerdp/core/input.c:1062:58: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/input.c:1066:12: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/input.c:1069:33: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/input.c:1070:24: danger: ‘input’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1068|   
# 1069|   	input->common.context = rdp->context;
# 1070|-> 	input->queue = MessageQueue_New(&cb);
# 1071|   
# 1072|   	if (!input->queue)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
FreeRDP-3.16.0/libfreerdp/core/license.c:446:31: warning[-Wanalyzer-malloc-leak]: leak of ‘license_new_binary_blob(1)’
FreeRDP-3.16.0/libfreerdp/core/license.c:2137:6: enter_function: entry to ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.16.0/libfreerdp/core/license.c:2155:33: call_function: calling ‘license_new_binary_blob’ from ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.16.0/libfreerdp/core/license.c:2155:33: return_function: returning to ‘license_read_new_or_upgrade_license_packet’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2156:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2160:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2160:14: call_function: calling ‘license_read_encrypted_blob’ from ‘license_read_new_or_upgrade_license_packet’
#  444|   static BOOL license_check_stream_length(wLog* log, wStream* s, SSIZE_T expect, const char* where)
#  445|   {
#  446|-> 	const size_t remain = Stream_GetRemainingLength(s);
#  447|   
#  448|   	WINPR_ASSERT(where);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
FreeRDP-3.16.0/libfreerdp/core/license.c:457:17: warning[-Wanalyzer-malloc-leak]: leak of ‘license_new_binary_blob(1)’
FreeRDP-3.16.0/libfreerdp/core/license.c:2137:6: enter_function: entry to ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.16.0/libfreerdp/core/license.c:2155:33: call_function: calling ‘license_new_binary_blob’ from ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.16.0/libfreerdp/core/license.c:2155:33: return_function: returning to ‘license_read_new_or_upgrade_license_packet’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2156:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2160:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2160:14: call_function: calling ‘license_read_encrypted_blob’ from ‘license_read_new_or_upgrade_license_packet’
#  455|   	if (remain < (size_t)expect)
#  456|   	{
#  457|-> 		WLog_Print(log, WLOG_WARN, "short %s, expected %" PRIdz " bytes, got %" PRIuz, where,
#  458|   		           expect, remain);
#  459|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
FreeRDP-3.16.0/libfreerdp/core/license.c:490:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/license.c:2429:6: enter_function: entry to ‘license_answer_license_request’
FreeRDP-3.16.0/libfreerdp/core/license.c:2442:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2444:44: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2443:32: call_function: calling ‘loadCalFile’ from ‘license_answer_license_request’
#  488|   	if (!(sha1 = winpr_Digest_New()))
#  489|   		goto out;
#  490|-> 	if (!winpr_Digest_Init(sha1, WINPR_MD_SHA1))
#  491|   		goto out;
#  492|   	if (!winpr_Digest_Update(sha1, (const BYTE*)hostname, strlen(hostname)))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
FreeRDP-3.16.0/libfreerdp/core/license.c:1040:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/license.c:2735:13: enter_function: entry to ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2740:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2742:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2752:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2754:38: call_function: inlined call to ‘license_new_product_info’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2754:12: branch_false: following ‘false’ branch (when ‘productInfo’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2774:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2783:36: call_function: inlined call to ‘license_new_scope_list’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2783:12: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2786:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2786:9: call_function: calling ‘license_generate_randoms’ from ‘license_new’
# 1038|   	ZeroMemory(license->ClientRandom, sizeof(license->ClientRandom)); /* ClientRandom */
# 1039|   #else
# 1040|-> 	winpr_RAND(license->ClientRandom, sizeof(license->ClientRandom));       /* ClientRandom */
# 1041|   #endif
# 1042|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
FreeRDP-3.16.0/libfreerdp/core/license.c:1040:9: warning[-Wanalyzer-malloc-leak]: leak of ‘license’
FreeRDP-3.16.0/libfreerdp/core/license.c:2735:13: enter_function: entry to ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2739:44: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/license.c:2740:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2742:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2752:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2754:38: call_function: inlined call to ‘license_new_product_info’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2754:12: branch_false: following ‘false’ branch (when ‘productInfo’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2774:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2783:36: call_function: inlined call to ‘license_new_scope_list’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2783:12: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2786:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2786:9: call_function: calling ‘license_generate_randoms’ from ‘license_new’
# 1038|   	ZeroMemory(license->ClientRandom, sizeof(license->ClientRandom)); /* ClientRandom */
# 1039|   #else
# 1040|-> 	winpr_RAND(license->ClientRandom, sizeof(license->ClientRandom));       /* ClientRandom */
# 1041|   #endif
# 1042|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
FreeRDP-3.16.0/libfreerdp/core/license.c:1040:9: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.16.0/libfreerdp/core/license.c:2735:13: enter_function: entry to ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2740:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2742:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2752:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2754:38: call_function: inlined call to ‘license_new_product_info’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2754:12: branch_false: following ‘false’ branch (when ‘productInfo’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2774:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2783:36: call_function: inlined call to ‘license_new_scope_list’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2783:12: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2786:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2786:9: call_function: calling ‘license_generate_randoms’ from ‘license_new’
# 1038|   	ZeroMemory(license->ClientRandom, sizeof(license->ClientRandom)); /* ClientRandom */
# 1039|   #else
# 1040|-> 	winpr_RAND(license->ClientRandom, sizeof(license->ClientRandom));       /* ClientRandom */
# 1041|   #endif
# 1042|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
FreeRDP-3.16.0/libfreerdp/core/license.c:1040:9: warning[-Wanalyzer-malloc-leak]: leak of ‘productInfo’
FreeRDP-3.16.0/libfreerdp/core/license.c:2735:13: enter_function: entry to ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2740:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2742:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2752:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2754:38: call_function: inlined call to ‘license_new_product_info’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2754:12: branch_false: following ‘false’ branch (when ‘productInfo’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:36: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2756:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:38: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2758:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:42: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2760:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2762:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:41: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2764:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2766:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2768:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:52: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2770:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:53: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2772:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2775:19: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2774:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:51: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2777:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:46: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2779:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:47: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2781:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2783:36: call_function: inlined call to ‘license_new_scope_list’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2783:12: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2786:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2786:9: call_function: calling ‘license_generate_randoms’ from ‘license_new’
# 1038|   	ZeroMemory(license->ClientRandom, sizeof(license->ClientRandom)); /* ClientRandom */
# 1039|   #else
# 1040|-> 	winpr_RAND(license->ClientRandom, sizeof(license->ClientRandom));       /* ClientRandom */
# 1041|   #endif
# 1042|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
FreeRDP-3.16.0/libfreerdp/core/license.c:1255:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_RC4_New_Allow_FIPS(&*license.LicensingEncryptionKey, 16)’
FreeRDP-3.16.0/libfreerdp/core/license.c:1298:13: enter_function: entry to ‘license_decrypt_and_check_MAC’
FreeRDP-3.16.0/libfreerdp/core/license.c:1306:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:1312:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:1312:14: call_function: calling ‘license_rc4_with_licenseKey’ from ‘license_decrypt_and_check_MAC’
# 1253|   	target->length = (UINT16)len;
# 1254|   
# 1255|-> 	if (!winpr_RC4_Update(rc4, len, input, buffer))
# 1256|   		goto error_buffer;
# 1257|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
FreeRDP-3.16.0/libfreerdp/core/license.c:1262:9: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_RC4_New_Allow_FIPS(&*license.LicensingEncryptionKey, 16)’
FreeRDP-3.16.0/libfreerdp/core/license.c:1298:13: enter_function: entry to ‘license_decrypt_and_check_MAC’
FreeRDP-3.16.0/libfreerdp/core/license.c:1306:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:1312:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:1312:14: call_function: calling ‘license_rc4_with_licenseKey’ from ‘license_decrypt_and_check_MAC’
# 1260|   
# 1261|   error_buffer:
# 1262|-> 	WLog_Print(license->log, WLOG_ERROR, "Failed to create/update RC4: len=%" PRIuz ", buffer=%p",
# 1263|   	           len, buffer);
# 1264|   	winpr_RC4_Free(rc4);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
FreeRDP-3.16.0/libfreerdp/core/license.c:1264:9: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_RC4_New_Allow_FIPS(&*license.LicensingEncryptionKey, 16)’
FreeRDP-3.16.0/libfreerdp/core/license.c:1298:13: enter_function: entry to ‘license_decrypt_and_check_MAC’
FreeRDP-3.16.0/libfreerdp/core/license.c:1306:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:1312:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:1312:14: call_function: calling ‘license_rc4_with_licenseKey’ from ‘license_decrypt_and_check_MAC’
# 1262|   	WLog_Print(license->log, WLOG_ERROR, "Failed to create/update RC4: len=%" PRIuz ", buffer=%p",
# 1263|   	           len, buffer);
# 1264|-> 	winpr_RC4_Free(rc4);
# 1265|   	return FALSE;
# 1266|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
FreeRDP-3.16.0/libfreerdp/core/license.c:1501:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*blob.data’
FreeRDP-3.16.0/libfreerdp/core/license.c:2693:6: enter_function: entry to ‘license_read_client_platform_challenge_response’
FreeRDP-3.16.0/libfreerdp/core/license.c:2697:14: call_function: calling ‘license_read_binary_blob’ from ‘license_read_client_platform_challenge_response’
# 1499|   	blob->data = NULL;
# 1500|   	if (blob->length > 0)
# 1501|-> 		blob->data = malloc(blob->length);
# 1502|   	if (!blob->data)
# 1503|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
FreeRDP-3.16.0/libfreerdp/core/license.c:2111:17: warning[-Wanalyzer-malloc-leak]: leak of ‘license_new_binary_blob(1)’
FreeRDP-3.16.0/libfreerdp/core/license.c:2137:6: enter_function: entry to ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.16.0/libfreerdp/core/license.c:2155:33: call_function: calling ‘license_new_binary_blob’ from ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.16.0/libfreerdp/core/license.c:2155:33: return_function: returning to ‘license_read_new_or_upgrade_license_packet’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2156:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2160:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2160:14: call_function: calling ‘license_read_encrypted_blob’ from ‘license_read_new_or_upgrade_license_packet’
# 2109|   	if (wBlobType != BB_ENCRYPTED_DATA_BLOB)
# 2110|   	{
# 2111|-> 		WLog_Print(
# 2112|   		    license->log, WLOG_WARN,
# 2113|   		    "expecting BB_ENCRYPTED_DATA_BLOB blob, probably a windows 2003 server, continuing...");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
FreeRDP-3.16.0/libfreerdp/core/license.c:2119:14: warning[-Wanalyzer-malloc-leak]: leak of ‘license_new_binary_blob(1)’
FreeRDP-3.16.0/libfreerdp/core/license.c:2137:6: enter_function: entry to ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.16.0/libfreerdp/core/license.c:2155:33: call_function: calling ‘license_new_binary_blob’ from ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.16.0/libfreerdp/core/license.c:2155:33: return_function: returning to ‘license_read_new_or_upgrade_license_packet’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2156:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2160:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2160:14: call_function: calling ‘license_read_encrypted_blob’ from ‘license_read_new_or_upgrade_license_packet’
# 2117|   
# 2118|   	BYTE* encryptedData = Stream_Pointer(s);
# 2119|-> 	if (!Stream_SafeSeek(s, wBlobLen))
# 2120|   	{
# 2121|   		WLog_Print(license->log, WLOG_WARN,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
FreeRDP-3.16.0/libfreerdp/core/license.c:2121:17: warning[-Wanalyzer-malloc-leak]: leak of ‘license_new_binary_blob(1)’
FreeRDP-3.16.0/libfreerdp/core/license.c:2137:6: enter_function: entry to ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.16.0/libfreerdp/core/license.c:2155:33: call_function: calling ‘license_new_binary_blob’ from ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.16.0/libfreerdp/core/license.c:2155:33: return_function: returning to ‘license_read_new_or_upgrade_license_packet’ from ‘license_new_binary_blob’
FreeRDP-3.16.0/libfreerdp/core/license.c:2156:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2160:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2160:14: call_function: calling ‘license_read_encrypted_blob’ from ‘license_read_new_or_upgrade_license_packet’
# 2119|   	if (!Stream_SafeSeek(s, wBlobLen))
# 2120|   	{
# 2121|-> 		WLog_Print(license->log, WLOG_WARN,
# 2122|   		           "short license encrypted blob::length, expected %" PRIu16 " bytes, got %" PRIuz,
# 2123|   		           wBlobLen, Stream_GetRemainingLength(s));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def494]
FreeRDP-3.16.0/libfreerdp/core/license.c:2556:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)((int)*license_25(D)->PlatformChallenge.length + 8))’
FreeRDP-3.16.0/libfreerdp/core/license.c:2530:6: enter_function: entry to ‘license_send_platform_challenge_response’
FreeRDP-3.16.0/libfreerdp/core/license.c:2547:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/license.c:2548:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2550:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘license_send_platform_challenge_response’
FreeRDP-3.16.0/libfreerdp/core/license.c:2556:9: danger: ‘Stream_New(0, (long unsigned int)((int)*license_25(D)->PlatformChallenge.length + 8))’ leaks here; was allocated at [(2)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/1)
# 2554|   	Stream_Write(challengeRespData, license->PlatformChallenge->data,
# 2555|   	             license->PlatformChallenge->length); /* pbChallenge */
# 2556|-> 	Stream_SealLength(challengeRespData);
# 2557|   
# 2558|   	/* compute MAC of PLATFORM_CHALLENGE_RESPONSE_DATA + HWID */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
FreeRDP-3.16.0/libfreerdp/core/license.c:2570:18: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.16.0/libfreerdp/core/license.c:2530:6: enter_function: entry to ‘license_send_platform_challenge_response’
FreeRDP-3.16.0/libfreerdp/core/license.c:2548:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2550:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘license_send_platform_challenge_response’
FreeRDP-3.16.0/libfreerdp/core/license.c:2560:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/license.c:2561:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2567:9: call_function: inlined call to ‘Stream_Buffer’ from ‘license_send_platform_challenge_response’
FreeRDP-3.16.0/libfreerdp/core/license.c:2570:18: danger: ‘buffer’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
# 2568|   	CopyMemory(&buffer[Stream_Length(challengeRespData)], license->HardwareId,
# 2569|   	           sizeof(license->HardwareId));
# 2570|-> 	status = security_mac_data(license->MacSaltKey, sizeof(license->MacSaltKey), buffer, length,
# 2571|   	                           license->MACData, sizeof(license->MACData));
# 2572|   	free(buffer);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
FreeRDP-3.16.0/libfreerdp/core/license.c:2742:24: warning[-Wanalyzer-malloc-leak]: leak of ‘license’
FreeRDP-3.16.0/libfreerdp/core/license.c:2739:44: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/license.c:2740:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2742:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2742:24: danger: ‘license’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
# 2740|   	if (!license)
# 2741|   		return NULL;
# 2742|-> 	license->log = WLog_Get(LICENSE_TAG);
# 2743|   	WINPR_ASSERT(license->log);
# 2744|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
FreeRDP-3.16.0/libfreerdp/core/license.c:2752:38: warning[-Wanalyzer-malloc-leak]: leak of ‘license’
FreeRDP-3.16.0/libfreerdp/core/license.c:2739:44: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/license.c:2740:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2742:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2752:38: danger: ‘license’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
# 2750|   
# 2751|   	license_set_state(license, LICENSE_STATE_INITIAL);
# 2752|-> 	if (!(license->certificate = freerdp_certificate_new()))
# 2753|   		goto out_error;
# 2754|   	if (!(license->ProductInfo = license_new_product_info()))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
FreeRDP-3.16.0/libfreerdp/core/license.c:2793:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/license.c:2735:13: enter_function: entry to ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2740:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2742:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2752:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/license.c:2752:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2754:38: call_function: inlined call to ‘license_new_product_info’ from ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2754:12: branch_true: following ‘true’ branch (when ‘productInfo’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2755:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2793:9: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/3)
# 2791|   	WINPR_PRAGMA_DIAG_PUSH
# 2792|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2793|-> 	license_free(license);
# 2794|   	WINPR_PRAGMA_DIAG_POP
# 2795|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def499]
FreeRDP-3.16.0/libfreerdp/core/license.c:2793:9: warning[-Wanalyzer-mismatching-deallocation]: ‘license’ should have been deallocated with ‘free’ but was deallocated with ‘license_free’
FreeRDP-3.16.0/libfreerdp/core/license.c:2739:44: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/license.c:2740:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2742:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2752:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/license.c:2753:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2793:9: danger: deallocated with ‘license_free’ here; allocation at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 2791|   	WINPR_PRAGMA_DIAG_PUSH
# 2792|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2793|-> 	license_free(license);
# 2794|   	WINPR_PRAGMA_DIAG_POP
# 2795|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def500]
FreeRDP-3.16.0/libfreerdp/core/license.c:2807:17: warning[-Wanalyzer-use-after-free]: use after ‘license_free’ of ‘license’
FreeRDP-3.16.0/libfreerdp/core/license.c:2735:13: enter_function: entry to ‘license_new’
FreeRDP-3.16.0/libfreerdp/core/license.c:2739:44: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/license.c:2740:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/license.c:2742:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/license.c:2793:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/license.c:2793:9: call_function: calling ‘license_free’ from ‘license_new’
# 2805|   	if (license)
# 2806|   	{
# 2807|-> 		freerdp_certificate_free(license->certificate);
# 2808|   		license_free_product_info(license->ProductInfo);
# 2809|   		license_free_binary_blob(license->ErrorInfo);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def501]
FreeRDP-3.16.0/libfreerdp/core/listener.c:68:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/listener.c:131:13: enter_function: entry to ‘freerdp_listener_open’
FreeRDP-3.16.0/libfreerdp/core/listener.c:148:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:150:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:151:24: call_function: calling ‘freerdp_listener_open_from_vsock’ from ‘freerdp_listener_open’
#   66|   		return FALSE;
#   67|   	}
#   68|-> 	const int flags = fcntl(sockfd, F_GETFL, 0);
#   69|   	if (fcntl(sockfd, F_SETFL, flags | O_NONBLOCK) == -1)
#   70|   	{

Error: GCC_ANALYZER_WARNING (CWE-775): [#def502]
FreeRDP-3.16.0/libfreerdp/core/listener.c:97:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/listener.c:131:13: enter_function: entry to ‘freerdp_listener_open’
FreeRDP-3.16.0/libfreerdp/core/listener.c:148:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:150:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:151:24: call_function: calling ‘freerdp_listener_open_from_vsock’ from ‘freerdp_listener_open’
#   95|   	{
#   96|   		char ebuffer[256] = { 0 };
#   97|-> 		WLog_ERR(TAG, "Error binding vsock at cid %d port %d: %s", addr.svm_cid, port,
#   98|   		         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
#   99|   		close(sockfd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def503]
FreeRDP-3.16.0/libfreerdp/core/listener.c:99:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/listener.c:131:13: enter_function: entry to ‘freerdp_listener_open’
FreeRDP-3.16.0/libfreerdp/core/listener.c:148:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:150:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:151:24: call_function: calling ‘freerdp_listener_open_from_vsock’ from ‘freerdp_listener_open’
#   97|   		WLog_ERR(TAG, "Error binding vsock at cid %d port %d: %s", addr.svm_cid, port,
#   98|   		         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
#   99|-> 		close(sockfd);
#  100|   		return FALSE;
#  101|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def504]
FreeRDP-3.16.0/libfreerdp/core/listener.c:106:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/listener.c:131:13: enter_function: entry to ‘freerdp_listener_open’
FreeRDP-3.16.0/libfreerdp/core/listener.c:148:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:150:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:151:24: call_function: calling ‘freerdp_listener_open_from_vsock’ from ‘freerdp_listener_open’
#  104|   	{
#  105|   		char ebuffer[256] = { 0 };
#  106|-> 		WLog_ERR(TAG, "Error listening to socket at cid %d port %d: %s", addr.svm_cid, port,
#  107|   		         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
#  108|   		close(sockfd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def505]
FreeRDP-3.16.0/libfreerdp/core/listener.c:108:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/listener.c:131:13: enter_function: entry to ‘freerdp_listener_open’
FreeRDP-3.16.0/libfreerdp/core/listener.c:148:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:150:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:151:24: call_function: calling ‘freerdp_listener_open_from_vsock’ from ‘freerdp_listener_open’
#  106|   		WLog_ERR(TAG, "Error listening to socket at cid %d port %d: %s", addr.svm_cid, port,
#  107|   		         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
#  108|-> 		close(sockfd);
#  109|   		return FALSE;
#  110|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def506]
FreeRDP-3.16.0/libfreerdp/core/listener.c:112:51: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/listener.c:131:13: enter_function: entry to ‘freerdp_listener_open’
FreeRDP-3.16.0/libfreerdp/core/listener.c:148:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:150:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:151:24: call_function: calling ‘freerdp_listener_open_from_vsock’ from ‘freerdp_listener_open’
#  110|   	}
#  111|   	listener->sockfds[listener->num_sockfds] = sockfd;
#  112|-> 	listener->events[listener->num_sockfds] = WSACreateEvent();
#  113|   
#  114|   	if (!listener->events[listener->num_sockfds])

Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
FreeRDP-3.16.0/libfreerdp/core/listener.c:114:31: warning[-Wanalyzer-malloc-leak]: leak of ‘WSACreateEvent()’
FreeRDP-3.16.0/libfreerdp/core/listener.c:131:13: enter_function: entry to ‘freerdp_listener_open’
FreeRDP-3.16.0/libfreerdp/core/listener.c:148:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:150:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:151:24: call_function: calling ‘freerdp_listener_open_from_vsock’ from ‘freerdp_listener_open’
#  112|   	listener->events[listener->num_sockfds] = WSACreateEvent();
#  113|   
#  114|-> 	if (!listener->events[listener->num_sockfds])
#  115|   	{
#  116|   		listener->num_sockfds = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
FreeRDP-3.16.0/libfreerdp/core/listener.c:224:39: warning[-Wanalyzer-malloc-leak]: leak of ‘WSACreateEvent()’
FreeRDP-3.16.0/libfreerdp/core/listener.c:148:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:154:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:156:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:159:41: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:161:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:170:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:172:20: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.16.0/libfreerdp/core/listener.c:178:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:205:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:211:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:213:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:221:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:222:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/listener.c:224:39: danger: ‘WSACreateEvent()’ leaks here; was allocated at [(16)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/15)
#  222|   		listener->events[listener->num_sockfds] = WSACreateEvent();
#  223|   
#  224|-> 		if (!listener->events[listener->num_sockfds])
#  225|   		{
#  226|   			listener->num_sockfds = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def509]
FreeRDP-3.16.0/libfreerdp/core/listener.c:263:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/listener.c:249:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:255:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:255:18: acquire_resource: stream socket created here
FreeRDP-3.16.0/libfreerdp/core/listener.c:257:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.16.0/libfreerdp/core/listener.c:263:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:263:18: danger: ‘sockfd’ leaks here
#  261|   	}
#  262|   
#  263|-> 	int rc = fcntl(sockfd, F_SETFL, O_NONBLOCK);
#  264|   	if (rc != 0)
#  265|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
FreeRDP-3.16.0/libfreerdp/core/listener.c:303:9: warning[-Wanalyzer-malloc-leak]: leak of ‘((rdpListener)*(void *)*instance.listener).events[<unknown>]’
FreeRDP-3.16.0/libfreerdp/core/listener.c:249:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:255:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:257:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.16.0/libfreerdp/core/listener.c:263:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:264:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:271:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:276:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:283:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:285:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:292:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:292:18: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/listener.c:294:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:301:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:303:9: danger: ‘((rdpListener)*(void *)*instance.listener).events[<unknown>]’ leaks here; was allocated at [(13)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/12)
#  301|   	listener->sockfds[listener->num_sockfds] = sockfd;
#  302|   	listener->events[listener->num_sockfds] = hevent;
#  303|-> 	listener->num_sockfds++;
#  304|   	WLog_INFO(TAG, "Listening on socket %s.", addr.sun_path);
#  305|   	return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
FreeRDP-3.16.0/libfreerdp/core/listener.c:328:31: warning[-Wanalyzer-malloc-leak]: leak of ‘WSACreateEvent()’
FreeRDP-3.16.0/libfreerdp/core/listener.c:316:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:322:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:322:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:325:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:326:51: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/listener.c:328:31: danger: ‘WSACreateEvent()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
#  326|   	listener->events[listener->num_sockfds] = WSACreateEvent();
#  327|   
#  328|-> 	if (!listener->events[listener->num_sockfds])
#  329|   		return FALSE;
#  330|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
FreeRDP-3.16.0/libfreerdp/core/listener.c:462:36: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_peer_new(peer_sockfd)’
FreeRDP-3.16.0/libfreerdp/core/listener.c:443:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:449:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:449:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/listener.c:450:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:456:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:456:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:462:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:462:36: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:462:36: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:462:36: danger: ‘freerdp_peer_new(peer_sockfd)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#  460|   	}
#  461|   
#  462|-> 	const BOOL peer_accepted = IFCALLRESULT(FALSE, instance->PeerAccepted, instance, client);
#  463|   	if (!peer_accepted)
#  464|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:385:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 15)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1279:6: enter_function: entry to ‘mcs_send_channel_join_confirm’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1285:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1288:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1288:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1290:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1296:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1296:14: call_function: calling ‘mcs_write_domain_mcspdu_header’ from ‘mcs_send_channel_join_confirm’
#  383|   	WINPR_ASSERT((domainMCSPDU & ~0x3F) == 0);
#  384|   
#  385|-> 	if (!tpkt_write_header(s, length))
#  386|   		return FALSE;
#  387|   	if (!tpdu_write_data(s))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:385:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 9)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1369:6: enter_function: entry to ‘mcs_send_disconnect_provider_ultimatum’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1377:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1379:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1382:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1382:14: call_function: calling ‘mcs_write_domain_mcspdu_header’ from ‘mcs_send_disconnect_provider_ultimatum’
#  383|   	WINPR_ASSERT((domainMCSPDU & ~0x3F) == 0);
#  384|   
#  385|-> 	if (!tpkt_write_header(s, length))
#  386|   		return FALSE;
#  387|   	if (!tpdu_write_data(s))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:456:16: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:941:6: enter_function: entry to ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:951:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:954:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:965:44: call_function: inlined call to ‘Stream_Capacity’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:975:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:976:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:978:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:984:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:987:14: call_function: calling ‘mcs_write_connect_response’ from ‘mcs_send_connect_response’
#  454|   		return FALSE;
#  455|   
#  456|-> 	tmps = Stream_New(NULL, Stream_Capacity(s));
#  457|   
#  458|   	if (!tmps)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:460:17: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:941:6: enter_function: entry to ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:951:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:954:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:965:44: call_function: inlined call to ‘Stream_Capacity’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:975:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:976:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:978:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:984:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:987:14: call_function: calling ‘mcs_write_connect_response’ from ‘mcs_send_connect_response’
#  458|   	if (!tmps)
#  459|   	{
#  460|-> 		WLog_Print(log, WLOG_ERROR, "Stream_New failed!");
#  461|   		return FALSE;
#  462|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:464:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *s.capacity)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:448:13: enter_function: entry to ‘mcs_write_domain_parameters’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:453:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:456:16: call_function: inlined call to ‘Stream_Capacity’ from ‘mcs_write_domain_parameters’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:456:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:458:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:464:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:464:9: danger: ‘Stream_New(0, *s.capacity)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  462|   	}
#  463|   
#  464|-> 	ber_write_integer(tmps, domainParameters->maxChannelIds);
#  465|   	ber_write_integer(tmps, domainParameters->maxUserIds);
#  466|   	ber_write_integer(tmps, domainParameters->maxTokenIds);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:730:16: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:819:13: enter_function: entry to ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:830:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:833:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:839:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:847:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:849:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:857:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:858:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:860:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:866:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:869:14: call_function: calling ‘mcs_write_connect_initial’ from ‘mcs_send_connect_initial’
#  728|   		return FALSE;
#  729|   
#  730|-> 	tmps = Stream_New(NULL, Stream_Capacity(s));
#  731|   
#  732|   	if (!tmps)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:734:17: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:819:13: enter_function: entry to ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:830:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:833:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:839:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:847:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:849:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:857:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:858:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:860:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:866:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:869:14: call_function: calling ‘mcs_write_connect_initial’ from ‘mcs_send_connect_initial’
#  732|   	if (!tmps)
#  733|   	{
#  734|-> 		WLog_Print(mcs->log, WLOG_ERROR, "Stream_New failed!");
#  735|   		return FALSE;
#  736|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:739:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:819:13: enter_function: entry to ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:830:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:833:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:839:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:847:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:849:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:857:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:858:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:860:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:866:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:869:14: call_function: calling ‘mcs_write_connect_initial’ from ‘mcs_send_connect_initial’
#  737|   
#  738|   	/* callingDomainSelector (OCTET_STRING) */
#  739|-> 	ber_write_octet_string(tmps, callingDomainSelector, sizeof(callingDomainSelector));
#  740|   	/* calledDomainSelector (OCTET_STRING) */
#  741|   	ber_write_octet_string(tmps, calledDomainSelector, sizeof(calledDomainSelector));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:739:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *s.capacity)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:721:6: enter_function: entry to ‘mcs_write_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:727:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:730:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:732:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:739:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:739:9: danger: ‘Stream_New(0, *s.capacity)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
#  737|   
#  738|   	/* callingDomainSelector (OCTET_STRING) */
#  739|-> 	ber_write_octet_string(tmps, callingDomainSelector, sizeof(callingDomainSelector));
#  740|   	/* calledDomainSelector (OCTET_STRING) */
#  741|   	ber_write_octet_string(tmps, calledDomainSelector, sizeof(calledDomainSelector));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:741:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:819:13: enter_function: entry to ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:830:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:833:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:839:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:847:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:849:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:857:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:858:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:860:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:866:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:869:14: call_function: calling ‘mcs_write_connect_initial’ from ‘mcs_send_connect_initial’
#  739|   	ber_write_octet_string(tmps, callingDomainSelector, sizeof(callingDomainSelector));
#  740|   	/* calledDomainSelector (OCTET_STRING) */
#  741|-> 	ber_write_octet_string(tmps, calledDomainSelector, sizeof(calledDomainSelector));
#  742|   	/* upwardFlag (BOOLEAN) */
#  743|   	ber_write_BOOL(tmps, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:743:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:819:13: enter_function: entry to ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:830:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:833:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:839:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:847:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:849:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:857:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:858:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:860:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:866:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_initial’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:869:14: call_function: calling ‘mcs_write_connect_initial’ from ‘mcs_send_connect_initial’
#  741|   	ber_write_octet_string(tmps, calledDomainSelector, sizeof(calledDomainSelector));
#  742|   	/* upwardFlag (BOOLEAN) */
#  743|-> 	ber_write_BOOL(tmps, TRUE);
#  744|   
#  745|   	/* targetParameters (DomainParameters) */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:788:16: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:941:6: enter_function: entry to ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:951:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:954:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:965:44: call_function: inlined call to ‘Stream_Capacity’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:975:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:976:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:978:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:984:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:987:14: call_function: calling ‘mcs_write_connect_response’ from ‘mcs_send_connect_response’
#  786|   		return FALSE;
#  787|   
#  788|-> 	tmps = Stream_New(NULL, Stream_Capacity(s));
#  789|   
#  790|   	if (!tmps)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:792:17: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:941:6: enter_function: entry to ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:951:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:954:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:965:44: call_function: inlined call to ‘Stream_Capacity’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:975:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:976:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:978:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:984:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:987:14: call_function: calling ‘mcs_write_connect_response’ from ‘mcs_send_connect_response’
#  790|   	if (!tmps)
#  791|   	{
#  792|-> 		WLog_Print(mcs->log, WLOG_ERROR, "Stream_New failed!");
#  793|   		return FALSE;
#  794|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:796:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:941:6: enter_function: entry to ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:951:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:954:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:965:44: call_function: inlined call to ‘Stream_Capacity’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:975:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:976:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:978:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:984:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:987:14: call_function: calling ‘mcs_write_connect_response’ from ‘mcs_send_connect_response’
#  794|   	}
#  795|   
#  796|-> 	ber_write_enumerated(tmps, 0, MCS_Result_enum_length);
#  797|   	ber_write_integer(tmps, 0); /* calledConnectId */
#  798|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:796:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *s.capacity)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:779:6: enter_function: entry to ‘mcs_write_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:785:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:788:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:796:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:796:9: danger: ‘Stream_New(0, *s.capacity)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
#  794|   	}
#  795|   
#  796|-> 	ber_write_enumerated(tmps, 0, MCS_Result_enum_length);
#  797|   	ber_write_integer(tmps, 0); /* calledConnectId */
#  798|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:797:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:941:6: enter_function: entry to ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:951:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:954:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:965:44: call_function: inlined call to ‘Stream_Capacity’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:975:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:976:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:978:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:984:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:987:14: call_function: calling ‘mcs_write_connect_response’ from ‘mcs_send_connect_response’
#  795|   
#  796|   	ber_write_enumerated(tmps, 0, MCS_Result_enum_length);
#  797|-> 	ber_write_integer(tmps, 0); /* calledConnectId */
#  798|   
#  799|   	if (!mcs_write_domain_parameters(mcs->log, tmps, &(mcs->domainParameters)))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:830:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:833:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:837:23: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:839:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:14: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#  843|   	}
#  844|   
#  845|-> 	if (!gcc_write_client_data_blocks(client_data, mcs))
#  846|   		goto out;
#  847|   	gcc_CCrq = Stream_New(NULL, 1024);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:830:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:833:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:839:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:847:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:847:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:849:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:855:14: danger: ‘Stream_New(0, 1024)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
#  853|   	}
#  854|   
#  855|-> 	if (!gcc_write_conference_create_request(gcc_CCrq, client_data))
#  856|   		goto out;
#  857|   	length = Stream_GetPosition(gcc_CCrq) + 7;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:951:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:954:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:954:23: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:14: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
#  960|   	}
#  961|   
#  962|-> 	if (!gcc_write_server_data_blocks(server_data, mcs))
#  963|   		goto out;
#  964|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *<unknown>.capacity + 512)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:941:6: enter_function: entry to ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:951:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:954:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:965:44: call_function: inlined call to ‘Stream_Capacity’ from ‘mcs_send_connect_response’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:965:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:973:14: danger: ‘Stream_New(0, *<unknown>.capacity + 512)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/8)
#  971|   	}
#  972|   
#  973|-> 	if (!gcc_write_conference_create_response(gcc_CCrsp, server_data))
#  974|   		goto out;
#  975|   	length = Stream_GetPosition(gcc_CCrsp) + 7;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1066:16: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 12)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1043:6: enter_function: entry to ‘mcs_send_erect_domain_request’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1049:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1052:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1052:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1054:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1060:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1060:9: call_function: calling ‘mcs_write_domain_mcspdu_header’ from ‘mcs_send_erect_domain_request’
# 1064|   	status = transport_write(mcs->transport, s);
# 1065|   	Stream_Free(s, TRUE);
# 1066|-> 	return (status < 0) ? FALSE : TRUE;
# 1067|   }
# 1068|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1115:16: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 8)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1094:6: enter_function: entry to ‘mcs_send_attach_user_request’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1100:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1103:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1103:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1105:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1111:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1111:9: call_function: calling ‘mcs_write_domain_mcspdu_header’ from ‘mcs_send_attach_user_request’
# 1113|   	status = transport_write(mcs->transport, s);
# 1114|   	Stream_Free(s, TRUE);
# 1115|-> 	return (status < 0) ? FALSE : TRUE;
# 1116|   }
# 1117|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1171:16: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 11)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1147:6: enter_function: entry to ‘mcs_send_attach_user_confirm’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1153:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1156:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1156:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1158:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1164:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1165:9: call_function: calling ‘mcs_write_domain_mcspdu_header’ from ‘mcs_send_attach_user_confirm’
# 1169|   	status = transport_write(mcs->transport, s);
# 1170|   	Stream_Free(s, TRUE);
# 1171|-> 	return (status < 0) ? FALSE : TRUE;
# 1172|   }
# 1173|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1240:16: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 12)’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1218:6: enter_function: entry to ‘mcs_send_channel_join_request’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1226:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1228:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1234:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1234:9: call_function: calling ‘mcs_write_domain_mcspdu_header’ from ‘mcs_send_channel_join_request’
# 1238|   	status = transport_write(mcs->transport, s);
# 1239|   	Stream_Free(s, TRUE);
# 1240|-> 	return (status < 0) ? FALSE : TRUE;
# 1241|   }
# 1242|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def537]
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1433:20: warning[-Wanalyzer-malloc-leak]: leak of ‘mcs’
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1429:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1431:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1433:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/mcs.c:1433:20: danger: ‘mcs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
# 1431|   	if (!mcs)
# 1432|   		return NULL;
# 1433|-> 	mcs->log = WLog_Get(MCS_TAG);
# 1434|   	WINPR_ASSERT(mcs->log);
# 1435|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
FreeRDP-3.16.0/libfreerdp/core/message.c:2892:33: warning[-Wanalyzer-malloc-leak]: leak of ‘message’
FreeRDP-3.16.0/libfreerdp/core/message.c:2879:17: enter_function: entry to ‘update_message_proxy_new’
FreeRDP-3.16.0/libfreerdp/core/message.c:2883:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:12: branch_false: following ‘false’ branch (when ‘message’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/message.c:2889:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/message.c:2890:9: call_function: calling ‘update_message_register_interface’ from ‘update_message_proxy_new’
FreeRDP-3.16.0/libfreerdp/core/message.c:2890:9: return_function: returning to ‘update_message_proxy_new’ from ‘update_message_register_interface’
FreeRDP-3.16.0/libfreerdp/core/message.c:2892:33: danger: ‘message’ leaks here; was allocated at [(4)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/3)
# 2890|   	update_message_register_interface(message, update);
# 2891|   
# 2892|-> 	if (!(message->thread = CreateThread(NULL, 0, update_message_proxy_thread, update, 0, NULL)))
# 2893|   	{
# 2894|   		WLog_ERR(TAG, "Failed to create proxy thread");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def539]
FreeRDP-3.16.0/libfreerdp/core/nego.c:760:18: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:752:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:760:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:760:18: danger: ‘Stream_New(0, 1024)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  758|   	}
#  759|   
#  760|-> 	status = transport_read_pdu(nego->transport, s);
#  761|   
#  762|   	if (status < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
FreeRDP-3.16.0/libfreerdp/core/nego.c:1108:25: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1098:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1100:53: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1100:17: call_function: inlined call to ‘Stream_Write’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1104:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1104:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1105:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1104:21: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1106:41: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1104:21: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1108:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1108:25: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
# 1106|   		    (nego->RoutingToken[nego->RoutingTokenLength - 1] == 0x0A))
# 1107|   		{
# 1108|-> 			WLog_Print(nego->log, WLOG_DEBUG,
# 1109|   			           "Routing token looks correctly terminated - use verbatim");
# 1110|   			length += nego->RoutingTokenLength;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
FreeRDP-3.16.0/libfreerdp/core/nego.c:1114:25: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1098:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1100:53: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1100:17: call_function: inlined call to ‘Stream_Write’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1104:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1114:25: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
# 1112|   		else
# 1113|   		{
# 1114|-> 			WLog_Print(nego->log, WLOG_DEBUG, "Adding terminating CRLF to routing token");
# 1115|   			Stream_Write_UINT8(s, 0x0D); /* CR */
# 1116|   			Stream_Write_UINT8(s, 0x0A); /* LF */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
# 1134|   	{
# 1135|   		char buffer[64] = { 0 };
# 1136|-> 		WLog_Print(nego->log, WLOG_DEBUG, "RequestedProtocols: %s",
# 1137|   		           nego_protocol_to_str(nego->RequestedProtocols, buffer, sizeof(buffer)));
# 1138|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
FreeRDP-3.16.0/libfreerdp/core/nego.c:1160:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1140:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1140:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1156:12: branch_false: following ‘false’ branch (when ‘length <= 65535’)...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1159:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1160:9: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
# 1158|   
# 1159|   	em = Stream_GetPosition(s);
# 1160|-> 	Stream_SetPosition(s, bm);
# 1161|   	if (!tpkt_write_header(s, (UINT16)length))
# 1162|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
FreeRDP-3.16.0/libfreerdp/core/nego.c:1169:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1140:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1140:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1156:12: branch_true: following ‘true’ branch (when ‘length > 65535’)...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1157:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1169:9: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
# 1167|   	rc = (transport_write(nego->transport, s) >= 0);
# 1168|   fail:
# 1169|-> 	Stream_Free(s, TRUE);
# 1170|   	return rc;
# 1171|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
FreeRDP-3.16.0/libfreerdp/core/nego.c:1495:21: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1451:6: enter_function: entry to ‘nego_send_negotiation_response’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1469:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1471:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1478:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_response’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1481:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1495:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1495:21: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
# 1493|   		flags = EXTENDED_CLIENT_DATA_SUPPORTED;
# 1494|   
# 1495|-> 		if (freerdp_settings_get_bool(settings, FreeRDP_SupportGraphicsPipeline))
# 1496|   			flags |= DYNVC_GFX_PROTOCOL_SUPPORTED;
# 1497|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
FreeRDP-3.16.0/libfreerdp/core/nego.c:1513:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1451:6: enter_function: entry to ‘nego_send_negotiation_response’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1469:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1471:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1478:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_response’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1513:9: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/1)
# 1511|   
# 1512|   	em = Stream_GetPosition(s);
# 1513|-> 	Stream_SetPosition(s, bm);
# 1514|   	status = tpkt_write_header(s, length);
# 1515|   	if (status)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
FreeRDP-3.16.0/libfreerdp/core/nego.c:1667:21: warning[-Wanalyzer-malloc-leak]: leak of ‘nego’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1662:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1664:12: branch_false: following ‘false’ branch (when ‘nego’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1667:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1667:21: danger: ‘nego’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1665|   		return NULL;
# 1666|   
# 1667|-> 	nego->log = WLog_Get(NEGO_TAG);
# 1668|   	WINPR_ASSERT(nego->log);
# 1669|   	nego->transport = transport;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
FreeRDP-3.16.0/libfreerdp/core/nego.c:2048:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: call_function: calling ‘nego_protocol_to_str’ from ‘nego_send_negotiation_request’
# 2046|   
# 2047|   	if (protocol & PROTOCOL_SSL)
# 2048|-> 		(void)winpr_str_append("SSL", str, sizeof(str), "|");
# 2049|   	if (protocol & PROTOCOL_HYBRID)
# 2050|   		(void)winpr_str_append("HYBRID", str, sizeof(str), "|");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
FreeRDP-3.16.0/libfreerdp/core/nego.c:2050:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: call_function: calling ‘nego_protocol_to_str’ from ‘nego_send_negotiation_request’
# 2048|   		(void)winpr_str_append("SSL", str, sizeof(str), "|");
# 2049|   	if (protocol & PROTOCOL_HYBRID)
# 2050|-> 		(void)winpr_str_append("HYBRID", str, sizeof(str), "|");
# 2051|   	if (protocol & PROTOCOL_RDSTLS)
# 2052|   		(void)winpr_str_append("RDSTLS", str, sizeof(str), "|");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
FreeRDP-3.16.0/libfreerdp/core/nego.c:2052:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: call_function: calling ‘nego_protocol_to_str’ from ‘nego_send_negotiation_request’
# 2050|   		(void)winpr_str_append("HYBRID", str, sizeof(str), "|");
# 2051|   	if (protocol & PROTOCOL_RDSTLS)
# 2052|-> 		(void)winpr_str_append("RDSTLS", str, sizeof(str), "|");
# 2053|   	if (protocol & PROTOCOL_HYBRID_EX)
# 2054|   		(void)winpr_str_append("HYBRID_EX", str, sizeof(str), "|");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
FreeRDP-3.16.0/libfreerdp/core/nego.c:2054:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: call_function: calling ‘nego_protocol_to_str’ from ‘nego_send_negotiation_request’
# 2052|   		(void)winpr_str_append("RDSTLS", str, sizeof(str), "|");
# 2053|   	if (protocol & PROTOCOL_HYBRID_EX)
# 2054|-> 		(void)winpr_str_append("HYBRID_EX", str, sizeof(str), "|");
# 2055|   	if (protocol & PROTOCOL_RDSAAD)
# 2056|   		(void)winpr_str_append("RDSAAD", str, sizeof(str), "|");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
FreeRDP-3.16.0/libfreerdp/core/nego.c:2056:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: call_function: calling ‘nego_protocol_to_str’ from ‘nego_send_negotiation_request’
# 2054|   		(void)winpr_str_append("HYBRID_EX", str, sizeof(str), "|");
# 2055|   	if (protocol & PROTOCOL_RDSAAD)
# 2056|-> 		(void)winpr_str_append("RDSAAD", str, sizeof(str), "|");
# 2057|   	if (protocol & PROTOCOL_FAILED_NEGO)
# 2058|   		(void)winpr_str_append("NEGO FAILED", str, sizeof(str), "|");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
FreeRDP-3.16.0/libfreerdp/core/nego.c:2058:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: call_function: calling ‘nego_protocol_to_str’ from ‘nego_send_negotiation_request’
# 2056|   		(void)winpr_str_append("RDSAAD", str, sizeof(str), "|");
# 2057|   	if (protocol & PROTOCOL_FAILED_NEGO)
# 2058|-> 		(void)winpr_str_append("NEGO FAILED", str, sizeof(str), "|");
# 2059|   
# 2060|   	if (protocol == PROTOCOL_RDP)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
FreeRDP-3.16.0/libfreerdp/core/nego.c:2061:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: call_function: calling ‘nego_protocol_to_str’ from ‘nego_send_negotiation_request’
# 2059|   
# 2060|   	if (protocol == PROTOCOL_RDP)
# 2061|-> 		(void)winpr_str_append("RDP", str, sizeof(str), "");
# 2062|   	else if ((protocol & mask) != 0)
# 2063|   		(void)winpr_str_append("UNKNOWN", str, sizeof(str), "|");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def555]
FreeRDP-3.16.0/libfreerdp/core/nego.c:2063:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1076:6: enter_function: entry to ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1085:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1088:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1095:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_request’
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nego.c:1136:17: call_function: calling ‘nego_protocol_to_str’ from ‘nego_send_negotiation_request’
# 2061|   		(void)winpr_str_append("RDP", str, sizeof(str), "");
# 2062|   	else if ((protocol & mask) != 0)
# 2063|-> 		(void)winpr_str_append("UNKNOWN", str, sizeof(str), "|");
# 2064|   
# 2065|   	(void)_snprintf(buffer, size, "[%s][0x%08" PRIx32 "]", str, protocol);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
FreeRDP-3.16.0/libfreerdp/core/nla.c:177:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/nla.c:2096:9: enter_function: entry to ‘nla_new’
FreeRDP-3.16.0/libfreerdp/core/nla.c:2106:12: branch_false: following ‘false’ branch (when ‘nla’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2109:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2117:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2118:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2121:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2122:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2126:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2126:14: call_function: calling ‘nla_sec_buffer_alloc’ from ‘nla_new’
#  175|   {
#  176|   	WINPR_ASSERT(buffer);
#  177|-> 	sspi_SecBufferFree(buffer);
#  178|   	if (size > UINT32_MAX)
#  179|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
FreeRDP-3.16.0/libfreerdp/core/nla.c:177:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nla’
FreeRDP-3.16.0/libfreerdp/core/nla.c:2096:9: enter_function: entry to ‘nla_new’
FreeRDP-3.16.0/libfreerdp/core/nla.c:2104:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2106:12: branch_false: following ‘false’ branch (when ‘nla’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2109:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2118:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2121:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2122:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2126:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2126:14: call_function: calling ‘nla_sec_buffer_alloc’ from ‘nla_new’
#  175|   {
#  176|   	WINPR_ASSERT(buffer);
#  177|-> 	sspi_SecBufferFree(buffer);
#  178|   	if (size > UINT32_MAX)
#  179|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
FreeRDP-3.16.0/libfreerdp/core/nla.c:229:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/libfreerdp/core/nla.c:896:5: enter_function: entry to ‘nla_authenticate’
FreeRDP-3.16.0/libfreerdp/core/nla.c:900:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:903:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:903:24: call_function: calling ‘nla_client_authenticate’ from ‘nla_authenticate’
#  227|   		return TRUE;
#  228|   
#  229|-> 	smartcardCertInfo_Free(nla->smartcardCert);
#  230|   
#  231|   	if (!smartcard_getCert(nla->rdpcontext, &nla->smartcardCert, FALSE))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
FreeRDP-3.16.0/libfreerdp/core/nla.c:231:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/libfreerdp/core/nla.c:896:5: enter_function: entry to ‘nla_authenticate’
FreeRDP-3.16.0/libfreerdp/core/nla.c:900:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:903:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:903:24: call_function: calling ‘nla_client_authenticate’ from ‘nla_authenticate’
#  229|   	smartcardCertInfo_Free(nla->smartcardCert);
#  230|   
#  231|-> 	if (!smartcard_getCert(nla->rdpcontext, &nla->smartcardCert, FALSE))
#  232|   	{
#  233|   		WLog_ERR(TAG, "unable to get smartcard certificate for logon");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
FreeRDP-3.16.0/libfreerdp/core/nla.c:239:49: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/libfreerdp/core/nla.c:896:5: enter_function: entry to ‘nla_authenticate’
FreeRDP-3.16.0/libfreerdp/core/nla.c:900:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:903:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:903:24: call_function: calling ‘nla_client_authenticate’ from ‘nla_authenticate’
#  237|   	if (!settings->CspName)
#  238|   	{
#  239|-> 		if (nla->smartcardCert->csp && !freerdp_settings_set_string_from_utf16(
#  240|   		                                   settings, FreeRDP_CspName, nla->smartcardCert->csp))
#  241|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
FreeRDP-3.16.0/libfreerdp/core/nla.c:708:18: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/libfreerdp/core/nla.c:703:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:705:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:708:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:708:18: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  706|   		goto fail;
#  707|   
#  708|-> 	status = transport_read_pdu(nla->transport, s);
#  709|   
#  710|   fail:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
FreeRDP-3.16.0/libfreerdp/core/nla.c:988:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/nla.c:981:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:985:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:985:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:985:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:988:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:988:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  986|   		goto out;
#  987|   
#  988|-> 	if (!winpr_Digest_Init(sha256, WINPR_MD_SHA256))
#  989|   		goto out;
#  990|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
FreeRDP-3.16.0/libfreerdp/core/nla.c:1074:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/nla.c:1067:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:1071:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1071:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1071:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:1074:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1074:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
# 1072|   		goto fail;
# 1073|   
# 1074|-> 	if (!winpr_Digest_Init(sha256, WINPR_MD_SHA256))
# 1075|   		goto fail;
# 1076|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def564]
FreeRDP-3.16.0/libfreerdp/core/nla.c:1420:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 2000)’
FreeRDP-3.16.0/libfreerdp/core/nla.c:1449:13: enter_function: entry to ‘nla_write_TSRemoteGuardKerbCred’
FreeRDP-3.16.0/libfreerdp/core/nla.c:1463:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:1467:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1467:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:1470:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1470:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1471:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:1474:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1474:14: call_function: calling ‘nla_write_KERB_TICKET_LOGON’ from ‘nla_write_TSRemoteGuardKerbCred’
# 1418|   	WINPR_ASSERT(ticket);
# 1419|   
# 1420|-> 	if (!Stream_EnsureRemainingCapacity(s, (4ULL * 4) + 16ULL + ticket->ServiceTicketLength +
# 1421|   	                                           ticket->TicketGrantingTicketLength))
# 1422|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def565]
FreeRDP-3.16.0/libfreerdp/core/nla.c:1864:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, length)’
FreeRDP-3.16.0/libfreerdp/core/nla.c:1781:6: enter_function: entry to ‘nla_send’
FreeRDP-3.16.0/libfreerdp/core/nla.c:1791:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:1795:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1796:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:1800:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1801:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:1806:13: call_function: inlined call to ‘nla_get_state’ from ‘nla_send’
FreeRDP-3.16.0/libfreerdp/core/nla.c:1854:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:1857:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1857:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:1860:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1860:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1861:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:1864:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:1864:14: danger: ‘Stream_New(0, length)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
# 1862|   		goto fail;
# 1863|   
# 1864|-> 	if (!WinPrAsn1EncToStream(enc, s))
# 1865|   		goto fail;
# 1866|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
FreeRDP-3.16.0/libfreerdp/core/nla.c:2121:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/nla.c:2106:12: branch_false: following ‘false’ branch (when ‘nla’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2109:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2117:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2118:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2121:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2121:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
# 2119|   		goto cleanup;
# 2120|   
# 2121|-> 	nla->auth = credssp_auth_new(context);
# 2122|   	if (!nla->auth)
# 2123|   		goto cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
FreeRDP-3.16.0/libfreerdp/core/nla.c:2121:21: warning[-Wanalyzer-malloc-leak]: leak of ‘nla’
FreeRDP-3.16.0/libfreerdp/core/nla.c:2104:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2106:12: branch_false: following ‘false’ branch (when ‘nla’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2109:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2118:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2121:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2121:21: danger: ‘nla’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 2119|   		goto cleanup;
# 2120|   
# 2121|-> 	nla->auth = credssp_auth_new(context);
# 2122|   	if (!nla->auth)
# 2123|   		goto cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
FreeRDP-3.16.0/libfreerdp/core/nla.c:2137:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/nla.c:2106:12: branch_false: following ‘false’ branch (when ‘nla’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2109:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2117:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2118:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2121:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2122:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2123:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2137:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
# 2135|   	WINPR_PRAGMA_DIAG_PUSH
# 2136|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2137|-> 	nla_free(nla);
# 2138|   	WINPR_PRAGMA_DIAG_POP
# 2139|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def569]
FreeRDP-3.16.0/libfreerdp/core/nla.c:2137:9: warning[-Wanalyzer-mismatching-deallocation]: ‘nla’ should have been deallocated with ‘free’ but was deallocated with ‘nla_free’
FreeRDP-3.16.0/libfreerdp/core/nla.c:2104:32: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/nla.c:2106:12: branch_false: following ‘false’ branch (when ‘nla’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2109:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2118:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2119:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2137:9: danger: deallocated with ‘nla_free’ here; allocation at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 2135|   	WINPR_PRAGMA_DIAG_PUSH
# 2136|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2137|-> 	nla_free(nla);
# 2138|   	WINPR_PRAGMA_DIAG_POP
# 2139|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def570]
FreeRDP-3.16.0/libfreerdp/core/nla.c:2152:9: warning[-Wanalyzer-use-after-free]: use after ‘nla_free’ of ‘nla’
FreeRDP-3.16.0/libfreerdp/core/nla.c:2096:9: enter_function: entry to ‘nla_new’
FreeRDP-3.16.0/libfreerdp/core/nla.c:2104:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2106:12: branch_false: following ‘false’ branch (when ‘nla’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/nla.c:2109:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2137:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/nla.c:2137:9: call_function: calling ‘nla_free’ from ‘nla_new’
# 2150|   		return;
# 2151|   
# 2152|-> 	smartcardCertInfo_Free(nla->smartcardCert);
# 2153|   	nla_buffer_free(nla);
# 2154|   	sspi_SecBufferFree(&nla->tsCredentials);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
FreeRDP-3.16.0/libfreerdp/core/peer.c:1567:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rdp_new(context)’
FreeRDP-3.16.0/libfreerdp/core/peer.c:1537:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1541:38: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1541:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1544:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1548:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1551:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1559:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1561:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1561:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1564:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1564:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1564:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1567:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1567:9: danger: ‘rdp_new(context)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
# 1565|   		goto fail;
# 1566|   
# 1567|-> 	rdp_log_build_warnings(rdp);
# 1568|   
# 1569|   #if defined(WITH_FREERDP_DEPRECATED)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:301:25: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(no_proxy)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:324:6: enter_function: entry to ‘proxy_read_environment’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:328:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:331:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:333:12: branch_false: following ‘false’ branch (when ‘env’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:339:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:339:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:341:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:341:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:343:29: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:343:29: call_function: calling ‘check_no_proxy’ from ‘proxy_read_environment’
#  299|   		return FALSE;
#  300|   
#  301|-> 	char* current = strtok_s(copy, delimiter, &context);
#  302|   
#  303|   	while (current && !result)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:339:13: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:328:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:331:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:331:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:333:12: branch_false: following ‘false’ branch (when ‘env’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:339:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:339:13: danger: ‘env’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  337|   	}
#  338|   
#  339|-> 	if (GetEnvironmentVariableA(envname, env, envlen) == envlen - 1)
#  340|   	{
#  341|   		if (_strnicmp("NO_PROXY", envname, 9) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def574]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:385:21: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:385:21: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  383|   		*p = '\0';
#  384|   
#  385|-> 		if (_stricmp("no_proxy", uri) == 0)
#  386|   		{
#  387|   			if (!freerdp_settings_set_uint32(settings, FreeRDP_ProxyType, PROXY_TYPE_IGNORE))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:387:30: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:385:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:387:30: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:387:30: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  385|   		if (_stricmp("no_proxy", uri) == 0)
#  386|   		{
#  387|-> 			if (!freerdp_settings_set_uint32(settings, FreeRDP_ProxyType, PROXY_TYPE_IGNORE))
#  388|   				goto fail;
#  389|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:390:21: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:390:21: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  388|   				goto fail;
#  389|   		}
#  390|-> 		if (_stricmp("http", uri) == 0)
#  391|   		{
#  392|   			if (!freerdp_settings_set_uint32(settings, FreeRDP_ProxyType, PROXY_TYPE_HTTP))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:392:30: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:390:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:392:30: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:392:30: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  390|   		if (_stricmp("http", uri) == 0)
#  391|   		{
#  392|-> 			if (!freerdp_settings_set_uint32(settings, FreeRDP_ProxyType, PROXY_TYPE_HTTP))
#  393|   				goto fail;
#  394|   			protocol = "http";

Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:396:26: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:390:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:396:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:396:26: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  394|   			protocol = "http";
#  395|   		}
#  396|-> 		else if (_stricmp("socks5", uri) == 0)
#  397|   		{
#  398|   			if (!freerdp_settings_set_uint32(settings, FreeRDP_ProxyType, PROXY_TYPE_SOCKS))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:398:30: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:390:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:396:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:396:25: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:398:30: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:398:30: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  396|   		else if (_stricmp("socks5", uri) == 0)
#  397|   		{
#  398|-> 			if (!freerdp_settings_set_uint32(settings, FreeRDP_ProxyType, PROXY_TYPE_SOCKS))
#  399|   				goto fail;
#  400|   			protocol = "socks5";

Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  411|   	{
#  412|   		/* default proxy protocol is http */
#  413|-> 		if (!freerdp_settings_set_uint32(settings, FreeRDP_ProxyType, PROXY_TYPE_HTTP))
#  414|   			goto fail;
#  415|   		protocol = "http";

Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:439:22: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:392:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:408:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:421:12: branch_true: following ‘true’ branch (when ‘atPtr’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:430:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:432:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:438:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:439:22: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  437|   
#  438|   		*colonPtr = '\0';
#  439|-> 		if (!freerdp_settings_set_string(settings, FreeRDP_ProxyUsername, uri))
#  440|   		{
#  441|   			WLog_ERR(TAG, "unable to allocate proxy username");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:439:22: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:421:12: branch_true: following ‘true’ branch (when ‘atPtr’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:430:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:432:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:438:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:439:22: danger: ‘uri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  437|   
#  438|   		*colonPtr = '\0';
#  439|-> 		if (!freerdp_settings_set_string(settings, FreeRDP_ProxyUsername, uri))
#  440|   		{
#  441|   			WLog_ERR(TAG, "unable to allocate proxy username");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:447:22: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:392:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:408:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:421:12: branch_true: following ‘true’ branch (when ‘atPtr’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:430:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:432:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:438:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:439:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:445:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:447:22: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  445|   		*atPtr = '\0';
#  446|   
#  447|-> 		if (!freerdp_settings_set_string(settings, FreeRDP_ProxyPassword, colonPtr + 1))
#  448|   		{
#  449|   			WLog_ERR(TAG, "unable to allocate proxy password");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:447:22: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:421:12: branch_true: following ‘true’ branch (when ‘atPtr’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:430:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:432:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:438:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:439:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:445:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:447:22: danger: ‘uri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  445|   		*atPtr = '\0';
#  446|   
#  447|-> 		if (!freerdp_settings_set_string(settings, FreeRDP_ProxyPassword, colonPtr + 1))
#  448|   		{
#  449|   			WLog_ERR(TAG, "unable to allocate proxy password");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:392:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:408:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#  477|   	else
#  478|   	{
#  479|-> 		if (_stricmp("http", protocol) == 0)
#  480|   		{
#  481|   			/* The default is 80. Also for Proxies. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def586]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:421:12: branch_false: following ‘false’ branch (when ‘atPtr’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:456:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: danger: ‘uri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  477|   	else
#  478|   	{
#  479|-> 		if (_stricmp("http", protocol) == 0)
#  480|   		{
#  481|   			/* The default is 80. Also for Proxies. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:492:14: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:392:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:408:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:492:14: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  490|   	}
#  491|   
#  492|-> 	if (!freerdp_settings_set_uint16(settings, FreeRDP_ProxyPort, port))
#  493|   		goto fail;
#  494|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:492:14: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:421:12: branch_false: following ‘false’ branch (when ‘atPtr’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:456:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:492:14: danger: ‘uri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  490|   	}
#  491|   
#  492|-> 	if (!freerdp_settings_set_uint16(settings, FreeRDP_ProxyPort, port))
#  493|   		goto fail;
#  494|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def589]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:14: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:392:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:408:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:492:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:495:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:496:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:14: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  496|   	if (p)
#  497|   		*p = '\0';
#  498|-> 	if (!freerdp_settings_set_string(settings, FreeRDP_ProxyHostname, uri))
#  499|   		goto fail;
#  500|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:14: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:421:12: branch_false: following ‘false’ branch (when ‘atPtr’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:456:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:492:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:495:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:496:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:14: danger: ‘uri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  496|   	if (p)
#  497|   		*p = '\0';
#  498|-> 	if (!freerdp_settings_set_string(settings, FreeRDP_ProxyHostname, uri))
#  499|   		goto fail;
#  500|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def591]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:13: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:392:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:408:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:492:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:495:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:496:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:13: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
#  499|   		goto fail;
#  500|   
#  501|-> 	if (_stricmp("", uri) == 0)
#  502|   	{
#  503|   		WLog_ERR(TAG, "invalid syntax for proxy (hostname missing)");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:13: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:421:12: branch_false: following ‘false’ branch (when ‘atPtr’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:456:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:492:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:495:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:496:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:13: danger: ‘uri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  499|   		goto fail;
#  500|   
#  501|-> 	if (_stricmp("", uri) == 0)
#  502|   	{
#  503|   		WLog_ERR(TAG, "invalid syntax for proxy (hostname missing)");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:507:13: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:492:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:495:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:496:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:507:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:507:13: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  505|   	}
#  506|   
#  507|-> 	if (freerdp_settings_get_string(settings, FreeRDP_ProxyUsername))
#  508|   	{
#  509|   		WLog_INFO(TAG, "Parsed proxy configuration: %s://%s:%s@%s:%" PRIu16, protocol,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:509:17: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:492:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:495:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:496:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:507:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:507:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:509:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:509:17: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#  507|   	if (freerdp_settings_get_string(settings, FreeRDP_ProxyUsername))
#  508|   	{
#  509|-> 		WLog_INFO(TAG, "Parsed proxy configuration: %s://%s:%s@%s:%" PRIu16, protocol,
#  510|   		          freerdp_settings_get_string(settings, FreeRDP_ProxyUsername), "******",
#  511|   		          freerdp_settings_get_string(settings, FreeRDP_ProxyHostname),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def595]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:516:17: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:492:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:495:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:496:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:498:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:501:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:507:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:507:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:516:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:516:17: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
#  514|   	else
#  515|   	{
#  516|-> 		WLog_INFO(TAG, "Parsed proxy configuration: %s://%s:%" PRIu16, protocol,
#  517|   		          freerdp_settings_get_string(settings, FreeRDP_ProxyHostname),
#  518|   		          freerdp_settings_get_uint16(settings, FreeRDP_ProxyPort));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:624:42: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, reserveSize)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:595:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:596:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:608:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:610:36: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:611:20: branch_true: following ‘true’ branch (when ‘length > 0’)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:613:45: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:616:28: branch_false: following ‘false’ branch (when ‘creds’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:620:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:624:42: danger: ‘Stream_New(0, reserveSize)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
#  622|   
#  623|   				(void)sprintf_s(creds, size, "%s:%s", proxyUsername, proxyPassword);
#  624|-> 				base64 = crypto_base64_encode((const BYTE*)creds, size - 1);
#  625|   
#  626|   				if (!base64 || !Stream_EnsureRemainingCapacity(s, strlen(basic) + strlen(base64)))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:626:49: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, reserveSize)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:595:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:596:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:608:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:610:36: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:611:20: branch_true: following ‘true’ branch (when ‘length > 0’)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:613:45: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:616:28: branch_false: following ‘false’ branch (when ‘creds’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:620:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:626:36: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:626:99: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:626:49: danger: ‘Stream_New(0, reserveSize)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
#  624|   				base64 = crypto_base64_encode((const BYTE*)creds, size - 1);
#  625|   
#  626|-> 				if (!base64 || !Stream_EnsureRemainingCapacity(s, strlen(basic) + strlen(base64)))
#  627|   				{
#  628|   					free(base64);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def598]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:641:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, reserveSize)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:595:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:596:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:608:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:641:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:641:14: danger: ‘Stream_New(0, reserveSize)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
#  639|   	}
#  640|   
#  641|-> 	if (!Stream_EnsureRemainingCapacity(s, 4))
#  642|   		goto fail;
#  643|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def599]
FreeRDP-3.16.0/libfreerdp/core/proxy.c:732:16: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, reserveSize)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:595:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:596:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:608:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:610:36: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:611:20: branch_true: following ‘true’ branch (when ‘length > 0’)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:613:45: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:616:28: branch_true: following ‘true’ branch (when ‘creds’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:617:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:732:16: danger: ‘Stream_New(0, reserveSize)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
#  730|   fail:
#  731|   	Stream_Free(s, TRUE);
#  732|-> 	return rc;
#  733|   }
#  734|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def600]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: warning[-Wanalyzer-malloc-leak]: leak of ‘monitorDefArray’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1105:13: enter_function: entry to ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1112:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1115:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1117:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1120:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1120:41: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1122:12: branch_false: following ‘false’ branch (when ‘monitorDefArray’ is non-NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1125:32: branch_false: following ‘false’ branch (when ‘index >= v’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: danger: ‘monitorDefArray’ leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
# 1133|   	}
# 1134|   
# 1135|-> 	IFCALLRET(rdp->update->RemoteMonitors, ret, rdp->context, monitorCount, monitorDefArray);
# 1136|   	free(monitorDefArray);
# 1137|   	if (!ret)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def601]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2359:20: warning[-Wanalyzer-malloc-leak]: leak of ‘rdp’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2354:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2356:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2359:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2359:20: danger: ‘rdp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 2357|   		return NULL;
# 2358|   
# 2359|-> 	rdp->log = WLog_Get(RDP_TAG);
# 2360|   	WINPR_ASSERT(rdp->log);
# 2361|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def602]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2466:9: warning[-Wanalyzer-mismatching-deallocation]: ‘rdp’ should have been deallocated with ‘free’ but was deallocated with ‘rdp_free’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2354:32: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2356:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2359:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2372:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2374:53: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2376:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2377:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2466:9: danger: deallocated with ‘rdp_free’ here; allocation at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 2464|   	WINPR_PRAGMA_DIAG_PUSH
# 2465|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2466|-> 	rdp_free(rdp);
# 2467|   	WINPR_PRAGMA_DIAG_POP
# 2468|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def603]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2548:17: warning[-Wanalyzer-use-after-free]: use after ‘rdp_free’ of ‘rdp’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2351:9: enter_function: entry to ‘rdp_new’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2354:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2356:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2359:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2372:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2374:53: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2376:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2377:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2466:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2466:9: call_function: calling ‘rdp_free’ from ‘rdp_new’
# 2546|   	if (rdp)
# 2547|   	{
# 2548|-> 		freerdp_timer_free(rdp->timer);
# 2549|   		rdp_reset_free(rdp);
# 2550|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2811:16: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3122:6: enter_function: entry to ‘rdp_log_build_warnings’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3130:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3132:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3133:9: call_function: calling ‘log_build_warn’ from ‘rdp_log_build_warnings’
# 2809|   static BOOL option_equals(const char* what, const char* val)
# 2810|   {
# 2811|-> 	return _stricmp(what, val) == 0;
# 2812|   }
# 2813|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2935:24: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2934:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2935:24: danger: ‘list’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 2933|   	size_t len = sizeof(FREERDP_BUILD_CONFIG);
# 2934|   	char* list = calloc(len, sizeof(char));
# 2935|-> 	char* config = _strdup(FREERDP_BUILD_CONFIG);
# 2936|   	WINPR_PRAGMA_DIAG_POP
# 2937|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2941:29: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup("BUILD_TESTING=ON BUILD_TESTING_INTERNAL=OFF BUILD_TESTING_INTERNAL_AVAILABLE=0 BUILD_TESTING_NO_H264=ON BUILD_TESTING_NO_H264_AVAILABLE=1 WINPR_HAVE_AIO_H=1 WINPR_HAVE_EXECINFO_BACKTRACE=1 WINPR_HAVE_EXECINFO_BACKTRACE_SYMBOLS=1 WINPR_HAVE_EXECINFO_BACKTRACE_SYMBOLS_FD=1 WINPR_HAVE_EXECINFO_HEADER=1 WINPR_HAVE_FCNTL_H=1 WINPR_HAVE_GETLOGIN_R=1 WINPR_HAVE_GETPWUID_R=1 WINPR_HAVE_INTTYPES_H=1 WINPR_HAVE_POLL_H=1 WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIB=1 WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_LI [...]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2935:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2938:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2940:23: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2941:29: danger: ‘_strdup("BUILD_TESTING=ON BUILD_TESTING_INTERNAL=OFF BUILD_TESTING_INTERNAL_AVAILABLE=0 BUILD_TESTING_NO_H264=ON BUILD_TESTING_NO_H264_AVAILABLE=1 WINPR_HAVE_AIO_H=1 WINPR_HAVE_EXECINFO_BACKTRACE=1 WINPR_HAVE_EXECINFO_BACKTRACE_SYMBOLS=1 WINPR_HAVE_EXECINFO_BACKTRACE_SYMBOLS_FD=1 WINPR_HAVE_EXECINFO_HEADER=1 WINPR_HAVE_FCNTL_H=1 WINPR_HAVE_GETLOGIN_R=1 WINPR_HAVE_GETPWUID_R=1 WINPR_HAVE_INTTYPES_H=1 WINPR_HAVE_POLL_H=1 WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIB=1 WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIBS= WINP [...]
# 2939|   	{
# 2940|   		char* saveptr = NULL;
# 2941|-> 		char* tok = strtok_s(config, " ", &saveptr);
# 2942|   		while (tok)
# 2943|   		{
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2941:29: note: trimmed 2 message(s) with length over 512

Error: GCC_ANALYZER_WARNING (CWE-401): [#def607]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2941:29: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2934:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2938:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2940:23: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2941:29: danger: ‘list’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 2939|   	{
# 2940|   		char* saveptr = NULL;
# 2941|-> 		char* tok = strtok_s(config, " ", &saveptr);
# 2942|   		while (tok)
# 2943|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def608]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2944:29: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2934:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2938:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2940:23: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2942:24: branch_true: following ‘true’ branch (when ‘tok’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2944:29: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2944:29: danger: ‘list’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 2942|   		while (tok)
# 2943|   		{
# 2944|-> 			if (cmp(rdp->log, tok))
# 2945|   				winpr_str_append(tok, list, len, " ");
# 2946|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def609]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2945:33: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2934:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2938:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2940:23: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2942:24: branch_true: following ‘true’ branch (when ‘tok’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2944:29: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2944:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2945:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2945:33: danger: ‘list’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 2943|   		{
# 2944|   			if (cmp(rdp->log, tok))
# 2945|-> 				winpr_str_append(tok, list, len, " ");
# 2946|   
# 2947|   			tok = strtok_s(NULL, " ", &saveptr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def610]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2947:31: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2934:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2938:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2940:23: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2942:24: branch_true: following ‘true’ branch (when ‘tok’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2944:29: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2944:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2947:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:2947:31: danger: ‘list’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
# 2945|   				winpr_str_append(tok, list, len, " ");
# 2946|   
# 2947|-> 			tok = strtok_s(NULL, " ", &saveptr);
# 2948|   		}
# 2949|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def611]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3023:17: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_RC4_New(&key, 64)’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3019:12: branch_true: following ‘true’ branch (when ‘md == 42’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3021:38: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3021:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3023:17: danger: ‘winpr_RC4_New(&key, 64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
# 3021|   		WINPR_RC4_CTX* enc = winpr_RC4_New(key, sizeof(key));
# 3022|   		haveCipher = enc != NULL;
# 3023|-> 		winpr_RC4_Free(enc);
# 3024|   	}
# 3025|   	else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def612]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3030:21: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Cipher_NewEx(md, 0, & key, 64, & iv, 16)’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3019:12: branch_false: following ‘false’ branch (when ‘md != 42’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3028:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3028:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3030:21: danger: ‘winpr_Cipher_NewEx(md, 0, & key, 64, & iv, 16)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
# 3028|   		    winpr_Cipher_NewEx(md, WINPR_ENCRYPT, key, sizeof(key), iv, sizeof(iv));
# 3029|   		WINPR_CIPHER_CTX* dec =
# 3030|-> 		    winpr_Cipher_NewEx(md, WINPR_DECRYPT, key, sizeof(key), iv, sizeof(iv));
# 3031|   		if (enc && dec)
# 3032|   			haveCipher = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def613]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3034:17: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Cipher_NewEx(md, 1, & key, 64, & iv, 16)’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3019:12: branch_false: following ‘false’ branch (when ‘md != 42’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3028:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3030:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3031:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3034:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3034:17: danger: ‘winpr_Cipher_NewEx(md, 1, & key, 64, & iv, 16)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
# 3032|   			haveCipher = TRUE;
# 3033|   
# 3034|-> 		winpr_Cipher_Free(enc);
# 3035|   		winpr_Cipher_Free(dec);
# 3036|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def614]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3035:17: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Cipher_NewEx(md, 0, & key, 64, & iv, 16)’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3019:12: branch_false: following ‘false’ branch (when ‘md != 42’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3028:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3028:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3031:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3034:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3035:17: danger: ‘winpr_Cipher_NewEx(md, 0, & key, 64, & iv, 16)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
# 3033|   
# 3034|   		winpr_Cipher_Free(enc);
# 3035|-> 		winpr_Cipher_Free(dec);
# 3036|   	}
# 3037|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def615]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3035:17: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Cipher_NewEx(md, 1, & key, 64, & iv, 16)’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3019:12: branch_false: following ‘false’ branch (when ‘md != 42’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3028:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3030:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3031:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3034:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3035:17: danger: ‘winpr_Cipher_NewEx(md, 1, & key, 64, & iv, 16)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
# 3033|   
# 3034|   		winpr_Cipher_Free(enc);
# 3035|-> 		winpr_Cipher_Free(dec);
# 3036|   	}
# 3037|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def616]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3056:29: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_HMAC_New()’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3049:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3050:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3055:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3056:29: danger: ‘winpr_HMAC_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
# 3054|   		 */
# 3055|   		char key[WINPR_CIPHER_MAX_KEY_LENGTH] = { 0 };
# 3056|-> 		haveHmacX = winpr_HMAC_Init(hmac, md, key, sizeof(key));
# 3057|   	}
# 3058|   	winpr_HMAC_Free(hmac);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3074:31: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3072:36: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3073:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3074:31: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:3074:31: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
# 3072|   	WINPR_DIGEST_CTX* digest = winpr_Digest_New();
# 3073|   	if (digest)
# 3074|-> 		haveDigestX = winpr_Digest_Init(digest, md);
# 3075|   	winpr_Digest_Free(digest);
# 3076|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def618]
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:623:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:886:12: enter_function: entry to ‘rdstls_server_authenticate’
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:888:14: call_function: calling ‘rdstls_set_state’ from ‘rdstls_server_authenticate’
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:888:14: return_function: returning to ‘rdstls_server_authenticate’ from ‘rdstls_set_state’
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:888:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:891:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:891:14: call_function: calling ‘rdstls_send_capabilities’ from ‘rdstls_server_authenticate’
#  621|   	WINPR_ASSERT(settings);
#  622|   
#  623|-> 	if (!Stream_EnsureRemainingCapacity(s, 2))
#  624|   		return FALSE;
#  625|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def619]
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:818:18: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:906:12: enter_function: entry to ‘rdstls_client_authenticate’
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:908:14: call_function: calling ‘rdstls_set_state’ from ‘rdstls_client_authenticate’
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:908:14: return_function: returning to ‘rdstls_client_authenticate’ from ‘rdstls_set_state’
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:911:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:911:14: call_function: calling ‘rdstls_recv_capabilities’ from ‘rdstls_client_authenticate’
#  816|   		goto fail;
#  817|   
#  818|-> 	status = transport_read_pdu(rdstls->transport, s);
#  819|   
#  820|   	if (status < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def620]
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:870:18: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:863:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:866:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:866:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:867:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:870:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdstls.c:870:18: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  868|   		goto fail;
#  869|   
#  870|-> 	status = transport_read_pdu(rdstls->transport, s);
#  871|   
#  872|   	if (status < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def621]
FreeRDP-3.16.0/libfreerdp/core/redirection.c:266:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:883:13: enter_function: entry to ‘rdp_recv_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:887:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:890:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:890:18: call_function: calling ‘rdp_recv_server_redirection_pdu’ from ‘rdp_recv_enhanced_security_redirection_packet’
#  264|   	size_t wpos = 0;
#  265|   	char* saveptr = NULL;
#  266|-> 	char* tok = strtok_s(utf8, "\r\n", &saveptr);
#  267|   	while (tok)
#  268|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def622]
FreeRDP-3.16.0/libfreerdp/core/redirection.c:274:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:883:13: enter_function: entry to ‘rdp_recv_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:887:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:890:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:890:18: call_function: calling ‘rdp_recv_server_redirection_pdu’ from ‘rdp_recv_enhanced_security_redirection_packet’
#  272|   		size_t bplen = 0;
#  273|   		BYTE* bptr = NULL;
#  274|-> 		crypto_base64_decode(tok, len, &bptr, &bplen);
#  275|   		if (!bptr)
#  276|   			goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def623]
FreeRDP-3.16.0/libfreerdp/core/redirection.c:281:23: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:883:13: enter_function: entry to ‘rdp_recv_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:887:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:890:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:890:18: call_function: calling ‘rdp_recv_server_redirection_pdu’ from ‘rdp_recv_enhanced_security_redirection_packet’
#  279|   		free(bptr);
#  280|   
#  281|-> 		tok = strtok_s(NULL, "\r\n", &saveptr);
#  282|   	}
#  283|   	if (wpos > UINT32_MAX)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def624]
FreeRDP-3.16.0/libfreerdp/core/redirection.c:335:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 2048)’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:960:6: enter_function: entry to ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:970:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1046:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1048:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1048:22: call_function: calling ‘rdp_redireciton_write_target_cert_stream’ from ‘rdp_write_enhanced_security_redirection_packet’
#  333|   	WINPR_ASSERT(length <= UINT32_MAX);
#  334|   
#  335|-> 	if (!Stream_CheckAndLogRequiredCapacity(TAG, s, 12))
#  336|   		return FALSE;
#  337|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def625]
FreeRDP-3.16.0/libfreerdp/core/redirection.c:335:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_der(cert, & derlen)’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:960:6: enter_function: entry to ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:970:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1046:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1048:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1048:22: call_function: calling ‘rdp_redireciton_write_target_cert_stream’ from ‘rdp_write_enhanced_security_redirection_packet’
#  333|   	WINPR_ASSERT(length <= UINT32_MAX);
#  334|   
#  335|-> 	if (!Stream_CheckAndLogRequiredCapacity(TAG, s, 12))
#  336|   		return FALSE;
#  337|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def626]
FreeRDP-3.16.0/libfreerdp/core/redirection.c:342:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_der(cert, & derlen)’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:960:6: enter_function: entry to ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:970:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1046:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1048:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1048:22: call_function: calling ‘rdp_redireciton_write_target_cert_stream’ from ‘rdp_write_enhanced_security_redirection_packet’
#  340|   	Stream_Write_UINT32(s, (UINT32)length);
#  341|   
#  342|-> 	if (!Stream_CheckAndLogRequiredCapacity(TAG, s, length))
#  343|   		return FALSE;
#  344|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def627]
FreeRDP-3.16.0/libfreerdp/core/redirection.c:412:21: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 2048)’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:960:6: enter_function: entry to ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:970:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1046:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1048:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1048:22: call_function: calling ‘rdp_redireciton_write_target_cert_stream’ from ‘rdp_write_enhanced_security_redirection_packet’
#  410|   	size_t derlen = 0;
#  411|   
#  412|-> 	BYTE* der = freerdp_certificate_get_der(cert, &derlen);
#  413|   	if (!rdp_target_cert_write_element(s, CERT_cert_file_element, ENCODING_TYPE_ASN1_DER, der,
#  414|   	                                   derlen))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def628]
FreeRDP-3.16.0/libfreerdp/core/redirection.c:439:16: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 2048)’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:960:6: enter_function: entry to ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:970:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1046:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1048:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:1048:22: call_function: calling ‘rdp_redireciton_write_target_cert_stream’ from ‘rdp_write_enhanced_security_redirection_packet’
#  437|   fail:
#  438|   	Stream_Free(serialized, TRUE);
#  439|-> 	return rc;
#  440|   }
#  441|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def629]
FreeRDP-3.16.0/libfreerdp/core/redirection.c:712:20: warning[-Wanalyzer-malloc-leak]: leak of ‘*redirection.LoadBalanceInfo’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:656:20: enter_function: entry to ‘rdp_recv_server_redirection_pdu’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:663:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:666:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘rdp_recv_server_redirection_pdu’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:667:12: branch_false: following ‘false’ branch (when ‘v == 1024’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:676:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘rdp_recv_server_redirection_pdu’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:677:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_server_redirection_pdu’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:678:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_server_redirection_pdu’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:698:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:704:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:704:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:712:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:712:22: call_function: calling ‘rdp_redirection_read_data’ from ‘rdp_recv_server_redirection_pdu’
#  710|   		 * 0020  30 30 0d 0a                                      00..
#  711|   		 */
#  712|-> 		if (!rdp_redirection_read_data(LB_LOAD_BALANCE_INFO, s, &redirection->LoadBalanceInfoLength,
#  713|   		                               &redirection->LoadBalanceInfo))
#  714|   			return STATE_RUN_FAILED;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def630]
FreeRDP-3.16.0/libfreerdp/core/redirection.c:850:28: warning[-Wanalyzer-malloc-leak]: leak of ‘*redirection.TargetNetAddresses’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:883:13: enter_function: entry to ‘rdp_recv_enhanced_security_redirection_packet’
FreeRDP-3.16.0/libfreerdp/core/redirection.c:887:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/redirection.c:890:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/redirection.c:890:18: call_function: calling ‘rdp_recv_server_redirection_pdu’ from ‘rdp_recv_enhanced_security_redirection_packet’
#  848|   			    (char**)calloc(TargetNetAddressesCount, sizeof(char*));
#  849|   
#  850|-> 			if (!redirection->TargetNetAddresses)
#  851|   			{
#  852|   				WLog_ERR(TAG, "TargetNetAddresses %" PRIu32 " failed to allocate",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def631]
FreeRDP-3.16.0/libfreerdp/core/security.c:104:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:101:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:101:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:104:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:104:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  102|   		goto out;
#  103|   
#  104|-> 	if (!winpr_Digest_Init(sha1, WINPR_MD_SHA1))
#  105|   		goto out;
#  106|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def632]
FreeRDP-3.16.0/libfreerdp/core/security.c:134:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:101:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:104:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:104:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:107:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:107:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:111:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:111:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:115:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:115:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:119:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:119:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:122:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:122:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:126:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:126:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:126:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:134:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:134:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
#  132|   	/* which will already be encrypted under FIPS, so the use of MD5 here is not for sensitive data
#  133|   	 * protection. */
#  134|-> 	if (!winpr_Digest_Init_Allow_FIPS(md5, WINPR_MD_MD5))
#  135|   		goto out;
#  136|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def633]
FreeRDP-3.16.0/libfreerdp/core/security.c:228:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:225:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:225:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:228:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:228:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  226|   		return FALSE;
#  227|   
#  228|-> 	if (!winpr_Digest_Init(md5, WINPR_MD_MD5))
#  229|   		goto out;
#  230|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def634]
FreeRDP-3.16.0/libfreerdp/core/security.c:259:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:257:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:257:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:259:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:259:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  257|   	if (!(md5 = winpr_Digest_New()))
#  258|   		return FALSE;
#  259|-> 	if (!winpr_Digest_Init_Allow_FIPS(md5, WINPR_MD_MD5))
#  260|   		goto out;
#  261|   	if (!winpr_Digest_Update(md5, in0, 16))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def635]
FreeRDP-3.16.0/libfreerdp/core/security.c:326:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:323:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:326:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:326:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  324|   		goto out;
#  325|   
#  326|-> 	if (!winpr_Digest_Init(sha1, WINPR_MD_SHA1))
#  327|   		goto out;
#  328|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def636]
FreeRDP-3.16.0/libfreerdp/core/security.c:354:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:326:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:326:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:329:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:329:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:332:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:332:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:335:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:335:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:338:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:338:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:341:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:341:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:345:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:345:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:345:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:354:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:354:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/14)
#  352|   	/* which will already be encrypted under FIPS, so the use of MD5 here is not for sensitive data
#  353|   	 * protection. */
#  354|-> 	if (!winpr_Digest_Init_Allow_FIPS(md5, WINPR_MD_MD5))
#  355|   		goto out;
#  356|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def637]
FreeRDP-3.16.0/libfreerdp/core/security.c:401:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:378:6: enter_function: entry to ‘security_mac_signature’
FreeRDP-3.16.0/libfreerdp/core/security.c:392:12: branch_false: following ‘false’ branch (when ‘out_len > 7’)...
FreeRDP-3.16.0/libfreerdp/core/security.c:395:9: call_function: inlined call to ‘security_UINT32_le’ from ‘security_mac_signature’
FreeRDP-3.16.0/libfreerdp/core/security.c:398:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:398:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:401:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:401:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  399|   		goto out;
#  400|   
#  401|-> 	if (!winpr_Digest_Init(sha1, WINPR_MD_SHA1))
#  402|   		goto out;
#  403|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def638]
FreeRDP-3.16.0/libfreerdp/core/security.c:423:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:378:6: enter_function: entry to ‘security_mac_signature’
FreeRDP-3.16.0/libfreerdp/core/security.c:392:12: branch_false: following ‘false’ branch (when ‘out_len > 7’)...
FreeRDP-3.16.0/libfreerdp/core/security.c:395:9: call_function: inlined call to ‘security_UINT32_le’ from ‘security_mac_signature’
FreeRDP-3.16.0/libfreerdp/core/security.c:398:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:401:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:401:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:404:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:407:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:407:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:410:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:410:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:413:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:413:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:416:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:416:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:420:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:420:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:420:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:423:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:423:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(19)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/18)
#  421|   		goto out;
#  422|   
#  423|-> 	if (!winpr_Digest_Init(md5, WINPR_MD_MD5))
#  424|   		goto out;
#  425|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def639]
FreeRDP-3.16.0/libfreerdp/core/security.c:486:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:448:6: enter_function: entry to ‘security_salted_mac_signature’
FreeRDP-3.16.0/libfreerdp/core/security.c:463:12: branch_false: following ‘false’ branch (when ‘out_len > 7’)...
FreeRDP-3.16.0/libfreerdp/core/security.c:466:9: call_function: inlined call to ‘security_UINT32_le’ from ‘security_salted_mac_signature’
FreeRDP-3.16.0/libfreerdp/core/security.c:483:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:486:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:486:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
#  484|   		goto out;
#  485|   
#  486|-> 	if (!winpr_Digest_Init(sha1, WINPR_MD_SHA1))
#  487|   		goto out;
#  488|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def640]
FreeRDP-3.16.0/libfreerdp/core/security.c:511:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:448:6: enter_function: entry to ‘security_salted_mac_signature’
FreeRDP-3.16.0/libfreerdp/core/security.c:463:12: branch_false: following ‘false’ branch (when ‘out_len > 7’)...
FreeRDP-3.16.0/libfreerdp/core/security.c:466:9: call_function: inlined call to ‘security_UINT32_le’ from ‘security_salted_mac_signature’
FreeRDP-3.16.0/libfreerdp/core/security.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:486:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:486:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:489:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:489:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:492:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:492:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:495:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:495:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:498:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:498:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:501:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:501:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:504:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:504:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:508:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:508:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:508:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:511:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:511:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(21)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/20)
#  509|   		goto out;
#  510|   
#  511|-> 	if (!winpr_Digest_Init(md5, WINPR_MD_MD5))
#  512|   		goto out;
#  513|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def641]
FreeRDP-3.16.0/libfreerdp/core/security.c:646:22: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:638:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:640:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:642:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:643:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:646:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:646:22: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  644|   			return FALSE;
#  645|   
#  646|-> 		if (!winpr_Digest_Init(sha1, WINPR_MD_SHA1) ||
#  647|   		    !winpr_Digest_Update(sha1, client_random + 16, 16) ||
#  648|   		    !winpr_Digest_Update(sha1, server_random + 16, 16) ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def642]
FreeRDP-3.16.0/libfreerdp/core/security.c:777:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:774:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:774:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:777:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:777:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  775|   		goto out;
#  776|   
#  777|-> 	if (!winpr_Digest_Init(sha1, WINPR_MD_SHA1))
#  778|   		goto out;
#  779|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def643]
FreeRDP-3.16.0/libfreerdp/core/security.c:795:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:774:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:777:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:777:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:780:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:780:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:783:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:783:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:786:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:786:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:789:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:789:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:792:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:792:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:792:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:795:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:795:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(13)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/12)
#  793|   		goto out;
#  794|   
#  795|-> 	if (!winpr_Digest_Init(md5, WINPR_MD_MD5))
#  796|   		goto out;
#  797|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def644]
FreeRDP-3.16.0/libfreerdp/core/security.c:813:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_RC4_New(key,  key_len)’
FreeRDP-3.16.0/libfreerdp/core/security.c:774:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:777:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:777:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:780:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:780:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:783:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:783:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:786:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:786:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:789:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:789:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:792:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:792:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:795:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:795:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:798:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:798:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:801:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:801:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:804:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:804:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:807:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:807:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:810:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:810:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:810:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:813:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:813:14: danger: ‘winpr_RC4_New(key,  key_len)’ leaks here; was allocated at [(25)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/24)
#  811|   		goto out;
#  812|   
#  813|-> 	if (!winpr_RC4_Update(rc4, key_len, key, key))
#  814|   		goto out;
#  815|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def645]
FreeRDP-3.16.0/libfreerdp/core/security.c:911:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_HMAC_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:903:12: branch_false: following ‘false’ branch (when ‘out_len > 7’)...
FreeRDP-3.16.0/libfreerdp/core/security.c:906:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:908:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:911:51: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:911:14: danger: ‘winpr_HMAC_New()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
#  909|   		return FALSE;
#  910|   
#  911|-> 	if (!winpr_HMAC_Init(hmac, WINPR_MD_SHA1, rdp->fips_sign_key, WINPR_SHA1_DIGEST_LENGTH))
#  912|   		goto out;
#  913|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def646]
FreeRDP-3.16.0/libfreerdp/core/security.c:973:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_HMAC_New()’
FreeRDP-3.16.0/libfreerdp/core/security.c:970:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/security.c:970:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/security.c:973:51: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/security.c:973:14: danger: ‘winpr_HMAC_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  971|   		goto out;
#  972|   
#  973|-> 	if (!winpr_HMAC_Init(hmac, WINPR_MD_SHA1, rdp->fips_sign_key, WINPR_SHA1_DIGEST_LENGTH))
#  974|   		goto out;
#  975|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def647]
FreeRDP-3.16.0/libfreerdp/core/server.c:94:16: warning[-Wanalyzer-malloc-leak]: leak of ‘messageCtx’
FreeRDP-3.16.0/libfreerdp/core/server.c:83:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:85:12: branch_false: following ‘false’ branch (when ‘messageCtx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:89:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:94:16: danger: ‘messageCtx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   92|   	buffer = (BYTE*)(messageCtx + 1);
#   93|   	CopyMemory(buffer, Buffer, Length);
#   94|-> 	return MessageQueue_Post(channel->queue, messageCtx, 0, NULL, NULL);
#   95|   }
#   96|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def648]
FreeRDP-3.16.0/libfreerdp/core/server.c:109:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.16.0/libfreerdp/core/server.c:1641:13: enter_function: entry to ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.16.0/libfreerdp/core/server.c:1653:12: branch_false: following ‘false’ branch (when ‘hChannelHandle’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1656:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1658:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1660:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1660:33: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1662:20: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1668:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1670:22: call_function: calling ‘wts_queue_send_item’ from ‘FreeRDP_WTSVirtualChannelWrite’
#  107|   	WINPR_ASSERT(channel->channelId <= UINT16_MAX);
#  108|   	const UINT16 channelId = (UINT16)channel->channelId;
#  109|-> 	return MessageQueue_Post(channel->vcm->queue, (void*)(UINT_PTR)channelId, 0, (void*)buffer,
#  110|   	                         (void*)(UINT_PTR)length);
#  111|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def649]
FreeRDP-3.16.0/libfreerdp/core/server.c:271:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dvc’
FreeRDP-3.16.0/libfreerdp/core/server.c:275:13: enter_function: entry to ‘wts_read_drdynvc_pdu’
FreeRDP-3.16.0/libfreerdp/core/server.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:291:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:298:12: branch_false: following ‘false’ branch (when ‘Cmd != 5’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:301:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:301:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:304:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:304:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:333:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:363:33: call_function: inlined call to ‘wts_read_drdynvc_close_response’ from ‘wts_read_drdynvc_pdu’
#  269|   	WINPR_ASSERT(channel);
#  270|   	DEBUG_DVC("ChannelId %" PRIu32 " close response", channel->channelId);
#  271|-> 	channel->dvc_open_state = DVC_OPEN_STATE_CLOSED;
#  272|   	MessageQueue_PostQuit(channel->queue, 0);
#  273|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def650]
FreeRDP-3.16.0/libfreerdp/core/server.c:339:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dvc’
FreeRDP-3.16.0/libfreerdp/core/server.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:291:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:298:12: branch_false: following ‘false’ branch (when ‘Cmd != 5’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:301:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:301:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:304:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:304:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:333:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:339:37: danger: dereference of NULL ‘dvc’
#  337|   
#  338|   			case DATA_FIRST_PDU:
#  339|-> 				if (dvc->dvc_open_state != DVC_OPEN_STATE_SUCCEEDED)
#  340|   				{
#  341|   					WLog_ERR(TAG,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def651]
FreeRDP-3.16.0/libfreerdp/core/server.c:351:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dvc’
FreeRDP-3.16.0/libfreerdp/core/server.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:291:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:298:12: branch_false: following ‘false’ branch (when ‘Cmd != 5’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:301:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:301:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:304:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:304:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:333:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:351:37: danger: dereference of NULL ‘dvc’
#  349|   
#  350|   			case DATA_PDU:
#  351|-> 				if (dvc->dvc_open_state != DVC_OPEN_STATE_SUCCEEDED)
#  352|   				{
#  353|   					WLog_ERR(TAG,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def652]
FreeRDP-3.16.0/libfreerdp/core/server.c:440:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 64)’
FreeRDP-3.16.0/libfreerdp/core/server.c:1440:15: enter_function: entry to ‘FreeRDP_WTSVirtualChannelOpenEx’
FreeRDP-3.16.0/libfreerdp/core/server.c:1450:12: branch_false: following ‘false’ branch (when ‘SessionId != 4294967295’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1454:72: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1456:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1459:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1459:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1464:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1478:12: branch_false: following ‘false’ branch (when ‘joined != 0’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1484:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1484:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1496:19: call_function: calling ‘channel_new’ from ‘FreeRDP_WTSVirtualChannelOpenEx’
FreeRDP-3.16.0/libfreerdp/core/server.c:1496:19: return_function: returning to ‘FreeRDP_WTSVirtualChannelOpenEx’ from ‘channel_new’
FreeRDP-3.16.0/libfreerdp/core/server.c:1498:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1504:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1507:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1513:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1513:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1515:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1518:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1518:14: call_function: calling ‘wts_write_drdynvc_create_request’ from ‘FreeRDP_WTSVirtualChannelOpenEx’
#  438|   	len = strlen(ChannelName) + 1;
#  439|   
#  440|-> 	if (!Stream_EnsureRemainingCapacity(s, len))
#  441|   		return FALSE;
#  442|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def653]
FreeRDP-3.16.0/libfreerdp/core/server.c:578:38: warning[-Wanalyzer-malloc-leak]: leak of ‘WTSVirtualChannelOpen(hServer, 4294967295, "drdynvc")’
FreeRDP-3.16.0/libfreerdp/core/server.c:562:12: branch_false: following ‘false’ branch (when ‘hServer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:565:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:565:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:570:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:571:44: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:574:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:576:30: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:578:38: danger: ‘WTSVirtualChannelOpen(hServer, 4294967295, "drdynvc")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  576|   			BYTE capaBuffer[12] = { 0 };
#  577|   			wStream staticS = { 0 };
#  578|-> 			wStream* s = Stream_StaticInit(&staticS, capaBuffer, sizeof(capaBuffer));
#  579|   
#  580|   			vcm->drdynvc_channel = channel;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def654]
FreeRDP-3.16.0/libfreerdp/core/server.c:984:9: warning[-Wanalyzer-mismatching-deallocation]: ‘channel_new(HashTable_GetItemValue(g_ServerHandles, (const void *)(long unsigned int)SessionId), client, 0, 0, 1, (long unsigned int)freerdp_settings_get_uint32(*client_41->context.settings, 2881), pVirtualName)’ should have been deallocated with ‘free’ but was deallocated with ‘server_channel_common_free’
FreeRDP-3.16.0/libfreerdp/core/server.c:1440:15: enter_function: entry to ‘FreeRDP_WTSVirtualChannelOpenEx’
FreeRDP-3.16.0/libfreerdp/core/server.c:1450:12: branch_false: following ‘false’ branch (when ‘SessionId != 4294967295’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1454:72: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1456:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1459:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1459:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1464:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1478:12: branch_false: following ‘false’ branch (when ‘joined != 0’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1484:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1484:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1496:19: call_function: calling ‘channel_new’ from ‘FreeRDP_WTSVirtualChannelOpenEx’
FreeRDP-3.16.0/libfreerdp/core/server.c:1496:19: return_function: returning to ‘FreeRDP_WTSVirtualChannelOpenEx’ from ‘channel_new’
FreeRDP-3.16.0/libfreerdp/core/server.c:1498:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1504:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1507:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1509:17: call_function: inlined call to ‘channel_free’ from ‘FreeRDP_WTSVirtualChannelOpenEx’
#  982|   static void channel_free(rdpPeerChannel* channel)
#  983|   {
#  984|-> 	server_channel_common_free(channel);
#  985|   }
#  986|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def655]
FreeRDP-3.16.0/libfreerdp/core/server.c:1038:35: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1036:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1038:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1038:35: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
# 1036|   	if (!g_ServerHandles)
# 1037|   	{
# 1038|-> 		g_ServerHandles = HashTable_New(TRUE);
# 1039|   
# 1040|   		if (!g_ServerHandles)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def656]
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:14: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1036:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:65: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:14: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
# 1042|   	}
# 1043|   
# 1044|-> 	if (!HashTable_Insert(g_ServerHandles, (void*)(UINT_PTR)vcm->SessionId, (void*)vcm))
# 1045|   		goto error_free;
# 1046|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def657]
FreeRDP-3.16.0/libfreerdp/core/server.c:1048:22: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1048:22: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
# 1046|   
# 1047|   	queueCallbacks.fnObjectFree = wts_virtual_channel_manager_free_message;
# 1048|-> 	vcm->queue = MessageQueue_New(&queueCallbacks);
# 1049|   
# 1050|   	if (!vcm->queue)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def658]
FreeRDP-3.16.0/libfreerdp/core/server.c:1054:39: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1048:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1054:39: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
# 1052|   
# 1053|   	vcm->dvc_channel_id_seq = 0;
# 1054|-> 	vcm->dynamicVirtualChannels = HashTable_New(TRUE);
# 1055|   
# 1056|   	if (!vcm->dynamicVirtualChannels)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def659]
FreeRDP-3.16.0/libfreerdp/core/server.c:1054:39: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1054:39: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
# 1052|   
# 1053|   	vcm->dvc_channel_id_seq = 0;
# 1054|-> 	vcm->dynamicVirtualChannels = HashTable_New(TRUE);
# 1055|   
# 1056|   	if (!vcm->dynamicVirtualChannels)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def660]
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1054:39: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:14: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/10)
# 1057|   		goto error_dynamicVirtualChannels;
# 1058|   
# 1059|-> 	if (!HashTable_SetHashFunction(vcm->dynamicVirtualChannels, channelId_Hash))
# 1060|   		goto error_hashFunction;
# 1061|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def661]
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:14: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:14: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
# 1057|   		goto error_dynamicVirtualChannels;
# 1058|   
# 1059|-> 	if (!HashTable_SetHashFunction(vcm->dynamicVirtualChannels, channelId_Hash))
# 1060|   		goto error_hashFunction;
# 1061|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def662]
FreeRDP-3.16.0/libfreerdp/core/server.c:1063:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1048:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1063:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1063:32: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
# 1061|   
# 1062|   	{
# 1063|-> 		wObject* obj = HashTable_ValueObject(vcm->dynamicVirtualChannels);
# 1064|   		WINPR_ASSERT(obj);
# 1065|   		obj->fnObjectFree = array_channel_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def663]
FreeRDP-3.16.0/libfreerdp/core/server.c:1063:32: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1063:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1063:32: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 1061|   
# 1062|   	{
# 1063|-> 		wObject* obj = HashTable_ValueObject(vcm->dynamicVirtualChannels);
# 1064|   		WINPR_ASSERT(obj);
# 1065|   		obj->fnObjectFree = array_channel_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def664]
FreeRDP-3.16.0/libfreerdp/core/server.c:1067:23: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1063:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1067:23: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
# 1065|   		obj->fnObjectFree = array_channel_free;
# 1066|   
# 1067|-> 		obj = HashTable_KeyObject(vcm->dynamicVirtualChannels);
# 1068|   		obj->fnObjectEquals = dynChannelMatch;
# 1069|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def665]
FreeRDP-3.16.0/libfreerdp/core/server.c:1075:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1048:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1060:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1075:9: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
# 1073|   
# 1074|   error_hashFunction:
# 1075|-> 	HashTable_Free(vcm->dynamicVirtualChannels);
# 1076|   error_dynamicVirtualChannels:
# 1077|   	MessageQueue_Free(vcm->queue);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def666]
FreeRDP-3.16.0/libfreerdp/core/server.c:1075:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1059:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1060:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1075:9: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
# 1073|   
# 1074|   error_hashFunction:
# 1075|-> 	HashTable_Free(vcm->dynamicVirtualChannels);
# 1076|   error_dynamicVirtualChannels:
# 1077|   	MessageQueue_Free(vcm->queue);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
FreeRDP-3.16.0/libfreerdp/core/server.c:1077:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*vcm.queue’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1048:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1056:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1057:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1077:9: danger: ‘*vcm.queue’ leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
# 1075|   	HashTable_Free(vcm->dynamicVirtualChannels);
# 1076|   error_dynamicVirtualChannels:
# 1077|-> 	MessageQueue_Free(vcm->queue);
# 1078|   error_queue:
# 1079|   	HashTable_Remove(g_ServerHandles, (void*)(UINT_PTR)vcm->SessionId);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def668]
FreeRDP-3.16.0/libfreerdp/core/server.c:1077:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1056:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1057:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1077:9: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
# 1075|   	HashTable_Free(vcm->dynamicVirtualChannels);
# 1076|   error_dynamicVirtualChannels:
# 1077|-> 	MessageQueue_Free(vcm->queue);
# 1078|   error_queue:
# 1079|   	HashTable_Remove(g_ServerHandles, (void*)(UINT_PTR)vcm->SessionId);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def669]
FreeRDP-3.16.0/libfreerdp/core/server.c:1079:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.16.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1050:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1051:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1079:9: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
# 1077|   	MessageQueue_Free(vcm->queue);
# 1078|   error_queue:
# 1079|-> 	HashTable_Remove(g_ServerHandles, (void*)(UINT_PTR)vcm->SessionId);
# 1080|   error_free:
# 1081|   	free(vcm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def670]
FreeRDP-3.16.0/libfreerdp/core/server.c:1584:47: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 8)’
FreeRDP-3.16.0/libfreerdp/core/server.c:1546:12: branch_true: following ‘true’ branch (when ‘hChannelHandle’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1548:43: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1556:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1568:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1568:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1570:39: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1571:37: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1573:36: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1580:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1584:47: danger: ‘Stream_New(0, 8)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/6)
# 1582|   					const size_t pos = Stream_GetPosition(s);
# 1583|   					WINPR_ASSERT(pos <= UINT32_MAX);
# 1584|-> 					ret = WTSVirtualChannelWrite(vcm->drdynvc_channel, Stream_BufferAs(s, char),
# 1585|   					                             (UINT32)pos, &written);
# 1586|   					Stream_Free(s, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def671]
FreeRDP-3.16.0/libfreerdp/core/server.c:1586:41: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 8)’
FreeRDP-3.16.0/libfreerdp/core/server.c:1546:12: branch_true: following ‘true’ branch (when ‘hChannelHandle’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1548:43: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1556:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1568:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1568:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1570:39: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1571:37: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1573:36: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1580:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1586:41: danger: ‘Stream_New(0, 8)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/6)
# 1584|   					ret = WTSVirtualChannelWrite(vcm->drdynvc_channel, Stream_BufferAs(s, char),
# 1585|   					                             (UINT32)pos, &written);
# 1586|-> 					Stream_Free(s, TRUE);
# 1587|   				}
# 1588|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def672]
FreeRDP-3.16.0/libfreerdp/core/server.c:1698:48: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1600)’
FreeRDP-3.16.0/libfreerdp/core/server.c:1641:13: enter_function: entry to ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.16.0/libfreerdp/core/server.c:1653:12: branch_false: following ‘false’ branch (when ‘hChannelHandle’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1656:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1673:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1673:17: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1683:24: branch_true: following ‘true’ branch (when ‘Length != 0’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1685:29: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1685:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1687:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1694:34: call_function: inlined call to ‘Stream_Buffer’ from ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.16.0/libfreerdp/core/server.c:1698:28: branch_true: following ‘true’ branch (when ‘first != 0’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1698:48: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1698:48: danger: ‘Stream_New(0, 1600)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/9)
# 1696|   			cbChId = wts_write_variable_uint(s, channel->channelId);
# 1697|   
# 1698|-> 			if (first && (Length > Stream_GetRemainingLength(s)))
# 1699|   			{
# 1700|   				cbLen = wts_write_variable_uint(s, WINPR_ASSERTING_INT_CAST(uint32_t, Length));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def673]
FreeRDP-3.16.0/libfreerdp/core/server.c:1709:42: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1600)’
FreeRDP-3.16.0/libfreerdp/core/server.c:1641:13: enter_function: entry to ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.16.0/libfreerdp/core/server.c:1653:12: branch_false: following ‘false’ branch (when ‘hChannelHandle’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1656:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1673:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1673:17: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1683:24: branch_true: following ‘true’ branch (when ‘Length != 0’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1685:29: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1685:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1687:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1694:34: call_function: inlined call to ‘Stream_Buffer’ from ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.16.0/libfreerdp/core/server.c:1698:28: branch_true: following ‘true’ branch (when ‘first != 0’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1698:48: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1709:42: danger: ‘Stream_New(0, 1600)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/9)
# 1707|   
# 1708|   			first = FALSE;
# 1709|-> 			size_t written = Stream_GetRemainingLength(s);
# 1710|   
# 1711|   			if (written > Length)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def674]
FreeRDP-3.16.0/libfreerdp/core/server.c:1717:28: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1600)’
FreeRDP-3.16.0/libfreerdp/core/server.c:1641:13: enter_function: entry to ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.16.0/libfreerdp/core/server.c:1653:12: branch_false: following ‘false’ branch (when ‘hChannelHandle’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1656:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1673:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1673:17: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1683:24: branch_true: following ‘true’ branch (when ‘Length != 0’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1685:29: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1685:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1687:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:1694:34: call_function: inlined call to ‘Stream_Buffer’ from ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.16.0/libfreerdp/core/server.c:1698:28: branch_true: following ‘true’ branch (when ‘first != 0’)...
FreeRDP-3.16.0/libfreerdp/core/server.c:1698:48: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:1714:25: call_function: inlined call to ‘Stream_Write’ from ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.16.0/libfreerdp/core/server.c:1715:47: call_function: inlined call to ‘Stream_GetPosition’ from ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.16.0/libfreerdp/core/server.c:1717:28: danger: ‘Stream_New(0, 1600)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/9)
# 1715|   			const size_t length = Stream_GetPosition(s);
# 1716|   			Stream_Free(s, FALSE);
# 1717|-> 			if (length > UINT32_MAX)
# 1718|   				goto fail;
# 1719|   			Length -= written;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def675]
FreeRDP-3.16.0/libfreerdp/core/server.c:2093:9: warning[-Wanalyzer-use-after-free]: use after ‘server_channel_common_free’ of ‘channel’
FreeRDP-3.16.0/libfreerdp/core/server.c:987:13: enter_function: entry to ‘array_channel_free’
FreeRDP-3.16.0/libfreerdp/core/server.c:990:9: call_function: inlined call to ‘channel_free’ from ‘array_channel_free’
# 2091|   	if (!channel)
# 2092|   		return;
# 2093|-> 	MessageQueue_Free(channel->queue);
# 2094|   	Stream_Free(channel->receiveData, TRUE);
# 2095|   	DeleteCriticalSection(&channel->writeLock);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def676]
FreeRDP-3.16.0/libfreerdp/core/server.c:2093:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*channel.queue’
FreeRDP-3.16.0/libfreerdp/core/server.c:2099:17: enter_function: entry to ‘server_channel_common_new’
FreeRDP-3.16.0/libfreerdp/core/server.c:2104:12: branch_false: following ‘false’ branch (when ‘channel’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:2107:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:2125:9: call_function: calling ‘server_channel_common_free’ from ‘server_channel_common_new’
# 2091|   	if (!channel)
# 2092|   		return;
# 2093|-> 	MessageQueue_Free(channel->queue);
# 2094|   	Stream_Free(channel->receiveData, TRUE);
# 2095|   	DeleteCriticalSection(&channel->writeLock);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def677]
FreeRDP-3.16.0/libfreerdp/core/server.c:2104:12: warning[-Wanalyzer-malloc-leak]: leak of ‘server_channel_common_new(client,  index,  ChannelId,  chunkSize, & queueCallbacks,  name)’
FreeRDP-3.16.0/libfreerdp/core/server.c:1333:24: enter_function: entry to ‘channel_new’
FreeRDP-3.16.0/libfreerdp/core/server.c:1341:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1341:13: call_function: calling ‘server_channel_common_new’ from ‘channel_new’
# 2102|   {
# 2103|   	rdpPeerChannel* channel = (rdpPeerChannel*)calloc(1, sizeof(rdpPeerChannel));
# 2104|-> 	if (!channel)
# 2105|   		return NULL;
# 2106|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def678]
FreeRDP-3.16.0/libfreerdp/core/server.c:2107:9: warning[-Wanalyzer-malloc-leak]: leak of ‘channel’
FreeRDP-3.16.0/libfreerdp/core/server.c:2103:52: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:2104:12: branch_false: following ‘false’ branch (when ‘channel’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:2107:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:2107:9: danger: ‘channel’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
# 2105|   		return NULL;
# 2106|   
# 2107|-> 	InitializeCriticalSection(&channel->writeLock);
# 2108|   
# 2109|   	channel->receiveData = Stream_New(NULL, chunkSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def679]
FreeRDP-3.16.0/libfreerdp/core/server.c:2107:9: warning[-Wanalyzer-malloc-leak]: leak of ‘server_channel_common_new(client,  index,  ChannelId,  chunkSize, & queueCallbacks,  name)’
FreeRDP-3.16.0/libfreerdp/core/server.c:1333:24: enter_function: entry to ‘channel_new’
FreeRDP-3.16.0/libfreerdp/core/server.c:1341:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1341:13: call_function: calling ‘server_channel_common_new’ from ‘channel_new’
# 2105|   		return NULL;
# 2106|   
# 2107|-> 	InitializeCriticalSection(&channel->writeLock);
# 2108|   
# 2109|   	channel->receiveData = Stream_New(NULL, chunkSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def680]
FreeRDP-3.16.0/libfreerdp/core/server.c:2107:35: warning[-Wanalyzer-malloc-leak]: leak of ‘server_channel_common_new(client,  index,  ChannelId,  chunkSize, & queueCallbacks,  name)’
FreeRDP-3.16.0/libfreerdp/core/server.c:1333:24: enter_function: entry to ‘channel_new’
FreeRDP-3.16.0/libfreerdp/core/server.c:1341:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1341:13: call_function: calling ‘server_channel_common_new’ from ‘channel_new’
# 2105|   		return NULL;
# 2106|   
# 2107|-> 	InitializeCriticalSection(&channel->writeLock);
# 2108|   
# 2109|   	channel->receiveData = Stream_New(NULL, chunkSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def681]
FreeRDP-3.16.0/libfreerdp/core/server.c:2109:32: warning[-Wanalyzer-malloc-leak]: leak of ‘server_channel_common_new(client,  index,  ChannelId,  chunkSize, & queueCallbacks,  name)’
FreeRDP-3.16.0/libfreerdp/core/server.c:1333:24: enter_function: entry to ‘channel_new’
FreeRDP-3.16.0/libfreerdp/core/server.c:1341:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1341:13: call_function: calling ‘server_channel_common_new’ from ‘channel_new’
# 2107|   	InitializeCriticalSection(&channel->writeLock);
# 2108|   
# 2109|-> 	channel->receiveData = Stream_New(NULL, chunkSize);
# 2110|   	if (!channel->receiveData)
# 2111|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def682]
FreeRDP-3.16.0/libfreerdp/core/server.c:2113:26: warning[-Wanalyzer-malloc-leak]: leak of ‘server_channel_common_new(client,  index,  ChannelId,  chunkSize, & queueCallbacks,  name)’
FreeRDP-3.16.0/libfreerdp/core/server.c:1333:24: enter_function: entry to ‘channel_new’
FreeRDP-3.16.0/libfreerdp/core/server.c:1341:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:1341:13: call_function: calling ‘server_channel_common_new’ from ‘channel_new’
# 2111|   		goto fail;
# 2112|   
# 2113|-> 	channel->queue = MessageQueue_New(callback);
# 2114|   	if (!channel->queue)
# 2115|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def683]
FreeRDP-3.16.0/libfreerdp/core/server.c:2120:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/server.c:2104:12: branch_false: following ‘false’ branch (when ‘channel’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:2107:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:2110:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:2113:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:2113:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/server.c:2114:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:2117:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:2120:9: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/4)
# 2118|   	channel->client = client;
# 2119|   	channel->channelId = channelId;
# 2120|-> 	strncpy(channel->channelName, name, ARRAYSIZE(channel->channelName) - 1);
# 2121|   	return channel;
# 2122|   fail:

Error: GCC_ANALYZER_WARNING (CWE-762): [#def684]
FreeRDP-3.16.0/libfreerdp/core/server.c:2125:9: warning[-Wanalyzer-mismatching-deallocation]: ‘channel’ should have been deallocated with ‘free’ but was deallocated with ‘server_channel_common_free’
FreeRDP-3.16.0/libfreerdp/core/server.c:2103:52: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/server.c:2104:12: branch_false: following ‘false’ branch (when ‘channel’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/server.c:2107:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:2110:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/server.c:2111:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/server.c:2125:9: danger: deallocated with ‘server_channel_common_free’ here; allocation at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 2123|   	WINPR_PRAGMA_DIAG_PUSH
# 2124|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2125|-> 	server_channel_common_free(channel);
# 2126|   	WINPR_PRAGMA_DIAG_POP
# 2127|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def685]
FreeRDP-3.16.0/libfreerdp/core/settings.c:393:21: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array((long unsigned int)freerdp_settings_get_uint32(settings, 384))’
FreeRDP-3.16.0/libfreerdp/core/settings.c:535:13: enter_function: entry to ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.16.0/libfreerdp/core/settings.c:539:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: call_function: calling ‘alloc_array’ from ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: return_function: returning to ‘freerdp_settings_client_monitors_have_gaps’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:545:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:548:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:549:21: call_function: calling ‘monitor_has_gaps’ from ‘freerdp_settings_client_monitors_have_gaps’
#  391|   
#  392|   		const rdpMonitor* monitor =
#  393|-> 		    freerdp_settings_get_pointer_array(settings, FreeRDP_MonitorDefArray, i);
#  394|   
#  395|   		const struct bounds_t rect2 = {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def686]
FreeRDP-3.16.0/libfreerdp/core/settings.c:425:57: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array((long unsigned int)freerdp_settings_get_uint32(settings, 384))’
FreeRDP-3.16.0/libfreerdp/core/settings.c:535:13: enter_function: entry to ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.16.0/libfreerdp/core/settings.c:539:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: call_function: calling ‘alloc_array’ from ‘freerdp_settings_client_monitors_have_gaps’
#  423|   {
#  424|   	// NOLINTNEXTLINE(clang-analyzer-unix.MallocSizeof)
#  425|-> 	BYTE* array = calloc(count * sizeof(uintptr_t), count * sizeof(UINT32));
#  426|   	UINT32** dst = (UINT32**)array;
#  427|   	UINT32* val = (UINT32*)(array + count * sizeof(uintptr_t));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def687]
FreeRDP-3.16.0/libfreerdp/core/settings.c:425:57: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array(count)’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
#  423|   {
#  424|   	// NOLINTNEXTLINE(clang-analyzer-unix.MallocSizeof)
#  425|-> 	BYTE* array = calloc(count * sizeof(uintptr_t), count * sizeof(UINT32));
#  426|   	UINT32** dst = (UINT32**)array;
#  427|   	UINT32* val = (UINT32*)(array + count * sizeof(uintptr_t));

Error: CPPCHECK_WARNING (CWE-682): [#def688]
FreeRDP-3.16.0/libfreerdp/core/settings.c:427: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  425|   	BYTE* array = calloc(count * sizeof(uintptr_t), count * sizeof(UINT32));
#  426|   	UINT32** dst = (UINT32**)array;
#  427|-> 	UINT32* val = (UINT32*)(array + count * sizeof(uintptr_t));
#  428|   	for (size_t x = 0; x < count; x++)
#  429|   		dst[x] = &val[x];

Error: CPPCHECK_WARNING (CWE-476): [#def689]
FreeRDP-3.16.0/libfreerdp/core/settings.c:429: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dst
#  427|   	UINT32* val = (UINT32*)(array + count * sizeof(uintptr_t));
#  428|   	for (size_t x = 0; x < count; x++)
#  429|-> 		dst[x] = &val[x];
#  430|   
#  431|   	return dst;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def690]
FreeRDP-3.16.0/libfreerdp/core/settings.c:429:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:425:23: acquire_memory: this call could return NULL
FreeRDP-3.16.0/libfreerdp/core/settings.c:428:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:429:30: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:429:17: danger: ‘array + x * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  427|   	UINT32* val = (UINT32*)(array + count * sizeof(uintptr_t));
#  428|   	for (size_t x = 0; x < count; x++)
#  429|-> 		dst[x] = &val[x];
#  430|   
#  431|   	return dst;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def691]
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘distance’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:452:28: acquire_memory: this call could return NULL
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:17: danger: ‘distance + (long unsigned int)x * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/8)
#  472|   	for (UINT32 x = 0; x < count; x++)
#  473|   	{
#  474|-> 		distance[x] = cost[start][x];
#  475|   		parent[x] = start;
#  476|   		visited[x] = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def692]
FreeRDP-3.16.0/libfreerdp/core/settings.c:475:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘parent’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:458:26: acquire_memory: this call could return NULL
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:475:17: danger: ‘parent + (long unsigned int)x * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
#  473|   	{
#  474|   		distance[x] = cost[start][x];
#  475|-> 		parent[x] = start;
#  476|   		visited[x] = 0;
#  477|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def693]
FreeRDP-3.16.0/libfreerdp/core/settings.c:476:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘visited’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:455:27: acquire_memory: this call could return NULL
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:476:17: danger: ‘visited + (long unsigned int)x * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/8)
#  474|   		distance[x] = cost[start][x];
#  475|   		parent[x] = start;
#  476|-> 		visited[x] = 0;
#  477|   	}
#  478|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def694]
FreeRDP-3.16.0/libfreerdp/core/settings.c:527:9: warning[-Wanalyzer-mismatching-deallocation]: ‘alloc_array(count)’ should have been deallocated with ‘free’ but was deallocated with ‘alloc_free’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_false: following ‘false’ branch (when ‘x >= count’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:479:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_false: following ‘false’ branch (when ‘x >= count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:527:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:527:9: danger: deallocated with ‘alloc_free’ here; allocation at [(6)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/5) expects deallocation with ‘free’
#  525|   		}
#  526|   	}
#  527|-> 	alloc_free(cost);
#  528|   	free(distance);
#  529|   	free(visited);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def695]
FreeRDP-3.16.0/libfreerdp/core/settings.c:548:21: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array((long unsigned int)freerdp_settings_get_uint32(settings, 384))’
FreeRDP-3.16.0/libfreerdp/core/settings.c:535:13: enter_function: entry to ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.16.0/libfreerdp/core/settings.c:539:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: call_function: calling ‘alloc_array’ from ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: return_function: returning to ‘freerdp_settings_client_monitors_have_gaps’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:545:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:548:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:548:21: danger: ‘alloc_array((long unsigned int)freerdp_settings_get_uint32(settings, 384))’ leaks here; was allocated at [(6)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/5)
#  546|   	{
#  547|   		const rdpMonitor* monitor =
#  548|-> 		    freerdp_settings_get_pointer_array(settings, FreeRDP_MonitorDefArray, x);
#  549|   		if (monitor_has_gaps(settings, x, count, monitor, graph))
#  550|   			goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def696]
FreeRDP-3.16.0/libfreerdp/core/settings.c:774:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_get_config_path()’
FreeRDP-3.16.0/libfreerdp/core/settings.c:786:14: enter_function: entry to ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:793:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:796:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:833:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:864:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:865:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:866:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:867:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:868:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:869:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:876:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:877:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:880:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:881:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:882:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:883:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:884:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:885:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:886:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:887:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:888:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:889:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:890:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:891:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:892:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:893:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:894:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:895:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:896:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:897:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:898:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:899:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:900:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:901:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:902:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:904:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:906:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:907:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:908:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:909:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:910:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:912:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:913:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:914:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:915:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:916:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:917:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:918:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:919:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:920:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:921:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:922:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:923:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:924:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:925:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:926:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:927:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:928:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:929:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:931:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:932:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:933:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:934:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:935:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:936:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:937:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:938:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:939:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:940:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:941:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:942:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:943:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:944:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:945:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:946:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: call_function: calling ‘settings_init_computer_name’ from ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: return_function: returning to ‘freerdp_settings_new’ from ‘settings_init_computer_name’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:988:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1002:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1005:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1017:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1018:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1019:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1020:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1021:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1022:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1023:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1024:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1025:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1028:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1030:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1034:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1038:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1040:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1043:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1045:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1046:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1050:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1051:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1052:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1054:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1059:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1061:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1107:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1111:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1112:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1113:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1114:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1115:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1116:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1117:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1119:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1120:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1121:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1126:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1128:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1129:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1130:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1131:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1132:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1133:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1134:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1135:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1136:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1137:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1138:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1139:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1140:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1141:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1142:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1143:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1144:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1145:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1146:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1147:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1148:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1149:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1150:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1151:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1152:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1153:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1154:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1157:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1158:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1163:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1164:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1169:61: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1171:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1174:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1195:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1196:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1197:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1198:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1199:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1209:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1213:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1216:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1216:32: call_function: calling ‘freerdp_settings_get_config_path’ from ‘freerdp_settings_new’
#  772|   	 * Custom builds use <Vendor>/<Product> as config folder. */
#  773|   #if !defined(WITH_FULL_CONFIG_PATH)
#  774|-> 	if (_stricmp(FREERDP_VENDOR_STRING, FREERDP_PRODUCT_STRING) == 0)
#  775|   		return freerdp_settings_get_legacy_config_path();
#  776|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def697]
FreeRDP-3.16.0/libfreerdp/core/settings.c:778:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_get_config_path()’
FreeRDP-3.16.0/libfreerdp/core/settings.c:767:7: enter_function: entry to ‘freerdp_settings_get_config_path’
FreeRDP-3.16.0/libfreerdp/core/settings.c:774:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
 acquire_memory: allocated here
 call_function: calling ‘freerdp_settings_get_config_path’ from ‘freerdp_settings_get_config_path’
#  776|   #endif
#  777|   
#  778|-> 	char* base = GetKnownSubPath(KNOWN_PATH_XDG_CONFIG_HOME, FREERDP_VENDOR_STRING);
#  779|   	if (base)
#  780|   		path = GetCombinedPath(base, FREERDP_PRODUCT_STRING);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def698]
FreeRDP-3.16.0/libfreerdp/core/settings.c:780:24: warning[-Wanalyzer-malloc-leak]: leak of ‘GetKnownSubPath(4, "FreeRDP")’
FreeRDP-3.16.0/libfreerdp/core/settings.c:778:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:779:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:780:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:780:24: danger: ‘GetKnownSubPath(4, "FreeRDP")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  778|   	char* base = GetKnownSubPath(KNOWN_PATH_XDG_CONFIG_HOME, FREERDP_VENDOR_STRING);
#  779|   	if (base)
#  780|-> 		path = GetCombinedPath(base, FREERDP_PRODUCT_STRING);
#  781|   	free(base);
#  782|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def699]
FreeRDP-3.16.0/libfreerdp/core/settings.c:780:24: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_get_config_path()’
FreeRDP-3.16.0/libfreerdp/core/settings.c:767:7: enter_function: entry to ‘freerdp_settings_get_config_path’
FreeRDP-3.16.0/libfreerdp/core/settings.c:774:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
 acquire_memory: allocated here
 call_function: calling ‘freerdp_settings_get_config_path’ from ‘freerdp_settings_get_config_path’
#  778|   	char* base = GetKnownSubPath(KNOWN_PATH_XDG_CONFIG_HOME, FREERDP_VENDOR_STRING);
#  779|   	if (base)
#  780|-> 		path = GetCombinedPath(base, FREERDP_PRODUCT_STRING);
#  781|   	free(base);
#  782|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def700]
FreeRDP-3.16.0/libfreerdp/core/settings.c:781:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_get_config_path()’
FreeRDP-3.16.0/libfreerdp/core/settings.c:767:7: enter_function: entry to ‘freerdp_settings_get_config_path’
FreeRDP-3.16.0/libfreerdp/core/settings.c:774:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
 acquire_memory: allocated here
 call_function: calling ‘freerdp_settings_get_config_path’ from ‘freerdp_settings_get_config_path’
#  779|   	if (base)
#  780|   		path = GetCombinedPath(base, FREERDP_PRODUCT_STRING);
#  781|-> 	free(base);
#  782|   
#  783|   	return path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def701]
FreeRDP-3.16.0/libfreerdp/core/settings.c:798:22: warning[-Wanalyzer-malloc-leak]: leak of ‘settings’
FreeRDP-3.16.0/libfreerdp/core/settings.c:791:47: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:793:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:796:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:796:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:798:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:798:22: danger: ‘settings’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
#  796|   	if (!server && !remote)
#  797|   	{
#  798|-> 		if (!freerdp_settings_set_string(settings, FreeRDP_GatewayAvdScope,
#  799|   		                                 "https%%3A%%2F%%2F%s%%2F%s%%2Foauth2%%2Fnativeclient"))
#  800|   			goto out_fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def702]
FreeRDP-3.16.0/libfreerdp/core/settings.c:833:14: warning[-Wanalyzer-malloc-leak]: leak of ‘settings’
FreeRDP-3.16.0/libfreerdp/core/settings.c:791:47: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:793:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:796:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:796:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:833:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:833:14: danger: ‘settings’ leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
#  831|   			goto out_fail;
#  832|   	}
#  833|-> 	if (!freerdp_settings_set_uint32(settings, FreeRDP_SurfaceCommandsSupported,
#  834|   	                                 SURFCMDS_SET_SURFACE_BITS | SURFCMDS_STREAM_SURFACE_BITS |
#  835|   	                                     SURFCMDS_FRAME_MARKER))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
FreeRDP-3.16.0/libfreerdp/core/settings.c:1210:22: warning[-Wanalyzer-malloc-leak]: leak of ‘GetKnownPath(1)’
FreeRDP-3.16.0/libfreerdp/core/settings.c:786:14: enter_function: entry to ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:793:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:796:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:833:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:864:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:865:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:866:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:867:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:868:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:869:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:876:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:877:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:880:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:881:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:882:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:883:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:884:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:885:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:886:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:887:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:888:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:889:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:890:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:891:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:892:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:893:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:894:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:895:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:896:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:897:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:898:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:899:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:900:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:901:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:902:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:904:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:906:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:907:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:908:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:909:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:910:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:912:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:913:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:914:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:915:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:916:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:917:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:918:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:919:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:920:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:921:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:922:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:923:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:924:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:925:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:926:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:927:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:928:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:929:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:931:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:932:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:933:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:934:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:935:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:936:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:937:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:938:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:939:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:940:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:941:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:942:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:943:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:944:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:945:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:946:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: call_function: calling ‘settings_init_computer_name’ from ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: return_function: returning to ‘freerdp_settings_new’ from ‘settings_init_computer_name’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:988:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1002:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1005:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1017:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1018:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1019:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1020:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1021:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1022:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1023:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1024:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1025:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1028:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1030:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1034:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1038:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1040:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1043:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1045:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1046:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1050:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1051:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1052:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1054:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1059:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1061:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1107:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1111:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1112:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1113:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1114:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1115:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1116:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1117:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1119:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1120:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1121:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1126:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1128:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1129:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1130:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1131:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1132:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1133:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1134:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1135:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1136:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1137:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1138:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1139:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1140:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1141:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1142:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1143:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1144:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1145:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1146:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1147:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1148:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1149:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1150:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1151:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1152:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1153:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1154:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1157:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1158:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1163:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1164:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1169:61: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1171:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1174:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1195:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1196:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1197:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1198:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1199:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1209:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1209:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1210:22: danger: ‘GetKnownPath(1)’ leaks here; was allocated at [(361)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/360)
# 1208|   		/* these values are used only by the client part */
# 1209|   		path = GetKnownPath(KNOWN_PATH_HOME);
# 1210|-> 		rc = freerdp_settings_set_string(settings, FreeRDP_HomePath, path);
# 1211|   		free(path);
# 1212|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
FreeRDP-3.16.0/libfreerdp/core/settings.c:1217:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_get_config_path()’
FreeRDP-3.16.0/libfreerdp/core/settings.c:786:14: enter_function: entry to ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:793:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:796:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:833:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:864:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:865:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:866:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:867:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:868:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:869:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:876:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:877:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:880:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:881:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:882:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:883:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:884:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:885:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:886:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:887:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:888:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:889:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:890:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:891:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:892:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:893:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:894:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:895:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:896:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:897:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:898:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:899:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:900:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:901:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:902:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:904:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:906:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:907:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:908:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:909:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:910:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:912:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:913:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:914:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:915:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:916:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:917:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:918:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:919:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:920:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:921:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:922:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:923:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:924:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:925:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:926:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:927:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:928:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:929:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:931:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:932:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:933:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:934:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:935:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:936:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:937:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:938:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:939:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:940:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:941:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:942:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:943:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:944:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:945:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:946:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: call_function: calling ‘settings_init_computer_name’ from ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: return_function: returning to ‘freerdp_settings_new’ from ‘settings_init_computer_name’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:988:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1002:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1005:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1017:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1018:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1019:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1020:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1021:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1022:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1023:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1024:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1025:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1028:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1030:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1034:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1038:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1040:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1043:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1045:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1046:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1050:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1051:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1052:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1054:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1059:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1061:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1107:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1111:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1112:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1113:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1114:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1115:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1116:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1117:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1119:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1120:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1121:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1126:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1128:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1129:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1130:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1131:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1132:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1133:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1134:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1135:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1136:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1137:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1138:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1139:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1140:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1141:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1142:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1143:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1144:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1145:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1146:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1147:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1148:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1149:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1150:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1151:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1152:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1153:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1154:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1157:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1158:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1163:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1164:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1169:61: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1171:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1174:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1195:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1196:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1197:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1198:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1199:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1209:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1213:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1216:32: call_function: calling ‘freerdp_settings_get_config_path’ from ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:1216:32: return_function: returning to ‘freerdp_settings_new’ from ‘freerdp_settings_get_config_path’
FreeRDP-3.16.0/libfreerdp/core/settings.c:1217:22: danger: ‘freerdp_settings_get_config_path()’ leaks here; was allocated at [(371)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/370)
# 1215|   
# 1216|   		char* config = freerdp_settings_get_config_path();
# 1217|-> 		rc = freerdp_settings_set_string(settings, FreeRDP_ConfigPath, config);
# 1218|   		if (rc)
# 1219|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def705]
FreeRDP-3.16.0/libfreerdp/core/settings.c:1220:40: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_get_config_path()’
FreeRDP-3.16.0/libfreerdp/core/settings.c:786:14: enter_function: entry to ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:793:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:796:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:833:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:864:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:865:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:866:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:867:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:868:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:869:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:876:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:877:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:880:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:881:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:882:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:883:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:884:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:885:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:886:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:887:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:888:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:889:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:890:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:891:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:892:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:893:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:894:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:895:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:896:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:897:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:898:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:899:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:900:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:901:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:902:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:904:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:906:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:907:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:908:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:909:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:910:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:912:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:913:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:914:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:915:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:916:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:917:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:918:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:919:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:920:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:921:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:922:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:923:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:924:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:925:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:926:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:927:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:928:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:929:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:931:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:932:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:933:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:934:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:935:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:936:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:937:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:938:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:939:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:940:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:941:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:942:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:943:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:944:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:945:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:946:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: call_function: calling ‘settings_init_computer_name’ from ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: return_function: returning to ‘freerdp_settings_new’ from ‘settings_init_computer_name’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:988:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1002:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1005:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1017:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1018:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1019:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1020:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1021:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1022:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1023:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1024:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1025:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1028:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1030:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1034:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1038:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1040:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1043:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1045:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1046:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1050:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1051:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1052:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1054:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1059:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1061:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1107:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1111:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1112:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1113:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1114:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1115:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1116:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1117:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1119:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1120:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1121:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1126:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1128:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1129:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1130:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1131:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1132:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1133:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1134:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1135:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1136:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1137:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1138:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1139:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1140:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1141:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1142:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1143:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1144:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1145:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1146:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1147:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1148:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1149:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1150:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1151:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1152:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1153:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1154:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1157:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1158:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1163:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1164:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1169:61: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1171:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1174:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1195:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1196:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1197:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1198:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1199:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1209:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1213:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1216:32: call_function: calling ‘freerdp_settings_get_config_path’ from ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:1216:32: return_function: returning to ‘freerdp_settings_new’ from ‘freerdp_settings_get_config_path’
FreeRDP-3.16.0/libfreerdp/core/settings.c:1218:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1220:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1220:40: danger: ‘freerdp_settings_get_config_path()’ leaks here; was allocated at [(371)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/370)
# 1218|   		if (rc)
# 1219|   		{
# 1220|-> 			char* action = GetCombinedPath(config, "action.sh");
# 1221|   			rc = freerdp_settings_set_string(settings, FreeRDP_ActionScript, action);
# 1222|   			free(action);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def706]
FreeRDP-3.16.0/libfreerdp/core/settings.c:1221:30: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(freerdp_settings_get_config_path(), "action.sh")’
FreeRDP-3.16.0/libfreerdp/core/settings.c:786:14: enter_function: entry to ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:793:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:796:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:833:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:864:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:865:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:866:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:867:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:868:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:869:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:876:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:877:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:880:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:881:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:882:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:883:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:884:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:885:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:886:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:887:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:888:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:889:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:890:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:891:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:892:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:893:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:894:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:895:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:896:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:897:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:898:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:899:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:900:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:901:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:902:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:904:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:906:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:907:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:908:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:909:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:910:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:912:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:913:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:914:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:915:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:916:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:917:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:918:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:919:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:920:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:921:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:922:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:923:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:924:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:925:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:926:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:927:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:928:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:929:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:931:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:932:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:933:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:934:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:935:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:936:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:937:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:938:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:939:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:940:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:941:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:942:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:943:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:944:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:945:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:946:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: call_function: calling ‘settings_init_computer_name’ from ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: return_function: returning to ‘freerdp_settings_new’ from ‘settings_init_computer_name’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:988:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1002:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1005:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1017:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1018:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1019:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1020:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1021:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1022:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1023:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1024:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1025:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1028:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1030:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1034:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1038:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1040:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1043:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1045:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1046:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1050:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1051:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1052:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1054:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1059:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1061:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1107:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1111:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1112:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1113:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1114:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1115:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1116:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1117:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1119:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1120:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1121:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1126:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1128:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1129:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1130:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1131:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1132:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1133:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1134:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1135:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1136:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1137:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1138:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1139:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1140:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1141:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1142:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1143:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1144:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1145:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1146:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1147:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1148:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1149:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1150:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1151:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1152:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1153:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1154:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1157:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1158:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1163:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1164:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1169:61: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1171:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1174:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1195:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1196:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1197:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1198:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1199:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1209:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1213:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1216:32: call_function: calling ‘freerdp_settings_get_config_path’ from ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:1216:32: return_function: returning to ‘freerdp_settings_new’ from ‘freerdp_settings_get_config_path’
FreeRDP-3.16.0/libfreerdp/core/settings.c:1218:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1220:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1220:40: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1221:30: danger: ‘GetCombinedPath(freerdp_settings_get_config_path(), "action.sh")’ leaks here; was allocated at [(375)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/374)
# 1219|   		{
# 1220|   			char* action = GetCombinedPath(config, "action.sh");
# 1221|-> 			rc = freerdp_settings_set_string(settings, FreeRDP_ActionScript, action);
# 1222|   			free(action);
# 1223|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def707]
FreeRDP-3.16.0/libfreerdp/core/settings.c:1221:30: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_get_config_path()’
FreeRDP-3.16.0/libfreerdp/core/settings.c:786:14: enter_function: entry to ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:793:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:796:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:833:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:838:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:841:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:848:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:850:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:853:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:855:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:858:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:864:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:865:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:866:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:867:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:868:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:869:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:876:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:877:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:880:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:881:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:882:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:883:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:884:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:885:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:886:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:887:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:888:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:889:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:890:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:891:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:892:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:893:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:894:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:895:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:896:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:897:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:898:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:899:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:900:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:901:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:902:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:904:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:906:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:907:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:908:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:909:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:910:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:912:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:913:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:914:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:915:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:916:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:917:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:918:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:919:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:920:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:921:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:922:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:923:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:924:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:925:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:926:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:927:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:928:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:929:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:931:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:932:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:933:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:934:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:935:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:936:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:937:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:938:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:939:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:940:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:941:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:942:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:943:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:944:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:945:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:946:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:863:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:949:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:953:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:959:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:965:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:968:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:971:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:974:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: call_function: calling ‘settings_init_computer_name’ from ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:14: return_function: returning to ‘freerdp_settings_new’ from ‘settings_init_computer_name’
FreeRDP-3.16.0/libfreerdp/core/settings.c:977:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:980:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:983:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:988:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1002:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1005:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1004:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1017:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1018:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1019:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1020:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1021:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1022:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1023:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1024:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1025:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1015:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1028:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1030:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1034:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1038:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1036:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1040:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1043:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1041:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1045:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1046:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1050:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1051:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1052:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1049:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1054:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1059:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1061:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1066:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1100:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1064:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1107:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1111:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1112:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1113:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1114:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1115:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1116:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1117:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1119:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1120:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1121:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1126:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1128:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1129:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1130:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1131:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1132:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1133:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1134:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1135:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1136:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1137:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1138:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1139:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1140:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1141:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1142:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1143:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1144:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1145:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1146:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1147:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1148:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1149:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1150:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1151:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1152:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1153:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1154:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1110:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1157:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1158:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1163:39: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1164:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1169:61: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1171:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1174:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1195:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1196:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1197:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1198:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1199:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1194:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1202:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1206:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1209:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1213:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1216:32: call_function: calling ‘freerdp_settings_get_config_path’ from ‘freerdp_settings_new’
FreeRDP-3.16.0/libfreerdp/core/settings.c:1216:32: return_function: returning to ‘freerdp_settings_new’ from ‘freerdp_settings_get_config_path’
FreeRDP-3.16.0/libfreerdp/core/settings.c:1218:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1220:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1221:30: danger: ‘freerdp_settings_get_config_path()’ leaks here; was allocated at [(371)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/370)
# 1219|   		{
# 1220|   			char* action = GetCombinedPath(config, "action.sh");
# 1221|-> 			rc = freerdp_settings_set_string(settings, FreeRDP_ActionScript, action);
# 1222|   			free(action);
# 1223|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def708]
FreeRDP-3.16.0/libfreerdp/core/settings.c:1280:9: warning[-Wanalyzer-malloc-leak]: leak of ‘_settings’
FreeRDP-3.16.0/libfreerdp/core/settings.c:1533:14: enter_function: entry to ‘freerdp_settings_clone’
FreeRDP-3.16.0/libfreerdp/core/settings.c:1535:48: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1537:14: call_function: calling ‘freerdp_settings_copy’ from ‘freerdp_settings_clone’
# 1278|   static void freerdp_settings_free_internal(rdpSettings* settings)
# 1279|   {
# 1280|-> 	freerdp_server_license_issuers_free(settings);
# 1281|   	freerdp_target_net_addresses_free(settings);
# 1282|   	freerdp_device_collection_free(settings);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def709]
FreeRDP-3.16.0/libfreerdp/core/settings.c:1348:20: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_clone(*settings.RdpServerCertificate)’
FreeRDP-3.16.0/libfreerdp/core/settings.c:1305:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1314:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1329:28: branch_true: following ‘true’ branch (when ‘i != 11’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1332:66: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1335:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1329:56: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1339:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1343:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1343:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1345:40: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1345:40: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1346:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:1348:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:1348:20: danger: ‘freerdp_certificate_clone(*settings.RdpServerCertificate)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/10)
# 1346|   		if (!cert)
# 1347|   			goto out_fail;
# 1348|-> 		if (!freerdp_settings_set_pointer_len(_settings, FreeRDP_RdpServerCertificate, cert, 1))
# 1349|   			goto out_fail;
# 1350|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def710]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#   95|   	free(scCert->csp);
#   96|   	free(scCert->reader);
#   97|-> 	freerdp_certificate_free(scCert->certificate);
#   98|   	free(scCert->pkinitArgs);
#   99|   	free(scCert->keyName);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def711]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#   95|   	free(scCert->csp);
#   96|   	free(scCert->reader);
#   97|-> 	freerdp_certificate_free(scCert->certificate);
#   98|   	free(scCert->pkinitArgs);
#   99|   	free(scCert->keyName);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def712]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:162:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  160|   	WINPR_ASSERT(scCert);
#  161|   
#  162|-> 	scCert->upn = freerdp_certificate_get_upn(scCert->certificate);
#  163|   	if (!scCert->upn)
#  164|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def713]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:162:23: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  160|   	WINPR_ASSERT(scCert);
#  161|   
#  162|-> 	scCert->upn = freerdp_certificate_get_upn(scCert->certificate);
#  163|   	if (!scCert->upn)
#  164|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def714]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:162:23: warning[-Wanalyzer-malloc-leak]: leak of ‘cert_list’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  160|   	WINPR_ASSERT(scCert);
#  161|   
#  162|-> 	scCert->upn = freerdp_certificate_get_upn(scCert->certificate);
#  163|   	if (!scCert->upn)
#  164|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def715]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:162:23: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  160|   	WINPR_ASSERT(scCert);
#  161|   
#  162|-> 	scCert->upn = freerdp_certificate_get_upn(scCert->certificate);
#  163|   	if (!scCert->upn)
#  164|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def716]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:166:31: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  164|   	{
#  165|   		WLog_DBG(TAG, "%s has no UPN, trying emailAddress", scCert->keyName);
#  166|-> 		scCert->upn = freerdp_certificate_get_email(scCert->certificate);
#  167|   	}
#  168|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def717]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:166:31: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  164|   	{
#  165|   		WLog_DBG(TAG, "%s has no UPN, trying emailAddress", scCert->keyName);
#  166|-> 		scCert->upn = freerdp_certificate_get_email(scCert->certificate);
#  167|   	}
#  168|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def718]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:166:31: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  164|   	{
#  165|   		WLog_DBG(TAG, "%s has no UPN, trying emailAddress", scCert->keyName);
#  166|-> 		scCert->upn = freerdp_certificate_get_email(scCert->certificate);
#  167|   	}
#  168|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def719]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:410:33: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  408|   			goto out;
#  409|   
#  410|-> 		cert->keyName = ConvertWCharToUtf8Alloc(keyName->pszName, NULL);
#  411|   		if (!cert->keyName)
#  412|   			goto endofloop;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def720]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:417:21: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  415|   
#  416|   		status =
#  417|-> 		    NCryptOpenKey(provider, &phKey, keyName->pszName, keyName->dwLegacyKeySpec, dwFlags);
#  418|   		if (status != ERROR_SUCCESS)
#  419|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:420:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  418|   		if (status != ERROR_SUCCESS)
#  419|   		{
#  420|-> 			WLog_DBG(TAG,
#  421|   			         "unable to NCryptOpenKey(dwLegacyKeySpec=0x%" PRIx32 " dwFlags=0x%" PRIx32
#  422|   			         "), status=%s, skipping",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def722]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:428:29: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  426|   		}
#  427|   
#  428|-> 		cert->csp = _wcsdup(csp);
#  429|   		if (!cert->csp)
#  430|   			goto endofloop;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def723]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:433:26: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  431|   
#  432|   #ifndef _WIN32
#  433|-> 		status = NCryptGetProperty(phKey, NCRYPT_WINPR_SLOTID, (PBYTE)&cert->slotId, 4, &cbOutput,
#  434|   		                           dwFlags);
#  435|   		if (status != ERROR_SUCCESS)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def724]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:509:26: warning[-Wanalyzer-malloc-leak]: leak of ‘certBytes’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  507|   		}
#  508|   
#  509|-> 		status = NCryptGetProperty(phKey, NCRYPT_CERTIFICATE_PROPERTY, certBytes, cbOutput,
#  510|   		                           &cbOutput, dwFlags);
#  511|   		if (status != ERROR_SUCCESS)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def725]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:531:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  529|   	endofloop:
#  530|   		free(certBytes);
#  531|-> 		NCryptFreeBuffer(keyName);
#  532|   		if (phKey)
#  533|   			NCryptFreeObject((NCRYPT_HANDLE)phKey);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def726]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:533:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  531|   		NCryptFreeBuffer(keyName);
#  532|   		if (phKey)
#  533|-> 			NCryptFreeObject((NCRYPT_HANDLE)phKey);
#  534|   
#  535|   		if (haveError)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def727]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:736:29: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  734|   		goto fail;
#  735|   
#  736|-> 	cert->certificate = freerdp_certificate_new_from_pem(certPEM);
#  737|   	if (!cert->certificate)
#  738|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def728]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:736:29: warning[-Wanalyzer-malloc-leak]: leak of ‘cert_list’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  734|   		goto fail;
#  735|   
#  736|-> 	cert->certificate = freerdp_certificate_new_from_pem(certPEM);
#  737|   	if (!cert->certificate)
#  738|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def729]
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:736:29: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  734|   		goto fail;
#  735|   
#  736|-> 	cert->certificate = freerdp_certificate_new_from_pem(certPEM);
#  737|   	if (!cert->certificate)
#  738|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def730]
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:187:14: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:175:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:178:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:179:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:182:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:182:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:184:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:187:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:187:14: danger: ‘file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  185|   		goto fail;
#  186|   
#  187|-> 	fp = winpr_fopen(file, mode);
#  188|   fail:
#  189|   	free(file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def731]
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:481:21: warning[-Wanalyzer-malloc-leak]: leak of ‘dump’
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:478:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:479:12: branch_false: following ‘false’ branch (when ‘dump’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:481:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:481:21: danger: ‘dump’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  479|   	if (!dump)
#  480|   		return NULL;
#  481|-> 	dump->log = WLog_Get(TAG);
#  482|   
#  483|   	return dump;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def732]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:362:12: warning[-Wanalyzer-malloc-leak]: leak of ‘WSACreateEvent()’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:356:23: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:358:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:362:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:362:12: danger: ‘WSACreateEvent()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  360|   
#  361|   	/* WSAEventSelect automatically sets the socket in non-blocking mode */
#  362|-> 	if (WSAEventSelect(ptr->socket, ptr->hEvent, FD_READ | FD_ACCEPT | FD_CLOSE))
#  363|   	{
#  364|   		WLog_ERR(TAG, "WSAEventSelect returned 0x%08X", WSAGetLastError());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def733]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:405:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:400:41: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:402:12: branch_false: following ‘false’ branch (when ‘ptr’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:405:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:405:9: danger: ‘ptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  403|   		return 0;
#  404|   
#  405|-> 	BIO_set_data(bio, ptr);
#  406|   	return 1;
#  407|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def734]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:620:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:615:43: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:617:12: branch_false: following ‘false’ branch (when ‘ptr’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:620:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:620:9: danger: ‘ptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  618|   		return -1;
#  619|   
#  620|-> 	BIO_set_data(bio, (void*)ptr);
#  621|   
#  622|   	if (!ringbuffer_init(&ptr->xmitBuffer, 0x10000))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def735]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:754:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:739:18: acquire_resource: stream socket created here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:741:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:747:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:751:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:753:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:754:17: danger: ‘sockfd’ leaks here
#  752|   	{
#  753|   		WLog_ERR(TAG, "connect");
#  754|-> 		close(sockfd);
#  755|   		return -1;
#  756|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def736]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:781:18: warning[-Wanalyzer-malloc-leak]: leak of ‘events’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:893:12: enter_function: entry to ‘freerdp_tcp_connect_multi’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:901:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:911:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:913:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:915:20: branch_false: following ‘false’ branch (when ‘ports’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:60: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:26: call_function: calling ‘freerdp_tcp_resolve_host’ from ‘freerdp_tcp_connect_multi’
#  779|   	}
#  780|   
#  781|-> 	status = getaddrinfo(hostname, service, &hints, &result);
#  782|   
#  783|   	if (status)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def737]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:781:18: warning[-Wanalyzer-malloc-leak]: leak of ‘peers’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:893:12: enter_function: entry to ‘freerdp_tcp_connect_multi’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:902:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:911:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:913:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:915:20: branch_false: following ‘false’ branch (when ‘ports’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:60: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:26: call_function: calling ‘freerdp_tcp_resolve_host’ from ‘freerdp_tcp_connect_multi’
#  779|   	}
#  780|   
#  781|-> 	status = getaddrinfo(hostname, service, &hints, &result);
#  782|   
#  783|   	if (status)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def738]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:819:31: warning[-Wanalyzer-malloc-leak]: leak of ‘handles[0]’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:814:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:816:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:819:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:819:31: danger: ‘handles[0]’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  817|   		return FALSE;
#  818|   
#  819|-> 	const int wsastatus = WSAEventSelect((SOCKET)sockfd, handles[count++],
#  820|   	                                     FD_READ | FD_WRITE | FD_CONNECT | FD_CLOSE);
#  821|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def739]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:886:17: warning[-Wanalyzer-malloc-leak]: leak of ‘events’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:893:12: enter_function: entry to ‘freerdp_tcp_connect_multi’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:901:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:915:20: branch_true: following ‘true’ branch (when ‘ports’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:916:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:920:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:920:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:911:32: branch_false: following ‘false’ branch (when ‘index >= count’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:969:12: branch_false: following ‘false’ branch (when ‘sindex >= count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:975:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:977:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:978:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:978:17: call_function: calling ‘peer_free’ from ‘freerdp_tcp_connect_multi’
#  884|   {
#  885|   	if (peer->s != INVALID_SOCKET)
#  886|-> 		closesocket(peer->s);
#  887|   
#  888|   	freeaddrinfo(peer->addr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def740]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:886:17: warning[-Wanalyzer-malloc-leak]: leak of ‘peers’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:893:12: enter_function: entry to ‘freerdp_tcp_connect_multi’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:902:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:915:20: branch_true: following ‘true’ branch (when ‘ports’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:916:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:920:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:920:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:911:32: branch_false: following ‘false’ branch (when ‘index >= count’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:969:12: branch_false: following ‘false’ branch (when ‘sindex >= count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:975:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:977:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:978:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:978:17: call_function: calling ‘peer_free’ from ‘freerdp_tcp_connect_multi’
#  884|   {
#  885|   	if (peer->s != INVALID_SOCKET)
#  886|-> 		closesocket(peer->s);
#  887|   
#  888|   	freeaddrinfo(peer->addr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def741]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:937:34: warning[-Wanalyzer-malloc-leak]: leak of ‘events’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:893:12: enter_function: entry to ‘freerdp_tcp_connect_multi’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:901:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:911:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:913:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:915:20: branch_false: following ‘false’ branch (when ‘ports’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:60: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:26: call_function: calling ‘freerdp_tcp_resolve_host’ from ‘freerdp_tcp_connect_multi’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:26: return_function: returning to ‘freerdp_tcp_connect_multi’ from ‘freerdp_tcp_resolve_host’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:920:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:925:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:937:34: danger: ‘events’ leaks here; was allocated at [(2)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/1)
#  935|   		}
#  936|   
#  937|-> 		peers[index].s = _socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);
#  938|   
#  939|   		if (peers[index].s == INVALID_SOCKET)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def742]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:937:34: warning[-Wanalyzer-malloc-leak]: leak of ‘peers’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:893:12: enter_function: entry to ‘freerdp_tcp_connect_multi’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:902:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:911:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:913:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:915:20: branch_false: following ‘false’ branch (when ‘ports’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:60: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:26: call_function: calling ‘freerdp_tcp_resolve_host’ from ‘freerdp_tcp_connect_multi’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:26: return_function: returning to ‘freerdp_tcp_connect_multi’ from ‘freerdp_tcp_resolve_host’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:920:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:925:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:937:34: danger: ‘peers’ leaks here; was allocated at [(2)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/1)
#  935|   		}
#  936|   
#  937|-> 		peers[index].s = _socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);
#  938|   
#  939|   		if (peers[index].s == INVALID_SOCKET)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def743]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:959:21: warning[-Wanalyzer-malloc-leak]: leak of ‘events’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:901:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:911:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:913:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:915:20: branch_false: following ‘false’ branch (when ‘ports’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:60: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:920:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:920:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:911:32: branch_false: following ‘false’ branch (when ‘index >= count’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:949:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:951:31: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:954:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:959:53: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:959:21: danger: ‘events’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  957|   		/* blocking tcp connect */
#  958|   		const int rc =
#  959|-> 		    _connect(sockfd, addr->ai_addr, WINPR_ASSERTING_INT_CAST(int, addr->ai_addrlen));
#  960|   
#  961|   		if (rc >= 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def744]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:959:21: warning[-Wanalyzer-malloc-leak]: leak of ‘peers’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:902:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:911:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:913:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:915:20: branch_false: following ‘false’ branch (when ‘ports’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:918:60: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:920:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:920:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:911:32: branch_false: following ‘false’ branch (when ‘index >= count’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:949:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:951:31: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:954:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:959:53: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:959:21: danger: ‘peers’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  957|   		/* blocking tcp connect */
#  958|   		const int rc =
#  959|-> 		    _connect(sockfd, addr->ai_addr, WINPR_ASSERTING_INT_CAST(int, addr->ai_addrlen));
#  960|   
#  961|   		if (rc >= 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def745]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:975:17: warning[-Wanalyzer-malloc-leak]: leak of ‘events’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:901:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:969:12: branch_false: following ‘false’ branch (when ‘sindex >= count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:975:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:975:17: danger: ‘events’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  973|   	}
#  974|   	else
#  975|-> 		freerdp_set_last_error_log(context, FREERDP_ERROR_CONNECT_CANCELLED);
#  976|   
#  977|   	for (UINT32 index = 0; index < count; index++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def746]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:975:17: warning[-Wanalyzer-malloc-leak]: leak of ‘peers’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:902:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:969:12: branch_false: following ‘false’ branch (when ‘sindex >= count’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:975:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:975:17: danger: ‘peers’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  973|   	}
#  974|   	else
#  975|-> 		freerdp_set_last_error_log(context, FREERDP_ERROR_CONNECT_CANCELLED);
#  976|   
#  977|   	for (UINT32 index = 0; index < count; index++)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def747]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1127:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1123:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1130:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1137:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1147:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1149:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1149:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1153:26: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1153:26: acquire_resource: stream socket created here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1154:20: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1163:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1127:24: danger: ‘sockfd’ leaks here
# 1125|   		freerdp_set_last_error_if_not(context, FREERDP_ERROR_CONNECT_FAILED);
# 1126|   
# 1127|-> 		return -1;
# 1128|   	}
# 1129|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def748]
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1174:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1123:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1130:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1137:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1147:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1149:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1149:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1153:26: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1153:26: acquire_resource: stream socket created here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1154:20: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1163:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1174:25: danger: ‘sockfd’ leaks here
# 1172|   		{
# 1173|   			char ebuffer[256] = { 0 };
# 1174|-> 			WLog_ERR(TAG, "could not extract port from '%s', value=%ul, error=%s", hostname, val,
# 1175|   			         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
# 1176|   			return -1;

Error: COMPILER_WARNING (CWE-704): [#def749]
FreeRDP-3.16.0/libfreerdp/core/test/TestSettings.c:1930:48: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘freerdp_settings_set_bool’ discards ‘const’ qualifier from pointer target type
# 1928|   			goto fail;
# 1929|   		}
# 1930|-> 		if (!freerdp_settings_set_bool(settings, key, val))
# 1931|   			goto fail;
# 1932|   		if (!check_key_helpers(key, "bool"))

Error: COMPILER_WARNING (CWE-704): [#def750]
FreeRDP-3.16.0/libfreerdp/core/test/TestSettings.c:1997:50: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘freerdp_settings_set_uint16’ discards ‘const’ qualifier from pointer target type
# 1995|   			goto fail;
# 1996|   		}
# 1997|-> 		if (!freerdp_settings_set_uint16(settings, key, val))
# 1998|   			goto fail;
# 1999|   		if (!check_key_helpers(key, "uint16"))

Error: COMPILER_WARNING (CWE-704): [#def751]
FreeRDP-3.16.0/libfreerdp/core/test/TestSettings.c:2031:49: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘freerdp_settings_set_int32’ discards ‘const’ qualifier from pointer target type
# 2029|   			goto fail;
# 2030|   		}
# 2031|-> 		if (!freerdp_settings_set_int32(settings, key, val))
# 2032|   			goto fail;
# 2033|   		if (!check_key_helpers(key, "int32"))

Error: COMPILER_WARNING (CWE-704): [#def752]
FreeRDP-3.16.0/libfreerdp/core/test/TestSettings.c:2066:50: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘freerdp_settings_set_uint32’ discards ‘const’ qualifier from pointer target type
# 2064|   			goto fail;
# 2065|   		}
# 2066|-> 		if (!freerdp_settings_set_uint32(settings, key, val))
# 2067|   			goto fail;
# 2068|   		if (!check_key_helpers(key, "uint32"))

Error: COMPILER_WARNING (CWE-704): [#def753]
FreeRDP-3.16.0/libfreerdp/core/test/TestSettings.c:2135:50: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘freerdp_settings_set_uint64’ discards ‘const’ qualifier from pointer target type
# 2133|   			goto fail;
# 2134|   		}
# 2135|-> 		if (!freerdp_settings_set_uint64(settings, key, val))
# 2136|   			goto fail;
# 2137|   		if (!check_key_helpers(key, "uint64"))

Error: COMPILER_WARNING (CWE-704): [#def754]
FreeRDP-3.16.0/libfreerdp/core/test/TestSettings.c:2172:50: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘freerdp_settings_set_string’ discards ‘const’ qualifier from pointer target type
# 2170|   			goto fail;
# 2171|   		}
# 2172|-> 		if (!freerdp_settings_set_string(settings, key, val))
# 2173|   			goto fail;
# 2174|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def755]
FreeRDP-3.16.0/libfreerdp/core/timer.c:234:9: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_timer_free’ of ‘timer’
FreeRDP-3.16.0/libfreerdp/core/timer.c:264:15: enter_function: entry to ‘freerdp_timer_new’
FreeRDP-3.16.0/libfreerdp/core/timer.c:267:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:297:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/timer.c:297:9: call_function: calling ‘freerdp_timer_free’ from ‘freerdp_timer_new’
#  232|   		return;
#  233|   
#  234|-> 	timer->running = false;
#  235|   	if (timer->event)
#  236|   		(void)SetEvent(timer->event);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def756]
FreeRDP-3.16.0/libfreerdp/core/timer.c:235:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*timer.event’
FreeRDP-3.16.0/libfreerdp/core/timer.c:264:15: enter_function: entry to ‘freerdp_timer_new’
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:297:9: call_function: calling ‘freerdp_timer_free’ from ‘freerdp_timer_new’
#  233|   
#  234|   	timer->running = false;
#  235|-> 	if (timer->event)
#  236|   		(void)SetEvent(timer->event);
#  237|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def757]
FreeRDP-3.16.0/libfreerdp/core/timer.c:272:26: warning[-Wanalyzer-malloc-leak]: leak of ‘timer’
FreeRDP-3.16.0/libfreerdp/core/timer.c:267:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:272:26: danger: ‘timer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  270|   	timer->rdp = rdp;
#  271|   
#  272|-> 	timer->entries = ArrayList_New(TRUE);
#  273|   	if (!timer->entries)
#  274|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def758]
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:272:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/timer.c:273:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  273|   	if (!timer->entries)
#  274|   		goto fail;
#  275|-> 	wObject* obj = ArrayList_Object(timer->entries);
#  276|   	WINPR_ASSERT(obj);
#  277|   	obj->fnObjectNew = entry_new;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def759]
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: warning[-Wanalyzer-malloc-leak]: leak of ‘timer’
FreeRDP-3.16.0/libfreerdp/core/timer.c:267:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:273:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: danger: ‘timer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  273|   	if (!timer->entries)
#  274|   		goto fail;
#  275|-> 	wObject* obj = ArrayList_Object(timer->entries);
#  276|   	WINPR_ASSERT(obj);
#  277|   	obj->fnObjectNew = entry_new;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def760]
FreeRDP-3.16.0/libfreerdp/core/timer.c:280:24: warning[-Wanalyzer-malloc-leak]: leak of ‘timer’
FreeRDP-3.16.0/libfreerdp/core/timer.c:267:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:273:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:280:24: danger: ‘timer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  278|   	obj->fnObjectFree = free;
#  279|   
#  280|-> 	timer->event = CreateEventA(NULL, TRUE, FALSE, NULL);
#  281|   	if (!timer->event)
#  282|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def761]
FreeRDP-3.16.0/libfreerdp/core/timer.c:284:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:273:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:280:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/timer.c:281:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:284:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:284:28: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  282|   		goto fail;
#  283|   
#  284|-> 	timer->mainevent = CreateEventA(NULL, TRUE, FALSE, NULL);
#  285|   	if (!timer->mainevent)
#  286|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def762]
FreeRDP-3.16.0/libfreerdp/core/timer.c:284:28: warning[-Wanalyzer-malloc-leak]: leak of ‘timer’
FreeRDP-3.16.0/libfreerdp/core/timer.c:267:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:273:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:281:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:284:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:284:28: danger: ‘timer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  282|   		goto fail;
#  283|   
#  284|-> 	timer->mainevent = CreateEventA(NULL, TRUE, FALSE, NULL);
#  285|   	if (!timer->mainevent)
#  286|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def763]
FreeRDP-3.16.0/libfreerdp/core/timer.c:290:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:273:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:280:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/timer.c:281:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:284:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:285:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:289:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:290:25: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  288|   #if defined(FREERDP_TIMER_SUPPORTED)
#  289|   	timer->running = true;
#  290|-> 	timer->thread = CreateThread(NULL, 0, timer_thread, timer, 0, NULL);
#  291|   	if (!timer->thread)
#  292|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def764]
FreeRDP-3.16.0/libfreerdp/core/timer.c:290:25: warning[-Wanalyzer-malloc-leak]: leak of ‘timer’
FreeRDP-3.16.0/libfreerdp/core/timer.c:267:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:273:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:281:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:284:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:285:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:289:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:290:25: danger: ‘timer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  288|   #if defined(FREERDP_TIMER_SUPPORTED)
#  289|   	timer->running = true;
#  290|-> 	timer->thread = CreateThread(NULL, 0, timer_thread, timer, 0, NULL);
#  291|   	if (!timer->thread)
#  292|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def765]
FreeRDP-3.16.0/libfreerdp/core/timer.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:273:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:275:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:280:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/timer.c:281:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:284:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:285:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:286:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:297:9: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
#  295|   
#  296|   fail:
#  297|-> 	freerdp_timer_free(timer);
#  298|   	return NULL;
#  299|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def766]
FreeRDP-3.16.0/libfreerdp/core/timer.c:297:9: warning[-Wanalyzer-mismatching-deallocation]: ‘timer’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_timer_free’
FreeRDP-3.16.0/libfreerdp/core/timer.c:267:31: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/timer.c:268:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/timer.c:270:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:273:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/timer.c:274:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/timer.c:297:9: danger: deallocated with ‘freerdp_timer_free’ here; allocation at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  295|   
#  296|   fail:
#  297|-> 	freerdp_timer_free(timer);
#  298|   	return NULL;
#  299|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def767]
FreeRDP-3.16.0/libfreerdp/core/transport.c:426:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rdstls_new(transport_get_context(transport), transport)’
FreeRDP-3.16.0/libfreerdp/core/transport.c:406:6: enter_function: entry to ‘transport_connect_rdstls’
FreeRDP-3.16.0/libfreerdp/core/transport.c:417:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:420:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:420:18: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:421:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:424:9: call_function: inlined call to ‘transport_set_rdstls_mode’ from ‘transport_connect_rdstls’
FreeRDP-3.16.0/libfreerdp/core/transport.c:426:13: danger: ‘rdstls_new(transport_get_context(transport), transport)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
#  424|   	transport_set_rdstls_mode(transport, TRUE);
#  425|   
#  426|-> 	if (rdstls_authenticate(rdstls) < 0)
#  427|   	{
#  428|   		WLog_Print(transport->log, WLOG_ERROR, "RDSTLS authentication failed");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def768]
FreeRDP-3.16.0/libfreerdp/core/transport.c:719:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rdstls_new(transport_get_context(transport), transport)’
FreeRDP-3.16.0/libfreerdp/core/transport.c:699:6: enter_function: entry to ‘transport_accept_rdstls’
FreeRDP-3.16.0/libfreerdp/core/transport.c:710:14: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:710:14: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:710:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:713:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:713:18: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:714:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:717:9: call_function: inlined call to ‘transport_set_rdstls_mode’ from ‘transport_accept_rdstls’
FreeRDP-3.16.0/libfreerdp/core/transport.c:719:13: danger: ‘rdstls_new(transport_get_context(transport), transport)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
#  717|   	transport_set_rdstls_mode(transport, TRUE);
#  718|   
#  719|-> 	if (rdstls_authenticate(rdstls) < 0)
#  720|   	{
#  721|   		WLog_Print(transport->log, WLOG_ERROR, "client authentication failure");

Error: GCC_ANALYZER_WARNING (CWE-457): [#def769]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1593:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*transport.io.TransportDisconnect’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1642:15: enter_function: entry to ‘transport_new’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1711:9: call_function: calling ‘transport_free’ from ‘transport_new’
# 1591|   	if (!transport)
# 1592|   		return FALSE;
# 1593|-> 	return IFCALLRESULT(FALSE, transport->io.TransportDisconnect, transport);
# 1594|   }
# 1595|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def770]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1644:50: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1648|   		return NULL;
# 1649|   
# 1650|-> 	transport->log = WLog_Get(TAG);
# 1651|   
# 1652|   	if (!transport->log)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def771]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1656:34: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1644:50: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1656:34: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1654|   
# 1655|   	transport->context = context;
# 1656|-> 	transport->ReceivePool = StreamPool_New(TRUE, BUFFER_SIZE);
# 1657|   
# 1658|   	if (!transport->ReceivePool)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def772]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1656:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
# 1660|   
# 1661|   	/* receive buffer for non-blocking read. */
# 1662|-> 	transport->ReceiveBuffer = StreamPool_Take(transport->ReceivePool, 0);
# 1663|   
# 1664|   	if (!transport->ReceiveBuffer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def773]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1644:50: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1660|   
# 1661|   	/* receive buffer for non-blocking read. */
# 1662|-> 	transport->ReceiveBuffer = StreamPool_Take(transport->ReceivePool, 0);
# 1663|   
# 1664|   	if (!transport->ReceiveBuffer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def774]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1664:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
# 1665|   		goto fail;
# 1666|   
# 1667|-> 	transport->connectedEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1668|   
# 1669|   	if (!transport->connectedEvent || transport->connectedEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def775]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1644:50: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1664:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 1665|   		goto fail;
# 1666|   
# 1667|-> 	transport->connectedEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1668|   
# 1669|   	if (!transport->connectedEvent || transport->connectedEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def776]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1672:34: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1664:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1669:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1672:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1672:34: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
# 1670|   		goto fail;
# 1671|   
# 1672|-> 	transport->rereadEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1673|   
# 1674|   	if (!transport->rereadEvent || transport->rereadEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def777]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1672:34: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1644:50: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1664:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1669:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1672:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1672:34: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1670|   		goto fail;
# 1671|   
# 1672|-> 	transport->rereadEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1673|   
# 1674|   	if (!transport->rereadEvent || transport->rereadEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def778]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1677:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1664:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1669:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1672:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1674:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1677:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1677:30: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
# 1675|   		goto fail;
# 1676|   
# 1677|-> 	transport->ioEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1678|   
# 1679|   	if (!transport->ioEvent || transport->ioEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def779]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1677:30: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1644:50: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1664:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1669:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1672:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1674:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1677:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1677:30: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1675|   		goto fail;
# 1676|   
# 1677|-> 	transport->ioEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1678|   
# 1679|   	if (!transport->ioEvent || transport->ioEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def780]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1687:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1664:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1669:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1672:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1674:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1677:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1679:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1682:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1687:14: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
# 1685|   	transport->layer = TRANSPORT_LAYER_TCP;
# 1686|   
# 1687|-> 	if (!InitializeCriticalSectionAndSpinCount(&(transport->ReadLock), 4000))
# 1688|   		goto fail;
# 1689|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def781]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1687:14: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1644:50: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1664:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1669:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1672:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1674:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1677:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1679:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1682:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1687:14: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1685|   	transport->layer = TRANSPORT_LAYER_TCP;
# 1686|   
# 1687|-> 	if (!InitializeCriticalSectionAndSpinCount(&(transport->ReadLock), 4000))
# 1688|   		goto fail;
# 1689|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def782]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1711:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1655:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1662:36: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1664:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1667:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1669:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1670:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1711:9: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
# 1709|   	WINPR_PRAGMA_DIAG_PUSH
# 1710|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1711|-> 	transport_free(transport);
# 1712|   	WINPR_PRAGMA_DIAG_POP
# 1713|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def783]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1711:9: warning[-Wanalyzer-mismatching-deallocation]: ‘transport’ should have been deallocated with ‘free’ but was deallocated with ‘transport_free’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1644:50: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/core/transport.c:1647:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1650:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1652:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1653:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1711:9: danger: deallocated with ‘transport_free’ here; allocation at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 1709|   	WINPR_PRAGMA_DIAG_PUSH
# 1710|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1711|-> 	transport_free(transport);
# 1712|   	WINPR_PRAGMA_DIAG_POP
# 1713|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def784]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1935:16: warning[-Wanalyzer-malloc-leak]: leak of ‘layer’
FreeRDP-3.16.0/libfreerdp/core/transport.c:1920:62: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1921:12: branch_false: following ‘false’ branch (when ‘layer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1924:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1924:12: branch_false: following ‘false’ branch (when ‘contextSize == 0’)...
FreeRDP-3.16.0/libfreerdp/core/transport.c:1933:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:1935:16: danger: ‘layer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
# 1933|   	layer->pub.userContext = layer->userContextShadowPtr;
# 1934|   
# 1935|-> 	return &layer->pub;
# 1936|   }
# 1937|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def785]
FreeRDP-3.16.0/libfreerdp/core/transport.c:1945:9: warning[-Wanalyzer-use-after-free]: use after ‘transport_layer_free’ of ‘layer’
FreeRDP-3.16.0/libfreerdp/core/transport.c:2089:12: enter_function: entry to ‘transport_layer_bio_free’
FreeRDP-3.16.0/libfreerdp/core/transport.c:2095:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/transport.c:2096:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/transport.c:2096:17: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/transport.c:2096:17: call_function: calling ‘transport_layer_free’ from ‘transport_layer_bio_free’
# 1943|   
# 1944|   	IFCALL(intern->pub.Close, intern->pub.userContext);
# 1945|-> 	free(intern->userContextShadowPtr);
# 1946|   	free(intern);
# 1947|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def786]
FreeRDP-3.16.0/libfreerdp/core/update.c:2211:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.16.0/libfreerdp/core/update.c:2201:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:2203:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:2206:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:2211:15: danger: ‘fastpath_update_pdu_init(*rdp.fastpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 2209|   		updateCode = FASTPATH_UPDATETYPE_PTR_DEFAULT;
# 2210|   
# 2211|-> 	ret = fastpath_send_update_pdu(rdp->fastpath, updateCode, s, FALSE);
# 2212|   	Stream_Release(s);
# 2213|   	return ret;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def787]
FreeRDP-3.16.0/libfreerdp/core/update.c:2230:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.16.0/libfreerdp/core/update.c:2225:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:2227:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:2230:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:2230:14: danger: ‘fastpath_update_pdu_init(*rdp.fastpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 2228|   		return FALSE;
# 2229|   
# 2230|-> 	if (!Stream_EnsureRemainingCapacity(s, 16))
# 2231|   		goto out_fail;
# 2232|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def788]
FreeRDP-3.16.0/libfreerdp/core/update.c:2246:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.16.0/libfreerdp/core/update.c:2268:13: enter_function: entry to ‘update_send_pointer_color’
FreeRDP-3.16.0/libfreerdp/core/update.c:2279:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:2281:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:2284:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:2284:14: call_function: calling ‘update_write_pointer_color’ from ‘update_send_pointer_color’
# 2244|   {
# 2245|   	WINPR_ASSERT(pointer_color);
# 2246|-> 	if (!Stream_EnsureRemainingCapacity(s, 32 + pointer_color->lengthAndMask +
# 2247|   	                                           pointer_color->lengthXorMask))
# 2248|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def789]
FreeRDP-3.16.0/libfreerdp/core/update.c:2297:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.16.0/libfreerdp/core/update.c:2314:13: enter_function: entry to ‘update_send_pointer_large’
FreeRDP-3.16.0/libfreerdp/core/update.c:2323:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:2325:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:2328:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:2328:14: call_function: calling ‘update_write_pointer_large’ from ‘update_send_pointer_large’
# 2295|   	WINPR_ASSERT(pointer);
# 2296|   
# 2297|-> 	if (!Stream_EnsureRemainingCapacity(s, 32 + pointer->lengthAndMask + pointer->lengthXorMask))
# 2298|   		return FALSE;
# 2299|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def790]
FreeRDP-3.16.0/libfreerdp/core/update.c:2352:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.16.0/libfreerdp/core/update.c:2347:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:2349:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:2352:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:2352:14: danger: ‘fastpath_update_pdu_init(*rdp.fastpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 2350|   		return FALSE;
# 2351|   
# 2352|-> 	if (!Stream_EnsureRemainingCapacity(s, 16))
# 2353|   		goto out_fail;
# 2354|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def791]
FreeRDP-3.16.0/libfreerdp/core/update.c:2382:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.16.0/libfreerdp/core/update.c:2375:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:2377:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:2380:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:2382:15: danger: ‘fastpath_update_pdu_init(*rdp.fastpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 2380|   	Stream_Write_UINT16(s, WINPR_ASSERTING_INT_CAST(
# 2381|   	                           uint16_t, pointer_cached->cacheIndex)); /* cacheIndex (2 bytes) */
# 2382|-> 	ret = fastpath_send_update_pdu(rdp->fastpath, FASTPATH_UPDATETYPE_CACHED, s, FALSE);
# 2383|   	Stream_Release(s);
# 2384|   	return ret;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def792]
FreeRDP-3.16.0/libfreerdp/core/update.c:3321:23: warning[-Wanalyzer-malloc-leak]: leak of ‘update’
FreeRDP-3.16.0/libfreerdp/core/update.c:3315:61: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:3317:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3320:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3321:23: danger: ‘update’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 3319|   
# 3320|   	update->common.context = rdp->context;
# 3321|-> 	update->log = WLog_Get("com.freerdp.core.update");
# 3322|   	InitializeCriticalSection(&(update->mux));
# 3323|   	update->common.pointer = (rdpPointerUpdate*)calloc(1, sizeof(rdpPointerUpdate));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def793]
FreeRDP-3.16.0/libfreerdp/core/update.c:3322:9: warning[-Wanalyzer-malloc-leak]: leak of ‘update’
FreeRDP-3.16.0/libfreerdp/core/update.c:3315:61: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:3317:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3320:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3322:9: danger: ‘update’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 3320|   	update->common.context = rdp->context;
# 3321|   	update->log = WLog_Get("com.freerdp.core.update");
# 3322|-> 	InitializeCriticalSection(&(update->mux));
# 3323|   	update->common.pointer = (rdpPointerUpdate*)calloc(1, sizeof(rdpPointerUpdate));
# 3324|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def794]
FreeRDP-3.16.0/libfreerdp/core/update.c:3365:25: warning[-Wanalyzer-malloc-leak]: leak of ‘altsec’
FreeRDP-3.16.0/libfreerdp/core/update.c:3317:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3320:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3325:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3329:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3331:12: branch_false: following ‘false’ branch (when ‘primary’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3333:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3338:12: branch_false: following ‘false’ branch (when ‘secondary’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3340:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3343:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:3345:12: branch_false: following ‘false’ branch (when ‘altsec’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3348:33: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3351:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3355:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3358:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3361:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3365:25: danger: ‘altsec’ leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
# 3363|   	update->initialState = TRUE;
# 3364|   	update->common.autoCalculateBitmapData = TRUE;
# 3365|-> 	update->queue = MessageQueue_New(&cb);
# 3366|   
# 3367|   	if (!update->queue)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def795]
FreeRDP-3.16.0/libfreerdp/core/update.c:3365:25: warning[-Wanalyzer-malloc-leak]: leak of ‘primary’
FreeRDP-3.16.0/libfreerdp/core/update.c:3317:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3320:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3325:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3329:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3329:43: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:3331:12: branch_false: following ‘false’ branch (when ‘primary’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3333:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3338:12: branch_false: following ‘false’ branch (when ‘secondary’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3340:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3345:12: branch_false: following ‘false’ branch (when ‘altsec’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3348:33: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3351:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3355:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3358:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3361:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3365:25: danger: ‘primary’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
# 3363|   	update->initialState = TRUE;
# 3364|   	update->common.autoCalculateBitmapData = TRUE;
# 3365|-> 	update->queue = MessageQueue_New(&cb);
# 3366|   
# 3367|   	if (!update->queue)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def796]
FreeRDP-3.16.0/libfreerdp/core/update.c:3365:25: warning[-Wanalyzer-malloc-leak]: leak of ‘secondary’
FreeRDP-3.16.0/libfreerdp/core/update.c:3317:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3320:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3325:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3329:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3331:12: branch_false: following ‘false’ branch (when ‘primary’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3333:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3336:45: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:3338:12: branch_false: following ‘false’ branch (when ‘secondary’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3340:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3345:12: branch_false: following ‘false’ branch (when ‘altsec’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3348:33: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3351:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3355:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3358:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3361:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3365:25: danger: ‘secondary’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
# 3363|   	update->initialState = TRUE;
# 3364|   	update->common.autoCalculateBitmapData = TRUE;
# 3365|-> 	update->queue = MessageQueue_New(&cb);
# 3366|   
# 3367|   	if (!update->queue)

Error: GCC_ANALYZER_WARNING (CWE-416): [#def797]
FreeRDP-3.16.0/libfreerdp/core/update.c:3384:54: warning[-Wanalyzer-use-after-free]: use after ‘update_free’ of ‘update’
FreeRDP-3.16.0/libfreerdp/core/update.c:3308:12: enter_function: entry to ‘update_new’
FreeRDP-3.16.0/libfreerdp/core/update.c:3317:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3320:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3325:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3326:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3374:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:3374:9: call_function: calling ‘update_free’ from ‘update_new’
# 3382|   	{
# 3383|   		rdp_update_internal* up = update_cast(update);
# 3384|-> 		rdp_altsec_update_internal* altsec = altsec_update_cast(update->altsec);
# 3385|   		OFFSCREEN_DELETE_LIST* deleteList = &(altsec->create_offscreen_bitmap.deleteList);
# 3386|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def798]
FreeRDP-3.16.0/libfreerdp/core/update.c:3409:17: warning[-Wanalyzer-malloc-leak]: leak of ‘primary’
FreeRDP-3.16.0/libfreerdp/core/update.c:3308:12: enter_function: entry to ‘update_new’
FreeRDP-3.16.0/libfreerdp/core/update.c:3317:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3320:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3325:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3329:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3329:43: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:3331:12: branch_false: following ‘false’ branch (when ‘primary’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3333:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3338:12: branch_true: following ‘true’ branch (when ‘secondary’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3339:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3374:9: call_function: calling ‘update_free’ from ‘update_new’
# 3407|   			free(update->window);
# 3408|   
# 3409|-> 		MessageQueue_Free(up->queue);
# 3410|   		DeleteCriticalSection(&up->mux);
# 3411|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def799]
FreeRDP-3.16.0/libfreerdp/core/update.c:3410:17: warning[-Wanalyzer-malloc-leak]: leak of ‘primary’
FreeRDP-3.16.0/libfreerdp/core/update.c:3308:12: enter_function: entry to ‘update_new’
FreeRDP-3.16.0/libfreerdp/core/update.c:3317:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3320:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3325:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/update.c:3329:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3329:43: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/update.c:3331:12: branch_false: following ‘false’ branch (when ‘primary’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3333:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3338:12: branch_true: following ‘true’ branch (when ‘secondary’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/update.c:3339:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/update.c:3374:9: call_function: calling ‘update_free’ from ‘update_new’
# 3408|   
# 3409|   		MessageQueue_Free(up->queue);
# 3410|-> 		DeleteCriticalSection(&up->mux);
# 3411|   
# 3412|   		if (up->us)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def800]
FreeRDP-3.16.0/libfreerdp/core/utils.c:47:18: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(value)’
FreeRDP-3.16.0/libfreerdp/core/utils.c:229:6: enter_function: entry to ‘utils_sync_credentials’
FreeRDP-3.16.0/libfreerdp/core/utils.c:232:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/utils.c:235:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/utils.c:235:12: branch_true: following ‘true’ branch (when ‘toGateway != 0’)...
FreeRDP-3.16.0/libfreerdp/core/utils.c:237:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/utils.c:237:22: call_function: calling ‘utils_str_copy’ from ‘utils_sync_credentials’
FreeRDP-3.16.0/libfreerdp/core/utils.c:237:22: return_function: returning to ‘utils_sync_credentials’ from ‘utils_str_copy’
FreeRDP-3.16.0/libfreerdp/core/utils.c:237:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/utils.c:239:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/utils.c:239:22: call_function: calling ‘utils_str_copy’ from ‘utils_sync_credentials’
#   45|   		return TRUE;
#   46|   
#   47|-> 	(*dst) = _strdup(value);
#   48|   	return (*dst) != NULL;
#   49|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def801]
FreeRDP-3.16.0/libfreerdp/core/window.c:110:14: warning[-Wanalyzer-malloc-leak]: leak of ‘window_icon.iconInfo’
FreeRDP-3.16.0/libfreerdp/core/window.c:1137:6: enter_function: entry to ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1147:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1150:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1151:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1153:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: call_function: calling ‘update_recv_window_info_order’ from ‘update_recv_altsec_window_order’
#  108|   	BYTE* newBitMask = NULL;
#  109|   
#  110|-> 	if (!Stream_CheckAndLogRequiredLength(TAG, s, 8))
#  111|   		return FALSE;
#  112|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def802]
FreeRDP-3.16.0/libfreerdp/core/window.c:132:30: warning[-Wanalyzer-malloc-leak]: leak of ‘window_icon.iconInfo’
FreeRDP-3.16.0/libfreerdp/core/window.c:1137:6: enter_function: entry to ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1147:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1150:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1151:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1153:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: call_function: calling ‘update_recv_window_info_order’ from ‘update_recv_altsec_window_order’
#  130|   		case 4:
#  131|   		case 8:
#  132|-> 			if (!Stream_CheckAndLogRequiredLength(TAG, s, 2))
#  133|   				return FALSE;
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def803]
FreeRDP-3.16.0/libfreerdp/core/window.c:143:14: warning[-Wanalyzer-malloc-leak]: leak of ‘window_icon.iconInfo’
FreeRDP-3.16.0/libfreerdp/core/window.c:1137:6: enter_function: entry to ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1147:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1150:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1151:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1153:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: call_function: calling ‘update_recv_window_info_order’ from ‘update_recv_altsec_window_order’
#  141|   	}
#  142|   
#  143|-> 	if (!Stream_CheckAndLogRequiredLength(TAG, s, 4))
#  144|   		return FALSE;
#  145|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def804]
FreeRDP-3.16.0/libfreerdp/core/window.c:162:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/core/window.c:1137:6: enter_function: entry to ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1147:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1150:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1151:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1153:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: call_function: calling ‘update_recv_window_info_order’ from ‘update_recv_altsec_window_order’
#  160|   
#  161|   		iconInfo->bitsMask = newBitMask;
#  162|-> 		if (!Stream_CheckAndLogRequiredLength(TAG, s, iconInfo->cbBitsMask))
#  163|   			return FALSE;
#  164|   		Stream_Read(s, iconInfo->bitsMask, iconInfo->cbBitsMask);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def805]
FreeRDP-3.16.0/libfreerdp/core/window.c:162:22: warning[-Wanalyzer-malloc-leak]: leak of ‘window_icon.iconInfo’
FreeRDP-3.16.0/libfreerdp/core/window.c:1137:6: enter_function: entry to ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1147:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1150:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1151:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1153:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: call_function: calling ‘update_recv_window_info_order’ from ‘update_recv_altsec_window_order’
#  160|   
#  161|   		iconInfo->bitsMask = newBitMask;
#  162|-> 		if (!Stream_CheckAndLogRequiredLength(TAG, s, iconInfo->cbBitsMask))
#  163|   			return FALSE;
#  164|   		Stream_Read(s, iconInfo->bitsMask, iconInfo->cbBitsMask);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def806]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:287:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1313:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: return_function: returning to ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1318:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1322:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1323:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: call_function: calling ‘freerdp_rsa_from_x509’ from ‘freerdp_certificate_new_from_x509’
#  285|   static BOOL is_rsa_key(const X509* x509)
#  286|   {
#  287|-> 	EVP_PKEY* evp = X509_get0_pubkey(x509);
#  288|   	if (!evp)
#  289|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def807]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:287:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(x509_utils_from_pem(file,  strlen(file), isFile), 0)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1338:24: enter_function: entry to ‘freerdp_certificate_new_from’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1341:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: call_function: calling ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new_from’
#  285|   static BOOL is_rsa_key(const X509* x509)
#  286|   {
#  287|-> 	EVP_PKEY* evp = X509_get0_pubkey(x509);
#  288|   	if (!evp)
#  289|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def808]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1140:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cert’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1123:13: enter_function: entry to ‘cert_x509_chain_copy’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1127:9: call_function: calling ‘certificate_free_x509_certificate_chain’ from ‘cert_x509_chain_copy’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1127:9: return_function: returning to ‘cert_x509_chain_copy’ from ‘certificate_free_x509_certificate_chain’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1128:12: branch_false: following ‘false’ branch (when ‘src’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1131:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1131:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1133:31: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1134:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1138:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1140:36: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1142:55: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1145:30: call_function: calling ‘cert_blob_copy’ from ‘cert_x509_chain_copy’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1145:30: return_function: returning to ‘cert_x509_chain_copy’ from ‘cert_blob_copy’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1145:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1140:53: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1140:40: danger: dereference of NULL ‘cert’
# 1138|   		cert->count = src->count;
# 1139|   
# 1140|-> 		for (UINT32 x = 0; x < cert->count; x++)
# 1141|   		{
# 1142|   			const rdpCertBlob* srcblob = &src->array[x];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1161:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1184:17: enter_function: entry to ‘freerdp_certificate_clone’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1186:12: branch_false: following ‘false’ branch (when ‘certificate’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1189:40: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1189:40: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_clone’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1189:40: return_function: returning to ‘freerdp_certificate_clone’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1191:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1194:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1194:14: call_function: calling ‘cert_clone_int’ from ‘freerdp_certificate_clone’
# 1159|   	WINPR_ASSERT(src);
# 1160|   
# 1161|-> 	if (!cert_info_clone(&dst->cert_info, &src->cert_info))
# 1162|   		return FALSE;
# 1163|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def810]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1211:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1313:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
# 1209|   rdpCertificate* freerdp_certificate_new(void)
# 1210|   {
# 1211|-> 	return (rdpCertificate*)calloc(1, sizeof(rdpCertificate));
# 1212|   }
# 1213|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def811]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1218:13: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_certificate_free’ of ‘cert’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1295:17: enter_function: entry to ‘freerdp_certificate_new_from_der’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1297:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_der’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1297:32: return_function: returning to ‘freerdp_certificate_new_from_der’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1309:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1309:9: call_function: calling ‘freerdp_certificate_free’ from ‘freerdp_certificate_new_from_der’
# 1216|   	WINPR_ASSERT(cert);
# 1217|   
# 1218|-> 	if (cert->x509)
# 1219|   		X509_free(cert->x509);
# 1220|   	if (cert->chain)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def812]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1258:28: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1313:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: return_function: returning to ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1318:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1322:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1323:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: call_function: calling ‘freerdp_rsa_from_x509’ from ‘freerdp_certificate_new_from_x509’
# 1256|   	BIGNUM* rsa_e = NULL;
# 1257|   #endif
# 1258|-> 	EVP_PKEY* pubkey = X509_get0_pubkey(cert->x509);
# 1259|   	if (!pubkey)
# 1260|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def813]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1258:28: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(x509_utils_from_pem(file,  strlen(file), isFile), 0)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1338:24: enter_function: entry to ‘freerdp_certificate_new_from’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1341:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: call_function: calling ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new_from’
# 1256|   	BIGNUM* rsa_e = NULL;
# 1257|   #endif
# 1258|-> 	EVP_PKEY* pubkey = X509_get0_pubkey(cert->x509);
# 1259|   	if (!pubkey)
# 1260|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def814]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1275:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1313:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: return_function: returning to ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1318:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1322:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1323:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: call_function: calling ‘freerdp_rsa_from_x509’ from ‘freerdp_certificate_new_from_x509’
# 1273|   	RSA_get0_key(rsa, &rsa_n, &rsa_e, NULL);
# 1274|   #else
# 1275|-> 	if (!EVP_PKEY_get_bn_param(pubkey, OSSL_PKEY_PARAM_RSA_E, &rsa_e))
# 1276|   		goto fail;
# 1277|   	if (!EVP_PKEY_get_bn_param(pubkey, OSSL_PKEY_PARAM_RSA_N, &rsa_n))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def815]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1275:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(x509_utils_from_pem(file,  strlen(file), isFile), 0)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1338:24: enter_function: entry to ‘freerdp_certificate_new_from’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1341:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: call_function: calling ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new_from’
# 1273|   	RSA_get0_key(rsa, &rsa_n, &rsa_e, NULL);
# 1274|   #else
# 1275|-> 	if (!EVP_PKEY_get_bn_param(pubkey, OSSL_PKEY_PARAM_RSA_E, &rsa_e))
# 1276|   		goto fail;
# 1277|   	if (!EVP_PKEY_get_bn_param(pubkey, OSSL_PKEY_PARAM_RSA_N, &rsa_n))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def816]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1277:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1313:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: return_function: returning to ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1318:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1322:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1323:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: call_function: calling ‘freerdp_rsa_from_x509’ from ‘freerdp_certificate_new_from_x509’
# 1275|   	if (!EVP_PKEY_get_bn_param(pubkey, OSSL_PKEY_PARAM_RSA_E, &rsa_e))
# 1276|   		goto fail;
# 1277|-> 	if (!EVP_PKEY_get_bn_param(pubkey, OSSL_PKEY_PARAM_RSA_N, &rsa_n))
# 1278|   		goto fail;
# 1279|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def817]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1277:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(x509_utils_from_pem(file,  strlen(file), isFile), 0)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1338:24: enter_function: entry to ‘freerdp_certificate_new_from’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1341:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: call_function: calling ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new_from’
# 1275|   	if (!EVP_PKEY_get_bn_param(pubkey, OSSL_PKEY_PARAM_RSA_E, &rsa_e))
# 1276|   		goto fail;
# 1277|-> 	if (!EVP_PKEY_get_bn_param(pubkey, OSSL_PKEY_PARAM_RSA_N, &rsa_n))
# 1278|   		goto fail;
# 1279|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def818]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1282:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1313:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: return_function: returning to ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1318:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1322:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1323:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: call_function: calling ‘freerdp_rsa_from_x509’ from ‘freerdp_certificate_new_from_x509’
# 1280|   	if (!rsa_n || !rsa_e)
# 1281|   		goto fail;
# 1282|-> 	if (!cert_info_create(&cert->cert_info, rsa_n, rsa_e))
# 1283|   		goto fail;
# 1284|   	rc = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def819]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1282:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(x509_utils_from_pem(file,  strlen(file), isFile), 0)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1338:24: enter_function: entry to ‘freerdp_certificate_new_from’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1341:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: call_function: calling ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new_from’
# 1280|   	if (!rsa_n || !rsa_e)
# 1281|   		goto fail;
# 1282|-> 	if (!cert_info_create(&cert->cert_info, rsa_n, rsa_e))
# 1283|   		goto fail;
# 1284|   	rc = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def820]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1289:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1313:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: return_function: returning to ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1318:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1322:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1323:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1326:14: call_function: calling ‘freerdp_rsa_from_x509’ from ‘freerdp_certificate_new_from_x509’
# 1287|   	RSA_free(rsa);
# 1288|   #else
# 1289|-> 	BN_free(rsa_n);
# 1290|   	BN_free(rsa_e);
# 1291|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def821]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1289:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(x509_utils_from_pem(file,  strlen(file), isFile), 0)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1338:24: enter_function: entry to ‘freerdp_certificate_new_from’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1341:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: call_function: calling ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new_from’
# 1287|   	RSA_free(rsa);
# 1288|   #else
# 1289|-> 	BN_free(rsa_n);
# 1290|   	BN_free(rsa_e);
# 1291|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def822]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1302:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1295:17: enter_function: entry to ‘freerdp_certificate_new_from_der’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1297:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_der’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1297:32: return_function: returning to ‘freerdp_certificate_new_from_der’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1299:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1302:22: danger: ‘freerdp_certificate_new()’ leaks here; was allocated at [(4)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/3)
# 1300|   		goto fail;
# 1301|   	const BYTE* ptr = data;
# 1302|-> 	cert->x509 = d2i_X509(NULL, &ptr, (int)length);
# 1303|   	if (!cert->x509)
# 1304|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def823]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1309:9: warning[-Wanalyzer-mismatching-deallocation]: ‘freerdp_certificate_new()’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_certificate_free’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1295:17: enter_function: entry to ‘freerdp_certificate_new_from_der’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1297:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_der’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1297:32: return_function: returning to ‘freerdp_certificate_new_from_der’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1299:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1300:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1309:9: danger: deallocated with ‘freerdp_certificate_free’ here; allocation at [(4)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘free’
# 1307|   	return cert;
# 1308|   fail:
# 1309|-> 	freerdp_certificate_free(cert);
# 1310|   	return NULL;
# 1311|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def824]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1318:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(x509_utils_from_pem(file,  strlen(file), isFile), 0)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1338:24: enter_function: entry to ‘freerdp_certificate_new_from’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1341:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: call_function: calling ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new_from’
# 1316|   
# 1317|   	rdpCertificate* cert = freerdp_certificate_new();
# 1318|-> 	if (!cert)
# 1319|   		return NULL;
# 1320|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def825]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1322:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1313:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: return_function: returning to ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1318:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1322:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1322:22: danger: ‘freerdp_certificate_new()’ leaks here; was allocated at [(4)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/3)
# 1320|   
# 1321|   	X509* wcert = WINPR_CAST_CONST_PTR_AWAY(xcert, X509*);
# 1322|-> 	cert->x509 = X509_dup(wcert);
# 1323|   	if (!cert->x509)
# 1324|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def826]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1322:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(x509_utils_from_pem(file,  strlen(file), isFile), 0)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1338:24: enter_function: entry to ‘freerdp_certificate_new_from’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1341:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1343:32: call_function: calling ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new_from’
# 1320|   
# 1321|   	X509* wcert = WINPR_CAST_CONST_PTR_AWAY(xcert, X509*);
# 1322|-> 	cert->x509 = X509_dup(wcert);
# 1323|   	if (!cert->x509)
# 1324|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def827]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1334:9: warning[-Wanalyzer-mismatching-deallocation]: ‘freerdp_certificate_new()’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_certificate_free’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1313:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1317:32: return_function: returning to ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1318:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1322:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1323:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1324:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1334:9: danger: deallocated with ‘freerdp_certificate_free’ here; allocation at [(4)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘free’
# 1332|   	return cert;
# 1333|   fail:
# 1334|-> 	freerdp_certificate_free(cert);
# 1335|   	return NULL;
# 1336|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def828]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1384:23: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash(cert, "sha256")’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1366:7: enter_function: entry to ‘freerdp_certificate_get_fingerprint’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1368:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1368:16: call_function: calling ‘freerdp_certificate_get_fingerprint_by_hash’ from ‘freerdp_certificate_get_fingerprint’
# 1382|   	BYTE* fp = NULL;
# 1383|   	char* fp_buffer = NULL;
# 1384|-> 	if (!cert || !cert->x509)
# 1385|   	{
# 1386|   		WLog_ERR(TAG, "Invalid certificate [%p, %p]", cert, cert ? cert->x509 : NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def829]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1384:23: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  hash, 1)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1371:7: enter_function: entry to ‘freerdp_certificate_get_fingerprint_by_hash’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1373:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1373:16: call_function: calling ‘freerdp_certificate_get_fingerprint_by_hash_ex’ from ‘freerdp_certificate_get_fingerprint_by_hash’
# 1382|   	BYTE* fp = NULL;
# 1383|   	char* fp_buffer = NULL;
# 1384|-> 	if (!cert || !cert->x509)
# 1385|   	{
# 1386|   		WLog_ERR(TAG, "Invalid certificate [%p, %p]", cert, cert ? cert->x509 : NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def830]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1394:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash(cert, "sha256")’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1366:7: enter_function: entry to ‘freerdp_certificate_get_fingerprint’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1368:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1368:16: call_function: calling ‘freerdp_certificate_get_fingerprint_by_hash’ from ‘freerdp_certificate_get_fingerprint’
# 1392|   		return NULL;
# 1393|   	}
# 1394|-> 	fp = x509_utils_get_hash(cert->x509, hash, &fp_len);
# 1395|   	if (!fp)
# 1396|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def831]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1394:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  hash, 1)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1371:7: enter_function: entry to ‘freerdp_certificate_get_fingerprint_by_hash’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1373:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1373:16: call_function: calling ‘freerdp_certificate_get_fingerprint_by_hash_ex’ from ‘freerdp_certificate_get_fingerprint_by_hash’
# 1392|   		return NULL;
# 1393|   	}
# 1394|-> 	fp = x509_utils_get_hash(cert->x509, hash, &fp_len);
# 1395|   	if (!fp)
# 1396|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def832]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1456:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1446:12: branch_false: following ‘false’ branch (when ‘plength’ is NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1449:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1451:29: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1452:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1456:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1456:17: danger: ‘tmp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/4)
# 1454|   		pem = tmp;
# 1455|   
# 1456|-> 		ERR_clear_error();
# 1457|   
# 1458|   		const int status = BIO_read(bio, &pem[offset], (int)(length - offset));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def833]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1458:36: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1446:12: branch_false: following ‘false’ branch (when ‘plength’ is NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1449:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1451:29: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1452:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1456:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1458:36: danger: ‘tmp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/4)
# 1456|   		ERR_clear_error();
# 1457|   
# 1458|-> 		const int status = BIO_read(bio, &pem[offset], (int)(length - offset));
# 1459|   		if (status < 0)
# 1460|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def834]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1501:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_pem_ex(cert,  pLength, 1)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1491:7: enter_function: entry to ‘freerdp_certificate_get_pem’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: call_function: calling ‘freerdp_certificate_get_pem_ex’ from ‘freerdp_certificate_get_pem’
# 1499|   	WINPR_ASSERT(cert);
# 1500|   
# 1501|-> 	if (!cert->x509)
# 1502|   		return NULL;
# 1503|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def835]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1508:20: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_pem_ex(cert,  pLength, 1)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1491:7: enter_function: entry to ‘freerdp_certificate_get_pem’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: call_function: calling ‘freerdp_certificate_get_pem_ex’ from ‘freerdp_certificate_get_pem’
# 1506|   	 * implementation
# 1507|   	 */
# 1508|-> 	BIO* bio = BIO_new(BIO_s_mem());
# 1509|   
# 1510|   	if (!bio)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def836]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1518:28: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_pem_ex(cert,  pLength, 1)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1491:7: enter_function: entry to ‘freerdp_certificate_get_pem’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: call_function: calling ‘freerdp_certificate_get_pem_ex’ from ‘freerdp_certificate_get_pem’
# 1516|   	char* pem = NULL;
# 1517|   
# 1518|-> 	const int status = PEM_write_bio_X509(bio, cert->x509);
# 1519|   	if (status < 0)
# 1520|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def837]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1694:13: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1681:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1684:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1685:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1688:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1689:18: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1690:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1692:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1694:13: danger: ‘output’ leaks here; was allocated at [(5)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/4)
# 1692|   	*pcbOutput = outputSize;
# 1693|   
# 1694|-> 	if (EVP_PKEY_encrypt_init(ctx) != 1 ||
# 1695|   	    EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PADDING) != 1 ||
# 1696|   	    EVP_PKEY_encrypt(ctx, output, pcbOutput, input, cbInput) != 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def838]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1695:13: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1681:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1684:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1685:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1688:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1689:18: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1690:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1692:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1694:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1695:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1695:13: danger: ‘output’ leaks here; was allocated at [(5)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/4)
# 1693|   
# 1694|   	if (EVP_PKEY_encrypt_init(ctx) != 1 ||
# 1695|-> 	    EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PADDING) != 1 ||
# 1696|   	    EVP_PKEY_encrypt(ctx, output, pcbOutput, input, cbInput) != 1)
# 1697|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def839]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1696:13: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1681:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1684:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1685:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1688:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1689:18: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1690:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1692:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1694:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1695:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1694:13: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1696:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1696:13: danger: ‘output’ leaks here; was allocated at [(5)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/4)
# 1694|   	if (EVP_PKEY_encrypt_init(ctx) != 1 ||
# 1695|   	    EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PADDING) != 1 ||
# 1696|-> 	    EVP_PKEY_encrypt(ctx, output, pcbOutput, input, cbInput) != 1)
# 1697|   	{
# 1698|   		WLog_ERR(TAG, "error when setting up public key");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def840]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1743:25: warning[-Wanalyzer-malloc-leak]: leak of ‘i2d_ptr’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1735:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1738:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1738:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1739:12: branch_false: following ‘false’ branch (when ‘ptr’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1741:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1743:25: danger: ‘i2d_ptr’ leaks here; was allocated at [(3)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/2)
# 1741|   	BYTE* i2d_ptr = ptr;
# 1742|   
# 1743|-> 	const int rc2 = i2d_X509(cert->x509, &i2d_ptr);
# 1744|   	if (rc2 <= 0)
# 1745|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def841]
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1821:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rc’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1798:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1801:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1805:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1817:31: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1818:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1819:12: branch_false: following ‘false’ branch (when ‘rc’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1821:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1821:9: danger: ‘rc’ leaks here; was allocated at [(5)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/4)
# 1819|   	if (!rc)
# 1820|   		goto fail;
# 1821|-> 	BN_bn2bin(bn, (BYTE*)rc);
# 1822|   	*psize = bnsize;
# 1823|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def842]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:120:30: warning[-Wanalyzer-malloc-leak]: leak of ‘certdata’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:111:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:114:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:114:41: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:116:12: branch_false: following ‘false’ branch (when ‘certdata’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:119:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:120:30: danger: ‘certdata’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  118|   
#  119|   	certdata->port = port;
#  120|-> 	certdata->hostname = _strdup(hostname);
#  121|   	if (!certdata->hostname)
#  122|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def843]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:120:30: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_clone(xcert)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:138:21: enter_function: entry to ‘freerdp_certificate_data_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:141:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:142:36: call_function: calling ‘freerdp_certificate_data_new_nocopy’ from ‘freerdp_certificate_data_new’
#  118|   
#  119|   	certdata->port = port;
#  120|-> 	certdata->hostname = _strdup(hostname);
#  121|   	if (!certdata->hostname)
#  122|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def844]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:120:30: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_file(file)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:161:21: enter_function: entry to ‘freerdp_certificate_data_new_from_file’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:164:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:167:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:167:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:168:36: call_function: calling ‘freerdp_certificate_data_new_nocopy’ from ‘freerdp_certificate_data_new_from_file’
#  118|   
#  119|   	certdata->port = port;
#  120|-> 	certdata->hostname = _strdup(hostname);
#  121|   	if (!certdata->hostname)
#  122|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def845]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:120:30: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_pem(pem)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:148:21: enter_function: entry to ‘freerdp_certificate_data_new_from_pem’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:151:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:154:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:154:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:155:36: call_function: calling ‘freerdp_certificate_data_new_nocopy’ from ‘freerdp_certificate_data_new_from_pem’
#  118|   
#  119|   	certdata->port = port;
#  120|-> 	certdata->hostname = _strdup(hostname);
#  121|   	if (!certdata->hostname)
#  122|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def846]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:134:9: warning[-Wanalyzer-mismatching-deallocation]: ‘certdata’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_certificate_data_free’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:138:21: enter_function: entry to ‘freerdp_certificate_data_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:142:36: call_function: calling ‘freerdp_certificate_data_new_nocopy’ from ‘freerdp_certificate_data_new’
#  132|   	return certdata;
#  133|   fail:
#  134|-> 	freerdp_certificate_data_free(certdata);
#  135|   	return NULL;
#  136|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def847]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:179:14: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_certificate_data_free’ of ‘data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:138:21: enter_function: entry to ‘freerdp_certificate_data_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_data.c:142:36: call_function: calling ‘freerdp_certificate_data_new_nocopy’ from ‘freerdp_certificate_data_new’
#  177|   		return;
#  178|   
#  179|-> 	free(data->hostname);
#  180|   	freerdp_certificate_free(data->cert);
#  181|   	free(data->cached_subject);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def848]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:58:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_load_data(store,  freerdp_certificate_data_get_host(data), freerdp_certificate_data_get_port(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:62:1: enter_function: entry to ‘freerdp_certificate_store_contains_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: call_function: calling ‘freerdp_certificate_store_load_data’ from ‘freerdp_certificate_store_contains_data’
#   56|   		return NULL;
#   57|   
#   58|-> 	return GetCombinedPath(hosts, hash);
#   59|   }
#   60|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def849]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:72:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_load_data(store,  freerdp_certificate_data_get_host(data), freerdp_certificate_data_get_port(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:62:1: enter_function: entry to ‘freerdp_certificate_store_contains_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: call_function: calling ‘freerdp_certificate_store_load_data’ from ‘freerdp_certificate_store_contains_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: return_function: returning to ‘freerdp_certificate_store_contains_data’ from ‘freerdp_certificate_store_load_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:69:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:72:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:72:14: danger: ‘freerdp_certificate_store_load_data(store,  freerdp_certificate_data_get_host(data), freerdp_certificate_data_get_port(data))’ leaks here; was allocated at [(16)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/15)
#   70|   		goto fail;
#   71|   
#   72|-> 	rc = freerdp_certificate_data_equal(data, loaded) ? CERT_STORE_MATCH : CERT_STORE_MISMATCH;
#   73|   
#   74|   fail:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def850]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:76:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_load_data(store,  freerdp_certificate_data_get_host(data), freerdp_certificate_data_get_port(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:62:1: enter_function: entry to ‘freerdp_certificate_store_contains_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: call_function: calling ‘freerdp_certificate_store_load_data’ from ‘freerdp_certificate_store_contains_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: return_function: returning to ‘freerdp_certificate_store_contains_data’ from ‘freerdp_certificate_store_load_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:69:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:72:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:76:16: danger: ‘freerdp_certificate_store_load_data(store,  freerdp_certificate_data_get_host(data), freerdp_certificate_data_get_port(data))’ leaks here; was allocated at [(16)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/15)
#   74|   fail:
#   75|   	freerdp_certificate_data_free(loaded);
#   76|-> 	return rc;
#   77|   }
#   78|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def851]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:94:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:79:6: enter_function: entry to ‘freerdp_certificate_store_remove_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:87:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:89:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:89:22: call_function: calling ‘freerdp_certificate_store_file_path’ from ‘freerdp_certificate_store_remove_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:89:22: return_function: returning to ‘freerdp_certificate_store_remove_data’ from ‘freerdp_certificate_store_file_path’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:91:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:94:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:94:13: danger: ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’ leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
#   92|   		return FALSE;
#   93|   
#   94|-> 	if (winpr_PathFileExists(path))
#   95|   		rc = winpr_DeleteFile(path);
#   96|   	free(path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def852]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:95:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:79:6: enter_function: entry to ‘freerdp_certificate_store_remove_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:87:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:89:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:89:22: call_function: calling ‘freerdp_certificate_store_file_path’ from ‘freerdp_certificate_store_remove_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:89:22: return_function: returning to ‘freerdp_certificate_store_remove_data’ from ‘freerdp_certificate_store_file_path’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:91:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:94:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:94:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:95:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:95:22: danger: ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’ leaks here; was allocated at [(8)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/7)
#   93|   
#   94|   	if (winpr_PathFileExists(path))
#   95|-> 		rc = winpr_DeleteFile(path);
#   96|   	free(path);
#   97|   	return rc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def853]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:108:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:100:6: enter_function: entry to ‘freerdp_certificate_store_save_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:105:22: call_function: calling ‘freerdp_certificate_store_file_path’ from ‘freerdp_certificate_store_save_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:105:22: return_function: returning to ‘freerdp_certificate_store_save_data’ from ‘freerdp_certificate_store_file_path’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:108:14: danger: ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’ leaks here; was allocated at [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5)
#  106|   	FILE* fp = NULL;
#  107|   
#  108|-> 	if (!winpr_PathFileExists(base))
#  109|   	{
#  110|   		if (!winpr_PathMakePath(base, NULL))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def854]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:110:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:100:6: enter_function: entry to ‘freerdp_certificate_store_save_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:105:22: call_function: calling ‘freerdp_certificate_store_file_path’ from ‘freerdp_certificate_store_save_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:105:22: return_function: returning to ‘freerdp_certificate_store_save_data’ from ‘freerdp_certificate_store_file_path’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:108:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:110:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:110:22: danger: ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’ leaks here; was allocated at [(6)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/5)
#  108|   	if (!winpr_PathFileExists(base))
#  109|   	{
#  110|-> 		if (!winpr_PathMakePath(base, NULL))
#  111|   			goto fail;
#  112|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def855]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:114:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:100:6: enter_function: entry to ‘freerdp_certificate_store_save_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:105:22: call_function: calling ‘freerdp_certificate_store_file_path’ from ‘freerdp_certificate_store_save_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:105:22: return_function: returning to ‘freerdp_certificate_store_save_data’ from ‘freerdp_certificate_store_file_path’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:114:14: danger: ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’ leaks here; was allocated at [(6)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/5)
#  112|   	}
#  113|   
#  114|-> 	fp = winpr_fopen(path, "w");
#  115|   	if (!fp)
#  116|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def856]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:118:15: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:100:6: enter_function: entry to ‘freerdp_certificate_store_save_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:105:22: call_function: calling ‘freerdp_certificate_store_file_path’ from ‘freerdp_certificate_store_save_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:105:22: return_function: returning to ‘freerdp_certificate_store_save_data’ from ‘freerdp_certificate_store_file_path’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:115:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:118:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:118:15: danger: ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’ leaks here; was allocated at [(6)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/5)
#  116|   		goto fail;
#  117|   
#  118|-> 	(void)fprintf(fp, "%s", freerdp_certificate_data_get_pem_ex(data, FALSE));
#  119|   
#  120|   	rc = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def857]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:118:15: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_fopen(freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data)), "w")’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:100:6: enter_function: entry to ‘freerdp_certificate_store_save_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:105:22: call_function: calling ‘freerdp_certificate_store_file_path’ from ‘freerdp_certificate_store_save_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:105:22: return_function: returning to ‘freerdp_certificate_store_save_data’ from ‘freerdp_certificate_store_file_path’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:114:14: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:115:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:118:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:118:15: danger: ‘winpr_fopen(freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data)), "w")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
#  116|   		goto fail;
#  117|   
#  118|-> 	(void)fprintf(fp, "%s", freerdp_certificate_data_get_pem_ex(data, FALSE));
#  119|   
#  120|   	rc = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def858]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:140:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_get_cert_path(store,  host,  port)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:128:21: enter_function: entry to ‘freerdp_certificate_store_load_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:136:16: call_function: calling ‘freerdp_certificate_store_get_cert_path’ from ‘freerdp_certificate_store_load_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:136:16: return_function: returning to ‘freerdp_certificate_store_load_data’ from ‘freerdp_certificate_store_get_cert_path’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:137:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:140:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:140:16: danger: ‘freerdp_certificate_store_get_cert_path(store,  host,  port)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/9)
#  138|   		goto fail;
#  139|   
#  140|-> 	data = freerdp_certificate_data_new_from_file(host, port, path);
#  141|   
#  142|   fail:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def859]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:140:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_load_data(store,  freerdp_certificate_data_get_host(data), freerdp_certificate_data_get_port(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:62:1: enter_function: entry to ‘freerdp_certificate_store_contains_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: call_function: calling ‘freerdp_certificate_store_load_data’ from ‘freerdp_certificate_store_contains_data’
#  138|   		goto fail;
#  139|   
#  140|-> 	data = freerdp_certificate_data_new_from_file(host, port, path);
#  141|   
#  142|   fail:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def860]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:144:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_load_data(store,  freerdp_certificate_data_get_host(data), freerdp_certificate_data_get_port(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:62:1: enter_function: entry to ‘freerdp_certificate_store_contains_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: call_function: calling ‘freerdp_certificate_store_load_data’ from ‘freerdp_certificate_store_contains_data’
#  142|   fail:
#  143|   	free(path);
#  144|-> 	return data;
#  145|   }
#  146|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def861]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:154:28: warning[-Wanalyzer-malloc-leak]: leak of ‘store’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:149:60: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:151:12: branch_false: following ‘false’ branch (when ‘store’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:154:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:154:28: danger: ‘store’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  152|   		return NULL;
#  153|   
#  154|-> 	const char* base = freerdp_settings_get_string(settings, FreeRDP_ConfigPath);
#  155|   	if (!base)
#  156|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def862]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:158:29: warning[-Wanalyzer-malloc-leak]: leak of ‘store’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:149:60: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:151:12: branch_false: following ‘false’ branch (when ‘store’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:154:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:155:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:158:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:158:29: danger: ‘store’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  156|   		goto fail;
#  157|   
#  158|-> 	store->certs_path = GetCombinedPath(base, certificate_store_dir);
#  159|   	store->server_path = GetCombinedPath(base, certificate_server_dir);
#  160|   	if (!store->certs_path || !store->server_path)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def863]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:159:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:151:12: branch_false: following ‘false’ branch (when ‘store’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:154:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:155:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:158:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:158:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:159:30: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
#  157|   
#  158|   	store->certs_path = GetCombinedPath(base, certificate_store_dir);
#  159|-> 	store->server_path = GetCombinedPath(base, certificate_server_dir);
#  160|   	if (!store->certs_path || !store->server_path)
#  161|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def864]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:159:30: warning[-Wanalyzer-malloc-leak]: leak of ‘store’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:149:60: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:151:12: branch_false: following ‘false’ branch (when ‘store’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:154:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:155:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:158:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:159:30: danger: ‘store’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  157|   
#  158|   	store->certs_path = GetCombinedPath(base, certificate_store_dir);
#  159|-> 	store->server_path = GetCombinedPath(base, certificate_server_dir);
#  160|   	if (!store->certs_path || !store->server_path)
#  161|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def865]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:168:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:151:12: branch_false: following ‘false’ branch (when ‘store’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:154:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:155:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:158:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:159:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:160:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:161:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:168:9: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
#  166|   	WINPR_PRAGMA_DIAG_PUSH
#  167|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  168|-> 	freerdp_certificate_store_free(store);
#  169|   	WINPR_PRAGMA_DIAG_POP
#  170|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def866]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:168:9: warning[-Wanalyzer-mismatching-deallocation]: ‘store’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_certificate_store_free’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:149:60: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:151:12: branch_false: following ‘false’ branch (when ‘store’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:154:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:155:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:156:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:168:9: danger: deallocated with ‘freerdp_certificate_store_free’ here; allocation at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  166|   	WINPR_PRAGMA_DIAG_PUSH
#  167|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  168|-> 	freerdp_certificate_store_free(store);
#  169|   	WINPR_PRAGMA_DIAG_POP
#  170|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def867]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:178:14: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_certificate_store_free’ of ‘store’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:147:22: enter_function: entry to ‘freerdp_certificate_store_new’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:149:60: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:151:12: branch_false: following ‘false’ branch (when ‘store’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:154:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:168:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:168:9: call_function: calling ‘freerdp_certificate_store_free’ from ‘freerdp_certificate_store_new’
#  176|   		return;
#  177|   
#  178|-> 	free(store->certs_path);
#  179|   	free(store->server_path);
#  180|   	free(store);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def868]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:192:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_load_data(store,  freerdp_certificate_data_get_host(data), freerdp_certificate_data_get_port(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:62:1: enter_function: entry to ‘freerdp_certificate_store_contains_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: call_function: calling ‘freerdp_certificate_store_load_data’ from ‘freerdp_certificate_store_contains_data’
#  190|   {
#  191|   	WINPR_ASSERT(store);
#  192|-> 	return store->server_path;
#  193|   }
#  194|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def869]
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:200:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_load_data(store,  freerdp_certificate_data_get_host(data), freerdp_certificate_data_get_port(data))’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:62:1: enter_function: entry to ‘freerdp_certificate_store_contains_data’
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate_store.c:68:38: call_function: calling ‘freerdp_certificate_store_load_data’ from ‘freerdp_certificate_store_contains_data’
#  198|   	WINPR_ASSERT(store);
#  199|   
#  200|-> 	char* hash = freerdp_certificate_data_hash(host, port);
#  201|   	if (!hash)
#  202|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def870]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:82:21: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#   80|   	crypto_reverse(input_reverse, length);
#   81|   
#   82|-> 	if (!(ctx = BN_CTX_new()))
#   83|   		goto fail;
#   84|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def871]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:85:21: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#   83|   		goto fail;
#   84|   
#   85|-> 	if (!(mod = BN_new()))
#   86|   		goto fail;
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def872]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:88:21: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#   86|   		goto fail;
#   87|   
#   88|-> 	if (!(exp = BN_new()))
#   89|   		goto fail;
#   90|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def873]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:91:19: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#   89|   		goto fail;
#   90|   
#   91|-> 	if (!(x = BN_new()))
#   92|   		goto fail;
#   93|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def874]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:94:19: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#   92|   		goto fail;
#   93|   
#   94|-> 	if (!(y = BN_new()))
#   95|   		goto fail;
#   96|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def875]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:97:14: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#   95|   		goto fail;
#   96|   
#   97|-> 	if (!BN_bin2bn(modulus_reverse, (int)key_length, mod))
#   98|   		goto fail;
#   99|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def876]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:100:14: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#   98|   		goto fail;
#   99|   
#  100|-> 	if (!BN_bin2bn(exponent_reverse, (int)exponent_size, exp))
#  101|   		goto fail;
#  102|   	if (!BN_bin2bn(input_reverse, (int)length, x))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def877]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:102:14: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#  100|   	if (!BN_bin2bn(exponent_reverse, (int)exponent_size, exp))
#  101|   		goto fail;
#  102|-> 	if (!BN_bin2bn(input_reverse, (int)length, x))
#  103|   		goto fail;
#  104|   	if (BN_mod_exp(y, x, exp, mod, ctx) != 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def878]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:104:13: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#  102|   	if (!BN_bin2bn(input_reverse, (int)length, x))
#  103|   		goto fail;
#  104|-> 	if (BN_mod_exp(y, x, exp, mod, ctx) != 1)
#  105|   		goto fail;
#  106|   	output_length = BN_bn2bin(y, output);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def879]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:106:25: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#  104|   	if (BN_mod_exp(y, x, exp, mod, ctx) != 1)
#  105|   		goto fail;
#  106|-> 	output_length = BN_bn2bin(y, output);
#  107|   	if (output_length < 0)
#  108|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def880]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:122:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#  120|   
#  121|   fail:
#  122|-> 	BN_free(y);
#  123|   	BN_clear_free(x);
#  124|   	BN_free(exp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def881]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:123:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#  121|   fail:
#  122|   	BN_free(y);
#  123|-> 	BN_clear_free(x);
#  124|   	BN_free(exp);
#  125|   	BN_free(mod);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def882]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:124:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#  122|   	BN_free(y);
#  123|   	BN_clear_free(x);
#  124|-> 	BN_free(exp);
#  125|   	BN_free(mod);
#  126|   	BN_CTX_free(ctx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def883]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:125:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#  123|   	BN_clear_free(x);
#  124|   	BN_free(exp);
#  125|-> 	BN_free(mod);
#  126|   	BN_CTX_free(ctx);
#  127|   	free(input_reverse);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def884]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:126:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:173:16: call_function: calling ‘crypto_rsa_private’ from ‘crypto_rsa_private_decrypt’
#  124|   	BN_free(exp);
#  125|   	BN_free(mod);
#  126|-> 	BN_CTX_free(ctx);
#  127|   	free(input_reverse);
#  128|   	return output_length;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def885]
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:228:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:189:7: enter_function: entry to ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:202:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:203:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:205:30: call_function: inlined call to ‘_ftelli64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:208:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:209:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:212:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:212:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:213:12: branch_false: following ‘false’ branch (when ‘pem’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:216:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:217:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:218:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:228:9: danger: ‘pem’ leaks here; was allocated at [(13)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/12)
#  226|   {
#  227|   	char buffer[8192] = { 0 };
#  228|-> 	WLog_WARN(TAG, "Failed to read PEM from file '%s' [%s]", filename,
#  229|   	          winpr_strerror(errno, buffer, sizeof(buffer)));
#  230|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def886]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:128:23: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:259:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_file_enc’
#  126|   	BIO* bio = NULL;
#  127|   	if (fromFile)
#  128|-> 		bio = BIO_new_file(data, "rb");
#  129|   	else
#  130|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def887]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:133:23: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:235:16: enter_function: entry to ‘freerdp_key_new_from_pem_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:237:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_pem_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:237:30: return_function: returning to ‘freerdp_key_new_from_pem_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:238:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:240:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:240:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_pem_enc’
#  131|   		if (len > INT_MAX)
#  132|   			return NULL;
#  133|-> 		bio = BIO_new_mem_buf(data, (int)len);
#  134|   	}
#  135|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def888]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:133:23: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new_from_pem_enc(pem, 0)’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:230:16: enter_function: entry to ‘freerdp_key_new_from_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: call_function: calling ‘freerdp_key_new_from_pem_enc’ from ‘freerdp_key_new_from_pem’
#  131|   		if (len > INT_MAX)
#  132|   			return NULL;
#  133|-> 		bio = BIO_new_mem_buf(data, (int)len);
#  134|   	}
#  135|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def889]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:142:15: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:259:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_file_enc’
#  140|   	}
#  141|   
#  142|-> 	evp = PEM_read_bio_PrivateKey(bio, NULL, NULL, WINPR_CAST_CONST_PTR_AWAY(password, void*));
#  143|   	BIO_free_all(bio);
#  144|   	if (!evp)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def890]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:142:15: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new_from_pem_enc(pem, 0)’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:230:16: enter_function: entry to ‘freerdp_key_new_from_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: call_function: calling ‘freerdp_key_new_from_pem_enc’ from ‘freerdp_key_new_from_pem’
#  140|   	}
#  141|   
#  142|-> 	evp = PEM_read_bio_PrivateKey(bio, NULL, NULL, WINPR_CAST_CONST_PTR_AWAY(password, void*));
#  143|   	BIO_free_all(bio);
#  144|   	if (!evp)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def891]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:143:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:259:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_file_enc’
#  141|   
#  142|   	evp = PEM_read_bio_PrivateKey(bio, NULL, NULL, WINPR_CAST_CONST_PTR_AWAY(password, void*));
#  143|-> 	BIO_free_all(bio);
#  144|   	if (!evp)
#  145|   		WLog_ERR(TAG, "PEM_read_bio_PrivateKey returned NULL [input length %" PRIuz "]", len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def892]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:143:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new_from_pem_enc(pem, 0)’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:230:16: enter_function: entry to ‘freerdp_key_new_from_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: call_function: calling ‘freerdp_key_new_from_pem_enc’ from ‘freerdp_key_new_from_pem’
#  141|   
#  142|   	evp = PEM_read_bio_PrivateKey(bio, NULL, NULL, WINPR_CAST_CONST_PTR_AWAY(password, void*));
#  143|-> 	BIO_free_all(bio);
#  144|   	if (!evp)
#  145|   		WLog_ERR(TAG, "PEM_read_bio_PrivateKey returned NULL [input length %" PRIuz "]", len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def893]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:200:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:259:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘evp_pkey_utils_from_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:263:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:265:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:265:14: call_function: calling ‘key_read_private’ from ‘freerdp_key_new_from_file_enc’
#  198|   	BIGNUM* rsa_d = NULL;
#  199|   
#  200|-> 	if (!EVP_PKEY_get_bn_param(key->evp, OSSL_PKEY_PARAM_RSA_N, &rsa_n))
#  201|   		goto fail;
#  202|   	if (!EVP_PKEY_get_bn_param(key->evp, OSSL_PKEY_PARAM_RSA_E, &rsa_e))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def894]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:200:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new_from_pem_enc(pem, 0)’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:230:16: enter_function: entry to ‘freerdp_key_new_from_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: call_function: calling ‘freerdp_key_new_from_pem_enc’ from ‘freerdp_key_new_from_pem’
#  198|   	BIGNUM* rsa_d = NULL;
#  199|   
#  200|-> 	if (!EVP_PKEY_get_bn_param(key->evp, OSSL_PKEY_PARAM_RSA_N, &rsa_n))
#  201|   		goto fail;
#  202|   	if (!EVP_PKEY_get_bn_param(key->evp, OSSL_PKEY_PARAM_RSA_E, &rsa_e))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def895]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:202:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:259:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘evp_pkey_utils_from_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:263:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:265:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:265:14: call_function: calling ‘key_read_private’ from ‘freerdp_key_new_from_file_enc’
#  200|   	if (!EVP_PKEY_get_bn_param(key->evp, OSSL_PKEY_PARAM_RSA_N, &rsa_n))
#  201|   		goto fail;
#  202|-> 	if (!EVP_PKEY_get_bn_param(key->evp, OSSL_PKEY_PARAM_RSA_E, &rsa_e))
#  203|   		goto fail;
#  204|   	if (!EVP_PKEY_get_bn_param(key->evp, OSSL_PKEY_PARAM_RSA_D, &rsa_d))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def896]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:204:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:259:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘evp_pkey_utils_from_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:263:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:265:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:265:14: call_function: calling ‘key_read_private’ from ‘freerdp_key_new_from_file_enc’
#  202|   	if (!EVP_PKEY_get_bn_param(key->evp, OSSL_PKEY_PARAM_RSA_E, &rsa_e))
#  203|   		goto fail;
#  204|-> 	if (!EVP_PKEY_get_bn_param(key->evp, OSSL_PKEY_PARAM_RSA_D, &rsa_d))
#  205|   		goto fail;
#  206|   #endif

Error: GCC_ANALYZER_WARNING (CWE-762): [#def897]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:247:9: warning[-Wanalyzer-mismatching-deallocation]: ‘freerdp_key_new()’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_key_free’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:235:16: enter_function: entry to ‘freerdp_key_new_from_pem_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:237:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_pem_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:237:30: return_function: returning to ‘freerdp_key_new_from_pem_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:238:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:239:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:247:9: danger: deallocated with ‘freerdp_key_free’ here; allocation at [(4)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘free’
#  245|   	return key;
#  246|   fail:
#  247|-> 	freerdp_key_free(key);
#  248|   	return NULL;
#  249|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def898]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:269:9: warning[-Wanalyzer-mismatching-deallocation]: ‘freerdp_key_new()’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_key_free’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:259:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:260:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:269:9: danger: deallocated with ‘freerdp_key_free’ here; allocation at [(4)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘free’
#  267|   	return key;
#  268|   fail:
#  269|-> 	freerdp_key_free(key);
#  270|   	return NULL;
#  271|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def899]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:275:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
#  273|   rdpPrivateKey* freerdp_key_new(void)
#  274|   {
#  275|-> 	return calloc(1, sizeof(rdpPrivateKey));
#  276|   }
#  277|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def900]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:293:17: warning[-Wanalyzer-malloc-leak]: leak of ‘_key’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:280:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:283:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:283:47: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:285:12: branch_false: following ‘false’ branch (when ‘_key’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:288:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:288:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:290:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:293:17: danger: ‘_key’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
#  291|   		if (!_key->evp)
#  292|   			goto out_fail;
#  293|-> 		EVP_PKEY_up_ref(_key->evp);
#  294|   	}
#  295|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def901]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:307:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:280:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:283:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:285:12: branch_false: following ‘false’ branch (when ‘_key’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:288:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:296:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:296:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:298:55: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:298:48: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:300:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:303:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:307:14: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/8)
#  305|   	}
#  306|   
#  307|-> 	if (!cert_info_clone(&_key->cert, &key->cert))
#  308|   		goto out_fail;
#  309|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def902]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:307:14: warning[-Wanalyzer-malloc-leak]: leak of ‘_key’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:280:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:283:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:283:47: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:285:12: branch_false: following ‘false’ branch (when ‘_key’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:288:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:296:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:296:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:307:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:307:14: danger: ‘_key’ leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
#  305|   	}
#  306|   
#  307|-> 	if (!cert_info_clone(&_key->cert, &key->cert))
#  308|   		goto out_fail;
#  309|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def903]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:314:9: warning[-Wanalyzer-mismatching-deallocation]: ‘_key’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_key_free’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:280:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:283:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:283:47: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:285:12: branch_false: following ‘false’ branch (when ‘_key’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:288:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:296:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:296:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:298:55: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:300:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:301:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:314:9: danger: deallocated with ‘freerdp_key_free’ here; allocation at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2) expects deallocation with ‘free’
#  312|   	WINPR_PRAGMA_DIAG_PUSH
#  313|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  314|-> 	freerdp_key_free(_key);
#  315|   	WINPR_PRAGMA_DIAG_POP
#  316|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def904]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:324:9: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_key_free’ of ‘key’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:269:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:269:9: call_function: calling ‘freerdp_key_free’ from ‘freerdp_key_new_from_file_enc’
#  322|   		return;
#  323|   
#  324|-> 	EVP_PKEY_free(key->evp);
#  325|   	if (key->PrivateExponent)
#  326|   		memset(key->PrivateExponent, 0, key->PrivateExponentLength);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def905]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:554:27: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:508:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:545:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:546:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:549:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:550:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:551:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:554:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:554:27: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/4)
#  552|   		goto fail;
#  553|   
#  554|-> 	const int bnlen = BN_bn2bin(bn, buf);
#  555|   	if (bnlen != length)
#  556|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def906]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:574:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:570:36: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:571:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:574:52: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:574:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  572|   		return NULL;
#  573|   
#  574|-> 	if (!winpr_DigestSign_Init(md_ctx, digest, key->evp))
#  575|   	{
#  576|   		winpr_Digest_Free(md_ctx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def907]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:605:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:595:12: branch_false: following ‘false’ branch (when ‘plength’ is NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:598:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:600:29: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:601:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:605:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:605:17: danger: ‘tmp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/4)
#  603|   		pem = tmp;
#  604|   
#  605|-> 		ERR_clear_error();
#  606|   
#  607|   		const int status = BIO_read(bio, &pem[offset], (int)(length - offset));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def908]
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:607:36: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:595:12: branch_false: following ‘false’ branch (when ‘plength’ is NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:598:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:600:29: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:601:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:605:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:607:36: danger: ‘tmp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/4)
#  605|   		ERR_clear_error();
#  606|   
#  607|-> 		const int status = BIO_read(bio, &pem[offset], (int)(length - offset));
#  608|   		if (status < 0)
#  609|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def909]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:497:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tls’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:494:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:494:12: branch_false: following ‘false’ branch (when ‘tls’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:497:47: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:497:9: danger: ‘tls’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  495|   		return 0;
#  496|   
#  497|-> 	InitializeCriticalSectionAndSpinCount(&tls->lock, 4000);
#  498|   	BIO_set_data(bio, (void*)tls);
#  499|   	return 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def910]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:637:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(remote_cert,  SSL_get_peer_cert_chain(*tls.ssl))’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:628:12: branch_false: following ‘false’ branch (when ‘remote_cert’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:635:57: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:636:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:637:9: danger: ‘freerdp_certificate_new_from_x509(remote_cert,  SSL_get_peer_cert_chain(*tls.ssl))’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  635|   	STACK_OF(X509)* chain = SSL_get_peer_cert_chain(tls->ssl);
#  636|   	rdpCertificate* cert = freerdp_certificate_new_from_x509(remote_cert, chain);
#  637|-> 	X509_free(remote_cert);
#  638|   
#  639|   	return cert;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def911]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1360:35: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: call_function: calling ‘is_accepted’ from ‘tls_verify_certificate’
# 1358|   	}
# 1359|   
# 1360|-> 	const char* AcceptedKey = freerdp_settings_get_string(settings, keyAccepted);
# 1361|   	const UINT32 AcceptedKeyLength = freerdp_settings_get_uint32(settings, keyLength);
# 1362|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def912]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1361:42: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: call_function: calling ‘is_accepted’ from ‘tls_verify_certificate’
# 1359|   
# 1360|   	const char* AcceptedKey = freerdp_settings_get_string(settings, keyAccepted);
# 1361|-> 	const UINT32 AcceptedKeyLength = freerdp_settings_get_uint32(settings, keyLength);
# 1362|   
# 1363|   	if ((AcceptedKeyLength > 0) && AcceptedKey)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def913]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1367:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: call_function: calling ‘is_accepted’ from ‘tls_verify_certificate’
# 1365|   		BOOL accepted = FALSE;
# 1366|   		size_t pemLength = 0;
# 1367|-> 		char* pem = freerdp_certificate_get_pem_ex(cert, &pemLength, FALSE);
# 1368|   		if (pem && (AcceptedKeyLength == pemLength))
# 1369|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def914]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1378:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: call_function: calling ‘is_accepted’ from ‘tls_verify_certificate’
# 1376|   	}
# 1377|   
# 1378|-> 	(void)freerdp_settings_set_string(settings, keyAccepted, NULL);
# 1379|   	(void)freerdp_settings_set_uint32(settings, keyLength, 0);
# 1380|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def915]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1379:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: call_function: calling ‘is_accepted’ from ‘tls_verify_certificate’
# 1377|   
# 1378|   	(void)freerdp_settings_set_string(settings, keyAccepted, NULL);
# 1379|-> 	(void)freerdp_settings_set_uint32(settings, keyLength, 0);
# 1380|   
# 1381|   	return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def916]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1394:19: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1392|   	WINPR_ASSERT(cert);
# 1393|   
# 1394|-> 	strhash = freerdp_certificate_get_fingerprint_by_hash_ex(cert, hash, separator);
# 1395|   	if (!strhash)
# 1396|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def917]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1398:18: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  hash,  separator)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1394:19: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1398:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1398:18: danger: ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  hash,  separator)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1396|   		return FALSE;
# 1397|   
# 1398|-> 	equal = (_stricmp(strhash, fp) == 0);
# 1399|   	free(strhash);
# 1400|   	return equal;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def918]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1398:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1396|   		return FALSE;
# 1397|   
# 1398|-> 	equal = (_stricmp(strhash, fp) == 0);
# 1399|   	free(strhash);
# 1400|   	return equal;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def919]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1424:30: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1422|   	{
# 1423|   		char* context = NULL;
# 1424|-> 		char* copy = _strdup(CertificateAcceptedFingerprints);
# 1425|   		char* cur = strtok_s(copy, ",", &context);
# 1426|   		while (cur)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def920]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1425:29: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(CertificateAcceptedFingerprints)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1421:12: branch_true: following ‘true’ branch (when ‘CertificateAcceptedFingerprints’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1423:23: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1424:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1425:29: danger: ‘_strdup(CertificateAcceptedFingerprints)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
# 1423|   		char* context = NULL;
# 1424|   		char* copy = _strdup(CertificateAcceptedFingerprints);
# 1425|-> 		char* cur = strtok_s(copy, ",", &context);
# 1426|   		while (cur)
# 1427|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def921]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1425:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1423|   		char* context = NULL;
# 1424|   		char* copy = _strdup(CertificateAcceptedFingerprints);
# 1425|-> 		char* cur = strtok_s(copy, ",", &context);
# 1426|   		while (cur)
# 1427|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def922]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1429:41: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1427|   		{
# 1428|   			char* subcontext = NULL;
# 1429|-> 			const char* h = strtok_s(cur, ":", &subcontext);
# 1430|   
# 1431|   			if (!h)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def923]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1441:31: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1655:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1439|   			}
# 1440|   		next:
# 1441|-> 			cur = strtok_s(NULL, ",", &context);
# 1442|   		}
# 1443|   		free(copy);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def924]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1477:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_pem_ex(cert, & pemLength, 0)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1473:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1475:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1477:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1477:21: danger: ‘freerdp_certificate_get_pem_ex(cert, & pemLength, 0)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 1475|   	if (pemLength <= UINT32_MAX)
# 1476|   	{
# 1477|-> 		if (freerdp_settings_set_string_len(settings, id, pem, pemLength))
# 1478|   			rc = freerdp_settings_set_uint32(settings, lid, (UINT32)pemLength);
# 1479|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def925]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1478:30: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_pem_ex(cert, & pemLength, 0)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1473:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1475:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1477:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1477:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1478:30: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1478:30: danger: ‘freerdp_certificate_get_pem_ex(cert, & pemLength, 0)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 1476|   	{
# 1477|   		if (freerdp_settings_set_string_len(settings, id, pem, pemLength))
# 1478|-> 			rc = freerdp_settings_set_uint32(settings, lid, (UINT32)pemLength);
# 1479|   	}
# 1480|   	free(pem);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def926]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1495:27: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1568:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: call_function: calling ‘tls_config_parse_bool’ from ‘tls_config_check_certificate’
# 1493|   static int tls_config_parse_bool(WINPR_JSON* json, const char* opt)
# 1494|   {
# 1495|-> 	WINPR_JSON* val = WINPR_JSON_GetObjectItem(json, opt);
# 1496|   	if (!val || !WINPR_JSON_IsBool(val))
# 1497|   		return -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def927]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1496:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1568:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: call_function: calling ‘tls_config_parse_bool’ from ‘tls_config_check_certificate’
# 1494|   {
# 1495|   	WINPR_JSON* val = WINPR_JSON_GetObjectItem(json, opt);
# 1496|-> 	if (!val || !WINPR_JSON_IsBool(val))
# 1497|   		return -1;
# 1498|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def928]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1499:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1568:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: call_function: calling ‘tls_config_parse_bool’ from ‘tls_config_check_certificate’
# 1497|   		return -1;
# 1498|   
# 1499|-> 	if (WINPR_JSON_IsTrue(val))
# 1500|   		return 1;
# 1501|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def929]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1511:26: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1568:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1590:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1590:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1597:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1597:13: call_function: calling ‘tls_config_check_allowed_hashed’ from ‘tls_config_check_certificate’
# 1509|   	WINPR_ASSERT(json);
# 1510|   
# 1511|-> 	WINPR_JSON* db = WINPR_JSON_GetObjectItem(json, "certificate-db");
# 1512|   	if (!db || !WINPR_JSON_IsArray(db))
# 1513|   		return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def930]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1512:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1568:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1590:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1590:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1597:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1597:13: call_function: calling ‘tls_config_check_allowed_hashed’ from ‘tls_config_check_certificate’
# 1510|   
# 1511|   	WINPR_JSON* db = WINPR_JSON_GetObjectItem(json, "certificate-db");
# 1512|-> 	if (!db || !WINPR_JSON_IsArray(db))
# 1513|   		return 0;
# 1514|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def931]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1515:32: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1568:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1590:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1590:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1597:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1597:13: call_function: calling ‘tls_config_check_allowed_hashed’ from ‘tls_config_check_certificate’
# 1513|   		return 0;
# 1514|   
# 1515|-> 	for (size_t x = 0; x < WINPR_JSON_GetArraySize(db); x++)
# 1516|   	{
# 1517|   		WINPR_JSON* cur = WINPR_JSON_GetArrayItem(db, x);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def932]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1517:35: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1568:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1590:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1590:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1597:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1597:13: call_function: calling ‘tls_config_check_allowed_hashed’ from ‘tls_config_check_certificate’
# 1515|   	for (size_t x = 0; x < WINPR_JSON_GetArraySize(db); x++)
# 1516|   	{
# 1517|-> 		WINPR_JSON* cur = WINPR_JSON_GetArrayItem(db, x);
# 1518|   		if (!cur || !WINPR_JSON_IsObject(cur))
# 1519|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def933]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1518:30: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1568:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1590:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1590:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1597:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1597:13: call_function: calling ‘tls_config_check_allowed_hashed’ from ‘tls_config_check_certificate’
# 1516|   	{
# 1517|   		WINPR_JSON* cur = WINPR_JSON_GetArrayItem(db, x);
# 1518|-> 		if (!cur || !WINPR_JSON_IsObject(cur))
# 1519|   		{
# 1520|   			WLog_WARN(TAG,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def934]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1558:33: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  WINPR_JSON_GetStringValue(WINPR_JSON_GetObjectItem(WINPR_JSON_GetArrayItem(WINPR_JSON_GetObjectItem(json, "certificate-db"), x), "type")), 0)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1512:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1515:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1517:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1518:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1527:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1536:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1548:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1549:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1558:33: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1558:33: danger: ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  WINPR_JSON_GetStringValue(WINPR_JSON_GetObjectItem(WINPR_JSON_GetArrayItem(WINPR_JSON_GetObjectItem(json, "certificate-db"), x), "type")), 0)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/10)
# 1556|   		}
# 1557|   
# 1558|-> 		const int cmp = _stricmp(hash, sval);
# 1559|   		free(hash);
# 1560|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def935]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1615:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1615:16: danger: ‘freerdp_GetJSONConfigFile(1, &configfile)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
# 1613|   	*pAllowUserconfig = (rc == 0);
# 1614|   	WINPR_JSON_Delete(json);
# 1615|-> 	return rc;
# 1616|   }
# 1617|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def936]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1948:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1652:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1948:9: danger: ‘pemCert’ leaks here; was allocated at [(8)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/7)
# 1946|   
# 1947|   end:
# 1948|-> 	freerdp_certificate_data_free(certificate_data);
# 1949|   	free(common_name);
# 1950|   	freerdp_certificate_free_dns_names(dns_names_count, dns_names_lengths, dns_names);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def937]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1950:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1618:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1642:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1645:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1649:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1652:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1950:9: danger: ‘pemCert’ leaks here; was allocated at [(8)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/7)
# 1948|   	freerdp_certificate_data_free(certificate_data);
# 1949|   	free(common_name);
# 1950|-> 	freerdp_certificate_free_dns_names(dns_names_count, dns_names_lengths, dns_names);
# 1951|   	free(pemCert);
# 1952|   	return verification_status;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def938]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2033:14: warning[-Wanalyzer-malloc-leak]: leak of ‘tls’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2026:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2028:12: branch_false: following ‘false’ branch (when ‘tls’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2031:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2033:14: danger: ‘tls’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
# 2031|   	tls->context = context;
# 2032|   
# 2033|-> 	if (!freerdp_settings_get_bool(tls->context->settings, FreeRDP_ServerMode))
# 2034|   	{
# 2035|   		tls->certificate_store = freerdp_certificate_store_new(tls->context->settings);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def939]
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2035:42: warning[-Wanalyzer-malloc-leak]: leak of ‘tls’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2026:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2028:12: branch_false: following ‘false’ branch (when ‘tls’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2031:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2033:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2035:72: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:2035:42: danger: ‘tls’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
# 2033|   	if (!freerdp_settings_get_bool(tls->context->settings, FreeRDP_ServerMode))
# 2034|   	{
# 2035|-> 		tls->certificate_store = freerdp_certificate_store_new(tls->context->settings);
# 2036|   
# 2037|   		if (!tls->certificate_store)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def940]
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:62:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:44:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:49:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:49:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:55:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:55:14: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:56:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:62:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:62:13: danger: ‘fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   60|   	}
#   61|   
#   62|-> 	if (X509_digest(xcert, md, fp, &fp_len) != 1)
#   63|   	{
#   64|   		free(fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def941]
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:88:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:78:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:80:31: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:81:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:83:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:83:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:85:20: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:88:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:88:17: danger: ‘buffer’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   86|   			goto fail;
#   87|   
#   88|-> 		ERR_clear_error();
#   89|   		const int rc = BIO_read(outBIO, buffer, (int)size);
#   90|   		if (rc <= 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def942]
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:89:32: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:78:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:80:31: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:81:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:83:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:83:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:85:20: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:88:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:89:32: danger: ‘buffer’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#   87|   
#   88|   		ERR_clear_error();
#   89|-> 		const int rc = BIO_read(outBIO, buffer, (int)size);
#   90|   		if (rc <= 0)
#   91|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def943]
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:375:28: warning[-Wanalyzer-malloc-leak]: leak of ‘list.strings’
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:453:7: enter_function: entry to ‘x509_utils_get_upn’
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:460:9: call_function: calling ‘map_subject_alt_name’ from ‘x509_utils_get_upn’
#  373|   
#  374|   	/* TODO: check that object.type is a string type. */
#  375|-> 	const int length = ASN1_STRING_to_UTF8(&utf8String, object->value.asn1_string);
#  376|   
#  377|   	if (length < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def944]
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:496:9: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:478:12: branch_false: following ‘false’ branch (when ‘date’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:481:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:482:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:486:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:486:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:488:26: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:491:23: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/x509_utils.c:496:9: danger: ‘str’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  494|   	{ // Log error
#  495|   	}
#  496|-> 	BIO_free_all(bmem);
#  497|   	return str;
#  498|   }

Error: CPPCHECK_WARNING (CWE-476): [#def945]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:185: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tmp
#  183|   	{
#  184|   		void* tmp = malloc(srcSize);
#  185|-> 		memcpy(tmp, src, srcSize);
#  186|   		ArrayList_Append(ctx->strings, tmp);
#  187|   		*((void**)dst) = tmp;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def946]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2739:9: warning[-Wanalyzer-mismatching-deallocation]: ‘smartcard’ should have been deallocated with ‘free’ but was deallocated with ‘Emulate_Free’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2688:21: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2689:12: branch_false: following ‘false’ branch (when ‘smartcard’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2692:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2694:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2695:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2739:9: danger: deallocated with ‘Emulate_Free’ here; allocation at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 2737|   	WINPR_PRAGMA_DIAG_PUSH
# 2738|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2739|-> 	Emulate_Free(smartcard);
# 2740|   	WINPR_PRAGMA_DIAG_POP
# 2741|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def947]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2749:9: warning[-Wanalyzer-use-after-free]: use after ‘Emulate_Free’ of ‘context’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2682:28: enter_function: entry to ‘Emulate_New’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2688:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2689:12: branch_false: following ‘false’ branch (when ‘smartcard’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2692:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2739:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_emulate.c:2739:9: call_function: calling ‘Emulate_Free’ from ‘Emulate_New’
# 2747|   		return;
# 2748|   
# 2749|-> 	HashTable_Free(context->handles);
# 2750|   	HashTable_Free(context->contexts);
# 2751|   	free(context);

Error: CPPCHECK_WARNING (CWE-476): [#def948]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:275: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ef
#  273|   	vgidsEF* ef = calloc(1, sizeof(vgidsEF));
#  274|   
#  275|-> 	ef->id = id;
#  276|   	ef->data = Stream_New(NULL, 1024);
#  277|   	if (!ef->data)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def949]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:275:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ef’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  273|   	vgidsEF* ef = calloc(1, sizeof(vgidsEF));
#  274|   
#  275|-> 	ef->id = id;
#  276|   	ef->data = Stream_New(NULL, 1024);
#  277|   	if (!ef->data)

Error: CPPCHECK_WARNING (CWE-476): [#def950]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:276: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ef
#  274|   
#  275|   	ef->id = id;
#  276|-> 	ef->data = Stream_New(NULL, 1024);
#  277|   	if (!ef->data)
#  278|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def951]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:276:20: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  274|   
#  275|   	ef->id = id;
#  276|-> 	ef->data = Stream_New(NULL, 1024);
#  277|   	if (!ef->data)
#  278|   	{

Error: CPPCHECK_WARNING (CWE-476): [#def952]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:277: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ef
#  275|   	ef->id = id;
#  276|   	ef->data = Stream_New(NULL, 1024);
#  277|-> 	if (!ef->data)
#  278|   	{
#  279|   		WLog_ERR(TAG, "Failed to create file data stream");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def953]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:282:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  280|   		goto create_failed;
#  281|   	}
#  282|-> 	Stream_SetLength(ef->data, 0);
#  283|   
#  284|   	if (!ArrayList_Append(ctx->files, ef))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def954]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:282:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  280|   		goto create_failed;
#  281|   	}
#  282|-> 	Stream_SetLength(ef->data, 0);
#  283|   
#  284|   	if (!ArrayList_Append(ctx->files, ef))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def955]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:284:14: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  282|   	Stream_SetLength(ef->data, 0);
#  283|   
#  284|-> 	if (!ArrayList_Append(ctx->files, ef))
#  285|   	{
#  286|   		WLog_ERR(TAG, "Failed to add new ef to file list");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def956]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:302:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *<unknown>.capacity + 16)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  300|   
#  301|   	/* A maximum of 5 additional bytes is needed */
#  302|-> 	if (!Stream_EnsureRemainingCapacity(s, dataSize + 5))
#  303|   	{
#  304|   		WLog_ERR(TAG, "Failed to ensure capacity of DO stream");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def957]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:302:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, nSize + eSize + 16)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  300|   
#  301|   	/* A maximum of 5 additional bytes is needed */
#  302|-> 	if (!Stream_EnsureRemainingCapacity(s, dataSize + 5))
#  303|   	{
#  304|   		WLog_ERR(TAG, "Failed to ensure capacity of DO stream");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def958]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:302:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 0, & eSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  300|   
#  301|   	/* A maximum of 5 additional bytes is needed */
#  302|-> 	if (!Stream_EnsureRemainingCapacity(s, dataSize + 5))
#  303|   	{
#  304|   		WLog_ERR(TAG, "Failed to ensure capacity of DO stream");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def959]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:302:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 1, & nSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  300|   
#  301|   	/* A maximum of 5 additional bytes is needed */
#  302|-> 	if (!Stream_EnsureRemainingCapacity(s, dataSize + 5))
#  303|   	{
#  304|   		WLog_ERR(TAG, "Failed to ensure capacity of DO stream");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def960]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:329:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *<unknown>.capacity + 16)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  327|   	}
#  328|   	Stream_Write(s, data, dataSize);
#  329|-> 	Stream_SealLength(s);
#  330|   	return TRUE;
#  331|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def961]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:329:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 0, & eSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  327|   	}
#  328|   	Stream_Write(s, data, dataSize);
#  329|-> 	Stream_SealLength(s);
#  330|   	return TRUE;
#  331|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def962]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:329:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 1, & nSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  327|   	}
#  328|   	Stream_Write(s, data, dataSize);
#  329|-> 	Stream_SealLength(s);
#  330|   	return TRUE;
#  331|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def963]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:419:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  417|   	if (ef)
#  418|   	{
#  419|-> 		Stream_Free(ef->data, TRUE);
#  420|   		free(ef);
#  421|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def964]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:816:19: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 1, & nSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:860:13: enter_function: entry to ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:14: call_function: calling ‘vgids_parse_apdu_header’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:14: return_function: returning to ‘vgids_ins_getdata’ from ‘vgids_parse_apdu_header’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:880:9: call_function: inlined call to ‘vgids_reset_context_response’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:921:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:928:25: call_function: inlined call to ‘stream_read_u8’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:931:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:940:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:946:25: call_function: inlined call to ‘stream_read_u16_be’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:948:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:954:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:954:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:961:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:961:25: call_function: calling ‘vgids_get_public_key’ from ‘vgids_ins_getdata’
#  814|   
#  815|   	char* n = freerdp_certificate_get_param(context->certificate, FREERDP_CERT_RSA_N, &nSize);
#  816|-> 	char* e = freerdp_certificate_get_param(context->certificate, FREERDP_CERT_RSA_E, &eSize);
#  817|   
#  818|   	if (!n || !e)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def965]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:821:18: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 0, & eSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:860:13: enter_function: entry to ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:14: call_function: calling ‘vgids_parse_apdu_header’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:14: return_function: returning to ‘vgids_ins_getdata’ from ‘vgids_parse_apdu_header’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:880:9: call_function: inlined call to ‘vgids_reset_context_response’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:921:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:928:25: call_function: inlined call to ‘stream_read_u8’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:931:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:940:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:946:25: call_function: inlined call to ‘stream_read_u16_be’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:948:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:954:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:954:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:961:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:961:25: call_function: calling ‘vgids_get_public_key’ from ‘vgids_ins_getdata’
#  819|   		goto handle_error;
#  820|   
#  821|-> 	pubKey = Stream_New(NULL, nSize + eSize + 0x10);
#  822|   	if (!pubKey)
#  823|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def966]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:821:18: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 1, & nSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:860:13: enter_function: entry to ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:14: call_function: calling ‘vgids_parse_apdu_header’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:14: return_function: returning to ‘vgids_ins_getdata’ from ‘vgids_parse_apdu_header’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:880:9: call_function: inlined call to ‘vgids_reset_context_response’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:921:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:928:25: call_function: inlined call to ‘stream_read_u8’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:931:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:940:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:946:25: call_function: inlined call to ‘stream_read_u16_be’ from ‘vgids_ins_getdata’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:948:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:954:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:954:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:961:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:961:25: call_function: calling ‘vgids_get_public_key’ from ‘vgids_ins_getdata’
#  819|   		goto handle_error;
#  820|   
#  821|-> 	pubKey = Stream_New(NULL, nSize + eSize + 0x10);
#  822|   	if (!pubKey)
#  823|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def967]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:828:20: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, nSize + eSize + 16)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  826|   	}
#  827|   
#  828|-> 	response = Stream_New(NULL, Stream_Capacity(pubKey) + 0x10);
#  829|   	if (!response)
#  830|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def968]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:828:20: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 0, & eSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  826|   	}
#  827|   
#  828|-> 	response = Stream_New(NULL, Stream_Capacity(pubKey) + 0x10);
#  829|   	if (!response)
#  830|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def969]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:828:20: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 1, & nSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  826|   	}
#  827|   
#  828|-> 	response = Stream_New(NULL, Stream_Capacity(pubKey) + 0x10);
#  829|   	if (!response)
#  830|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def970]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:847:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 0, & eSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  845|   
#  846|   	/* set response data */
#  847|-> 	Stream_SetPosition(response, 0);
#  848|   	context->responseData = response;
#  849|   	response = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def971]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:847:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 1, & nSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  845|   
#  846|   	/* set response data */
#  847|-> 	Stream_SetPosition(response, 0);
#  848|   	context->responseData = response;
#  849|   	response = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def972]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:855:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pubKey’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  853|   	free(n);
#  854|   	free(e);
#  855|-> 	Stream_Free(pubKey, TRUE);
#  856|   	Stream_Free(response, TRUE);
#  857|   	return rc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def973]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:856:9: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  854|   	free(e);
#  855|   	Stream_Free(pubKey, TRUE);
#  856|-> 	Stream_Free(response, TRUE);
#  857|   	return rc;
#  858|   }

Error: CPPCHECK_WARNING (CWE-476): [#def974]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
# 1441|   	vgidsContext* ctx = calloc(1, sizeof(vgidsContext));
# 1442|   
# 1443|-> 	ctx->files = ArrayList_New(FALSE);
# 1444|   	if (!ctx->files)
# 1445|   	{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def975]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ctx’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: this call could return NULL
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443:9: danger: ‘ctx’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
# 1441|   	vgidsContext* ctx = calloc(1, sizeof(vgidsContext));
# 1442|   
# 1443|-> 	ctx->files = ArrayList_New(FALSE);
# 1444|   	if (!ctx->files)
# 1445|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def976]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443:22: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
# 1441|   	vgidsContext* ctx = calloc(1, sizeof(vgidsContext));
# 1442|   
# 1443|-> 	ctx->files = ArrayList_New(FALSE);
# 1444|   	if (!ctx->files)
# 1445|   	{

Error: CPPCHECK_WARNING (CWE-476): [#def977]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
# 1442|   
# 1443|   	ctx->files = ArrayList_New(FALSE);
# 1444|-> 	if (!ctx->files)
# 1445|   	{
# 1446|   		WLog_ERR(TAG, "Failed to create files array list");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def978]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
# 1448|   	}
# 1449|   
# 1450|-> 	obj = ArrayList_Object(ctx->files);
# 1451|   	obj->fnObjectFree = vgids_ef_free;
# 1452|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def979]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
# 1448|   	}
# 1449|   
# 1450|-> 	obj = ArrayList_Object(ctx->files);
# 1451|   	obj->fnObjectFree = vgids_ef_free;
# 1452|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def980]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1630:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1456:9: call_function: inlined call to ‘vgids_free’ from ‘vgids_new’
# 1628|   	if (context)
# 1629|   	{
# 1630|-> 		freerdp_key_free(context->privateKey);
# 1631|   		freerdp_certificate_free(context->certificate);
# 1632|   		Stream_Free(context->commandData, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def981]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1631:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1456:9: call_function: inlined call to ‘vgids_free’ from ‘vgids_new’
# 1629|   	{
# 1630|   		freerdp_key_free(context->privateKey);
# 1631|-> 		freerdp_certificate_free(context->certificate);
# 1632|   		Stream_Free(context->commandData, TRUE);
# 1633|   		Stream_Free(context->responseData, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def982]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1632:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1456:9: call_function: inlined call to ‘vgids_free’ from ‘vgids_new’
# 1630|   		freerdp_key_free(context->privateKey);
# 1631|   		freerdp_certificate_free(context->certificate);
# 1632|-> 		Stream_Free(context->commandData, TRUE);
# 1633|   		Stream_Free(context->responseData, TRUE);
# 1634|   		free(context->pin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def983]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1633:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1456:9: call_function: inlined call to ‘vgids_free’ from ‘vgids_new’
# 1631|   		freerdp_certificate_free(context->certificate);
# 1632|   		Stream_Free(context->commandData, TRUE);
# 1633|-> 		Stream_Free(context->responseData, TRUE);
# 1634|   		free(context->pin);
# 1635|   		ArrayList_Free(context->files);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def984]
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1635:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1456:9: call_function: inlined call to ‘vgids_free’ from ‘vgids_new’
# 1633|   		Stream_Free(context->responseData, TRUE);
# 1634|   		free(context->pin);
# 1635|-> 		ArrayList_Free(context->files);
# 1636|   		free(context);
# 1637|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def985]
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:52:21: warning[-Wanalyzer-malloc-leak]: leak of ‘hDC’
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:45:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:47:12: branch_false: following ‘false’ branch (when ‘hDC’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:50:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:52:21: danger: ‘hDC’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   50|   	hDC->format = PIXEL_FORMAT_XRGB32;
#   51|   	hDC->drawMode = GDI_R2_BLACK;
#   52|-> 	hDC->clip = gdi_CreateRectRgn(0, 0, 0, 0);
#   53|   
#   54|   	if (!hDC->clip)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def986]
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:81:27: warning[-Wanalyzer-malloc-leak]: leak of ‘hDC’
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:76:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:76:12: branch_false: following ‘false’ branch (when ‘hDC’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:79:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:81:27: danger: ‘hDC’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   79|   	hDC->drawMode = GDI_R2_BLACK;
#   80|   
#   81|-> 	if (!(hDC->clip = gdi_CreateRectRgn(0, 0, 0, 0)))
#   82|   		goto fail;
#   83|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def987]
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:91:36: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:76:12: branch_false: following ‘false’ branch (when ‘hDC’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:79:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:81:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:84:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:88:37: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:91:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:91:36: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#   89|   		goto fail;
#   90|   
#   91|-> 	if (!(hDC->hwnd->invalid = gdi_CreateRectRgn(0, 0, 0, 0)))
#   92|   		goto fail;
#   93|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def988]
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:91:36: warning[-Wanalyzer-malloc-leak]: leak of ‘hDC’
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:76:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:76:12: branch_false: following ‘false’ branch (when ‘hDC’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:79:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:81:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:84:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:91:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:91:36: danger: ‘hDC’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   89|   		goto fail;
#   90|   
#   91|-> 	if (!(hDC->hwnd->invalid = gdi_CreateRectRgn(0, 0, 0, 0)))
#   92|   		goto fail;
#   93|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def989]
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:121:27: warning[-Wanalyzer-malloc-leak]: leak of ‘hDC’
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:116:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:118:12: branch_false: following ‘false’ branch (when ‘hDC’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:121:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/dc.c:121:27: danger: ‘hDC’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  119|   		return NULL;
#  120|   
#  121|-> 	if (!(hDC->clip = gdi_CreateRectRgn(0, 0, 0, 0)))
#  122|   	{
#  123|   		free(hDC);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def990]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:29: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:438:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:440:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:29: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  441|   		goto fail_bitmap;
#  442|   
#  443|-> 	if (!(bitmap->hdc = gdi_CreateCompatibleDC(gdi->hdc)))
#  444|   		goto fail_hdc;
#  445|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def991]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:446:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:438:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:440:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:446:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:446:9: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  444|   		goto fail_hdc;
#  445|   
#  446|-> 	WLog_Print(gdi->log, WLOG_DEBUG, "gdi_bitmap_new: width:%d height:%d bpp:%d", width, height,
#  447|   	           bpp);
#  448|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def992]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:451:21: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:438:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:440:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:446:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:449:12: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:452:48: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:451:21: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  449|   	if (!data)
#  450|   		bitmap->bitmap =
#  451|-> 		    gdi_CreateCompatibleBitmap(gdi->hdc, WINPR_ASSERTING_INT_CAST(uint32_t, width),
#  452|   		                               WINPR_ASSERTING_INT_CAST(uint32_t, height));
#  453|   	else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def993]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:454:34: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:438:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:440:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:446:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:449:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:456:52: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:454:34: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  452|   		                               WINPR_ASSERTING_INT_CAST(uint32_t, height));
#  453|   	else
#  454|-> 		bitmap->bitmap = gdi_create_bitmap(gdi, WINPR_ASSERTING_INT_CAST(uint32_t, width),
#  455|   		                                   WINPR_ASSERTING_INT_CAST(uint32_t, height),
#  456|   		                                   WINPR_ASSERTING_INT_CAST(uint32_t, bpp), data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def994]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:461:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:438:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:440:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:446:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:458:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:461:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:461:9: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  459|   		goto fail_bitmap_bitmap;
#  460|   
#  461|-> 	gdi_SelectObject(bitmap->hdc, (HGDIOBJECT)bitmap->bitmap);
#  462|   	bitmap->org_bitmap = NULL;
#  463|   	return bitmap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def995]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:465:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:438:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:440:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:443:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:446:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:458:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:459:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:465:9: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  463|   	return bitmap;
#  464|   fail_bitmap_bitmap:
#  465|-> 	gdi_DeleteDC(bitmap->hdc);
#  466|   fail_hdc:
#  467|   	free(bitmap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def996]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:476:17: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1372:6: enter_function: entry to ‘gdi_init_ex’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1387:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1389:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1392:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1395:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1396:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1433:9: call_function: calling ‘gdi_free’ from ‘gdi_init_ex’
#  474|   	if (bitmap)
#  475|   	{
#  476|-> 		gdi_SelectObject(bitmap->hdc, (HGDIOBJECT)bitmap->org_bitmap);
#  477|   		gdi_DeleteObject((HGDIOBJECT)bitmap->bitmap);
#  478|   		gdi_DeleteDC(bitmap->hdc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def997]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:477:17: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1372:6: enter_function: entry to ‘gdi_init_ex’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1387:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1389:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1392:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1395:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1396:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1433:9: call_function: calling ‘gdi_free’ from ‘gdi_init_ex’
#  475|   	{
#  476|   		gdi_SelectObject(bitmap->hdc, (HGDIOBJECT)bitmap->org_bitmap);
#  477|-> 		gdi_DeleteObject((HGDIOBJECT)bitmap->bitmap);
#  478|   		gdi_DeleteDC(bitmap->hdc);
#  479|   		free(bitmap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def998]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:478:17: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1372:6: enter_function: entry to ‘gdi_init_ex’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1387:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1389:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1392:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1395:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1396:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1433:9: call_function: calling ‘gdi_free’ from ‘gdi_init_ex’
#  476|   		gdi_SelectObject(bitmap->hdc, (HGDIOBJECT)bitmap->org_bitmap);
#  477|   		gdi_DeleteObject((HGDIOBJECT)bitmap->bitmap);
#  478|-> 		gdi_DeleteDC(bitmap->hdc);
#  479|   		free(bitmap);
#  480|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def999]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1393:20: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1387:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1389:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1392:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1393:20: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1391|   
# 1392|   	context->gdi = gdi;
# 1393|-> 	gdi->log = WLog_Get(TAG);
# 1394|   
# 1395|   	if (!gdi->log)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1000]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1399:22: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1387:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1389:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1392:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1398:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1399:22: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1397|   
# 1398|   	gdi->context = context;
# 1399|-> 	gdi->width = WINPR_ASSERTING_INT_CAST(
# 1400|   	    int32_t, freerdp_settings_get_uint32(context->settings, FreeRDP_DesktopWidth));
# 1401|   	gdi->height = WINPR_ASSERTING_INT_CAST(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1001]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1401:23: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1387:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1389:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1392:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1398:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1401:23: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1399|   	gdi->width = WINPR_ASSERTING_INT_CAST(
# 1400|   	    int32_t, freerdp_settings_get_uint32(context->settings, FreeRDP_DesktopWidth));
# 1401|-> 	gdi->height = WINPR_ASSERTING_INT_CAST(
# 1402|   	    int32_t, freerdp_settings_get_uint32(context->settings, FreeRDP_DesktopHeight));
# 1403|   	gdi->dstFormat = format;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1002]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1405:9: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1387:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1389:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1392:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1398:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1405:9: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1403|   	gdi->dstFormat = format;
# 1404|   	/* default internal buffer format */
# 1405|-> 	WLog_Print(gdi->log, WLOG_INFO, "Local framebuffer format  %s",
# 1406|   	           FreeRDPGetColorFormatName(gdi->dstFormat));
# 1407|   	WLog_Print(gdi->log, WLOG_INFO, "Remote framebuffer format %s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1003]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1407:9: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1387:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1389:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1392:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1398:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1407:9: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
# 1405|   	WLog_Print(gdi->log, WLOG_INFO, "Local framebuffer format  %s",
# 1406|   	           FreeRDPGetColorFormatName(gdi->dstFormat));
# 1407|-> 	WLog_Print(gdi->log, WLOG_INFO, "Remote framebuffer format %s",
# 1408|   	           FreeRDPGetColorFormatName(SrcFormat));
# 1409|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1004]
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1410:26: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1387:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1389:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1392:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1398:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gdi.c:1410:26: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 1408|   	           FreeRDPGetColorFormatName(SrcFormat));
# 1409|   
# 1410|-> 	if (!(gdi->hdc = gdi_GetDC()))
# 1411|   		goto fail;
# 1412|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1005]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:603:20: warning[-Wanalyzer-malloc-leak]: leak of ‘h264_context_new(0)’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1031:13: enter_function: entry to ‘gdi_SurfaceCommand’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1074:34: call_function: calling ‘gdi_SurfaceCommand_AVC420’ from ‘gdi_SurfaceCommand’
#  601|   		}
#  602|   
#  603|-> 		if (!h264_context_reset(surface->h264, surface->width, surface->height))
#  604|   			return ERROR_INTERNAL_ERROR;
#  605|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1006]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:688:20: warning[-Wanalyzer-malloc-leak]: leak of ‘h264_context_new(0)’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1031:13: enter_function: entry to ‘gdi_SurfaceCommand’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1079:34: call_function: calling ‘gdi_SurfaceCommand_AVC444’ from ‘gdi_SurfaceCommand’
#  686|   		}
#  687|   
#  688|-> 		if (!h264_context_reset(surface->h264, surface->width, surface->height))
#  689|   			return ERROR_INTERNAL_ERROR;
#  690|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1007]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1143:14: warning[-Wanalyzer-malloc-leak]: leak of ‘surface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1138:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1140:12: branch_false: following ‘false’ branch (when ‘surface’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1143:40: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1143:14: danger: ‘surface’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1141|   		goto fail;
# 1142|   
# 1143|-> 	if (!freerdp_settings_get_bool(gdi->context->settings, FreeRDP_DeactivateClientDecoding))
# 1144|   	{
# 1145|   		WINPR_ASSERT(context->codecs);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1008]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1179:32: warning[-Wanalyzer-malloc-leak]: leak of ‘surface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1126:13: enter_function: entry to ‘gdi_CreateSurface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1138:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1140:12: branch_false: following ‘false’ branch (when ‘surface’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1143:40: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1143:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1155:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1156:26: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1156:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1157:27: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1157:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1179:32: danger: ‘surface’ leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
# 1177|   
# 1178|   	surface->scanline = gfx_align_scanline(surface->width * 4UL, 16);
# 1179|-> 	surface->data = (BYTE*)winpr_aligned_malloc(1ull * surface->scanline * surface->height, 16);
# 1180|   
# 1181|   	if (!surface->data)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1009]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1188:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1126:13: enter_function: entry to ‘gdi_CreateSurface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1140:12: branch_false: following ‘false’ branch (when ‘surface’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1143:40: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1143:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1155:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1156:26: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1156:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1157:27: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1157:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1179:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1181:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1187:45: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1188:9: danger: ‘<unknown>’ leaks here; was allocated at [(12)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/11)
# 1186|   
# 1187|   	memset(surface->data, 0xFF, (size_t)surface->scanline * surface->height);
# 1188|-> 	region16_init(&surface->invalidRegion);
# 1189|   
# 1190|   	WINPR_ASSERT(context->SetSurfaceData);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1010]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1188:9: warning[-Wanalyzer-malloc-leak]: leak of ‘surface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1126:13: enter_function: entry to ‘gdi_CreateSurface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1138:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1140:12: branch_false: following ‘false’ branch (when ‘surface’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1143:40: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1143:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1155:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1156:26: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1156:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1157:27: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1157:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1181:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1187:45: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1188:9: danger: ‘surface’ leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
# 1186|   
# 1187|   	memset(surface->data, 0xFF, (size_t)surface->scanline * surface->height);
# 1188|-> 	region16_init(&surface->invalidRegion);
# 1189|   
# 1190|   	WINPR_ASSERT(context->SetSurfaceData);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1011]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1466:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1438:13: enter_function: entry to ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1451:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:50: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:14: call_function: calling ‘is_rect_valid’ from ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:14: return_function: returning to ‘gdi_SurfaceToCache’ from ‘is_rect_valid’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: return_function: returning to ‘gdi_SurfaceToCache’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1460:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1463:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1463:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1468:92: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1466:14: danger: ‘<unknown>’ leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
# 1464|   		goto fail;
# 1465|   
# 1466|-> 	if (!freerdp_image_copy_no_overlap(cacheEntry->data, cacheEntry->format, cacheEntry->scanline,
# 1467|   	                                   0, 0, cacheEntry->width, cacheEntry->height, surface->data,
# 1468|   	                                   surface->format, surface->scanline, rect->left, rect->top,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1012]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1466:14: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew(*surfaceToCache.cacheKey, (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].right - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].left), (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].bottom - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].top), *<unknown>.format)’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1438:13: enter_function: entry to ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1451:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:50: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:14: call_function: calling ‘is_rect_valid’ from ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:14: return_function: returning to ‘gdi_SurfaceToCache’ from ‘is_rect_valid’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: return_function: returning to ‘gdi_SurfaceToCache’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1460:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1463:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1463:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1468:92: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1466:14: danger: ‘gdi_GfxCacheEntryNew(*surfaceToCache.cacheKey, (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].right - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].left), (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].bottom - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].top), *<unknown>.format)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
# 1464|   		goto fail;
# 1465|   
# 1466|-> 	if (!freerdp_image_copy_no_overlap(cacheEntry->data, cacheEntry->format, cacheEntry->scanline,
# 1467|   	                                   0, 0, cacheEntry->width, cacheEntry->height, surface->data,
# 1468|   	                                   surface->format, surface->scanline, rect->left, rect->top,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1013]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1474:9: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew(*surfaceToCache.cacheKey, (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].right - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].left), (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].bottom - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].top), *<unknown>.format)’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1438:13: enter_function: entry to ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1451:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:50: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:14: call_function: calling ‘is_rect_valid’ from ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:14: return_function: returning to ‘gdi_SurfaceToCache’ from ‘is_rect_valid’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: return_function: returning to ‘gdi_SurfaceToCache’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1460:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1463:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1463:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1468:92: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1466:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1472:48: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1474:9: danger: ‘gdi_GfxCacheEntryNew(*surfaceToCache.cacheKey, (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].right - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].left), (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].bottom - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].top), *<unknown>.format)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
# 1472|   	RDPGFX_EVICT_CACHE_ENTRY_PDU evict = { surfaceToCache->cacheSlot };
# 1473|   	WINPR_ASSERT(context->EvictCacheEntry);
# 1474|-> 	context->EvictCacheEntry(context, &evict);
# 1475|   
# 1476|   	WINPR_ASSERT(context->SetCacheSlotData);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1014]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1477:14: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew(*surfaceToCache.cacheKey, (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].right - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].left), (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].bottom - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].top), *<unknown>.format)’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1438:13: enter_function: entry to ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1451:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:50: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:14: call_function: calling ‘is_rect_valid’ from ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:14: return_function: returning to ‘gdi_SurfaceToCache’ from ‘is_rect_valid’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1454:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_SurfaceToCache’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1457:22: return_function: returning to ‘gdi_SurfaceToCache’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1460:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1463:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1463:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1468:92: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1466:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1472:48: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1477:14: danger: ‘gdi_GfxCacheEntryNew(*surfaceToCache.cacheKey, (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].right - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].left), (unsigned int)((int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].bottom - (int)((const RECTANGLE_16 *)((char *)surfaceToCache + 2))[2].top), *<unknown>.format)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
# 1475|   
# 1476|   	WINPR_ASSERT(context->SetCacheSlotData);
# 1477|-> 	rc = context->SetCacheSlotData(context, surfaceToCache->cacheSlot, (void*)cacheEntry);
# 1478|   fail:
# 1479|   	if (rc != CHANNEL_RC_OK)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1015]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1582:25: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew((long unsigned int)cacheSlot, 0, 0, 537135240)’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1552:13: enter_function: entry to ‘gdi_CacheImportReply’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1562:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1564:41: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1566:20: branch_false: following ‘false’ branch (when ‘cacheSlot != 0’)...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1571:40: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1573:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1576:30: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1576:30: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_CacheImportReply’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1576:30: return_function: returning to ‘gdi_CacheImportReply’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1578:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1582:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1582:25: danger: ‘gdi_GfxCacheEntryNew((long unsigned int)cacheSlot, 0, 0, 537135240)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/9)
# 1580|   
# 1581|   		WINPR_ASSERT(context->SetCacheSlotData);
# 1582|-> 		error = context->SetCacheSlotData(context, cacheSlot, (void*)cacheEntry);
# 1583|   
# 1584|   		if (error)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1016]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1611:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1596:13: enter_function: entry to ‘gdi_ImportCacheEntry’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1602:12: branch_false: following ‘false’ branch (when ‘cacheSlot != 0’)...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1606:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1605:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_ImportCacheEntry’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1605:22: return_function: returning to ‘gdi_ImportCacheEntry’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1608:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1613:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1611:14: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/9)
# 1609|   		goto fail;
# 1610|   
# 1611|-> 	if (!freerdp_image_copy_no_overlap(cacheEntry->data, cacheEntry->format, cacheEntry->scanline,
# 1612|   	                                   0, 0, cacheEntry->width, cacheEntry->height,
# 1613|   	                                   importCacheEntry->data, PIXEL_FORMAT_BGRX32, 0, 0, 0, NULL,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1017]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1611:14: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew(*importCacheEntry.key64, (unsigned int)*importCacheEntry.width, (unsigned int)*importCacheEntry.height, 537135240)’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1596:13: enter_function: entry to ‘gdi_ImportCacheEntry’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1602:12: branch_false: following ‘false’ branch (when ‘cacheSlot != 0’)...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1606:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1605:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_ImportCacheEntry’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1605:22: return_function: returning to ‘gdi_ImportCacheEntry’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1608:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1613:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1611:14: danger: ‘gdi_GfxCacheEntryNew(*importCacheEntry.key64, (unsigned int)*importCacheEntry.width, (unsigned int)*importCacheEntry.height, 537135240)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/5)
# 1609|   		goto fail;
# 1610|   
# 1611|-> 	if (!freerdp_image_copy_no_overlap(cacheEntry->data, cacheEntry->format, cacheEntry->scanline,
# 1612|   	                                   0, 0, cacheEntry->width, cacheEntry->height,
# 1613|   	                                   importCacheEntry->data, PIXEL_FORMAT_BGRX32, 0, 0, 0, NULL,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1018]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1619:17: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew(*importCacheEntry.key64, (unsigned int)*importCacheEntry.width, (unsigned int)*importCacheEntry.height, 537135240)’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1596:13: enter_function: entry to ‘gdi_ImportCacheEntry’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1602:12: branch_false: following ‘false’ branch (when ‘cacheSlot != 0’)...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1606:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1605:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_ImportCacheEntry’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1605:22: return_function: returning to ‘gdi_ImportCacheEntry’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1608:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1613:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1611:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1617:38: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1619:17: danger: ‘gdi_GfxCacheEntryNew(*importCacheEntry.key64, (unsigned int)*importCacheEntry.width, (unsigned int)*importCacheEntry.height, 537135240)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/5)
# 1617|   	RDPGFX_EVICT_CACHE_ENTRY_PDU evict = { cacheSlot };
# 1618|   	WINPR_ASSERT(context->EvictCacheEntry);
# 1619|-> 	error = context->EvictCacheEntry(context, &evict);
# 1620|   	if (error != CHANNEL_RC_OK)
# 1621|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1019]
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1624:17: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew(*importCacheEntry.key64, (unsigned int)*importCacheEntry.width, (unsigned int)*importCacheEntry.height, 537135240)’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1596:13: enter_function: entry to ‘gdi_ImportCacheEntry’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1602:12: branch_false: following ‘false’ branch (when ‘cacheSlot != 0’)...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1606:43: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1605:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_ImportCacheEntry’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1605:22: return_function: returning to ‘gdi_ImportCacheEntry’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1608:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1613:44: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1611:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1617:38: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1620:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1624:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/gfx.c:1624:17: danger: ‘gdi_GfxCacheEntryNew(*importCacheEntry.key64, (unsigned int)*importCacheEntry.width, (unsigned int)*importCacheEntry.height, 537135240)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/5)
# 1622|   
# 1623|   	WINPR_ASSERT(context->SetCacheSlotData);
# 1624|-> 	error = context->SetCacheSlotData(context, cacheSlot, (void*)cacheEntry);
# 1625|   
# 1626|   fail:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1020]
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:62:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_malloc((long long unsigned int)nHeight * (long long unsigned int)nDstStep, 16)’
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:41:13: enter_function: entry to ‘gdi_create_bitmap’
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:50:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:53:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:54:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:56:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:60:29: call_function: inlined call to ‘FreeRDPGetBytesPerPixel’ from ‘gdi_create_bitmap’
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:62:14: danger: ‘winpr_aligned_malloc((long long unsigned int)nHeight * (long long unsigned int)nDstStep, 16)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
#   60|   	nSrcStep = nWidth * FreeRDPGetBytesPerPixel(SrcFormat);
#   61|   
#   62|-> 	if (!freerdp_image_copy_no_overlap(pDstData, gdi->dstFormat, nDstStep, 0, 0, nWidth, nHeight,
#   63|   	                                   pSrcData, SrcFormat, nSrcStep, 0, 0, &gdi->palette,
#   64|   	                                   FREERDP_FLIP_NONE))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1021]
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:294:29: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_glyph_convert(*glyph.cx, *glyph.cy, *glyph.aj)’
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:276:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:280:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:282:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:285:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:286:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:294:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/graphics.c:294:29: danger: ‘freerdp_glyph_convert(*glyph.cx, *glyph.cy, *glyph.aj)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  292|   	}
#  293|   
#  294|-> 	gdi_glyph->bitmap = gdi_CreateBitmap(glyph->cx, glyph->cy, PIXEL_FORMAT_MONO, data);
#  295|   
#  296|   	if (!gdi_glyph->bitmap)

Error: GCC_ANALYZER_WARNING: [#def1022]
FreeRDP-3.16.0/libfreerdp/gdi/shape.c:178:33: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
FreeRDP-3.16.0/libfreerdp/gdi/shape.c:153:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/shape.c:156:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/shape.c:156:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/shape.c:159:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/shape.c:175:43: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/shape.c:177:46: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/shape.c:178:33: danger: overlapping buffers passed as arguments to ‘memcpy’
#  176|   			{
#  177|   				BYTE* dstp = gdi_get_bitmap_pointer(hdc, nXDest, nYDest + y);
#  178|-> 				memcpy(dstp, srcp, 1ull * WINPR_ASSERTING_INT_CAST(size_t, nWidth) * formatSize);
#  179|   			}
#  180|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1023]
FreeRDP-3.16.0/libfreerdp/gdi/video.c:180:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/libfreerdp/gdi/video.c:167:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/video.c:168:12: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/video.c:171:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/video.c:180:21: danger: ‘ret’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  178|   
#  179|   	ret->scanline = ret->alignedWidth * FreeRDPGetBytesPerPixel(ret->format);
#  180|-> 	ret->data = winpr_aligned_malloc(1ull * ret->scanline * ret->alignedHeight, 64);
#  181|   	if (!ret->data)
#  182|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1024]
FreeRDP-3.16.0/libfreerdp/gdi/video.c:193:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/libfreerdp/gdi/video.c:161:15: enter_function: entry to ‘VideoClient_CreateCommonContext’
FreeRDP-3.16.0/libfreerdp/gdi/video.c:167:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/gdi/video.c:168:12: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/gdi/video.c:171:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/video.c:181:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/gdi/video.c:182:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/gdi/video.c:185:9: call_function: calling ‘VideoClient_DestroyCommonContext’ from ‘VideoClient_CreateCommonContext’
#  191|   	if (!surface)
#  192|   		return;
#  193|-> 	winpr_aligned_free(surface->data);
#  194|   	free(surface);
#  195|   }

Error: COMPILER_WARNING (CWE-477): [#def1025]
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c: scope_hint: In function ‘freerdp_keyboard_init_ex’
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:411:9: warning[-Wdeprecated-declarations]: ‘freerdp_keyboard_init’ is deprecated: since 3.11.0, implement yourself in client
#  411 |         DWORD res = freerdp_keyboard_init(keyboardLayoutId);
#      |         ^~~~~
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:314:7: note: declared here
#  314 | DWORD freerdp_keyboard_init(DWORD keyboardLayoutId)
#      |       ^~~~~~~~~~~~~~~~~~~~~
#  409|   DWORD freerdp_keyboard_init_ex(DWORD keyboardLayoutId, const char* keyboardRemappingList)
#  410|   {
#  411|-> 	DWORD res = freerdp_keyboard_init(keyboardLayoutId);
#  412|   
#  413|   	memset(REMAPPING_TABLE, 0, sizeof(REMAPPING_TABLE));

Error: COMPILER_WARNING (CWE-477): [#def1026]
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:411:9: warning[-Wdeprecated-declarations]: ‘freerdp_keyboard_init’ is deprecated: since 3.11.0, implement yourself in client
#  409|   DWORD freerdp_keyboard_init_ex(DWORD keyboardLayoutId, const char* keyboardRemappingList)
#  410|   {
#  411|-> 	DWORD res = freerdp_keyboard_init(keyboardLayoutId);
#  412|   
#  413|   	memset(REMAPPING_TABLE, 0, sizeof(REMAPPING_TABLE));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1027]
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:421:25: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(keyboardRemappingList)’
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:409:7: enter_function: entry to ‘freerdp_keyboard_init_ex’
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:411:21: call_function: calling ‘freerdp_keyboard_init’ from ‘freerdp_keyboard_init_ex’
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:411:21: return_function: returning to ‘freerdp_keyboard_init_ex’ from ‘freerdp_keyboard_init’
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:414:12: branch_true: following ‘true’ branch (when ‘keyboardRemappingList’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:416:30: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:416:30: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:419:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:421:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard.c:421:25: danger: ‘_strdup(keyboardRemappingList)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  419|   		if (!copy)
#  420|   			goto fail;
#  421|-> 		token = strtok_s(copy, ",", &context);
#  422|   		while (token)
#  423|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1028]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1009:28: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
# 1007|   static WINPR_JSON* load_layouts_from_file(const char* filename)
# 1008|   {
# 1009|-> 	WINPR_JSON* json = WINPR_JSON_ParseFromFile(filename);
# 1010|   	if (!json)
# 1011|   		WLog_WARN(TAG, "resource file '%s' is not a valid JSON file", filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1029]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1087:23: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1253:22: call_function: calling ‘parse_layout_entries’ from ‘load_layouts’
# 1085|   {
# 1086|   	WINPR_ASSERT(entry);
# 1087|-> 	if (!json || !WINPR_JSON_IsObject(json))
# 1088|   	{
# 1089|   		WLog_WARN(TAG, "Invalid JSON entry at entry %" PRIuz ", expected an array", pos);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1030]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1087:23: warning[-Wanalyzer-malloc-leak]: leak of ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1253:22: call_function: calling ‘parse_layout_entries’ from ‘load_layouts’
# 1085|   {
# 1086|   	WINPR_ASSERT(entry);
# 1087|-> 	if (!json || !WINPR_JSON_IsObject(json))
# 1088|   	{
# 1089|   		WLog_WARN(TAG, "Invalid JSON entry at entry %" PRIuz ", expected an array", pos);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1031]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1103:14: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1253:22: call_function: calling ‘parse_layout_entries’ from ‘load_layouts’
# 1101|   static BOOL parse_layout_entries(WINPR_JSON* json, const char* filename)
# 1102|   {
# 1103|-> 	if (!WINPR_JSON_IsArray(json))
# 1104|   	{
# 1105|   		WLog_WARN(TAG, "Invalid top level JSON type in file %s, expected an array", filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1032]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1103:14: warning[-Wanalyzer-malloc-leak]: leak of ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1253:22: call_function: calling ‘parse_layout_entries’ from ‘load_layouts’
# 1101|   static BOOL parse_layout_entries(WINPR_JSON* json, const char* filename)
# 1102|   {
# 1103|-> 	if (!WINPR_JSON_IsArray(json))
# 1104|   	{
# 1105|   		WLog_WARN(TAG, "Invalid top level JSON type in file %s, expected an array", filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1033]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1109:42: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1253:22: call_function: calling ‘parse_layout_entries’ from ‘load_layouts’
# 1107|   	}
# 1108|   
# 1109|-> 	sRDP_KEYBOARD_LAYOUT_TABLE_len = WINPR_JSON_GetArraySize(json);
# 1110|   	sRDP_KEYBOARD_LAYOUT_TABLE =
# 1111|   	    calloc(sRDP_KEYBOARD_LAYOUT_TABLE_len, sizeof(RDP_KEYBOARD_LAYOUT));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1034]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1109:42: warning[-Wanalyzer-malloc-leak]: leak of ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1253:22: call_function: calling ‘parse_layout_entries’ from ‘load_layouts’
# 1107|   	}
# 1108|   
# 1109|-> 	sRDP_KEYBOARD_LAYOUT_TABLE_len = WINPR_JSON_GetArraySize(json);
# 1110|   	sRDP_KEYBOARD_LAYOUT_TABLE =
# 1111|   	    calloc(sRDP_KEYBOARD_LAYOUT_TABLE_len, sizeof(RDP_KEYBOARD_LAYOUT));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1035]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1120:35: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1253:22: call_function: calling ‘parse_layout_entries’ from ‘load_layouts’
# 1118|   	for (size_t x = 0; x < sRDP_KEYBOARD_LAYOUT_TABLE_len; x++)
# 1119|   	{
# 1120|-> 		WINPR_JSON* obj = WINPR_JSON_GetArrayItem(json, x);
# 1121|   
# 1122|   		if (!obj || !parse_json_layout_entry(obj, x, &sRDP_KEYBOARD_LAYOUT_TABLE[x]))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1036]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1120:35: warning[-Wanalyzer-malloc-leak]: leak of ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1253:22: call_function: calling ‘parse_layout_entries’ from ‘load_layouts’
# 1118|   	for (size_t x = 0; x < sRDP_KEYBOARD_LAYOUT_TABLE_len; x++)
# 1119|   	{
# 1120|-> 		WINPR_JSON* obj = WINPR_JSON_GetArrayItem(json, x);
# 1121|   
# 1122|   		if (!obj || !parse_json_layout_entry(obj, x, &sRDP_KEYBOARD_LAYOUT_TABLE[x]))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1037]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: danger: ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’ leaks here; was allocated at [(2)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/1)
# 1242|   		goto end;
# 1243|   
# 1244|-> 	if (!WINPR_JSON_IsObject(json))
# 1245|   	{
# 1246|   		WLog_WARN(TAG, "Invalid top level JSON type in file %s, expected an array", filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1038]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: warning[-Wanalyzer-malloc-leak]: leak of ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: danger: ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’ leaks here; was allocated at [(6)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/5)
# 1242|   		goto end;
# 1243|   
# 1244|-> 	if (!WINPR_JSON_IsObject(json))
# 1245|   	{
# 1246|   		WLog_WARN(TAG, "Invalid top level JSON type in file %s, expected an array", filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1039]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1252:35: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1252:35: danger: ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’ leaks here; was allocated at [(2)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/1)
# 1250|   	clear_layout_tables();
# 1251|   	{
# 1252|-> 		WINPR_JSON* obj = WINPR_JSON_GetObjectItem(json, "KeyboardLayouts");
# 1253|   		if (!parse_layout_entries(obj, filename))
# 1254|   			goto end;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1040]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1252:35: warning[-Wanalyzer-malloc-leak]: leak of ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1252:35: danger: ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’ leaks here; was allocated at [(6)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/5)
# 1250|   	clear_layout_tables();
# 1251|   	{
# 1252|-> 		WINPR_JSON* obj = WINPR_JSON_GetObjectItem(json, "KeyboardLayouts");
# 1253|   		if (!parse_layout_entries(obj, filename))
# 1254|   			goto end;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1041]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1269:9: warning[-Wanalyzer-malloc-leak]: leak of ‘json’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1246:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1269:9: danger: ‘json’ leaks here; was allocated at [(6)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/5)
# 1267|   end:
# 1268|   	free(filename);
# 1269|-> 	WINPR_JSON_Delete(json);
# 1270|   	(void)atexit(clear_layout_tables);
# 1271|   	return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1042]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1277:9: warning[-Wanalyzer-malloc-leak]: leak of ‘layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1465:22: enter_function: entry to ‘freerdp_keyboard_get_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1477:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1479:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1479:22: call_function: calling ‘rdp_keyboard_layout_clone_append’ from ‘freerdp_keyboard_get_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1479:22: return_function: returning to ‘freerdp_keyboard_get_layouts’ from ‘rdp_keyboard_layout_clone_append’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1479:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1483:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1483:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1485:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1485:22: call_function: calling ‘rdp_keyboard_variant_clone_append’ from ‘freerdp_keyboard_get_layouts’
# 1275|   {
# 1276|   	static INIT_ONCE once = INIT_ONCE_STATIC_INIT;
# 1277|-> 	InitOnceExecuteOnce(&once, load_layouts, NULL, NULL);
# 1278|   	return TRUE;
# 1279|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1043]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1390:40: warning[-Wanalyzer-malloc-leak]: leak of ‘layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1465:22: enter_function: entry to ‘freerdp_keyboard_get_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1477:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1479:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1479:22: call_function: calling ‘rdp_keyboard_layout_clone_append’ from ‘freerdp_keyboard_get_layouts’
# 1388|   		layout->code = internal2unsigned(ime->code);
# 1389|   		if (ime->name)
# 1390|-> 			layout->name = _strdup(ime->name);
# 1391|   
# 1392|   		if (!layout->name)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1044]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1416:40: warning[-Wanalyzer-malloc-leak]: leak of ‘layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1465:22: enter_function: entry to ‘freerdp_keyboard_get_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1477:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1483:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1483:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1485:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1485:22: call_function: calling ‘rdp_keyboard_variant_clone_append’ from ‘freerdp_keyboard_get_layouts’
# 1414|   		layout->code = internal2unsigned(ime->code);
# 1415|   		if (ime->name)
# 1416|-> 			layout->name = _strdup(ime->name);
# 1417|   
# 1418|   		if (!layout->name)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1045]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1442:40: warning[-Wanalyzer-malloc-leak]: leak of ‘layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1465:22: enter_function: entry to ‘freerdp_keyboard_get_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1477:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1483:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1483:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1489:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1489:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1491:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1491:22: call_function: calling ‘rdp_keyboard_ime_clone_append’ from ‘freerdp_keyboard_get_layouts’
# 1440|   		layout->code = internal2unsigned(ime->code);
# 1441|   		if (ime->name)
# 1442|-> 			layout->name = _strdup(ime->name);
# 1443|   
# 1444|   		if (!layout->name)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1046]
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1615:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pages’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_codepages_free’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1589:31: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1591:12: branch_false: following ‘false’ branch (when ‘pages’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1594:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1615:9: danger: deallocated with ‘freerdp_codepages_free’ here; allocation at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 1613|   	return pages;
# 1614|   fail:
# 1615|-> 	freerdp_codepages_free(pages);
# 1616|   	return NULL;
# 1617|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1047]
FreeRDP-3.16.0/libfreerdp/locale/locale.c:692:21: warning[-Wanalyzer-malloc-leak]: leak of ‘env_lang’
FreeRDP-3.16.0/libfreerdp/locale/locale.c:684:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/locale.c:687:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/locale.c:687:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/locale.c:689:20: branch_false: following ‘false’ branch (when ‘env_lang’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/locale/locale.c:692:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/locale.c:692:21: danger: ‘env_lang’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  690|   			return FALSE;
#  691|   
#  692|-> 		if (GetEnvironmentVariableA(lang, env_lang, nSize) !=
#  693|   		    nSize - 1) /* Get locale from environment variable LANG */
#  694|   		{

Error: COMPILER_WARNING: [#def1048]
FreeRDP-3.16.0/libfreerdp/primitives/sse/prim_copy_avx2.c:37:1: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   35|   static inline __m256i mm256_set_epu32(uint32_t i0, uint32_t i1, uint32_t i2, uint32_t i3,
#   36|                                         uint32_t i4, uint32_t i5, uint32_t i6, uint32_t i7)
#   37|-> {
#   38|   	return _mm256_set_epi32((int32_t)i0, (int32_t)i1, (int32_t)i2, (int32_t)i3, (int32_t)i4,
#   39|   	                        (int32_t)i5, (int32_t)i6, (int32_t)i7);

Error: COMPILER_WARNING: [#def1049]
FreeRDP-3.16.0/libfreerdp/primitives/sse/prim_copy_avx2.c:38:16: note[note]: called from here
#   36|                                         uint32_t i4, uint32_t i5, uint32_t i6, uint32_t i7)
#   37|   {
#   38|-> 	return _mm256_set_epi32((int32_t)i0, (int32_t)i1, (int32_t)i2, (int32_t)i3, (int32_t)i4,
#   39|   	                        (int32_t)i5, (int32_t)i6, (int32_t)i7);
#   40|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1050]
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:149:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(file_descriptor_count * 592 + 4))’
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:193:6: enter_function: entry to ‘cliprdr_serialize_file_list_ex’
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:201:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:204:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:211:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:214:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:216:28: branch_true: following ‘true’ branch (when ‘i < file_descriptor_count’)...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:218:69: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:237:22: call_function: calling ‘cliprdr_write_filedescriptor’ from ‘cliprdr_serialize_file_list_ex’
#  147|   	WINPR_ASSERT(file);
#  148|   
#  149|-> 	if (!Stream_EnsureRemainingCapacity(s, sizeof(FILEDESCRIPTORW)))
#  150|   		return FALSE;
#  151|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1051]
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:241:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(file_descriptor_count * 592 + 4))’
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:201:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:204:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:211:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:214:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:216:28: branch_false: following ‘false’ branch (when ‘i >= file_descriptor_count’)...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:241:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:241:9: danger: ‘Stream_New(0, (long unsigned int)(file_descriptor_count * 592 + 4))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  239|   	}
#  240|   
#  241|-> 	Stream_SealLength(s);
#  242|   
#  243|   	Stream_GetBuffer(s, *format_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1052]
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(file_descriptor_count * 592 + 4))’
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:201:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:204:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:211:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:214:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:216:28: branch_true: following ‘true’ branch (when ‘i < file_descriptor_count’)...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:218:69: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:227:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:229:30: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:255:9: danger: ‘Stream_New(0, (long unsigned int)(file_descriptor_count * 592 + 4))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  253|   
#  254|   error:
#  255|-> 	Stream_Free(s, TRUE);
#  256|   
#  257|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1053]
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:38:24: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetConfigFilePath(system,  filename)’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:63:13: enter_function: entry to ‘freerdp_GetJSONConfigFile’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: call_function: calling ‘freerdp_GetConfigFilePath’ from ‘freerdp_GetJSONConfigFile’
#   36|   	char* vendor = GetKnownSubPath(id, FREERDP_VENDOR_STRING);
#   37|   #else
#   38|-> 	char* vendor = GetKnownPath(id);
#   39|   #endif
#   40|   	if (!vendor)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1054]
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:40:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetConfigFilePath(system,  filename)’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:63:13: enter_function: entry to ‘freerdp_GetJSONConfigFile’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: call_function: calling ‘freerdp_GetConfigFilePath’ from ‘freerdp_GetJSONConfigFile’
#   38|   	char* vendor = GetKnownPath(id);
#   39|   #endif
#   40|-> 	if (!vendor)
#   41|   		return NULL;
#   42|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1055]
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:49:22: warning[-Wanalyzer-malloc-leak]: leak of ‘GetKnownPath(id)’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:38:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:40:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:49:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:49:22: danger: ‘GetKnownPath(id)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   47|   #endif
#   48|   
#   49|-> 	char* base = GetCombinedPath(vendor, verstr);
#   50|   	free(vendor);
#   51|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1056]
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:49:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetConfigFilePath(system,  filename)’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:63:13: enter_function: entry to ‘freerdp_GetJSONConfigFile’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: call_function: calling ‘freerdp_GetConfigFilePath’ from ‘freerdp_GetJSONConfigFile’
#   47|   #endif
#   48|   
#   49|-> 	char* base = GetCombinedPath(vendor, verstr);
#   50|   	free(vendor);
#   51|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1057]
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:55:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetConfigFilePath(system,  filename)’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:63:13: enter_function: entry to ‘freerdp_GetJSONConfigFile’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: call_function: calling ‘freerdp_GetConfigFilePath’ from ‘freerdp_GetJSONConfigFile’
#   53|   		return NULL;
#   54|   
#   55|-> 	if (!filename)
#   56|   		return base;
#   57|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1058]
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:58:22: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(GetKnownPath(id), "FreeRDP")’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:40:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:49:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:49:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:52:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:55:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:55:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:58:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:58:22: danger: ‘GetCombinedPath(GetKnownPath(id), "FreeRDP")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#   56|   		return base;
#   57|   
#   58|-> 	char* path = GetCombinedPath(base, filename);
#   59|   	free(base);
#   60|   	return path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1059]
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:58:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetConfigFilePath(system,  filename)’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:63:13: enter_function: entry to ‘freerdp_GetJSONConfigFile’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: call_function: calling ‘freerdp_GetConfigFilePath’ from ‘freerdp_GetJSONConfigFile’
#   56|   		return base;
#   57|   
#   58|-> 	char* path = GetCombinedPath(base, filename);
#   59|   	free(base);
#   60|   	return path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1060]
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:59:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetConfigFilePath(system,  filename)’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:63:13: enter_function: entry to ‘freerdp_GetJSONConfigFile’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: call_function: calling ‘freerdp_GetConfigFilePath’ from ‘freerdp_GetJSONConfigFile’
#   57|   
#   58|   	char* path = GetCombinedPath(base, filename);
#   59|-> 	free(base);
#   60|   	return path;
#   61|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1061]
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:69:28: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetConfigFilePath(system,  filename)’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:63:13: enter_function: entry to ‘freerdp_GetJSONConfigFile’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: call_function: calling ‘freerdp_GetConfigFilePath’ from ‘freerdp_GetJSONConfigFile’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:65:22: return_function: returning to ‘freerdp_GetJSONConfigFile’ from ‘freerdp_GetConfigFilePath’
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:66:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:69:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/helpers.c:69:28: danger: ‘freerdp_GetConfigFilePath(system,  filename)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/5)
#   67|   		return NULL;
#   68|   
#   69|-> 	WINPR_JSON* json = WINPR_JSON_ParseFromFile(path);
#   70|   	free(path);
#   71|   	return json;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1062]
FreeRDP-3.16.0/libfreerdp/utils/http.c:130:21: warning[-Wanalyzer-malloc-leak]: leak of ‘hostname’
FreeRDP-3.16.0/libfreerdp/utils/http.c:114:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/http.c:114:13: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/http.c:121:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/http.c:122:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/http.c:123:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/http.c:127:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/http.c:127:12: branch_true: following ‘true’ branch (when ‘body’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/http.c:129:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/http.c:130:21: danger: ‘hostname’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#  128|   	{
#  129|   		blen = strlen(body);
#  130|-> 		if (winpr_asprintf(&headers, &size, post_header_fmt, path, hostname, blen) < 0)
#  131|   		{
#  132|   			free(hostname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1063]
FreeRDP-3.16.0/libfreerdp/utils/http.c:138:21: warning[-Wanalyzer-malloc-leak]: leak of ‘hostname’
FreeRDP-3.16.0/libfreerdp/utils/http.c:114:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/http.c:114:13: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/http.c:121:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/http.c:122:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/http.c:123:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/http.c:127:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/http.c:127:12: branch_false: following ‘false’ branch (when ‘body’ is NULL)...
FreeRDP-3.16.0/libfreerdp/utils/http.c:138:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/http.c:138:21: danger: ‘hostname’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#  136|   	else
#  137|   	{
#  138|-> 		if (winpr_asprintf(&headers, &size, get_header_fmt, path, hostname) < 0)
#  139|   		{
#  140|   			free(hostname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1064]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:98:26: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:133:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:141:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:147:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:186:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:187:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:190:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:196:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#   96|   	do
#   97|   	{
#   98|-> 		status = poll(&pollset, 1, timeout);
#   99|   	} while ((status < 0) && (errno == EINTR));
#  100|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1065]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:98:26: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:306:9: enter_function: entry to ‘freerdp_interruptible_get_line’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:316:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:324:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:326:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:329:28: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:337:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:337:21: call_function: calling ‘freerdp_interruptible_getc’ from ‘freerdp_interruptible_get_line’
#   96|   	do
#   97|   	{
#   98|-> 		status = poll(&pollset, 1, timeout);
#   99|   	} while ((status < 0) && (errno == EINTR));
#  100|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1066]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:191:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:141:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:147:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:149:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:157:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:164:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:164:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:165:28: branch_false: following ‘false’ branch (when ‘fout’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:174:24: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:187:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:190:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:191:15: danger: ‘fout’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#  189|   
#  190|   	(void)fprintf(fout, "%s", prompt);
#  191|-> 	(void)fflush(fout);
#  192|   
#  193|   	char* ptr = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1067]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:191:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:141:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:147:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:186:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:187:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:190:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:191:15: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  189|   
#  190|   	(void)fprintf(fout, "%s", prompt);
#  191|-> 	(void)fflush(fout);
#  192|   
#  193|   	char* ptr = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1068]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:273:26: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:133:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:141:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:147:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:186:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:187:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:190:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:196:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  271|   	const int fd = fileno(f);
#  272|   
#  273|-> 	const int orig = fcntl(fd, F_GETFL);
#  274|   	(void)fcntl(fd, F_SETFL, orig | O_NONBLOCK);
#  275|   	do

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1069]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:273:26: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:306:9: enter_function: entry to ‘freerdp_interruptible_get_line’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:316:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:324:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:326:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:329:28: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:337:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:337:21: call_function: calling ‘freerdp_interruptible_getc’ from ‘freerdp_interruptible_get_line’
#  271|   	const int fd = fileno(f);
#  272|   
#  273|-> 	const int orig = fcntl(fd, F_GETFL);
#  274|   	(void)fcntl(fd, F_SETFL, orig | O_NONBLOCK);
#  275|   	do

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1070]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:274:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:133:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:141:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:147:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:186:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:187:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:190:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:196:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  272|   
#  273|   	const int orig = fcntl(fd, F_GETFL);
#  274|-> 	(void)fcntl(fd, F_SETFL, orig | O_NONBLOCK);
#  275|   	do
#  276|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1071]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:274:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:306:9: enter_function: entry to ‘freerdp_interruptible_get_line’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:316:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:324:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:326:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:329:28: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:337:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:337:21: call_function: calling ‘freerdp_interruptible_getc’ from ‘freerdp_interruptible_get_line’
#  272|   
#  273|   	const int orig = fcntl(fd, F_GETFL);
#  274|-> 	(void)fcntl(fd, F_SETFL, orig | O_NONBLOCK);
#  275|   	do
#  276|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1072]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:286:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:133:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:141:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:147:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:186:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:187:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:190:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:196:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  284|   			break;
#  285|   		}
#  286|-> 	} while (!freerdp_shall_disconnect_context(context));
#  287|   
#  288|   	(void)fcntl(fd, F_SETFL, orig);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1073]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:286:19: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:306:9: enter_function: entry to ‘freerdp_interruptible_get_line’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:316:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:324:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:326:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:329:28: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:337:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:337:21: call_function: calling ‘freerdp_interruptible_getc’ from ‘freerdp_interruptible_get_line’
#  284|   			break;
#  285|   		}
#  286|-> 	} while (!freerdp_shall_disconnect_context(context));
#  287|   
#  288|   	(void)fcntl(fd, F_SETFL, orig);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1074]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:288:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:133:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:141:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:147:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:186:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:187:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:190:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:196:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  286|   	} while (!freerdp_shall_disconnect_context(context));
#  287|   
#  288|-> 	(void)fcntl(fd, F_SETFL, orig);
#  289|   	return rc;
#  290|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1075]
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:288:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:306:9: enter_function: entry to ‘freerdp_interruptible_get_line’
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:316:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:324:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:326:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:329:28: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:337:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/passphrase.c:337:21: call_function: calling ‘freerdp_interruptible_getc’ from ‘freerdp_interruptible_get_line’
#  286|   	} while (!freerdp_shall_disconnect_context(context));
#  287|   
#  288|-> 	(void)fcntl(fd, F_SETFL, orig);
#  289|   	return rc;
#  290|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1076]
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:55:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: following ‘false’ branch (when ‘write == 0’)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:223:23: call_function: inlined call to ‘_fseeki64’ from ‘pcap_open’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:226:22: call_function: calling ‘pcap_read_header’ from ‘pcap_open’
#   53|   	WINPR_ASSERT(header);
#   54|   
#   55|-> 	return fread(header, sizeof(pcap_header), 1, pcap->fp) == 1;
#   56|   }
#   57|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1077]
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:128:27: warning[-Wanalyzer-malloc-leak]: leak of ‘record’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:119:45: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:120:12: branch_false: following ‘false’ branch (when ‘record’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:123:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:128:27: danger: ‘record’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  126|   	record->header.orig_len = (UINT32)length;
#  127|   
#  128|-> 	const UINT64 ns = winpr_GetUnixTimeNS();
#  129|   
#  130|   	record->header.ts_sec = (UINT32)WINPR_TIME_NS_TO_S(ns);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1078]
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pcap’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:197:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: danger: ‘pcap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  199|   		goto fail;
#  200|   
#  201|-> 	pcap->name = _strdup(name);
#  202|   	pcap->write = write;
#  203|   	pcap->record_count = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1079]
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:204:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:204:20: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  202|   	pcap->write = write;
#  203|   	pcap->record_count = 0;
#  204|-> 	pcap->fp = winpr_fopen(name, write ? "w+b" : "rb");
#  205|   
#  206|   	if (pcap->fp == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1080]
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:204:20: warning[-Wanalyzer-malloc-leak]: leak of ‘pcap’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:197:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:204:20: danger: ‘pcap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  202|   	pcap->write = write;
#  203|   	pcap->record_count = 0;
#  204|-> 	pcap->fp = winpr_fopen(name, write ? "w+b" : "rb");
#  205|   
#  206|   	if (pcap->fp == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1081]
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:248:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:204:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_true: following ‘true’ branch (when ‘write != 0’)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:211:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:218:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:219:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:233:9: call_function: calling ‘pcap_close’ from ‘pcap_open’
#  246|   
#  247|   	if (pcap->fp != NULL)
#  248|-> 		(void)fflush(pcap->fp);
#  249|   }
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1082]
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:248:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pcap’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:197:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_true: following ‘true’ branch (when ‘write != 0’)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:211:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:218:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:219:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:233:9: call_function: calling ‘pcap_close’ from ‘pcap_open’
#  246|   
#  247|   	if (pcap->fp != NULL)
#  248|-> 		(void)fflush(pcap->fp);
#  249|   }
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1083]
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:43:26: warning[-Wanalyzer-malloc-leak]: leak of ‘profiler’
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:38:41: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:40:12: branch_false: following ‘false’ branch (when ‘profiler’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:43:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:43:26: danger: ‘profiler’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   41|   		return NULL;
#   42|   
#   43|-> 	profiler->name = _strdup(name);
#   44|   	profiler->stopwatch = stopwatch_create();
#   45|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1084]
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:44:31: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:40:12: branch_false: following ‘false’ branch (when ‘profiler’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:43:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:43:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:44:31: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   42|   
#   43|   	profiler->name = _strdup(name);
#   44|-> 	profiler->stopwatch = stopwatch_create();
#   45|   
#   46|   	if (!profiler->name || !profiler->stopwatch)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1085]
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:44:31: warning[-Wanalyzer-malloc-leak]: leak of ‘profiler’
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:38:41: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:40:12: branch_false: following ‘false’ branch (when ‘profiler’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:43:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:44:31: danger: ‘profiler’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   42|   
#   43|   	profiler->name = _strdup(name);
#   44|-> 	profiler->stopwatch = stopwatch_create();
#   45|   
#   46|   	if (!profiler->name || !profiler->stopwatch)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1086]
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:60:17: warning[-Wanalyzer-malloc-leak]: leak of ‘profiler’
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:36:11: enter_function: entry to ‘profiler_create’
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:38:41: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:40:12: branch_false: following ‘false’ branch (when ‘profiler’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:43:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:46:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:47:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/profiler.c:51:9: call_function: calling ‘profiler_free’ from ‘profiler_create’
#   58|   	{
#   59|   		free(profiler->name);
#   60|-> 		stopwatch_free(profiler->stopwatch);
#   61|   	}
#   62|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1087]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:107:32: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:134:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:107:32: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  105|   		    calloc(1, sizeof(struct s_scard_context_element));
#  106|   		if (!pContext)
#  107|-> 			return STATUS_NO_MEMORY;
#  108|   
#  109|   		pContext->fn_free = smartcard->fn_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1088]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:113:45: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:111:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:113:45: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:113:45: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  111|   		if (smartcard->fn_new)
#  112|   		{
#  113|-> 			pContext->context = smartcard->fn_new(smartcard->userdata, hContext);
#  114|   			if (!pContext->context)
#  115|   			{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1089]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:22: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  119|   		}
#  120|   
#  121|-> 		if (!HashTable_Insert(smartcard->rgSCardContextList, key, (void*)pContext))
#  122|   		{
#  123|   			WLog_Print(smartcard->log, WLOG_ERROR, "ListDictionary_Add failed!");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1090]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:123:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:123:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:123:25: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  121|   		if (!HashTable_Insert(smartcard->rgSCardContextList, key, (void*)pContext))
#  122|   		{
#  123|-> 			WLog_Print(smartcard->log, WLOG_ERROR, "ListDictionary_Add failed!");
#  124|   			context_free(pContext);
#  125|   			return STATUS_INTERNAL_ERROR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1091]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:134:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:134:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:134:9: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  132|   
#  133|   	// NOLINTNEXTLINE(clang-analyzer-unix.Malloc): HashTable_Insert takes ownership of pContext
#  134|-> 	smartcard_scard_context_native_to_redir(&(ret.hContext), hContext);
#  135|   
#  136|   	status = smartcard_pack_establish_context_return(out, &ret);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1092]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:136:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:134:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:136:18: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  134|   	smartcard_scard_context_native_to_redir(&(ret.hContext), hContext);
#  135|   
#  136|-> 	status = smartcard_pack_establish_context_return(out, &ret);
#  137|   	if (status != SCARD_S_SUCCESS)
#  138|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1093]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:139:24: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:134:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:137:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:139:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:139:24: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  137|   	if (status != SCARD_S_SUCCESS)
#  138|   	{
#  139|-> 		return scard_log_status_error_wlog(smartcard->log,
#  140|   		                                   "smartcard_pack_establish_context_return", status);
#  141|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1094]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:659:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:642:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:644:59: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:644:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:646:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:650:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:659:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:659:18: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  657|   	}
#  658|   
#  659|-> 	status = smartcard_pack_locate_cards_return(out, &ret);
#  660|   
#  661|   	if (status != SCARD_S_SUCCESS)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1095]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:702:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:685:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:687:59: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:687:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:689:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:693:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:702:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:702:18: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  700|   	}
#  701|   
#  702|-> 	status = smartcard_pack_locate_cards_return(out, &ret);
#  703|   
#  704|   	if (status != SCARD_S_SUCCESS)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1096]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:742:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.pbData’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:725:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:727:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:728:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:730:38: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:730:38: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:731:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:736:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:736:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:742:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:742:21: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:742:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:742:21: danger: ‘ret.pbData’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#  740|   	else
#  741|   		ret.ReturnCode =
#  742|-> 		    wrap(smartcard, SCardReadCacheA, operation->hContext, call->Common.CardIdentifier,
#  743|   		         call->Common.FreshnessCounter, call->szLookupName, ret.pbData, &ret.cbDataLen);
#  744|   	if ((ret.ReturnCode != SCARD_W_CACHE_ITEM_NOT_FOUND) &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1097]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:944:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  952|   			memcpy(rgReaderStates, call->rgReaderStates,
#  953|   			       call->cReaders * sizeof(SCARD_READERSTATEA));
#  954|-> 		ret.ReturnCode = wrap(smartcard, SCardGetStatusChangeA, operation->hContext,
#  955|   		                      MIN(dwTimeOut, dwTimeStep), rgReaderStates, call->cReaders);
#  956|   		if (ret.ReturnCode != SCARD_E_TIMEOUT)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1098]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:943:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: danger: ‘rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  952|   			memcpy(rgReaderStates, call->rgReaderStates,
#  953|   			       call->cReaders * sizeof(SCARD_READERSTATEA));
#  954|-> 		ret.ReturnCode = wrap(smartcard, SCardGetStatusChangeA, operation->hContext,
#  955|   		                      MIN(dwTimeOut, dwTimeStep), rgReaderStates, call->cReaders);
#  956|   		if (ret.ReturnCode != SCARD_E_TIMEOUT)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1099]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:958:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:944:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:956:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:958:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:958:21: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
#  956|   		if (ret.ReturnCode != SCARD_E_TIMEOUT)
#  957|   			break;
#  958|-> 		if (WaitForSingleObject(smartcard->stopEvent, 0) == WAIT_OBJECT_0)
#  959|   			break;
#  960|   		if (dwTimeOut != INFINITE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1100]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:963:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:944:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:956:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:963:9: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:963:9: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
#  961|   			x += dwTimeStep;
#  962|   	}
#  963|-> 	scard_log_status_error_wlog(smartcard->log, "SCardGetStatusChangeA", ret.ReturnCode);
#  964|   
#  965|   	for (UINT32 index = 0; index < ret.cReaders; index++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1101]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:970:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cur’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:940:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:954:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:956:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:958:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:958:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:960:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:965:32: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:967:64: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:967:43: release_memory: ‘cur’ is NULL
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:970:40: danger: dereference of NULL ‘cur’
#  968|   		ReaderState_Return* rout = &ret.rgReaderStates[index];
#  969|   
#  970|-> 		rout->dwCurrentState = cur->dwCurrentState;
#  971|   		rout->dwEventState = cur->dwEventState;
#  972|   		rout->cbAtr = cur->cbAtr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1102]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:976:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:944:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:956:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:963:9: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:965:32: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:976:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:976:18: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
#  974|   	}
#  975|   
#  976|-> 	status = smartcard_pack_get_status_change_return(out, &ret, FALSE);
#  977|   fail:
#  978|   	free(ret.rgReaderStates);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1103]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:976:18: warning[-Wanalyzer-malloc-leak]: leak of ‘rout’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:944:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:956:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:963:9: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:965:32: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:967:64: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:965:32: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:976:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:976:18: danger: ‘rout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
#  974|   	}
#  975|   
#  976|-> 	status = smartcard_pack_get_status_change_return(out, &ret, FALSE);
#  977|   fail:
#  978|   	free(ret.rgReaderStates);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1104]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1005:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
# 1014|   			       call->cReaders * sizeof(SCARD_READERSTATEW));
# 1015|   		{
# 1016|-> 			ret.ReturnCode = wrap(smartcard, SCardGetStatusChangeW, operation->hContext,
# 1017|   			                      MIN(dwTimeOut, dwTimeStep), rgReaderStates, call->cReaders);
# 1018|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1105]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1004:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: danger: ‘rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
# 1014|   			       call->cReaders * sizeof(SCARD_READERSTATEW));
# 1015|   		{
# 1016|-> 			ret.ReturnCode = wrap(smartcard, SCardGetStatusChangeW, operation->hContext,
# 1017|   			                      MIN(dwTimeOut, dwTimeStep), rgReaderStates, call->cReaders);
# 1018|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1106]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1021:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1005:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1019:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1021:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1021:21: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
# 1019|   		if (ret.ReturnCode != SCARD_E_TIMEOUT)
# 1020|   			break;
# 1021|-> 		if (WaitForSingleObject(smartcard->stopEvent, 0) == WAIT_OBJECT_0)
# 1022|   			break;
# 1023|   		if (dwTimeOut != INFINITE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1107]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1026:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1005:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1019:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1026:9: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1026:9: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
# 1024|   			x += dwTimeStep;
# 1025|   	}
# 1026|-> 	scard_log_status_error_wlog(smartcard->log, "SCardGetStatusChangeW", ret.ReturnCode);
# 1027|   
# 1028|   	for (UINT32 index = 0; index < ret.cReaders; index++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1108]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1033:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cur’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1019:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1021:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1021:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1023:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1028:32: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1030:64: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1030:43: release_memory: ‘cur’ is NULL
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1033:40: danger: dereference of NULL ‘cur’
# 1031|   		ReaderState_Return* rout = &ret.rgReaderStates[index];
# 1032|   
# 1033|-> 		rout->dwCurrentState = cur->dwCurrentState;
# 1034|   		rout->dwEventState = cur->dwEventState;
# 1035|   		rout->cbAtr = cur->cbAtr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1109]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1039:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1005:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1019:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1026:9: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1028:32: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1039:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1039:18: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
# 1037|   	}
# 1038|   
# 1039|-> 	status = smartcard_pack_get_status_change_return(out, &ret, TRUE);
# 1040|   fail:
# 1041|   	free(ret.rgReaderStates);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1110]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1039:18: warning[-Wanalyzer-malloc-leak]: leak of ‘rout’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1005:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1019:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1026:9: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1028:32: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1030:64: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1028:32: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1039:18: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1039:18: danger: ‘rout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
# 1037|   	}
# 1038|   
# 1039|-> 	status = smartcard_pack_get_status_change_return(out, &ret, TRUE);
# 1040|   fail:
# 1041|   	free(ret.rgReaderStates);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1111]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1379:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.pbRecvBuffer’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1365:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1371:43: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1373:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1377:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1379:13: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1379:13: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1379:13: danger: ‘ret.pbRecvBuffer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/2)
# 1377|   	ret.pioRecvPci = call->pioRecvPci;
# 1378|   	ret.ReturnCode =
# 1379|-> 	    wrap(smartcard, SCardTransmit, operation->hCard, call->pioSendPci, call->pbSendBuffer,
# 1380|   	         call->cbSendLength, ret.pioRecvPci, ret.pbRecvBuffer, &(ret.cbRecvLength));
# 1381|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1112]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1411:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.pvOutBuffer’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1405:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1407:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1411:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1411:13: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1411:13: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1411:13: danger: ‘ret.pvOutBuffer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
# 1409|   
# 1410|   	ret.ReturnCode =
# 1411|-> 	    wrap(smartcard, SCardControl, operation->hCard, call->dwControlCode, call->pvInBuffer,
# 1412|   	         call->cbInBufferSize, ret.pvOutBuffer, call->cbOutBufferSize, &ret.cbOutBufferSize);
# 1413|   	scard_log_status_error_wlog(smartcard->log, "SCardControl", ret.ReturnCode);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1113]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1453:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pbAttr’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1437:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1439:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1441:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1443:45: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1443:45: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1445:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1449:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1449:26: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1449:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1453:13: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1453:13: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1453:13: danger: ‘pbAttr’ leaks here; was allocated at [(5)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/4)
# 1451|   
# 1452|   	ret.ReturnCode =
# 1453|-> 	    wrap(smartcard, SCardGetAttrib, operation->hCard, call->dwAttrId, pbAttr, &cbAttrLen);
# 1454|   	scard_log_status_error_wlog(smartcard->log, "SCardGetAttrib", ret.ReturnCode);
# 1455|   	if ((ret.ReturnCode == SCARD_S_SUCCESS) && (cbAttrLen == SCARD_AUTOALLOCATE))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1114]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1535:35: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1520:40: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1522:12: branch_false: following ‘false’ branch (when ‘states’ is non-NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1525:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1535:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1535:35: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1535:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1535:35: danger: ‘states’ leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
# 1533|   	}
# 1534|   
# 1535|-> 	status = ret.ReturnCode = wrap(smartcard, SCardGetStatusChangeA, operation->hContext,
# 1536|   	                               0x000001F4, states, call->cReaders);
# 1537|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1115]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1580:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1522:12: branch_false: following ‘false’ branch (when ‘states’ is non-NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1559:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1560:59: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1560:59: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1562:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1568:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1578:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1580:18: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(5)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/4)
# 1578|   	free(states);
# 1579|   
# 1580|-> 	status = smartcard_pack_get_status_change_return(out, &ret, FALSE);
# 1581|   
# 1582|   	free(ret.rgReaderStates);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1116]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1899:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:91:13: enter_function: entry to ‘smartcard_EstablishContext_Call’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:121:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:123:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:124:25: call_function: calling ‘context_free’ from ‘smartcard_EstablishContext_Call’
# 1897|   
# 1898|   	if (element->fn_free)
# 1899|-> 		element->fn_free(element->context);
# 1900|   	free(element);
# 1901|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1117]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
# 1911|   		goto fail;
# 1912|   
# 1913|-> 	ctx->log = WLog_Get(SCARD_TAG);
# 1914|   	WINPR_ASSERT(ctx->log);
# 1915|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1118]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1916:26: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1916:26: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
# 1914|   	WINPR_ASSERT(ctx->log);
# 1915|   
# 1916|-> 	ctx->stopEvent = CreateEventA(NULL, TRUE, FALSE, NULL);
# 1917|   	if (!ctx->stopEvent)
# 1918|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1119]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1916:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/2)
# 1918|   		goto fail;
# 1919|   
# 1920|-> 	ctx->names = LinkedList_New();
# 1921|   	if (!ctx->names)
# 1922|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1120]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
# 1918|   		goto fail;
# 1919|   
# 1920|-> 	ctx->names = LinkedList_New();
# 1921|   	if (!ctx->names)
# 1922|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1121]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/4)
# 1923|   
# 1924|   #if defined(WITH_SMARTCARD_EMULATE)
# 1925|-> 	ctx->useEmulatedCard = freerdp_settings_get_bool(settings, FreeRDP_SmartcardEmulation);
# 1926|   #endif
# 1927|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1122]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
# 1923|   
# 1924|   #if defined(WITH_SMARTCARD_EMULATE)
# 1925|-> 	ctx->useEmulatedCard = freerdp_settings_get_bool(settings, FreeRDP_SmartcardEmulation);
# 1926|   #endif
# 1927|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1123]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/4)
# 1929|   	{
# 1930|   #if defined(WITH_SMARTCARD_EMULATE)
# 1931|-> 		ctx->emulation = Emulate_New(settings);
# 1932|   		if (!ctx->emulation)
# 1933|   			goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1124]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
# 1929|   	{
# 1930|   #if defined(WITH_SMARTCARD_EMULATE)
# 1931|-> 		ctx->emulation = Emulate_New(settings);
# 1932|   		if (!ctx->emulation)
# 1933|   			goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1125]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1916:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/2)
# 1939|   	else
# 1940|   	{
# 1941|-> 		const char* WinSCardModule = freerdp_settings_get_string(settings, FreeRDP_WinSCardModule);
# 1942|   		if (WinSCardModule)
# 1943|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1126]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
# 1939|   	else
# 1940|   	{
# 1941|-> 		const char* WinSCardModule = freerdp_settings_get_string(settings, FreeRDP_WinSCardModule);
# 1942|   		if (WinSCardModule)
# 1943|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1127]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1944:49: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1942:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1944:49: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1944:49: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/4)
# 1942|   		if (WinSCardModule)
# 1943|   		{
# 1944|-> 			ctx->hWinSCardLibrary = LoadLibraryX(WinSCardModule);
# 1945|   
# 1946|   			if (!ctx->hWinSCardLibrary)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1128]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1944:49: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1942:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1944:49: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1944:49: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/0)
# 1942|   		if (WinSCardModule)
# 1943|   		{
# 1944|-> 			ctx->hWinSCardLibrary = LoadLibraryX(WinSCardModule);
# 1945|   
# 1946|   			if (!ctx->hWinSCardLibrary)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1129]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1948:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1916:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1942:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1944:49: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1946:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1948:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1948:33: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/2)
# 1946|   			if (!ctx->hWinSCardLibrary)
# 1947|   			{
# 1948|-> 				WLog_Print(ctx->log, WLOG_ERROR, "Failed to load WinSCard library: '%s'",
# 1949|   				           WinSCardModule);
# 1950|   				goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1130]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1948:33: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1942:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1944:49: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1946:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1948:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1948:33: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/0)
# 1946|   			if (!ctx->hWinSCardLibrary)
# 1947|   			{
# 1948|-> 				WLog_Print(ctx->log, WLOG_ERROR, "Failed to load WinSCard library: '%s'",
# 1949|   				           WinSCardModule);
# 1950|   				goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1131]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1953:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1942:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1944:49: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1946:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1953:61: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1953:30: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/4)
# 1951|   			}
# 1952|   
# 1953|-> 			if (!WinSCard_LoadApiTableFunctions(&ctx->WinSCardApi, ctx->hWinSCardLibrary))
# 1954|   				goto fail;
# 1955|   			ctx->pWinSCardApi = &ctx->WinSCardApi;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1132]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1953:30: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1942:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1944:49: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1946:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1953:61: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1953:30: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/0)
# 1951|   			}
# 1952|   
# 1953|-> 			if (!WinSCard_LoadApiTableFunctions(&ctx->WinSCardApi, ctx->hWinSCardLibrary))
# 1954|   				goto fail;
# 1955|   			ctx->pWinSCardApi = &ctx->WinSCardApi;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1133]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1959:45: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1942:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1959:45: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1959:45: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/4)
# 1957|   		else
# 1958|   		{
# 1959|-> 			ctx->pWinSCardApi = WinPR_GetSCardApiFunctionTable();
# 1960|   		}
# 1961|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1134]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1959:45: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1942:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1959:45: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1959:45: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/0)
# 1957|   		else
# 1958|   		{
# 1959|-> 			ctx->pWinSCardApi = WinPR_GetSCardApiFunctionTable();
# 1960|   		}
# 1961|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1135]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1964:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1942:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1959:45: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1962:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1964:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1964:25: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/4)
# 1962|   		if (!ctx->pWinSCardApi)
# 1963|   		{
# 1964|-> 			WLog_Print(ctx->log, WLOG_ERROR, "Failed to load WinSCard API!");
# 1965|   			goto fail;
# 1966|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1136]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1964:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1941:46: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1942:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1959:45: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1962:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1964:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1964:25: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/0)
# 1962|   		if (!ctx->pWinSCardApi)
# 1963|   		{
# 1964|-> 			WLog_Print(ctx->log, WLOG_ERROR, "Failed to load WinSCard API!");
# 1965|   			goto fail;
# 1966|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1137]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1969:35: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1932:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1969:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1969:35: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/8)
# 1967|   	}
# 1968|   
# 1969|-> 	ctx->rgSCardContextList = HashTable_New(FALSE);
# 1970|   	if (!ctx->rgSCardContextList)
# 1971|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1138]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1969:35: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1932:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1969:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1969:35: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/0)
# 1967|   	}
# 1968|   
# 1969|-> 	ctx->rgSCardContextList = HashTable_New(FALSE);
# 1970|   	if (!ctx->rgSCardContextList)
# 1971|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1139]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1973:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1932:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1969:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1970:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1973:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1973:15: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/8)
# 1971|   		goto fail;
# 1972|   
# 1973|-> 	obj = HashTable_ValueObject(ctx->rgSCardContextList);
# 1974|   	WINPR_ASSERT(obj);
# 1975|   	obj->fnObjectFree = context_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1140]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1973:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1925:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1928:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1931:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1932:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1969:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1970:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1973:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1973:15: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/0)
# 1971|   		goto fail;
# 1972|   
# 1973|-> 	obj = HashTable_ValueObject(ctx->rgSCardContextList);
# 1974|   	WINPR_ASSERT(obj);
# 1975|   	obj->fnObjectFree = context_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1141]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1981:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1916:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1920:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1921:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1922:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1981:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/2)
# 1979|   	WINPR_PRAGMA_DIAG_PUSH
# 1980|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1981|-> 	smartcard_call_context_free(ctx);
# 1982|   	WINPR_PRAGMA_DIAG_POP
# 1983|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1142]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1981:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ctx’ should have been deallocated with ‘free’ but was deallocated with ‘smartcard_call_context_free’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1917:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1918:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1981:9: danger: deallocated with ‘smartcard_call_context_free’ here; allocation at [(1)](sarif:/runs/0/results/88/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
# 1979|   	WINPR_PRAGMA_DIAG_PUSH
# 1980|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1981|-> 	smartcard_call_context_free(ctx);
# 1982|   	WINPR_PRAGMA_DIAG_POP
# 1983|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1143]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:2093:14: warning[-Wanalyzer-use-after-free]: use after ‘smartcard_call_context_free’ of ‘ctx’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1903:21: enter_function: entry to ‘smartcard_call_context_new’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1909:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1910:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1913:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1981:9: release_memory: deallocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_call.c:1981:9: call_function: calling ‘smartcard_call_context_free’ from ‘smartcard_call_context_new’
# 2091|   {
# 2092|   	WINPR_ASSERT(ctx);
# 2093|-> 	if (!ctx->stopEvent)
# 2094|   		return TRUE;
# 2095|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1144]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:93:14: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2398:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2417:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2423:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_a’
#   91|   	if (!s)
#   92|   		return FALSE;
#   93|-> 	if (!Stream_CheckAndLogRequiredLengthWLog(log, s, 4))
#   94|   		return FALSE;
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1145]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:93:14: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2471:13: enter_function: entry to ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2477:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2481:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2488:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2489:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2491:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2495:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2497:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2500:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2503:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2503:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_w’
#   91|   	if (!s)
#   92|   		return FALSE;
#   93|-> 	if (!Stream_CheckAndLogRequiredLengthWLog(log, s, 4))
#   94|   		return FALSE;
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1146]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:104:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2398:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2417:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2423:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_a’
#  102|   		if (ptr && (ndrPtr == 0))
#  103|   			return TRUE;
#  104|-> 		WLog_Print(log, WLOG_WARN,
#  105|   		           "[%s:%" PRIuz "] Read context pointer 0x%08" PRIx32 ", expected 0x%08" PRIx32,
#  106|   		           fkt, line, ndrPtr, expect);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1147]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:104:17: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2471:13: enter_function: entry to ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2477:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2481:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2488:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2489:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2491:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2495:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2497:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2500:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2503:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2503:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_w’
#  102|   		if (ptr && (ndrPtr == 0))
#  103|   			return TRUE;
#  104|-> 		WLog_Print(log, WLOG_WARN,
#  105|   		           "[%s:%" PRIuz "] Read context pointer 0x%08" PRIx32 ", expected 0x%08" PRIx32,
#  106|   		           fkt, line, ndrPtr, expect);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1148]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:139:14: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2471:13: enter_function: entry to ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2477:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2481:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2488:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2488:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2491:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2495:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2497:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2500:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2503:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2503:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2503:22: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘smartcard_ndr_pointer_read_’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2510:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2511:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2512:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2495:32: branch_false: following ‘false’ branch (when ‘index >= cReaders’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2516:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2518:67: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2521:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2524:55: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2524:26: call_function: inlined call to ‘smartcard_ndr_read_w’ from ‘smartcard_unpack_reader_state_w’
#  137|   	}
#  138|   
#  139|-> 	if (!Stream_CheckAndLogRequiredLengthWLog(log, s, required))
#  140|   		return STATUS_BUFFER_TOO_SMALL;
#  141|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1149]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:139:14: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2398:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2416:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2417:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2423:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘smartcard_ndr_pointer_read_’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2436:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2437:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2438:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_false: following ‘false’ branch (when ‘index >= cReaders’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2442:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2444:67: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2447:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:55: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:26: call_function: inlined call to ‘smartcard_ndr_read_a’ from ‘smartcard_unpack_reader_state_a’
#  137|   	}
#  138|   
#  139|-> 	if (!Stream_CheckAndLogRequiredLengthWLog(log, s, required))
#  140|   		return STATUS_BUFFER_TOO_SMALL;
#  141|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1150]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:150:33: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2398:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2417:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2423:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘smartcard_ndr_pointer_read_’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2436:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2437:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2438:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_false: following ‘false’ branch (when ‘index >= cReaders’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2442:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2444:67: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2447:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:55: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:26: call_function: inlined call to ‘smartcard_ndr_read_a’ from ‘smartcard_unpack_reader_state_a’
#  148|   			if (len != offset + len2)
#  149|   			{
#  150|-> 				WLog_Print(log, WLOG_ERROR,
#  151|   				           "Invalid data when reading full NDR pointer: total=%" PRIu32
#  152|   				           ", offset=%" PRIu32 ", remaining=%" PRIu32,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1151]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:150:33: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2398:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2416:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2417:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2423:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘smartcard_ndr_pointer_read_’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2436:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2437:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2438:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_false: following ‘false’ branch (when ‘index >= cReaders’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2442:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2444:67: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2447:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:55: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:26: call_function: inlined call to ‘smartcard_ndr_read_a’ from ‘smartcard_unpack_reader_state_a’
#  148|   			if (len != offset + len2)
#  149|   			{
#  150|-> 				WLog_Print(log, WLOG_ERROR,
#  151|   				           "Invalid data when reading full NDR pointer: total=%" PRIu32
#  152|   				           ", offset=%" PRIu32 ", remaining=%" PRIu32,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1152]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:178:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2398:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2417:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2423:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘smartcard_ndr_pointer_read_’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2436:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2437:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2438:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_false: following ‘false’ branch (when ‘index >= cReaders’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2442:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2444:67: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2447:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:55: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:26: call_function: inlined call to ‘smartcard_ndr_read_a’ from ‘smartcard_unpack_reader_state_a’
#  176|   	if (min > len)
#  177|   	{
#  178|-> 		WLog_Print(log, WLOG_ERROR,
#  179|   		           "Invalid length read from NDR pointer, minimum %" PRIu32 ", got %" PRIu32, min,
#  180|   		           len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1153]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:178:17: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2398:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2416:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2417:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2423:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘smartcard_ndr_pointer_read_’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2436:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2437:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2438:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_false: following ‘false’ branch (when ‘index >= cReaders’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2442:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2444:67: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2447:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:55: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:26: call_function: inlined call to ‘smartcard_ndr_read_a’ from ‘smartcard_unpack_reader_state_a’
#  176|   	if (min > len)
#  177|   	{
#  178|-> 		WLog_Print(log, WLOG_ERROR,
#  179|   		           "Invalid length read from NDR pointer, minimum %" PRIu32 ", got %" PRIu32, min,
#  180|   		           len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1154]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:187:14: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2398:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2417:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2423:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘smartcard_ndr_pointer_read_’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2436:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2437:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2438:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_false: following ‘false’ branch (when ‘index >= cReaders’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2442:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2444:67: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2447:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:55: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:26: call_function: inlined call to ‘smartcard_ndr_read_a’ from ‘smartcard_unpack_reader_state_a’
#  185|   		return STATUS_BUFFER_TOO_SMALL;
#  186|   
#  187|-> 	if (!Stream_CheckAndLogRequiredLengthOfSizeWLog(log, s, len, elementSize))
#  188|   		return STATUS_BUFFER_TOO_SMALL;
#  189|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1155]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:187:14: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2398:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2416:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2417:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2423:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: call_function: calling ‘smartcard_ndr_pointer_read_’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2429:22: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘smartcard_ndr_pointer_read_’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2436:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2437:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2438:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_false: following ‘false’ branch (when ‘index >= cReaders’)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2442:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2444:67: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2447:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:55: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2449:26: call_function: inlined call to ‘smartcard_ndr_read_a’ from ‘smartcard_unpack_reader_state_a’
#  185|   		return STATUS_BUFFER_TOO_SMALL;
#  186|   
#  187|-> 	if (!Stream_CheckAndLogRequiredLengthOfSizeWLog(log, s, len, elementSize))
#  188|   		return STATUS_BUFFER_TOO_SMALL;
#  189|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1156]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:489:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*call.mszGroups, (long unsigned int)*call.cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:672:13: enter_function: entry to ‘smartcard_trace_list_readers_call’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:676:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:679:75: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:679:28: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_list_readers_call’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:679:28: return_function: returning to ‘smartcard_trace_list_readers_call’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:682:9: call_function: calling ‘smartcard_log_context’ from ‘smartcard_trace_list_readers_call’
#  487|   
#  488|   	WINPR_ASSERT(phContext);
#  489|-> 	WLog_Print(
#  490|   	    log, g_LogLevel, "hContext: %s",
#  491|   	    smartcard_array_dump(phContext->pbContext, phContext->cbContext, buffer, sizeof(buffer)));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1157]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:664:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:654:13: enter_function: entry to ‘smartcard_trace_list_reader_groups_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:659:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:62: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:22: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_list_reader_groups_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:22: return_function: returning to ‘smartcard_trace_list_reader_groups_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:664:9: danger: ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/11)
#  662|   	char* mszA = smartcard_convert_string_list(ret->msz, ret->cBytes, unicode);
#  663|   
#  664|-> 	WLog_Print(log, g_LogLevel, "ListReaderGroups%s_Return {", unicode ? "W" : "A");
#  665|   	WLog_Print(log, g_LogLevel, "  ReturnCode: %s (0x%08" PRIx32 ")",
#  666|   	           SCardGetErrorString(ret->ReturnCode), ret->ReturnCode);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1158]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:665:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:654:13: enter_function: entry to ‘smartcard_trace_list_reader_groups_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:659:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:62: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:22: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_list_reader_groups_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:22: return_function: returning to ‘smartcard_trace_list_reader_groups_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:665:9: danger: ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/11)
#  663|   
#  664|   	WLog_Print(log, g_LogLevel, "ListReaderGroups%s_Return {", unicode ? "W" : "A");
#  665|-> 	WLog_Print(log, g_LogLevel, "  ReturnCode: %s (0x%08" PRIx32 ")",
#  666|   	           SCardGetErrorString(ret->ReturnCode), ret->ReturnCode);
#  667|   	WLog_Print(log, g_LogLevel, "  cBytes: %" PRIu32 " msz: %s", ret->cBytes, mszA);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1159]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:667:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:654:13: enter_function: entry to ‘smartcard_trace_list_reader_groups_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:659:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:62: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:22: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_list_reader_groups_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:22: return_function: returning to ‘smartcard_trace_list_reader_groups_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:667:9: danger: ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/11)
#  665|   	WLog_Print(log, g_LogLevel, "  ReturnCode: %s (0x%08" PRIx32 ")",
#  666|   	           SCardGetErrorString(ret->ReturnCode), ret->ReturnCode);
#  667|-> 	WLog_Print(log, g_LogLevel, "  cBytes: %" PRIu32 " msz: %s", ret->cBytes, mszA);
#  668|   	WLog_Print(log, g_LogLevel, "}");
#  669|   	free(mszA);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1160]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:668:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:654:13: enter_function: entry to ‘smartcard_trace_list_reader_groups_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:659:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:62: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:22: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_list_reader_groups_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:662:22: return_function: returning to ‘smartcard_trace_list_reader_groups_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:667:9: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:668:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:668:9: danger: ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/11)
#  666|   	           SCardGetErrorString(ret->ReturnCode), ret->ReturnCode);
#  667|   	WLog_Print(log, g_LogLevel, "  cBytes: %" PRIu32 " msz: %s", ret->cBytes, mszA);
#  668|-> 	WLog_Print(log, g_LogLevel, "}");
#  669|   	free(mszA);
#  670|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1161]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:681:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*call.mszGroups, (long unsigned int)*call.cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:672:13: enter_function: entry to ‘smartcard_trace_list_readers_call’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:676:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:679:75: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:679:28: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_list_readers_call’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:679:28: return_function: returning to ‘smartcard_trace_list_readers_call’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:681:9: danger: ‘smartcard_convert_string_list(*call.mszGroups, (long unsigned int)*call.cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/11)
#  679|   	char* mszGroupsA = smartcard_convert_string_list(call->mszGroups, call->cBytes, unicode);
#  680|   
#  681|-> 	WLog_Print(log, g_LogLevel, "ListReaders%s_Call {", unicode ? "W" : "A");
#  682|   	smartcard_log_context(log, &call->handles.hContext);
#  683|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1162]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:684:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*call.mszGroups, (long unsigned int)*call.cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:672:13: enter_function: entry to ‘smartcard_trace_list_readers_call’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:676:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:679:75: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:679:28: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_list_readers_call’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:679:28: return_function: returning to ‘smartcard_trace_list_readers_call’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:684:9: danger: ‘smartcard_convert_string_list(*call.mszGroups, (long unsigned int)*call.cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/11)
#  682|   	smartcard_log_context(log, &call->handles.hContext);
#  683|   
#  684|-> 	WLog_Print(log, g_LogLevel,
#  685|   	           "cBytes: %" PRIu32 " mszGroups: %s fmszReadersIsNULL: %" PRId32
#  686|   	           " cchReaders: 0x%08" PRIX32 "",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1163]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:839:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:819:13: enter_function: entry to ‘smartcard_trace_list_readers_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:824:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:827:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:831:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:837:62: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:837:22: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_list_readers_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:837:22: return_function: returning to ‘smartcard_trace_list_readers_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:839:9: danger: ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/13)
#  837|   	char* mszA = smartcard_convert_string_list(ret->msz, ret->cBytes, unicode);
#  838|   
#  839|-> 	WLog_Print(log, g_LogLevel, "  cBytes: %" PRIu32 " msz: %s", ret->cBytes, mszA);
#  840|   	WLog_Print(log, g_LogLevel, "}");
#  841|   	free(mszA);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1164]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:840:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:819:13: enter_function: entry to ‘smartcard_trace_list_readers_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:824:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:827:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:831:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:837:62: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:837:22: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_list_readers_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:837:22: return_function: returning to ‘smartcard_trace_list_readers_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:839:9: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:840:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:840:9: danger: ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/13)
#  838|   
#  839|   	WLog_Print(log, g_LogLevel, "  cBytes: %" PRIu32 " msz: %s", ret->cBytes, mszA);
#  840|-> 	WLog_Print(log, g_LogLevel, "}");
#  841|   	free(mszA);
#  842|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1165]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1326:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1310:13: enter_function: entry to ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1317:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1319:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: return_function: returning to ‘smartcard_trace_status_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1326:9: danger: ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/11)
# 1324|   	mszReaderNamesA = smartcard_convert_string_list(ret->mszReaderNames, cBytes, unicode);
# 1325|   
# 1326|-> 	WLog_Print(log, g_LogLevel, "Status%s_Return {", unicode ? "W" : "A");
# 1327|   	WLog_Print(log, g_LogLevel, "  ReturnCode: %s (0x%08" PRIX32 ")",
# 1328|   	           SCardGetErrorString(ret->ReturnCode), ret->ReturnCode);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1166]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1327:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1310:13: enter_function: entry to ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1317:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1319:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: return_function: returning to ‘smartcard_trace_status_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1327:9: danger: ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/11)
# 1325|   
# 1326|   	WLog_Print(log, g_LogLevel, "Status%s_Return {", unicode ? "W" : "A");
# 1327|-> 	WLog_Print(log, g_LogLevel, "  ReturnCode: %s (0x%08" PRIX32 ")",
# 1328|   	           SCardGetErrorString(ret->ReturnCode), ret->ReturnCode);
# 1329|   	WLog_Print(log, g_LogLevel, "  dwState: %s (0x%08" PRIX32 ") dwProtocol: %s (0x%08" PRIX32 ")",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1167]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1329:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1310:13: enter_function: entry to ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1317:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1319:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: return_function: returning to ‘smartcard_trace_status_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1329:9: danger: ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/11)
# 1327|   	WLog_Print(log, g_LogLevel, "  ReturnCode: %s (0x%08" PRIX32 ")",
# 1328|   	           SCardGetErrorString(ret->ReturnCode), ret->ReturnCode);
# 1329|-> 	WLog_Print(log, g_LogLevel, "  dwState: %s (0x%08" PRIX32 ") dwProtocol: %s (0x%08" PRIX32 ")",
# 1330|   	           SCardGetCardStateString(ret->dwState), ret->dwState,
# 1331|   	           SCardGetProtocolString(ret->dwProtocol), ret->dwProtocol);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1168]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1333:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1310:13: enter_function: entry to ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1317:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1319:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: return_function: returning to ‘smartcard_trace_status_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1333:9: danger: ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/11)
# 1331|   	           SCardGetProtocolString(ret->dwProtocol), ret->dwProtocol);
# 1332|   
# 1333|-> 	WLog_Print(log, g_LogLevel, "  cBytes: %" PRIu32 " mszReaderNames: %s", ret->cBytes,
# 1334|   	           mszReaderNamesA);
# 1335|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1169]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1336:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1310:13: enter_function: entry to ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1317:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1319:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: return_function: returning to ‘smartcard_trace_status_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1333:9: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1336:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1336:9: danger: ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/11)
# 1334|   	           mszReaderNamesA);
# 1335|   
# 1336|-> 	WLog_Print(log, g_LogLevel, "  cbAtrLen: %" PRIu32 " pbAtr: %s", ret->cbAtrLen,
# 1337|   	           smartcard_array_dump(ret->pbAtr, ret->cbAtrLen, buffer, sizeof(buffer)));
# 1338|   	WLog_Print(log, g_LogLevel, "}");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1170]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1338:9: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1310:13: enter_function: entry to ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1317:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1319:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_status_return’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1324:27: return_function: returning to ‘smartcard_trace_status_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1333:9: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1336:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:1338:9: danger: ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/11)
# 1336|   	WLog_Print(log, g_LogLevel, "  cbAtrLen: %" PRIu32 " pbAtr: %s", ret->cbAtrLen,
# 1337|   	           smartcard_array_dump(ret->pbAtr, ret->cbAtrLen, buffer, sizeof(buffer)));
# 1338|-> 	WLog_Print(log, g_LogLevel, "}");
# 1339|   	free(mszReaderNamesA);
# 1340|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1171]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:22: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2398:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2417:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2423:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:22: danger: ‘rgReaderStates’ leaks here; was allocated at [(13)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/12)
# 2424|   		LPSCARD_READERSTATEA readerState = &rgReaderStates[index];
# 2425|   
# 2426|-> 		if (!Stream_CheckAndLogRequiredLengthWLog(log, s, 52))
# 2427|   			goto fail;
# 2428|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1172]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:22: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2398:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2404:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2407:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2408:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2415:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2416:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2417:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2421:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2423:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2426:22: danger: ‘states’ leaks here; was allocated at [(13)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/12)
# 2424|   		LPSCARD_READERSTATEA readerState = &rgReaderStates[index];
# 2425|   
# 2426|-> 		if (!Stream_CheckAndLogRequiredLengthWLog(log, s, 52))
# 2427|   			goto fail;
# 2428|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1173]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2500:22: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2471:13: enter_function: entry to ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2477:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2481:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2488:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2488:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2491:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2495:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2497:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2500:22: danger: ‘rgReaderStates’ leaks here; was allocated at [(13)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/12)
# 2498|   		LPSCARD_READERSTATEW readerState = &rgReaderStates[index];
# 2499|   
# 2500|-> 		if (!Stream_CheckAndLogRequiredLengthWLog(log, s, 52))
# 2501|   			goto fail;
# 2502|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1174]
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2500:22: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2471:13: enter_function: entry to ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2477:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2480:28: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘Stream_Get_UINT32’
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2481:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2488:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2489:24: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2491:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2495:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2497:24: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/smartcard_pack.c:2500:22: danger: ‘states’ leaks here; was allocated at [(13)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/12)
# 2498|   		LPSCARD_READERSTATEW readerState = &rgReaderStates[index];
# 2499|   
# 2500|-> 		if (!Stream_CheckAndLogRequiredLengthWLog(log, s, 52))
# 2501|   			goto fail;
# 2502|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1175]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_engine.c:37:13: warning[-Wanalyzer-malloc-leak]: leak of ‘engine’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_engine.c:32:43: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_engine.c:34:12: branch_false: following ‘false’ branch (when ‘engine’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_engine.c:37:13: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_engine.c:37:13: danger: ‘engine’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   35|   		return NULL;
#   36|   
#   37|-> 	if (rdtk_font_engine_init(engine) < 0)
#   38|   		goto fail;
#   39|   	if (rdtk_nine_patch_engine_init(engine) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1176]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:161:20: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:606:11: enter_function: entry to ‘rdtk_font_new’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:643:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:646:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:647:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:650:29: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:650:29: call_function: calling ‘rdtk_font_load_descriptor’ from ‘rdtk_font_new’
#  159|   		INT64 i64;
#  160|   	} fileSize;
#  161|-> 	FILE* fp = winpr_fopen(filename, "r");
#  162|   
#  163|   	if (!fp)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1177]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:161:20: warning[-Wanalyzer-malloc-leak]: leak of ‘rdtk_font_load_descriptor_file(filename, & size)’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:593:12: enter_function: entry to ‘rdtk_font_load_descriptor’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:598:24: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:598:24: call_function: calling ‘rdtk_font_load_descriptor_file’ from ‘rdtk_font_load_descriptor’
#  159|   		INT64 i64;
#  160|   	} fileSize;
#  161|-> 	FILE* fp = winpr_fopen(filename, "r");
#  162|   
#  163|   	if (!fp)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1178]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:163:12: warning[-Wanalyzer-malloc-leak]: leak of ‘rdtk_font_load_descriptor_file(filename, & size)’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:593:12: enter_function: entry to ‘rdtk_font_load_descriptor’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:598:24: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:598:24: call_function: calling ‘rdtk_font_load_descriptor_file’ from ‘rdtk_font_load_descriptor’
#  161|   	FILE* fp = winpr_fopen(filename, "r");
#  162|   
#  163|-> 	if (!fp)
#  164|   		return NULL;
#  165|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1179]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:168:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rdtk_font_load_descriptor_file(filename, & size)’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:593:12: enter_function: entry to ‘rdtk_font_load_descriptor’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:598:24: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:598:24: call_function: calling ‘rdtk_font_load_descriptor_file’ from ‘rdtk_font_load_descriptor’
#  166|   	if (_fseeki64(fp, 0, SEEK_END) != 0)
#  167|   		goto fail;
#  168|-> 	fileSize.i64 = _ftelli64(fp);
#  169|   	if (_fseeki64(fp, 0, SEEK_SET) != 0)
#  170|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1180]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:313:24: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:667:18: enter_function: entry to ‘rdtk_embedded_font_new’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:690:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:698:31: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:698:31: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:700:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:703:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:704:29: call_function: calling ‘rdtk_font_parse_descriptor_buffer’ from ‘rdtk_embedded_font_new’
#  311|   
#  312|   	*q = '\0';
#  313|-> 	font->family = _strdup(p);
#  314|   	*q = '"';
#  315|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1181]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:313:24: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:667:18: enter_function: entry to ‘rdtk_embedded_font_new’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:675:37: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:690:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:698:31: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:700:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:703:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:704:29: call_function: calling ‘rdtk_font_parse_descriptor_buffer’ from ‘rdtk_embedded_font_new’
#  311|   
#  312|   	*q = '\0';
#  313|-> 	font->family = _strdup(p);
#  314|   	*q = '"';
#  315|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1182]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:361:23: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:667:18: enter_function: entry to ‘rdtk_embedded_font_new’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:690:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:698:31: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:698:31: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:700:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:703:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:704:29: call_function: calling ‘rdtk_font_parse_descriptor_buffer’ from ‘rdtk_embedded_font_new’
#  359|   
#  360|   	*q = '\0';
#  361|-> 	font->style = _strdup(p);
#  362|   	*q = '"';
#  363|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1183]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:361:23: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:667:18: enter_function: entry to ‘rdtk_embedded_font_new’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:675:37: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:690:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:698:31: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:700:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:703:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:704:29: call_function: calling ‘rdtk_font_parse_descriptor_buffer’ from ‘rdtk_embedded_font_new’
#  359|   
#  360|   	*q = '\0';
#  361|-> 	font->style = _strdup(p);
#  362|   	*q = '"';
#  363|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1184]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:621:9: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(path,  file)’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:617:30: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:621:9: danger: ‘GetCombinedPath(path,  file)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  619|   		goto cleanup;
#  620|   
#  621|-> 	winpr_asprintf(&fontImageFile, &length, "%s." FILE_EXT, fontBaseFile);
#  622|   	if (!fontImageFile)
#  623|   		goto cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1185]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:641:23: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:641:23: danger: ‘font’ leaks here; was allocated at [(11)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/10)
#  639|   
#  640|   	font->engine = engine;
#  641|-> 	font->image = winpr_image_new();
#  642|   
#  643|   	if (!font->image)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1186]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:646:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:641:23: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:643:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:646:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:646:28: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/12)
#  644|   		goto cleanup;
#  645|   
#  646|-> 	const int status = winpr_image_read(font->image, fontImageFile);
#  647|   	if (status < 0)
#  648|   		goto cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1187]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:646:28: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:643:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:646:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:646:28: danger: ‘font’ leaks here; was allocated at [(11)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/10)
#  644|   		goto cleanup;
#  645|   
#  646|-> 	const int status = winpr_image_read(font->image, fontImageFile);
#  647|   	if (status < 0)
#  648|   		goto cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1188]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:681:23: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:675:37: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:681:23: danger: ‘font’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  679|   
#  680|   	font->engine = engine;
#  681|-> 	font->image = winpr_image_new();
#  682|   
#  683|   	if (!font->image)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1189]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:681:23: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
#  687|   	}
#  688|   
#  689|-> 	const int status = winpr_image_read_buffer(font->image, imageData, imageSize);
#  690|   	if (status < 0)
#  691|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1190]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:675:37: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: danger: ‘font’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  687|   	}
#  688|   
#  689|-> 	const int status = winpr_image_read_buffer(font->image, imageData, imageSize);
#  690|   	if (status < 0)
#  691|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1191]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:692:17: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:675:37: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:690:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:692:17: branch_true: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:692:17: danger: ‘font’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  690|   	if (status < 0)
#  691|   	{
#  692|-> 		winpr_image_free(font->image, TRUE);
#  693|   		free(font);
#  694|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1192]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:722:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:667:18: enter_function: entry to ‘rdtk_embedded_font_new’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:690:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:698:31: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:700:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:703:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:704:29: call_function: calling ‘rdtk_font_parse_descriptor_buffer’ from ‘rdtk_embedded_font_new’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:704:29: return_function: returning to ‘rdtk_embedded_font_new’ from ‘rdtk_font_parse_descriptor_buffer’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:706:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:707:17: branch_true: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:712:9: call_function: inlined call to ‘rdtk_font_free’ from ‘rdtk_embedded_font_new’
#  720|   		free(font->family);
#  721|   		free(font->style);
#  722|-> 		winpr_image_free(font->image, TRUE);
#  723|   		free(font->glyphs);
#  724|   		free(font);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1193]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:722:17: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:606:11: enter_function: entry to ‘rdtk_font_new’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:643:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:644:17: branch_true: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:663:9: call_function: inlined call to ‘rdtk_font_free’ from ‘rdtk_font_new’
 branch_true: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:663:9: call_function: inlined call to ‘rdtk_font_free’ from ‘rdtk_font_new’
#  720|   		free(font->family);
#  721|   		free(font->style);
#  722|-> 		winpr_image_free(font->image, TRUE);
#  723|   		free(font->glyphs);
#  724|   		free(font);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1194]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:460:42: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_image_new()’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:448:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:451:32: branch_true: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:455:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:457:33: branch_true: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:457:33: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:459:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:460:42: branch_true: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:460:42: danger: ‘winpr_image_new()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  458|   
#  459|   			if (image)
#  460|-> 				status = winpr_image_read_buffer(image, data, (size_t)size);
#  461|   		}
#  462|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1195]
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:489:42: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_image_new()’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:476:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:479:32: branch_true: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:484:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:486:33: branch_true: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:486:33: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:488:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:489:42: branch_true: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_nine_patch.c:489:42: danger: ‘winpr_image_new()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  487|   
#  488|   			if (image)
#  489|-> 				status = winpr_image_read_buffer(image, data, (size_t)size);
#  490|   		}
#  491|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1196]
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:31:25: warning[-Wanalyzer-malloc-leak]: leak of ‘rdtk_engine_new()’
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:20:24: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:20:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:31:25: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:31:25: danger: ‘rdtk_engine_new()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   29|   
#   30|   	/* let rdtk allocate the surface buffer */
#   31|-> 	if (!(surface = rdtk_surface_new(engine, NULL, width, height, scanline)))
#   32|   	{
#   33|   		printf("%s: error creating auto-allocated surface (%" PRIu32 ")\n", __func__,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1197]
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:47:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:20:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:31:25: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:31:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:37:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:41:22: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:41:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:47:25: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/test/TestRdTkNinePatch.c:47:25: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   45|   	}
#   46|   
#   47|-> 	if (!(surface = rdtk_surface_new(engine, data, width, height, scanline)))
#   48|   	{
#   49|   		printf("%s: error creating self-allocated surface (%" PRIu32 ")\n", __func__,

Error: COMPILER_WARNING (CWE-686): [#def1198]
FreeRDP-3.16.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-n5laXw/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘pow’; expected ‘double(double,  double)’

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1199]
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1200]
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1201]
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: danger: use of uninitialized value ‘*<unknown>’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1202]
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:31: danger: use of uninitialized value ‘*arg’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1203]
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:184:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1204]
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/client/common/test/TestClient.c:184:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1205]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:132:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:169:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:170:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:173:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:208:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  208|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  209|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  210|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  211|         testToRun = i;
#  212|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1206]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:132:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:169:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:170:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:173:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:208:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  208|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  209|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  210|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  211|         testToRun = i;
#  212|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1207]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:132:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:169:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:170:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:173:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:208:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: danger: use of uninitialized value ‘*<unknown>’ here
#  208|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  209|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  210|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  211|         testToRun = i;
#  212|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1208]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:132:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:169:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:170:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:173:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:208:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:31: danger: use of uninitialized value ‘*arg’ here
#  208|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  209|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  210|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  211|         testToRun = i;
#  212|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1209]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:132:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:169:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:170:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:173:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:208:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  212|         ac -= 2;
#  213|         av += 2;
#  214|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  215|         testToRun = i;
#  216|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1210]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:132:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:169:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:170:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:173:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:177:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:205:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:206:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:208:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:209:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  212|         ac -= 2;
#  213|         av += 2;
#  214|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  215|         testToRun = i;
#  216|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1211]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1212]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1213]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: danger: use of uninitialized value ‘*<unknown>’ here
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1214]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: danger: use of uninitialized value ‘*arg’ here
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1215]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:179:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:179:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  177|         ac -= 2;
#  178|         av += 2;
#  179|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  180|         testToRun = i;
#  181|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1216]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:179:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:179:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  177|         ac -= 2;
#  178|         av += 2;
#  179|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  180|         testToRun = i;
#  181|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1217]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1218]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1219]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: danger: use of uninitialized value ‘*<unknown>’ here
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1220]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: danger: use of uninitialized value ‘*arg’ here
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1221]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:179:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:179:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  177|         ac -= 2;
#  178|         av += 2;
#  179|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  180|         testToRun = i;
#  181|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1222]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:179:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:179:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  177|         ac -= 2;
#  178|         av += 2;
#  179|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  180|         testToRun = i;
#  181|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1223]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1224]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1225]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: danger: use of uninitialized value ‘*<unknown>’ here
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1226]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: danger: use of uninitialized value ‘*arg’ here
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1227]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:179:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:179:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  177|         ac -= 2;
#  178|         av += 2;
#  179|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  180|         testToRun = i;
#  181|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1228]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:179:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:179:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  177|         ac -= 2;
#  178|         av += 2;
#  179|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  180|         testToRun = i;
#  181|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1229]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1230]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1231]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: danger: use of uninitialized value ‘*<unknown>’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1232]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: danger: use of uninitialized value ‘*arg’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1233]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:184:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1234]
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:184:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1235]
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1236]
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1237]
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: danger: use of uninitialized value ‘*<unknown>’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1238]
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: danger: use of uninitialized value ‘*arg’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1239]
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:174:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1240]
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:174:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1241]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1242]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1243]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: danger: use of uninitialized value ‘*<unknown>’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1244]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: danger: use of uninitialized value ‘*arg’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1245]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:174:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1246]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:174:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1247]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1248]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1249]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: danger: use of uninitialized value ‘*<unknown>’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1250]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: danger: use of uninitialized value ‘*arg’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1251]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:174:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1252]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:174:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1253]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1254]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1255]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: danger: use of uninitialized value ‘*<unknown>’ here
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1256]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: danger: use of uninitialized value ‘*arg’ here
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1257]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:194:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:194:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:194:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  192|         ac -= 2;
#  193|         av += 2;
#  194|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  195|         testToRun = i;
#  196|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1258]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:194:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:194:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:194:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  192|         ac -= 2;
#  193|         av += 2;
#  194|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  195|         testToRun = i;
#  196|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1259]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1260]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1261]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: danger: use of uninitialized value ‘*<unknown>’ here
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1262]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: danger: use of uninitialized value ‘*arg’ here
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1263]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:199:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:199:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:199:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  197|         ac -= 2;
#  198|         av += 2;
#  199|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  200|         testToRun = i;
#  201|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1264]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:199:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:199:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:199:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  197|         ac -= 2;
#  198|         av += 2;
#  199|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  200|         testToRun = i;
#  201|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1265]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1266]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1267]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: danger: use of uninitialized value ‘*<unknown>’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1268]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: danger: use of uninitialized value ‘*arg’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1269]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:174:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1270]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:174:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1271]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  183|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  184|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  185|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  186|         testToRun = i;
#  187|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1272]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  183|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  184|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  185|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  186|         testToRun = i;
#  187|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1273]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: danger: use of uninitialized value ‘*<unknown>’ here
#  183|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  184|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  185|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  186|         testToRun = i;
#  187|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1274]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: danger: use of uninitialized value ‘*arg’ here
#  183|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  184|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  185|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  186|         testToRun = i;
#  187|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1275]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:189:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:189:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:189:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  187|         ac -= 2;
#  188|         av += 2;
#  189|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  190|         testToRun = i;
#  191|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1276]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:189:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:189:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:189:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  187|         ac -= 2;
#  188|         av += 2;
#  189|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  190|         testToRun = i;
#  191|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1277]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1278]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1279]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: danger: use of uninitialized value ‘*<unknown>’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1280]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: danger: use of uninitialized value ‘*arg’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1281]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:174:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1282]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:174:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1283]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  213|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  214|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  215|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  216|         testToRun = i;
#  217|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1284]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  213|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  214|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  215|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  216|         testToRun = i;
#  217|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1285]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: danger: use of uninitialized value ‘*<unknown>’ here
#  213|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  214|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  215|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  216|         testToRun = i;
#  217|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1286]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: danger: use of uninitialized value ‘*arg’ here
#  213|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  214|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  215|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  216|         testToRun = i;
#  217|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1287]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:219:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:219:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:219:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  217|         ac -= 2;
#  218|         av += 2;
#  219|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  220|         testToRun = i;
#  221|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1288]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:219:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:219:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:219:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  217|         ac -= 2;
#  218|         av += 2;
#  219|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  220|         testToRun = i;
#  221|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1289]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1290]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1291]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: danger: use of uninitialized value ‘*<unknown>’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1292]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: danger: use of uninitialized value ‘*arg’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1293]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:184:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1294]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:184:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1295]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1296]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1297]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: danger: use of uninitialized value ‘*<unknown>’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1298]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: danger: use of uninitialized value ‘*arg’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1299]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:174:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1300]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:174:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1301]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1302]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1303]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: danger: use of uninitialized value ‘*<unknown>’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1304]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: danger: use of uninitialized value ‘*arg’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1305]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:184:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1306]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:184:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1307]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1308]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1309]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: danger: use of uninitialized value ‘*<unknown>’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1310]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: danger: use of uninitialized value ‘*arg’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1311]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:174:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1312]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:174:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1313]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1314]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1315]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: danger: use of uninitialized value ‘*<unknown>’ here
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1316]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: danger: use of uninitialized value ‘*arg’ here
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1317]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:179:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:179:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  177|         ac -= 2;
#  178|         av += 2;
#  179|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  180|         testToRun = i;
#  181|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1318]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:179:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:179:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  177|         ac -= 2;
#  178|         av += 2;
#  179|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  180|         testToRun = i;
#  181|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1319]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1320]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1321]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: danger: use of uninitialized value ‘*<unknown>’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1322]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: danger: use of uninitialized value ‘*arg’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1323]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:174:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1324]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:174:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1325]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  283|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  284|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  285|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  286|         testToRun = i;
#  287|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1326]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  283|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  284|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  285|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  286|         testToRun = i;
#  287|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1327]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: danger: use of uninitialized value ‘*<unknown>’ here
#  283|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  284|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  285|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  286|         testToRun = i;
#  287|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1328]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: danger: use of uninitialized value ‘*arg’ here
#  283|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  284|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  285|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  286|         testToRun = i;
#  287|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1329]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:289:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:289:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:289:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  287|         ac -= 2;
#  288|         av += 2;
#  289|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  290|         testToRun = i;
#  291|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1330]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:289:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:289:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:289:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  287|         ac -= 2;
#  288|         av += 2;
#  289|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  290|         testToRun = i;
#  291|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1331]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1332]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1333]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: danger: use of uninitialized value ‘*<unknown>’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1334]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: danger: use of uninitialized value ‘*arg’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1335]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:184:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1336]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:184:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1337]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1338]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1339]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: danger: use of uninitialized value ‘*<unknown>’ here
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1340]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: danger: use of uninitialized value ‘*arg’ here
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1341]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:194:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:194:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:194:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  192|         ac -= 2;
#  193|         av += 2;
#  194|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  195|         testToRun = i;
#  196|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1342]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:194:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:194:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:194:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  192|         ac -= 2;
#  193|         av += 2;
#  194|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  195|         testToRun = i;
#  196|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1343]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1344]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1345]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: danger: use of uninitialized value ‘*<unknown>’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1346]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: danger: use of uninitialized value ‘*arg’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1347]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:174:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1348]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:174:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1349]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1350]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1351]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: danger: use of uninitialized value ‘*<unknown>’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1352]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: danger: use of uninitialized value ‘*arg’ here
#  168|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  169|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  170|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  171|         testToRun = i;
#  172|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1353]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:174:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1354]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:174:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:174:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  172|         ac -= 2;
#  173|         av += 2;
#  174|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  175|         testToRun = i;
#  176|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1355]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1356]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1357]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: danger: use of uninitialized value ‘*<unknown>’ here
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1358]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: danger: use of uninitialized value ‘*arg’ here
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1359]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:199:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:199:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:199:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  197|         ac -= 2;
#  198|         av += 2;
#  199|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  200|         testToRun = i;
#  201|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1360]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:199:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:199:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:199:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  197|         ac -= 2;
#  198|         av += 2;
#  199|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  200|         testToRun = i;
#  201|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1361]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  218|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  219|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  220|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  221|         testToRun = i;
#  222|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1362]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  218|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  219|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  220|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  221|         testToRun = i;
#  222|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1363]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: danger: use of uninitialized value ‘*<unknown>’ here
#  218|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  219|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  220|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  221|         testToRun = i;
#  222|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1364]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: danger: use of uninitialized value ‘*arg’ here
#  218|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  219|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  220|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  221|         testToRun = i;
#  222|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1365]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:224:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:224:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:224:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  222|         ac -= 2;
#  223|         av += 2;
#  224|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  225|         testToRun = i;
#  226|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1366]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:224:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:224:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:224:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  222|         ac -= 2;
#  223|         av += 2;
#  224|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  225|         testToRun = i;
#  226|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1367]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1368]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1369]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: danger: use of uninitialized value ‘*<unknown>’ here
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1370]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: danger: use of uninitialized value ‘*arg’ here
#  188|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  189|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  190|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  191|         testToRun = i;
#  192|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1371]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:194:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:194:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:194:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  192|         ac -= 2;
#  193|         av += 2;
#  194|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  195|         testToRun = i;
#  196|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1372]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:194:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:194:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:194:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  192|         ac -= 2;
#  193|         av += 2;
#  194|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  195|         testToRun = i;
#  196|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1373]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1374]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1375]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: danger: use of uninitialized value ‘*<unknown>’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1376]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: danger: use of uninitialized value ‘*arg’ here
#  178|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  179|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  180|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  181|         testToRun = i;
#  182|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1377]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:184:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1378]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:184:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:184:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:184:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  182|         ac -= 2;
#  183|         av += 2;
#  184|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  185|         testToRun = i;
#  186|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1379]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:192:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:229:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:230:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:233:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:268:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  268|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  269|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  270|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  271|         testToRun = i;
#  272|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1380]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:192:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:229:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:230:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:233:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:268:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:31: danger: use of uninitialized value ‘*<unknown>’ here
#  268|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  269|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  270|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  271|         testToRun = i;
#  272|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1381]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:274:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:192:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:208:17: branch_true: following ‘true’ branch (when ‘i != 21’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:209:30: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:213:8: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:217:9: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:217:8: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:222:5: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:229:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:233:7: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:233:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:268:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:274:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:274:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  272|         ac -= 2;
#  273|         av += 2;
#  274|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  275|         testToRun = i;
#  276|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1382]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:274:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:192:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:229:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:230:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:233:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:268:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:274:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:274:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  272|         ac -= 2;
#  273|         av += 2;
#  274|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  275|         testToRun = i;
#  276|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1383]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1384]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1385]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: danger: use of uninitialized value ‘*<unknown>’ here
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1386]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: danger: use of uninitialized value ‘*arg’ here
#  193|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  194|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  195|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  196|         testToRun = i;
#  197|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1387]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:199:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:199:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:199:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  197|         ac -= 2;
#  198|         av += 2;
#  199|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  200|         testToRun = i;
#  201|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1388]
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:199:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:199:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:199:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  197|         ac -= 2;
#  198|         av += 2;
#  199|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  200|         testToRun = i;
#  201|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1389]
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: danger: argument 2 (‘arg’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1390]
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1391]
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: danger: use of uninitialized value ‘*<unknown>’ here
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1392]
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: danger: use of uninitialized value ‘*arg’ here
#  173|     for (i = 0; i < NumTests && testToRun == -1; ++i) {
#  174|       char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
#  175|->     if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
#  176|         testToRun = i;
#  177|         ac -= 2;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1393]
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:179:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:179:38: danger: argument 2 (‘arg’) NULL where non-null expected
#  177|         ac -= 2;
#  178|         av += 2;
#  179|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  180|         testToRun = i;
#  181|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1394]
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:179:38: branch_false: ...to here
FreeRDP-3.16.0/redhat-linux-build/winpr/test/TestWinPR.c:179:38: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  177|         ac -= 2;
#  178|         av += 2;
#  179|->     } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
#  180|         testToRun = i;
#  181|         ac--;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1395]
FreeRDP-3.16.0/server/proxy/pf_channel.c:89:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ret’ should have been deallocated with ‘free’ but was deallocated with ‘channelTracker_free’
FreeRDP-3.16.0/server/proxy/pf_channel.c:66:22: enter_function: entry to ‘channelTracker_new’
FreeRDP-3.16.0/server/proxy/pf_channel.c:69:36: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/server/proxy/pf_channel.c:70:12: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
FreeRDP-3.16.0/server/proxy/pf_channel.c:75:9: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_channel.c:81:14: call_function: calling ‘channelTracker_resetCurrentPacket’ from ‘channelTracker_new’
FreeRDP-3.16.0/server/proxy/pf_channel.c:81:14: return_function: returning to ‘channelTracker_new’ from ‘channelTracker_resetCurrentPacket’
FreeRDP-3.16.0/server/proxy/pf_channel.c:81:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/server/proxy/pf_channel.c:82:17: branch_true: ...to here
FreeRDP-3.16.0/server/proxy/pf_channel.c:89:9: danger: deallocated with ‘channelTracker_free’ here; allocation at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1) expects deallocation with ‘free’
#   87|   	WINPR_PRAGMA_DIAG_PUSH
#   88|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#   89|-> 	channelTracker_free(ret);
#   90|   	WINPR_PRAGMA_DIAG_POP
#   91|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1396]
FreeRDP-3.16.0/server/proxy/pf_channel.c:166:9: warning[-Wanalyzer-use-after-free]: use after ‘channelTracker_free’ of ‘t’
FreeRDP-3.16.0/server/proxy/pf_channel.c:66:22: enter_function: entry to ‘channelTracker_new’
FreeRDP-3.16.0/server/proxy/pf_channel.c:69:36: acquire_memory: allocated here
FreeRDP-3.16.0/server/proxy/pf_channel.c:70:12: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
FreeRDP-3.16.0/server/proxy/pf_channel.c:75:9: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_channel.c:81:14: call_function: calling ‘channelTracker_resetCurrentPacket’ from ‘channelTracker_new’
FreeRDP-3.16.0/server/proxy/pf_channel.c:81:14: return_function: returning to ‘channelTracker_new’ from ‘channelTracker_resetCurrentPacket’
FreeRDP-3.16.0/server/proxy/pf_channel.c:81:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/server/proxy/pf_channel.c:82:17: branch_true: ...to here
FreeRDP-3.16.0/server/proxy/pf_channel.c:89:9: release_memory: deallocated here
FreeRDP-3.16.0/server/proxy/pf_channel.c:89:9: call_function: calling ‘channelTracker_free’ from ‘channelTracker_new’
#  164|   		return;
#  165|   
#  166|-> 	Stream_Free(t->currentPacket, TRUE);
#  167|   	free(t);
#  168|   }

Error: CPPCHECK_WARNING (CWE-415): [#def1397]
FreeRDP-3.16.0/server/proxy/pf_client.c:931: error[doubleFree]: Memory pointed to by 'pv' is freed twice.
#  929|   
#  930|   		cnv.cpv = dst->channel_name;
#  931|-> 		free(cnv.pv);
#  932|   		free(dst);
#  933|   	}

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1398]
FreeRDP-3.16.0/server/proxy/pf_config.c:847:9: warning[-Wanalyzer-use-after-free]: use after ‘pf_server_config_free’ of ‘config’
FreeRDP-3.16.0/server/proxy/pf_config.c:947:6: enter_function: entry to ‘pf_config_clone’
FreeRDP-3.16.0/server/proxy/pf_config.c:949:28: acquire_memory: allocated here
FreeRDP-3.16.0/server/proxy/pf_config.c:954:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.16.0/server/proxy/pf_config.c:957:9: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_config.c:959:14: call_function: inlined call to ‘pf_config_copy_string’ from ‘pf_config_clone’
FreeRDP-3.16.0/server/proxy/pf_config.c:961:54: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_config.c:961:14: call_function: inlined call to ‘pf_config_copy_string’ from ‘pf_config_clone’
FreeRDP-3.16.0/server/proxy/pf_config.c:965:41: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_config.c:964:14: call_function: inlined call to ‘pf_config_copy_string_list’ from ‘pf_config_clone’
FreeRDP-3.16.0/server/proxy/pf_config.c:966:17: branch_true: ...to here
FreeRDP-3.16.0/server/proxy/pf_config.c:1001:9: release_memory: deallocated here
FreeRDP-3.16.0/server/proxy/pf_config.c:1001:9: call_function: calling ‘pf_server_config_free’ from ‘pf_config_clone’
#  845|   		return;
#  846|   
#  847|-> 	CommandLineParserFree(config->Passthrough);
#  848|   	CommandLineParserFree(config->Intercept);
#  849|   	CommandLineParserFree(config->RequiredPlugins);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1399]
FreeRDP-3.16.0/server/proxy/pf_config.c:1001:9: warning[-Wanalyzer-mismatching-deallocation]: ‘tmp’ should have been deallocated with ‘free’ but was deallocated with ‘pf_server_config_free’
FreeRDP-3.16.0/server/proxy/pf_config.c:947:6: enter_function: entry to ‘pf_config_clone’
FreeRDP-3.16.0/server/proxy/pf_config.c:949:28: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/server/proxy/pf_config.c:954:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.16.0/server/proxy/pf_config.c:957:9: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_config.c:959:14: call_function: inlined call to ‘pf_config_copy_string’ from ‘pf_config_clone’
FreeRDP-3.16.0/server/proxy/pf_config.c:961:54: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_config.c:961:14: call_function: inlined call to ‘pf_config_copy_string’ from ‘pf_config_clone’
FreeRDP-3.16.0/server/proxy/pf_config.c:965:41: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_config.c:964:14: call_function: inlined call to ‘pf_config_copy_string_list’ from ‘pf_config_clone’
FreeRDP-3.16.0/server/proxy/pf_config.c:966:17: branch_true: ...to here
FreeRDP-3.16.0/server/proxy/pf_config.c:1001:9: danger: deallocated with ‘pf_server_config_free’ here; allocation at [(2)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/1) expects deallocation with ‘free’
#  999|   	WINPR_PRAGMA_DIAG_PUSH
# 1000|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1001|-> 	pf_server_config_free(tmp);
# 1002|   	WINPR_PRAGMA_DIAG_POP
# 1003|   	return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1400]
FreeRDP-3.16.0/server/proxy/pf_context.c:118:9: warning[-Wanalyzer-use-after-free]: use after ‘StaticChannelContext_free’ of ‘ctx’
FreeRDP-3.16.0/server/proxy/pf_context.c:124:13: enter_function: entry to ‘HashStaticChannelContext_free’
FreeRDP-3.16.0/server/proxy/pf_context.c:127:9: release_memory: deallocated here
FreeRDP-3.16.0/server/proxy/pf_context.c:127:9: call_function: calling ‘StaticChannelContext_free’ from ‘HashStaticChannelContext_free’
#  116|   		return;
#  117|   
#  118|-> 	IFCALL(ctx->contextDtor, ctx->context);
#  119|   
#  120|   	free(ctx->channel_name);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1401]
FreeRDP-3.16.0/server/proxy/pf_context.c:362:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pdata’ should have been deallocated with ‘free’ but was deallocated with ‘proxy_data_free’
FreeRDP-3.16.0/server/proxy/pf_context.c:332:17: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/server/proxy/pf_context.c:333:12: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
FreeRDP-3.16.0/server/proxy/pf_context.c:336:36: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_context.c:336:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/server/proxy/pf_context.c:337:17: branch_true: ...to here
FreeRDP-3.16.0/server/proxy/pf_context.c:362:9: danger: deallocated with ‘proxy_data_free’ here; allocation at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  360|   	WINPR_PRAGMA_DIAG_PUSH
#  361|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  362|-> 	proxy_data_free(pdata);
#  363|   	WINPR_PRAGMA_DIAG_POP
#  364|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1402]
FreeRDP-3.16.0/server/proxy/pf_context.c:390:13: warning[-Wanalyzer-use-after-free]: use after ‘proxy_data_free’ of ‘pdata’
FreeRDP-3.16.0/server/proxy/pf_context.c:326:12: enter_function: entry to ‘proxy_data_new’
FreeRDP-3.16.0/server/proxy/pf_context.c:332:17: acquire_memory: allocated here
FreeRDP-3.16.0/server/proxy/pf_context.c:333:12: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
FreeRDP-3.16.0/server/proxy/pf_context.c:336:36: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_context.c:362:9: release_memory: deallocated here
FreeRDP-3.16.0/server/proxy/pf_context.c:362:9: call_function: calling ‘proxy_data_free’ from ‘proxy_data_new’
#  388|   		return;
#  389|   
#  390|-> 	if (pdata->abort_event)
#  391|   		(void)CloseHandle(pdata->abort_event);
#  392|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1403]
FreeRDP-3.16.0/server/proxy/pf_server.c:977:9: warning[-Wanalyzer-mismatching-deallocation]: ‘server’ should have been deallocated with ‘free’ but was deallocated with ‘pf_server_free’
FreeRDP-3.16.0/server/proxy/pf_server.c:930:18: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/server/proxy/pf_server.c:931:12: branch_false: following ‘false’ branch (when ‘server’ is non-NULL)...
FreeRDP-3.16.0/server/proxy/pf_server.c:934:14: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_server.c:934:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/server/proxy/pf_server.c:935:17: branch_true: ...to here
FreeRDP-3.16.0/server/proxy/pf_server.c:977:9: danger: deallocated with ‘pf_server_free’ here; allocation at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  975|   	WINPR_PRAGMA_DIAG_PUSH
#  976|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  977|-> 	pf_server_free(server);
#  978|   	WINPR_PRAGMA_DIAG_POP
#  979|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1404]
FreeRDP-3.16.0/server/proxy/pf_server.c:1044:15: warning[-Wanalyzer-use-after-free]: use after ‘pf_server_free’ of ‘server’
FreeRDP-3.16.0/server/proxy/pf_server.c:923:14: enter_function: entry to ‘pf_server_new’
FreeRDP-3.16.0/server/proxy/pf_server.c:930:18: acquire_memory: allocated here
FreeRDP-3.16.0/server/proxy/pf_server.c:931:12: branch_false: following ‘false’ branch (when ‘server’ is non-NULL)...
FreeRDP-3.16.0/server/proxy/pf_server.c:934:14: branch_false: ...to here
FreeRDP-3.16.0/server/proxy/pf_server.c:977:9: release_memory: deallocated here
FreeRDP-3.16.0/server/proxy/pf_server.c:977:9: call_function: calling ‘pf_server_free’ from ‘pf_server_new’
# 1042|   
# 1043|   	/* signal main thread to stop and wait for the thread to exit */
# 1044|-> 	(void)SetEvent(server->stopEvent);
# 1045|   }
# 1046|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1405]
FreeRDP-3.16.0/server/shadow/shadow_capture.c:328:17: warning[-Wanalyzer-mismatching-deallocation]: ‘capture’ should have been deallocated with ‘free’ but was deallocated with ‘shadow_capture_free’
FreeRDP-3.16.0/server/shadow/shadow_capture.c:317:56: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/server/shadow/shadow_capture.c:319:12: branch_false: following ‘false’ branch (when ‘capture’ is non-NULL)...
FreeRDP-3.16.0/server/shadow/shadow_capture.c:322:9: branch_false: ...to here
FreeRDP-3.16.0/server/shadow/shadow_capture.c:324:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/server/shadow/shadow_capture.c:328:17: branch_true: ...to here
FreeRDP-3.16.0/server/shadow/shadow_capture.c:328:17: danger: deallocated with ‘shadow_capture_free’ here; allocation at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  326|   		WINPR_PRAGMA_DIAG_PUSH
#  327|   		WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  328|-> 		shadow_capture_free(capture);
#  329|   		WINPR_PRAGMA_DIAG_POP
#  330|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def1406]
FreeRDP-3.16.0/server/shadow/shadow_client.c:792:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘domain’
FreeRDP-3.16.0/server/shadow/shadow_client.c:746:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/server/shadow/shadow_client.c:748:21: branch_true: ...to here
FreeRDP-3.16.0/server/shadow/shadow_client.c:748:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/server/shadow/shadow_client.c:749:73: branch_true: ...to here
FreeRDP-3.16.0/server/shadow/shadow_client.c:751:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/server/shadow/shadow_client.c:754:21: branch_false: ...to here
FreeRDP-3.16.0/server/shadow/shadow_client.c:754:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/server/shadow/shadow_client.c:769:14: branch_false: ...to here
FreeRDP-3.16.0/server/shadow/shadow_client.c:792:9: danger: second ‘free’ here
#  790|   fail:
#  791|   	free(user);
#  792|-> 	free(domain);
#  793|   	free(password);
#  794|   	return rc;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1407]
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:114:13: warning[-Wanalyzer-use-after-free]: use after ‘shadow_encoder_free’ of ‘encoder’
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:491:19: enter_function: entry to ‘shadow_encoder_new’
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:495:38: acquire_memory: allocated here
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:497:12: branch_false: following ‘false’ branch (when ‘encoder’ is non-NULL)...
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:500:9: branch_false: ...to here
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:505:13: call_function: calling ‘shadow_encoder_init’ from ‘shadow_encoder_new’
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:505:13: return_function: returning to ‘shadow_encoder_new’ from ‘shadow_encoder_init’
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:505:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:507:17: branch_true: ...to here
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:507:17: release_memory: deallocated here
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:507:17: call_function: calling ‘shadow_encoder_free’ from ‘shadow_encoder_new’
#  112|   static int shadow_encoder_uninit_grid(rdpShadowEncoder* encoder)
#  113|   {
#  114|-> 	if (encoder->gridBuffer)
#  115|   	{
#  116|   		free(encoder->gridBuffer);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1408]
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:507:17: warning[-Wanalyzer-mismatching-deallocation]: ‘encoder’ should have been deallocated with ‘free’ but was deallocated with ‘shadow_encoder_free’
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:491:19: enter_function: entry to ‘shadow_encoder_new’
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:495:38: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:497:12: branch_false: following ‘false’ branch (when ‘encoder’ is non-NULL)...
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:500:9: branch_false: ...to here
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:505:13: call_function: calling ‘shadow_encoder_init’ from ‘shadow_encoder_new’
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:505:13: return_function: returning to ‘shadow_encoder_new’ from ‘shadow_encoder_init’
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:505:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:507:17: branch_true: ...to here
FreeRDP-3.16.0/server/shadow/shadow_encoder.c:507:17: danger: deallocated with ‘shadow_encoder_free’ here; allocation at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1) expects deallocation with ‘free’
#  505|   	if (shadow_encoder_init(encoder) < 0)
#  506|   	{
#  507|-> 		shadow_encoder_free(encoder);
#  508|   		return NULL;
#  509|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1409]
FreeRDP-3.16.0/server/shadow/shadow_encomsp.c:109:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘encomsp_server_context_new(*client.vcm)’
FreeRDP-3.16.0/server/shadow/shadow_encomsp.c:107:37: acquire_memory: this call could return NULL
FreeRDP-3.16.0/server/shadow/shadow_encomsp.c:109:9: danger: ‘encomsp_server_context_new(*client.vcm)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  107|   	encomsp = client->encomsp = encomsp_server_context_new(client->vcm);
#  108|   
#  109|-> 	encomsp->rdpcontext = &client->context;
#  110|   
#  111|   	encomsp->custom = (void*)client;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1410]
FreeRDP-3.16.0/server/shadow/shadow_remdesk.c:32:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘remdesk_server_context_new(*client.vcm)’
FreeRDP-3.16.0/server/shadow/shadow_remdesk.c:31:37: acquire_memory: this call could return NULL
FreeRDP-3.16.0/server/shadow/shadow_remdesk.c:32:9: danger: ‘remdesk_server_context_new(*client.vcm)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   30|   
#   31|   	remdesk = client->remdesk = remdesk_server_context_new(client->vcm);
#   32|-> 	remdesk->rdpcontext = &client->context;
#   33|   
#   34|   	remdesk->custom = (void*)client;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1411]
FreeRDP-3.16.0/server/shadow/shadow_screen.c:90:9: warning[-Wanalyzer-mismatching-deallocation]: ‘screen’ should have been deallocated with ‘free’ but was deallocated with ‘shadow_screen_free’
FreeRDP-3.16.0/server/shadow/shadow_screen.c:33:53: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/server/shadow/shadow_screen.c:35:12: branch_false: following ‘false’ branch (when ‘screen’ is non-NULL)...
FreeRDP-3.16.0/server/shadow/shadow_screen.c:38:9: branch_false: ...to here
FreeRDP-3.16.0/server/shadow/shadow_screen.c:41:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/server/shadow/shadow_screen.c:42:17: branch_true: ...to here
FreeRDP-3.16.0/server/shadow/shadow_screen.c:90:9: danger: deallocated with ‘shadow_screen_free’ here; allocation at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#   88|   	WINPR_PRAGMA_DIAG_PUSH
#   89|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#   90|-> 	shadow_screen_free(screen);
#   91|   	WINPR_PRAGMA_DIAG_POP
#   92|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1412]
FreeRDP-3.16.0/server/shadow/shadow_screen.c:105:13: warning[-Wanalyzer-use-after-free]: use after ‘shadow_screen_free’ of ‘screen’
FreeRDP-3.16.0/server/shadow/shadow_screen.c:28:18: enter_function: entry to ‘shadow_screen_new’
FreeRDP-3.16.0/server/shadow/shadow_screen.c:33:53: acquire_memory: allocated here
FreeRDP-3.16.0/server/shadow/shadow_screen.c:35:12: branch_false: following ‘false’ branch (when ‘screen’ is non-NULL)...
FreeRDP-3.16.0/server/shadow/shadow_screen.c:38:9: branch_false: ...to here
FreeRDP-3.16.0/server/shadow/shadow_screen.c:90:9: release_memory: deallocated here
FreeRDP-3.16.0/server/shadow/shadow_screen.c:90:9: call_function: calling ‘shadow_screen_free’ from ‘shadow_screen_new’
#  103|   	region16_uninit(&(screen->invalidRegion));
#  104|   
#  105|-> 	if (screen->primary)
#  106|   	{
#  107|   		shadow_surface_free(screen->primary);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1413]
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:243:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:243:9: danger: ‘pipefd[0]’ leaks here
#  241|   
#  242|   	wl_data_offer_receive(seat->offer, mime, pipefd[1]);
#  243|-> 	close(pipefd[1]);
#  244|   	wl_display_roundtrip(seat->display->display);
#  245|   	wl_display_flush(seat->display->display);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1414]
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:244:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:244:9: danger: ‘pipefd[0]’ leaks here
#  242|   	wl_data_offer_receive(seat->offer, mime, pipefd[1]);
#  243|   	close(pipefd[1]);
#  244|-> 	wl_display_roundtrip(seat->display->display);
#  245|   	wl_display_flush(seat->display->display);
#  246|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1415]
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:245:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:245:9: danger: ‘pipefd[0]’ leaks here
#  243|   	close(pipefd[1]);
#  244|   	wl_display_roundtrip(seat->display->display);
#  245|-> 	wl_display_flush(seat->display->display);
#  246|   
#  247|   	do

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1416]
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:253:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:249:20: branch_false: following ‘false’ branch (when ‘alloc <= 18446744073709550590’)...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:252:17: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:253:29: danger: ‘pipefd[0]’ leaks here
#  251|   
#  252|   		alloc += 1024;
#  253|-> 		void* tmp = xrealloc(data, alloc);
#  254|   		if (!tmp)
#  255|   			goto fail;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1417]
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:269:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:249:20: branch_false: following ‘false’ branch (when ‘alloc <= 18446744073709550590’)...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:252:17: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:254:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:259:20: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:259:20: branch_false: following ‘false’ branch (when ‘pos < alloc’)...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:262:21: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:265:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:267:18: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:269:9: danger: ‘pipefd[0]’ leaks here
#  267|   	} while (r > 0);
#  268|   
#  269|-> 	close(pipefd[0]);
#  270|   
#  271|   	if (alloc > 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1418]
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:280:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:249:20: branch_false: following ‘false’ branch (when ‘alloc <= 18446744073709550590’)...
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:252:17: branch_false: ...to here
FreeRDP-3.16.0/uwac/libuwac/uwac-clipboard.c:280:9: danger: ‘pipefd[0]’ leaks here
#  278|   fail:
#  279|   	free(data);
#  280|-> 	close(pipefd[0]);
#  281|   	return NULL;
#  282|   }

Error: COMPILER_WARNING (CWE-252): [#def1419]
FreeRDP-3.16.0/winpr/libwinpr/utils/debug.c:36: included_from: Included from here.
FreeRDP-3.16.0/winpr/libwinpr/utils/debug.c: scope_hint: In function ‘winpr_backtrace_symbols_fd’
FreeRDP-3.16.0/winpr/include/winpr/crt.h:42:16: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#   42 | #define _write write
FreeRDP-3.16.0/winpr/libwinpr/utils/debug.c:163:31: note: in expansion of macro ‘_write’
#  163 |                         (void)_write(fd, lines[i], (unsigned)strnlen(lines[i], LINE_LENGTH_MAX));
#      |                               ^~~~~~
#   40|   
#   41|   #ifndef _write
#   42|-> #define _write write
#   43|   #endif
#   44|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1420]
FreeRDP-3.16.0/winpr/include/winpr/stream.h:216:56: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1780:13: enter_function: entry to ‘rdg_process_control_packet’
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1787:12: branch_false: following ‘false’ branch (when ‘packetLength > 7’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1793:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1793:12: branch_false: following ‘false’ branch (when ‘payloadSize == 0’)...
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1834:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/gateway/rdg.c:1838:34: call_function: calling ‘rdg_process_close_packet’ from ‘rdg_process_control_packet’
#  214|   		WINPR_ASSERT(Stream_GetRemainingLength(_s) >= typesize);
#  215|   
#  216|-> 		const UINT32 v = winpr_Data_Get_UINT32(_s->pointer);
#  217|   		if (seek)
#  218|   			Stream_Seek(_s, typesize);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1421]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&dev_name, 0)’
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:141:21: enter_function: entry to ‘audin_oss_thread_func’
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:154:12: branch_false: following ‘false’ branch (when ‘arg’ is non-NULL)...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:160:13: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:27: acquire_resource: opened here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:29: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:64: branch_true: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:17: call_function: inlined call to ‘OSS_LOG_ERR’ from ‘audin_oss_thread_func’
 branch_true: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:17: call_function: inlined call to ‘OSS_LOG_ERR’ from ‘audin_oss_thread_func’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1422]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1281:13: enter_function: entry to ‘xf_process_pipe’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1293:22: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1305:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘xf_process_pipe’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1423]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:563:8: enter_function: entry to ‘CreateNamedPipeA’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:668:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:669:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘CreateNamedPipeA’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1424]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1114:5: enter_function: entry to ‘freerdp_tcp_default_connect’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1123:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1130:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1137:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1147:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1149:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1149:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1153:26: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1153:26: acquire_resource: stream socket created here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1154:20: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1163:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1174:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_tcp_default_connect’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1425]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1023:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1026:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1031:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘FileCreateFileA’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1426]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1427]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1428]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(file_descriptor_count * 592 + 4))’
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:193:6: enter_function: entry to ‘cliprdr_serialize_file_list_ex’
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:201:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:204:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:211:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:214:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:216:28: branch_true: following ‘true’ branch (when ‘i < file_descriptor_count’)...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:218:69: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:227:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:229:30: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:231:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘cliprdr_serialize_file_list_ex’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1429]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *<unknown>.capacity + 16)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1430]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:427:21: enter_function: entry to ‘remdesk_server_thread’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:436:22: acquire_memory: allocated here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:455:17: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:455:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘remdesk_server_thread’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1431]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, nSize + eSize + 16)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1432]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(*file.ConnectionString2)’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1488:5: enter_function: entry to ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1491:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1495:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1498:14: call_function: inlined call to ‘update_connectionstring2_nocopy’ from ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1500:14: call_function: calling ‘update_password’ from ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1500:14: return_function: returning to ‘freerdp_assistance_set_connection_string2’ from ‘update_password’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1500:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1502:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1502:16: call_function: calling ‘freerdp_assistance_parse_connection_string2’ from ‘freerdp_assistance_set_connection_string2’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1433]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:390:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:396:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:396:25: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:404:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:404:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1434]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘abuffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1184:5: enter_function: entry to ‘freerdp_assistance_parse_file_buffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1193:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1199:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1199:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1201:12: branch_true: following ‘true’ branch (when ‘size == len’)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1202:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1202:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file_buffer’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1435]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array((long unsigned int)freerdp_settings_get_uint32(settings, 384))’
FreeRDP-3.16.0/libfreerdp/core/settings.c:535:13: enter_function: entry to ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.16.0/libfreerdp/core/settings.c:539:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: call_function: calling ‘alloc_array’ from ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: return_function: returning to ‘freerdp_settings_client_monitors_have_gaps’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:545:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:548:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:549:21: call_function: calling ‘monitor_has_gaps’ from ‘freerdp_settings_client_monitors_have_gaps’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1436]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array(count)’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1437]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1212:5: enter_function: entry to ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:14: call_function: calling ‘update_name’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:14: return_function: returning to ‘freerdp_assistance_parse_file’ from ‘update_name’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1227:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1229:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1235:15: call_function: inlined call to ‘_fseeki64’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1239:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1246:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1246:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1248:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1254:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1258:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1262:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1264:12: branch_true: following ‘true’ branch (when ‘readSize == 0’)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1266:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1266:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1438]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1439]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘cert_list’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1440]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1441]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
FreeRDP-3.16.0/libfreerdp/core/peer.c:1444:15: enter_function: entry to ‘freerdp_peer_new’
FreeRDP-3.16.0/libfreerdp/core/peer.c:1448:47: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1450:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1453:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1456:12: branch_true: following ‘true’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1458:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1458:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1462:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1462:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_peer_new’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1442]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘colorTable’
FreeRDP-3.16.0/libfreerdp/cache/palette.c:35:13: enter_function: entry to ‘update_gdi_cache_color_table’
FreeRDP-3.16.0/libfreerdp/cache/palette.c:40:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/palette.c:42:12: branch_false: following ‘false’ branch (when ‘colorTable’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/palette.c:45:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/palette.c:46:9: call_function: calling ‘palette_cache_put’ from ‘update_gdi_cache_color_table’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1443]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:319:23: enter_function: entry to ‘encomsp_server_context_new’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:322:42: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:324:12: branch_true: following ‘true’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:326:17: branch_true: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:331:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:333:25: branch_true: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:333:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘encomsp_server_context_new’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1444]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘vgids_new’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1445]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:121:13: enter_function: entry to ‘update_gdi_cache_brush’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:134:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:136:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/brush.c:139:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:140:9: call_function: calling ‘brush_cache_put’ from ‘update_gdi_cache_brush’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1446]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘distance’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:452:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1447]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1448]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:932:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:934:33: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:934:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_VideoData’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1449]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1568:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1585:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1585:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘tls_config_check_certificate’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1450]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash(cert, "sha256")’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1366:7: enter_function: entry to ‘freerdp_certificate_get_fingerprint’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1368:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1368:16: call_function: calling ‘freerdp_certificate_get_fingerprint_by_hash’ from ‘freerdp_certificate_get_fingerprint’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1451]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  hash, 1)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1371:7: enter_function: entry to ‘freerdp_certificate_get_fingerprint_by_hash’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1373:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1373:16: call_function: calling ‘freerdp_certificate_get_fingerprint_by_hash_ex’ from ‘freerdp_certificate_get_fingerprint_by_hash’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1452]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 0, & eSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1453]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 1, & nSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1454]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_pem_ex(cert,  pLength, 1)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1491:7: enter_function: entry to ‘freerdp_certificate_get_pem’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: call_function: calling ‘freerdp_certificate_get_pem_ex’ from ‘freerdp_certificate_get_pem’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1455]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:259:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_file_enc’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1456]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new_from_pem_enc(pem, 0)’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:230:16: enter_function: entry to ‘freerdp_key_new_from_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: call_function: calling ‘freerdp_key_new_from_pem_enc’ from ‘freerdp_key_new_from_pem’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1457]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_peer_new(peer_sockfd)’
FreeRDP-3.16.0/libfreerdp/core/listener.c:435:13: enter_function: entry to ‘freerdp_check_and_create_client’
FreeRDP-3.16.0/libfreerdp/core/listener.c:443:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:449:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:449:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/listener.c:450:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:456:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:456:14: call_function: calling ‘freerdp_peer_set_local_and_hostname’ from ‘freerdp_check_and_create_client’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1458]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1246:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1246:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘load_layouts’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1459]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘message’
FreeRDP-3.16.0/libfreerdp/core/message.c:2879:17: enter_function: entry to ‘update_message_proxy_new’
FreeRDP-3.16.0/libfreerdp/core/message.c:2883:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:12: branch_false: following ‘false’ branch (when ‘message’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/message.c:2889:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/message.c:2890:9: call_function: calling ‘update_message_register_interface’ from ‘update_message_proxy_new’
FreeRDP-3.16.0/libfreerdp/core/message.c:2890:9: return_function: returning to ‘update_message_proxy_new’ from ‘update_message_register_interface’
FreeRDP-3.16.0/libfreerdp/core/message.c:2892:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/message.c:2894:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/message.c:2894:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_proxy_new’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1460]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘monitorDefArray’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1105:13: enter_function: entry to ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1112:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1115:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1117:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1120:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1120:41: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1122:12: branch_false: following ‘false’ branch (when ‘monitorDefArray’ is non-NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1125:32: branch_true: following ‘true’ branch (when ‘index < v’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1127:56: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1128:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1129:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1130:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1131:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1132:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1125:32: branch_false: following ‘false’ branch (when ‘index >= v’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘rdp_recv_monitor_layout_pdu’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1461]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1670:6: enter_function: entry to ‘freerdp_certificate_publickey_encrypt’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1681:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1684:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1685:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1688:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1689:18: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1690:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1692:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1698:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_certificate_publickey_encrypt’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1462]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘parent’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:458:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1463]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:189:7: enter_function: entry to ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:202:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:203:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:205:30: call_function: inlined call to ‘_ftelli64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:208:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:209:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:212:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:212:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:213:12: branch_false: following ‘false’ branch (when ‘pem’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:216:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:217:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:218:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:228:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘crypto_read_pem’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1464]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘rdp_info_package_flags_description(flags)’
FreeRDP-3.16.0/libfreerdp/core/info.c:743:13: enter_function: entry to ‘rdp_write_info_packet’
FreeRDP-3.16.0/libfreerdp/core/info.c:813:43: call_function: calling ‘rdp_info_package_flags_description’ from ‘rdp_write_info_packet’
FreeRDP-3.16.0/libfreerdp/core/info.c:813:43: return_function: returning to ‘rdp_write_info_packet’ from ‘rdp_info_package_flags_description’
FreeRDP-3.16.0/libfreerdp/core/info.c:815:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/info.c:817:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/info.c:817:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘rdp_write_info_packet’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1465]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1466]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:640:7: enter_function: entry to ‘freerdp_key_get_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:644:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:651:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:653:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:659:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:667:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:673:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:673:15: call_function: calling ‘bio_read_pem’ from ‘freerdp_key_get_pem’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1467]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_bitmap_update(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1468]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_palette(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1469]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_cached(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1470]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_color(update,  s, 24)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1471]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_large(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1472]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_new(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1473]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_position(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1474]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:524:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1475]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘videoContext’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1237:53: acquire_memory: allocated here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1476]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘videoPlugin’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: acquire_memory: allocated here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_true: following ‘true’ branch (when ‘videoContext’ is NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1240:25: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1240:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_DVCPluginEntry’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1477]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘visited’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:455:27: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1478]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-malloc-leak]: leak of ‘window_icon.iconInfo’
FreeRDP-3.16.0/libfreerdp/core/window.c:1137:6: enter_function: entry to ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1147:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1150:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1151:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1153:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: call_function: calling ‘update_recv_window_info_order’ from ‘update_recv_altsec_window_order’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1479]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:207:42: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.16.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/location/client/location_main.c:379:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/location/client/location_main.c:383:66: branch_false: ...to here
FreeRDP-3.16.0/channels/location/client/location_main.c:397:39: call_function: calling ‘location_send_location2d_delta’ from ‘location_send’
#  205|   		static wLog* log_cached_ptr = NULL;
#  206|   		if (!log_cached_ptr)
#  207|-> 			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1480]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&dev_name, 0)’
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:141:21: enter_function: entry to ‘audin_oss_thread_func’
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:154:12: branch_false: following ‘false’ branch (when ‘arg’ is non-NULL)...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:160:13: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:27: acquire_resource: opened here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:29: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:64: branch_true: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:17: call_function: inlined call to ‘OSS_LOG_ERR’ from ‘audin_oss_thread_func’
 branch_true: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:17: call_function: inlined call to ‘OSS_LOG_ERR’ from ‘audin_oss_thread_func’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1481]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1281:13: enter_function: entry to ‘xf_process_pipe’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1293:22: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1305:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘xf_process_pipe’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1482]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:563:8: enter_function: entry to ‘CreateNamedPipeA’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:668:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:669:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘CreateNamedPipeA’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1483]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1114:5: enter_function: entry to ‘freerdp_tcp_default_connect’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1123:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1130:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1137:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1147:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1149:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1149:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1153:26: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1153:26: acquire_resource: stream socket created here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1154:20: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1163:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1174:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_tcp_default_connect’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1484]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1023:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1026:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1031:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘FileCreateFileA’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1485]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1486]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1487]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(file_descriptor_count * 592 + 4))’
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:193:6: enter_function: entry to ‘cliprdr_serialize_file_list_ex’
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:201:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:204:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:211:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:214:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:216:28: branch_true: following ‘true’ branch (when ‘i < file_descriptor_count’)...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:218:69: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:227:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:229:30: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:231:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘cliprdr_serialize_file_list_ex’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1488]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *<unknown>.capacity + 16)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1489]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:427:21: enter_function: entry to ‘remdesk_server_thread’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:436:22: acquire_memory: allocated here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:455:17: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:455:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘remdesk_server_thread’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1490]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, nSize + eSize + 16)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1491]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(*file.ConnectionString2)’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1488:5: enter_function: entry to ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1491:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1495:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1498:14: call_function: inlined call to ‘update_connectionstring2_nocopy’ from ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1500:14: call_function: calling ‘update_password’ from ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1500:14: return_function: returning to ‘freerdp_assistance_set_connection_string2’ from ‘update_password’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1500:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1502:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1502:16: call_function: calling ‘freerdp_assistance_parse_connection_string2’ from ‘freerdp_assistance_set_connection_string2’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1492]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:390:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:396:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:396:25: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:404:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:404:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1493]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘abuffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1184:5: enter_function: entry to ‘freerdp_assistance_parse_file_buffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1193:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1199:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1199:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1201:12: branch_true: following ‘true’ branch (when ‘size == len’)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1202:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1202:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file_buffer’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1494]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array((long unsigned int)freerdp_settings_get_uint32(settings, 384))’
FreeRDP-3.16.0/libfreerdp/core/settings.c:535:13: enter_function: entry to ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.16.0/libfreerdp/core/settings.c:539:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: call_function: calling ‘alloc_array’ from ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: return_function: returning to ‘freerdp_settings_client_monitors_have_gaps’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:545:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:548:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:549:21: call_function: calling ‘monitor_has_gaps’ from ‘freerdp_settings_client_monitors_have_gaps’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1495]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array(count)’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1496]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1212:5: enter_function: entry to ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:14: call_function: calling ‘update_name’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:14: return_function: returning to ‘freerdp_assistance_parse_file’ from ‘update_name’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1227:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1229:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1235:15: call_function: inlined call to ‘_fseeki64’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1239:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1246:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1246:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1248:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1254:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1258:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1262:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1264:12: branch_true: following ‘true’ branch (when ‘readSize == 0’)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1266:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1266:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1497]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1498]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘cert_list’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1499]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1500]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
FreeRDP-3.16.0/libfreerdp/core/peer.c:1444:15: enter_function: entry to ‘freerdp_peer_new’
FreeRDP-3.16.0/libfreerdp/core/peer.c:1448:47: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1450:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1453:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1456:12: branch_true: following ‘true’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1458:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1458:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1462:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1462:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_peer_new’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1501]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘colorTable’
FreeRDP-3.16.0/libfreerdp/cache/palette.c:35:13: enter_function: entry to ‘update_gdi_cache_color_table’
FreeRDP-3.16.0/libfreerdp/cache/palette.c:40:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/palette.c:42:12: branch_false: following ‘false’ branch (when ‘colorTable’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/palette.c:45:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/palette.c:46:9: call_function: calling ‘palette_cache_put’ from ‘update_gdi_cache_color_table’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1502]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:319:23: enter_function: entry to ‘encomsp_server_context_new’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:322:42: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:324:12: branch_true: following ‘true’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:326:17: branch_true: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:331:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:333:25: branch_true: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:333:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘encomsp_server_context_new’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1503]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘vgids_new’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1504]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:121:13: enter_function: entry to ‘update_gdi_cache_brush’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:134:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:136:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/brush.c:139:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:140:9: call_function: calling ‘brush_cache_put’ from ‘update_gdi_cache_brush’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1505]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘distance’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:452:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1506]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1507]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:932:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:934:33: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:934:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_VideoData’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1508]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1568:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1585:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1585:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘tls_config_check_certificate’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1509]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash(cert, "sha256")’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1366:7: enter_function: entry to ‘freerdp_certificate_get_fingerprint’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1368:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1368:16: call_function: calling ‘freerdp_certificate_get_fingerprint_by_hash’ from ‘freerdp_certificate_get_fingerprint’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1510]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  hash, 1)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1371:7: enter_function: entry to ‘freerdp_certificate_get_fingerprint_by_hash’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1373:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1373:16: call_function: calling ‘freerdp_certificate_get_fingerprint_by_hash_ex’ from ‘freerdp_certificate_get_fingerprint_by_hash’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1511]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 0, & eSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1512]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 1, & nSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1513]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_pem_ex(cert,  pLength, 1)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1491:7: enter_function: entry to ‘freerdp_certificate_get_pem’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: call_function: calling ‘freerdp_certificate_get_pem_ex’ from ‘freerdp_certificate_get_pem’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1514]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:259:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_file_enc’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1515]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new_from_pem_enc(pem, 0)’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:230:16: enter_function: entry to ‘freerdp_key_new_from_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: call_function: calling ‘freerdp_key_new_from_pem_enc’ from ‘freerdp_key_new_from_pem’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1516]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_peer_new(peer_sockfd)’
FreeRDP-3.16.0/libfreerdp/core/listener.c:435:13: enter_function: entry to ‘freerdp_check_and_create_client’
FreeRDP-3.16.0/libfreerdp/core/listener.c:443:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:449:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:449:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/listener.c:450:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:456:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:456:14: call_function: calling ‘freerdp_peer_set_local_and_hostname’ from ‘freerdp_check_and_create_client’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1517]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1246:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1246:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘load_layouts’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1518]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘message’
FreeRDP-3.16.0/libfreerdp/core/message.c:2879:17: enter_function: entry to ‘update_message_proxy_new’
FreeRDP-3.16.0/libfreerdp/core/message.c:2883:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:12: branch_false: following ‘false’ branch (when ‘message’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/message.c:2889:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/message.c:2890:9: call_function: calling ‘update_message_register_interface’ from ‘update_message_proxy_new’
FreeRDP-3.16.0/libfreerdp/core/message.c:2890:9: return_function: returning to ‘update_message_proxy_new’ from ‘update_message_register_interface’
FreeRDP-3.16.0/libfreerdp/core/message.c:2892:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/message.c:2894:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/message.c:2894:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_proxy_new’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1519]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘monitorDefArray’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1105:13: enter_function: entry to ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1112:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1115:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1117:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1120:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1120:41: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1122:12: branch_false: following ‘false’ branch (when ‘monitorDefArray’ is non-NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1125:32: branch_true: following ‘true’ branch (when ‘index < v’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1127:56: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1128:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1129:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1130:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1131:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1132:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1125:32: branch_false: following ‘false’ branch (when ‘index >= v’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘rdp_recv_monitor_layout_pdu’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1520]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1670:6: enter_function: entry to ‘freerdp_certificate_publickey_encrypt’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1681:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1684:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1685:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1688:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1689:18: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1690:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1692:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1698:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_certificate_publickey_encrypt’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1521]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘parent’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:458:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1522]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:189:7: enter_function: entry to ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:202:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:203:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:205:30: call_function: inlined call to ‘_ftelli64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:208:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:209:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:212:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:212:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:213:12: branch_false: following ‘false’ branch (when ‘pem’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:216:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:217:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:218:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:228:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘crypto_read_pem’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1523]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘rdp_info_package_flags_description(flags)’
FreeRDP-3.16.0/libfreerdp/core/info.c:743:13: enter_function: entry to ‘rdp_write_info_packet’
FreeRDP-3.16.0/libfreerdp/core/info.c:813:43: call_function: calling ‘rdp_info_package_flags_description’ from ‘rdp_write_info_packet’
FreeRDP-3.16.0/libfreerdp/core/info.c:813:43: return_function: returning to ‘rdp_write_info_packet’ from ‘rdp_info_package_flags_description’
FreeRDP-3.16.0/libfreerdp/core/info.c:815:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/info.c:817:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/info.c:817:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘rdp_write_info_packet’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1524]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1525]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:640:7: enter_function: entry to ‘freerdp_key_get_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:644:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:651:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:653:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:659:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:667:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:673:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:673:15: call_function: calling ‘bio_read_pem’ from ‘freerdp_key_get_pem’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1526]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_bitmap_update(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1527]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_palette(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1528]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_cached(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1529]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_color(update,  s, 24)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1530]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_large(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1531]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_new(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1532]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_position(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1533]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:524:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1534]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘videoContext’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1237:53: acquire_memory: allocated here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1535]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘videoPlugin’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: acquire_memory: allocated here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_true: following ‘true’ branch (when ‘videoContext’ is NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1240:25: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1240:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_DVCPluginEntry’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1536]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘visited’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:455:27: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1537]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘window_icon.iconInfo’
FreeRDP-3.16.0/libfreerdp/core/window.c:1137:6: enter_function: entry to ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1147:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1150:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1151:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1153:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: call_function: calling ‘update_recv_window_info_order’ from ‘update_recv_altsec_window_order’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1538]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:209:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.16.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/channels/location/client/location_main.c:379:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/location/client/location_main.c:383:66: branch_false: ...to here
FreeRDP-3.16.0/channels/location/client/location_main.c:397:39: call_function: calling ‘location_send_location2d_delta’ from ‘location_send’
#  207|   			log_cached_ptr = WLog_Get(tag);
#  208|   
#  209|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  210|   		{
#  211|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1539]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&dev_name, 0)’
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:141:21: enter_function: entry to ‘audin_oss_thread_func’
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:154:12: branch_false: following ‘false’ branch (when ‘arg’ is non-NULL)...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:160:13: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:27: acquire_resource: opened here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:168:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:29: branch_false: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:176:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:64: branch_true: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:17: call_function: inlined call to ‘OSS_LOG_ERR’ from ‘audin_oss_thread_func’
 branch_true: ...to here
FreeRDP-3.16.0/channels/audin/client/oss/audin_oss.c:178:17: call_function: inlined call to ‘OSS_LOG_ERR’ from ‘audin_oss_thread_func’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1540]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.16.0/client/X11/xf_client.c:1281:13: enter_function: entry to ‘xf_process_pipe’
FreeRDP-3.16.0/client/X11/xf_client.c:1283:18: acquire_resource: opened here
FreeRDP-3.16.0/client/X11/xf_client.c:1284:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1291:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/client/X11/xf_client.c:1293:22: branch_true: ...to here
FreeRDP-3.16.0/client/X11/xf_client.c:1305:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘xf_process_pipe’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1541]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:563:8: enter_function: entry to ‘CreateNamedPipeA’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:668:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:669:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘CreateNamedPipeA’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1542]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1114:5: enter_function: entry to ‘freerdp_tcp_default_connect’
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1123:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1130:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1137:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1147:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1149:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1149:17: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1153:26: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1153:26: acquire_resource: stream socket created here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1154:20: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1163:36: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/tcp.c:1174:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_tcp_default_connect’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1543]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1023:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1026:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1031:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘FileCreateFileA’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1544]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1545]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1546]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(file_descriptor_count * 592 + 4))’
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:193:6: enter_function: entry to ‘cliprdr_serialize_file_list_ex’
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:201:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:204:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:34: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:210:13: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:211:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:214:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:216:28: branch_true: following ‘true’ branch (when ‘i < file_descriptor_count’)...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:218:69: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:227:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:229:30: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/utils/cliprdr_utils.c:231:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘cliprdr_serialize_file_list_ex’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1547]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *<unknown>.capacity + 16)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1548]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:427:21: enter_function: entry to ‘remdesk_server_thread’
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:436:22: acquire_memory: allocated here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:445:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:455:17: branch_false: ...to here
FreeRDP-3.16.0/channels/remdesk/server/remdesk_main.c:455:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘remdesk_server_thread’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1549]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, nSize + eSize + 16)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1550]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(*file.ConnectionString2)’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1488:5: enter_function: entry to ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1491:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1495:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1498:14: call_function: inlined call to ‘update_connectionstring2_nocopy’ from ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1500:14: call_function: calling ‘update_password’ from ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1500:14: return_function: returning to ‘freerdp_assistance_set_connection_string2’ from ‘update_password’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1500:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1502:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1502:16: call_function: calling ‘freerdp_assistance_parse_connection_string2’ from ‘freerdp_assistance_set_connection_string2’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1551]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:390:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:396:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:396:25: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:404:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:404:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1552]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘abuffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1184:5: enter_function: entry to ‘freerdp_assistance_parse_file_buffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1193:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1199:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1199:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1201:12: branch_true: following ‘true’ branch (when ‘size == len’)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1202:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1202:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file_buffer’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1553]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array((long unsigned int)freerdp_settings_get_uint32(settings, 384))’
FreeRDP-3.16.0/libfreerdp/core/settings.c:535:13: enter_function: entry to ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.16.0/libfreerdp/core/settings.c:539:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: call_function: calling ‘alloc_array’ from ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.16.0/libfreerdp/core/settings.c:542:26: return_function: returning to ‘freerdp_settings_client_monitors_have_gaps’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:545:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:548:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:549:21: call_function: calling ‘monitor_has_gaps’ from ‘freerdp_settings_client_monitors_have_gaps’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1554]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array(count)’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1555]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1212:5: enter_function: entry to ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:14: call_function: calling ‘update_name’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:14: return_function: returning to ‘freerdp_assistance_parse_file’ from ‘update_name’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1227:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1229:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1235:15: call_function: inlined call to ‘_fseeki64’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1239:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1246:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1246:25: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1248:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1254:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1258:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1262:15: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1264:12: branch_true: following ‘true’ branch (when ‘readSize == 0’)...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1266:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1266:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1556]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1557]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cert_list’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1558]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1559]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
FreeRDP-3.16.0/libfreerdp/core/peer.c:1444:15: enter_function: entry to ‘freerdp_peer_new’
FreeRDP-3.16.0/libfreerdp/core/peer.c:1448:47: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1450:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1453:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1456:12: branch_true: following ‘true’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1458:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1458:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/peer.c:1462:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/peer.c:1462:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_peer_new’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1560]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘colorTable’
FreeRDP-3.16.0/libfreerdp/cache/palette.c:35:13: enter_function: entry to ‘update_gdi_cache_color_table’
FreeRDP-3.16.0/libfreerdp/cache/palette.c:40:31: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/palette.c:42:12: branch_false: following ‘false’ branch (when ‘colorTable’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/palette.c:45:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/palette.c:46:9: call_function: calling ‘palette_cache_put’ from ‘update_gdi_cache_color_table’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1561]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:319:23: enter_function: entry to ‘encomsp_server_context_new’
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:322:42: acquire_memory: allocated here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:324:12: branch_true: following ‘true’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:326:17: branch_true: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:331:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:333:25: branch_true: ...to here
FreeRDP-3.16.0/channels/encomsp/server/encomsp_main.c:333:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘encomsp_server_context_new’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1562]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘vgids_new’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1563]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:121:13: enter_function: entry to ‘update_gdi_cache_brush’
FreeRDP-3.16.0/libfreerdp/cache/brush.c:134:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:136:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/cache/brush.c:139:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/cache/brush.c:140:9: call_function: calling ‘brush_cache_put’ from ‘update_gdi_cache_brush’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1564]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘distance’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:452:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1565]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1566]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.16.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.16.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.16.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:932:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:934:33: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:934:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_VideoData’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1567]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1568:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1575:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1577:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1583:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1585:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/tls.c:1585:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘tls_config_check_certificate’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1568]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash(cert, "sha256")’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1366:7: enter_function: entry to ‘freerdp_certificate_get_fingerprint’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1368:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1368:16: call_function: calling ‘freerdp_certificate_get_fingerprint_by_hash’ from ‘freerdp_certificate_get_fingerprint’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1569]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  hash, 1)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1371:7: enter_function: entry to ‘freerdp_certificate_get_fingerprint_by_hash’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1373:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1373:16: call_function: calling ‘freerdp_certificate_get_fingerprint_by_hash_ex’ from ‘freerdp_certificate_get_fingerprint_by_hash’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1570]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 0, & eSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1571]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 1, & nSize)’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1581:6: enter_function: entry to ‘vgids_process_apdu’
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1594:12: branch_false: following ‘false’ branch (when ‘dataSize > 3’)...
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1601:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1609:32: call_function: calling ‘vgids_ins_getdata’ from ‘vgids_process_apdu’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1572]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_pem_ex(cert,  pLength, 1)’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1491:7: enter_function: entry to ‘freerdp_certificate_get_pem’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1493:16: call_function: calling ‘freerdp_certificate_get_pem_ex’ from ‘freerdp_certificate_get_pem’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1573]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:259:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:262:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_file_enc’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1574]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new_from_pem_enc(pem, 0)’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:230:16: enter_function: entry to ‘freerdp_key_new_from_pem’
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/privatekey.c:232:16: call_function: calling ‘freerdp_key_new_from_pem_enc’ from ‘freerdp_key_new_from_pem’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1575]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_peer_new(peer_sockfd)’
FreeRDP-3.16.0/libfreerdp/core/listener.c:435:13: enter_function: entry to ‘freerdp_check_and_create_client’
FreeRDP-3.16.0/libfreerdp/core/listener.c:443:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:449:32: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:449:32: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/listener.c:450:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/listener.c:456:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/listener.c:456:14: call_function: calling ‘freerdp_peer_set_local_and_hostname’ from ‘freerdp_check_and_create_client’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1576]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1246:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/locale/keyboard_layout.c:1246:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘load_layouts’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1577]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘message’
FreeRDP-3.16.0/libfreerdp/core/message.c:2879:17: enter_function: entry to ‘update_message_proxy_new’
FreeRDP-3.16.0/libfreerdp/core/message.c:2883:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:42: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:42: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/message.c:2886:12: branch_false: following ‘false’ branch (when ‘message’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/message.c:2889:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/message.c:2890:9: call_function: calling ‘update_message_register_interface’ from ‘update_message_proxy_new’
FreeRDP-3.16.0/libfreerdp/core/message.c:2890:9: return_function: returning to ‘update_message_proxy_new’ from ‘update_message_register_interface’
FreeRDP-3.16.0/libfreerdp/core/message.c:2892:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/message.c:2894:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/message.c:2894:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_proxy_new’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1578]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘monitorDefArray’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1105:13: enter_function: entry to ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1112:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1115:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1117:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1120:41: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1120:41: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1122:12: branch_false: following ‘false’ branch (when ‘monitorDefArray’ is non-NULL)...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1125:32: branch_true: following ‘true’ branch (when ‘index < v’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1127:56: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1128:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1129:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1130:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1131:17: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1132:17: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1125:32: branch_false: following ‘false’ branch (when ‘index >= v’)...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/rdp.c:1135:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘rdp_recv_monitor_layout_pdu’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1579]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1670:6: enter_function: entry to ‘freerdp_certificate_publickey_encrypt’
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1681:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1684:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1685:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1688:29: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1689:18: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1690:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1692:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/certificate.c:1698:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_certificate_publickey_encrypt’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1580]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘parent’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:458:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1581]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:189:7: enter_function: entry to ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:202:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:203:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:205:30: call_function: inlined call to ‘_ftelli64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:208:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:209:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:212:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:212:15: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:213:12: branch_false: following ‘false’ branch (when ‘pem’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:216:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:217:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:218:17: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/crypto/crypto.c:228:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘crypto_read_pem’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1582]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘rdp_info_package_flags_description(flags)’
FreeRDP-3.16.0/libfreerdp/core/info.c:743:13: enter_function: entry to ‘rdp_write_info_packet’
FreeRDP-3.16.0/libfreerdp/core/info.c:813:43: call_function: calling ‘rdp_info_package_flags_description’ from ‘rdp_write_info_packet’
FreeRDP-3.16.0/libfreerdp/core/info.c:813:43: return_function: returning to ‘rdp_write_info_packet’ from ‘rdp_info_package_flags_description’
FreeRDP-3.16.0/libfreerdp/core/info.c:815:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/info.c:817:25: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/info.c:817:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘rdp_write_info_packet’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1583]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1584]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_bitmap_update(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1585]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_palette(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1586]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_cached(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1587]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_color(update,  s, 24)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1588]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_large(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1589]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_new(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1590]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_position(update,  s)’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/fastpath.c:560:26: call_function: calling ‘fastpath_recv_update’ from ‘fastpath_recv_update_data’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1591]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.16.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.16.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/proxy.c:524:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1592]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘videoContext’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1237:53: acquire_memory: allocated here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1593]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘videoPlugin’
FreeRDP-3.16.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.16.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1225:46: acquire_memory: allocated here
FreeRDP-3.16.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1238:20: branch_true: following ‘true’ branch (when ‘videoContext’ is NULL)...
FreeRDP-3.16.0/channels/video/client/video_main.c:1240:25: branch_true: ...to here
FreeRDP-3.16.0/channels/video/client/video_main.c:1240:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_DVCPluginEntry’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1594]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘visited’
FreeRDP-3.16.0/libfreerdp/core/settings.c:442:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:444:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.16.0/libfreerdp/core/settings.c:449:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.16.0/libfreerdp/core/settings.c:455:27: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/settings.c:461:28: branch_true: following ‘true’ branch (when ‘x < count’)...
 branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:463:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:465:34: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:472:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:474:35: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:484:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:515:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:517:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:37: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:519:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/settings.c:521:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1595]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘window_icon.iconInfo’
FreeRDP-3.16.0/libfreerdp/core/window.c:1137:6: enter_function: entry to ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1147:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1150:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1151:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘update_recv_altsec_window_order’
FreeRDP-3.16.0/libfreerdp/core/window.c:1153:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:37: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1159:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:13: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1165:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/window.c:1166:22: call_function: calling ‘update_recv_window_info_order’ from ‘update_recv_altsec_window_order’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1596]
FreeRDP-3.16.0/winpr/include/winpr/wlog.h:213:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/channels/video/client/video_main.c:1030:13: enter_function: entry to ‘video_control_on_new_channel_connection’
FreeRDP-3.16.0/channels/video/client/video_main.c:1045:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_control_on_new_channel_connection’
#  211|   			va_list ap;
#  212|   			va_start(ap, fkt);
#  213|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  214|   			va_end(ap);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1597]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:204:20: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: following ‘false’ branch (when ‘write == 0’)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:223:23: call_function: inlined call to ‘_fseeki64’ from ‘pcap_open’
#  487|   static inline int _fseeki64(FILE* fp, INT64 offset, int origin)
#  488|   {
#  489|-> 	return fseeko(fp, offset, origin);
#  490|   }
#  491|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1598]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:606:11: enter_function: entry to ‘rdtk_font_new’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:643:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:646:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:647:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:650:29: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:650:29: call_function: calling ‘rdtk_font_load_descriptor’ from ‘rdtk_font_new’
#  487|   static inline int _fseeki64(FILE* fp, INT64 offset, int origin)
#  488|   {
#  489|-> 	return fseeko(fp, offset, origin);
#  490|   }
#  491|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1599]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pcap’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:197:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: following ‘false’ branch (when ‘write == 0’)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:223:23: call_function: inlined call to ‘_fseeki64’ from ‘pcap_open’
#  487|   static inline int _fseeki64(FILE* fp, INT64 offset, int origin)
#  488|   {
#  489|-> 	return fseeko(fp, offset, origin);
#  490|   }
#  491|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1600]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘rdtk_font_load_descriptor_file(filename, & size)’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:593:12: enter_function: entry to ‘rdtk_font_load_descriptor’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:598:24: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:598:24: call_function: calling ‘rdtk_font_load_descriptor_file’ from ‘rdtk_font_load_descriptor’
#  487|   static inline int _fseeki64(FILE* fp, INT64 offset, int origin)
#  488|   {
#  489|-> 	return fseeko(fp, offset, origin);
#  490|   }
#  491|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1601]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘stream_dump_get_file(*context.settings, "ab")’
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:193:9: enter_function: entry to ‘stream_dump_append’
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:201:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:207:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:210:21: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:210:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:213:35: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:213:14: call_function: calling ‘stream_dump_get_file’ from ‘stream_dump_append’
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:213:14: return_function: returning to ‘stream_dump_append’ from ‘stream_dump_get_file’
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:214:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:217:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:217:13: call_function: inlined call to ‘_fseeki64’ from ‘stream_dump_append’
#  487|   static inline int _fseeki64(FILE* fp, INT64 offset, int origin)
#  488|   {
#  489|-> 	return fseeko(fp, offset, origin);
#  490|   }
#  491|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1602]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘stream_dump_get_file(*context.settings, "rb")’
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:240:9: enter_function: entry to ‘stream_dump_get’
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:247:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:249:14: call_function: calling ‘stream_dump_get_file’ from ‘stream_dump_get’
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:249:14: return_function: returning to ‘stream_dump_get’ from ‘stream_dump_get_file’
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:250:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:252:27: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/core/streamdump.c:252:13: call_function: inlined call to ‘_fseeki64’ from ‘stream_dump_get’
#  487|   static inline int _fseeki64(FILE* fp, INT64 offset, int origin)
#  488|   {
#  489|-> 	return fseeko(fp, offset, origin);
#  490|   }
#  491|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1603]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_fopen(filename, "r")’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:593:12: enter_function: entry to ‘rdtk_font_load_descriptor’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:598:24: call_function: calling ‘rdtk_font_load_descriptor_file’ from ‘rdtk_font_load_descriptor’
#  487|   static inline int _fseeki64(FILE* fp, INT64 offset, int origin)
#  488|   {
#  489|-> 	return fseeko(fp, offset, origin);
#  490|   }
#  491|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1604]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_fopen(name, "r")’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1212:5: enter_function: entry to ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:14: call_function: calling ‘update_name’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:14: return_function: returning to ‘freerdp_assistance_parse_file’ from ‘update_name’
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1224:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1227:14: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1227:14: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1229:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/common/assistance.c:1235:15: call_function: inlined call to ‘_fseeki64’ from ‘freerdp_assistance_parse_file’
#  487|   static inline int _fseeki64(FILE* fp, INT64 offset, int origin)
#  488|   {
#  489|-> 	return fseeko(fp, offset, origin);
#  490|   }
#  491|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1605]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_fopen(path, "r+")’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:45:13: enter_function: entry to ‘delete_file’
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:52:28: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:53:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:55:36: branch_true: ...to here
FreeRDP-3.16.0/libfreerdp/core/smartcardlogon.c:57:34: call_function: inlined call to ‘_fseeki64’ from ‘delete_file’
#  487|   static inline int _fseeki64(FILE* fp, INT64 offset, int origin)
#  488|   {
#  489|-> 	return fseeko(fp, offset, origin);
#  490|   }
#  491|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1606]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:495:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: following ‘false’ branch (when ‘write == 0’)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:223:23: call_function: inlined call to ‘_fseeki64’ from ‘pcap_open’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:224:35: call_function: inlined call to ‘_ftelli64’ from ‘pcap_open’
#  493|   static inline INT64 _ftelli64(FILE* fp)
#  494|   {
#  495|-> 	return ftello(fp);
#  496|   }
#  497|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1607]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:495:16: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:606:11: enter_function: entry to ‘rdtk_font_new’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:635:27: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:643:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:646:28: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:647:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:650:29: branch_false: ...to here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:650:29: call_function: calling ‘rdtk_font_load_descriptor’ from ‘rdtk_font_new’
#  493|   static inline INT64 _ftelli64(FILE* fp)
#  494|   {
#  495|-> 	return ftello(fp);
#  496|   }
#  497|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1608]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:495:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pcap’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:197:35: acquire_memory: allocated here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:209:12: branch_false: following ‘false’ branch (when ‘write == 0’)...
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:223:23: call_function: inlined call to ‘_fseeki64’ from ‘pcap_open’
FreeRDP-3.16.0/libfreerdp/utils/pcap.c:224:35: call_function: inlined call to ‘_ftelli64’ from ‘pcap_open’
#  493|   static inline INT64 _ftelli64(FILE* fp)
#  494|   {
#  495|-> 	return ftello(fp);
#  496|   }
#  497|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1609]
FreeRDP-3.16.0/winpr/include/winpr/wtypes.h:495:16: warning[-Wanalyzer-malloc-leak]: leak of ‘rdtk_font_load_descriptor_file(filename, & size)’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:593:12: enter_function: entry to ‘rdtk_font_load_descriptor’
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:598:24: acquire_memory: allocated here
FreeRDP-3.16.0/rdtk/librdtk/rdtk_font.c:598:24: call_function: calling ‘rdtk_font_load_descriptor_file’ from ‘rdtk_font_load_descriptor’
#  493|   static inline INT64 _ftelli64(FILE* fp)
#  494|   {
#  495|-> 	return ftello(fp);
#  496|   }
#  497|   #endif

Error: CPPCHECK_WARNING (CWE-664): [#def1610]
FreeRDP-3.16.0/winpr/libwinpr/comm/comm.c:206: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  204|   	if (!WLog_IsLevelActive(sLog, level))
#  205|   		return;
#  206|-> 	va_list ap = { 0 };
#  207|   	va_start(ap, fkt);
#  208|   	WLog_PrintMessageVA(sLog, WLOG_MESSAGE_TEXT, level, line, file, fkt, ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1611]
FreeRDP-3.16.0/winpr/libwinpr/comm/comm.c:208:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/winpr/libwinpr/comm/comm.c:201:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/comm/comm.c:204:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/comm/comm.c:204:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/comm/comm.c:206:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/comm/comm.c:207:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/winpr/libwinpr/comm/comm.c:208:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  206|   	va_list ap = { 0 };
#  207|   	va_start(ap, fkt);
#  208|-> 	WLog_PrintMessageVA(sLog, WLOG_MESSAGE_TEXT, level, line, file, fkt, ap);
#  209|   	va_end(ap);
#  210|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1612]
FreeRDP-3.16.0/winpr/libwinpr/crt/alignment.c:252:13: warning[-Wanalyzer-use-after-free]: use after ‘winpr_aligned_free’ of ‘memblock’
FreeRDP-3.16.0/winpr/libwinpr/crt/alignment.c:129:7: enter_function: entry to ‘winpr_aligned_offset_realloc’
FreeRDP-3.16.0/winpr/libwinpr/crt/alignment.c:136:12: branch_false: following ‘false’ branch (when ‘memblock’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/crt/alignment.c:141:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crt/alignment.c:141:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/crt/alignment.c:148:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crt/alignment.c:148:12: branch_true: following ‘true’ branch (when ‘size == 0’)...
FreeRDP-3.16.0/winpr/libwinpr/crt/alignment.c:150:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crt/alignment.c:150:17: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/crt/alignment.c:150:17: call_function: calling ‘winpr_aligned_free’ from ‘winpr_aligned_offset_realloc’
#  250|   	pMem = WINPR_ALIGNED_MEM_STRUCT_FROM_PTR(memblock);
#  251|   
#  252|-> 	if (pMem->sig != WINPR_ALIGNED_MEM_SIGNATURE)
#  253|   	{
#  254|   		WLog_ERR(TAG, "_aligned_free: memory block was not allocated by _aligned_malloc!");

Error: CPPCHECK_WARNING (CWE-664): [#def1613]
FreeRDP-3.16.0/winpr/libwinpr/crt/string.c:176: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  174|   int winpr_asprintf(char** s, size_t* slen, WINPR_FORMAT_ARG const char* templ, ...)
#  175|   {
#  176|-> 	va_list ap = { 0 };
#  177|   
#  178|   	va_start(ap, templ);

Error: CPPCHECK_WARNING (CWE-664): [#def1614]
FreeRDP-3.16.0/winpr/libwinpr/crt/string.c:187: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  185|   int winpr_vasprintf(char** s, size_t* slen, WINPR_FORMAT_ARG const char* templ, va_list oap)
#  186|   {
#  187|-> 	va_list ap = { 0 };
#  188|   
#  189|   	*s = NULL;

Error: GCC_ANALYZER_WARNING (CWE-131): [#def1615]
FreeRDP-3.16.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:87:39: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
FreeRDP-3.16.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:1160:5: enter_function: entry to ‘TestUnicodeConversion’
FreeRDP-3.16.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:1165:14: call_function: calling ‘test_conversion’ from ‘TestUnicodeConversion’
#   85|   	WINPR_ASSERT(test);
#   86|   
#   87|-> 	const size_t welen = _wcsnlen(test->utf16, test->utf16len);
#   88|   	if (buffersize > welen)
#   89|   	{

Error: GCC_ANALYZER_WARNING (CWE-131): [#def1616]
FreeRDP-3.16.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:118:28: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
FreeRDP-3.16.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:1160:5: enter_function: entry to ‘TestUnicodeConversion’
FreeRDP-3.16.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:1165:14: call_function: calling ‘test_conversion’ from ‘TestUnicodeConversion’
#  116|   	if (rc >= 0)
#  117|   	{
#  118|-> 		if (memcmp(test->utf16, what, rc * sizeof(WCHAR)) != 0)
#  119|   		{
#  120|   			(void)fprintf(stderr, "%s contents does not match expectations: TODO '%s' != '%s'\n",

Error: GCC_ANALYZER_WARNING (CWE-131): [#def1617]
FreeRDP-3.16.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:193:38: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
FreeRDP-3.16.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:1160:5: enter_function: entry to ‘TestUnicodeConversion’
FreeRDP-3.16.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:1165:14: call_function: calling ‘test_conversion’ from ‘TestUnicodeConversion’
#  191|   
#  192|   	const SSIZE_T rc2 = ConvertUtf8ToWChar(test->utf8, NULL, 0);
#  193|-> 	const size_t wlen = _wcsnlen(test->utf16, test->utf16len);
#  194|   	if ((rc2 < 0) || ((size_t)rc2 != wlen))
#  195|   	{

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1618]
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:128:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ctx’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_RC4_Free’
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:80:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:83:46: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:83:46: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:84:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:95:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:95:12: branch_true: following ‘true’ branch (when ‘keylen > 2147483647’)...
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:96:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:128:9: danger: deallocated with ‘winpr_RC4_Free’ here; allocation at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2) expects deallocation with ‘free’
#  126|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  127|   
#  128|-> 	winpr_RC4_Free(ctx);
#  129|   	WINPR_PRAGMA_DIAG_POP
#  130|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1619]
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:171:9: warning[-Wanalyzer-use-after-free]: use after ‘winpr_RC4_Free’ of ‘ctx’
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:78:23: enter_function: entry to ‘winpr_RC4_New_Internal’
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:80:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:83:46: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:83:46: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:84:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:95:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:128:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/crypto/cipher.c:128:9: call_function: calling ‘winpr_RC4_Free’ from ‘winpr_RC4_New_Internal’
#  169|   	winpr_int_rc4_free(ctx->ictx);
#  170|   #elif defined(WITH_OPENSSL)
#  171|-> 	EVP_CIPHER_CTX_free(ctx->ctx);
#  172|   #endif
#  173|   	free(ctx);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1620]
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:210:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ctx’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_HMAC_Free’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:179:48: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:180:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:194:25: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:195:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:196:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:210:9: danger: deallocated with ‘winpr_HMAC_Free’ here; allocation at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  208|   	WINPR_PRAGMA_DIAG_PUSH
#  209|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  210|-> 	winpr_HMAC_Free(ctx);
#  211|   	WINPR_PRAGMA_DIAG_POP
#  212|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1621]
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:380:9: warning[-Wanalyzer-use-after-free]: use after ‘winpr_HMAC_Free’ of ‘ctx’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:177:17: enter_function: entry to ‘winpr_HMAC_New’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:179:48: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:180:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:194:25: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:210:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:210:9: call_function: calling ‘winpr_HMAC_Free’ from ‘winpr_HMAC_New’
#  378|   #if defined(WITH_OPENSSL)
#  379|   #if OPENSSL_VERSION_NUMBER >= 0x30000000L
#  380|-> 	EVP_MAC_CTX_free(ctx->xhmac);
#  381|   #else
#  382|   	HMAC_CTX* hmac = ctx->hmac;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1622]
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:426:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_HMAC_New()’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_HMAC_Free’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:406:6: enter_function: entry to ‘winpr_HMAC’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:410:31: call_function: calling ‘winpr_HMAC_New’ from ‘winpr_HMAC’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:410:31: return_function: returning to ‘winpr_HMAC’ from ‘winpr_HMAC_New’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:412:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:415:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:415:14: call_function: calling ‘winpr_HMAC_Init’ from ‘winpr_HMAC’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:415:14: return_function: returning to ‘winpr_HMAC’ from ‘winpr_HMAC_Init’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:426:9: danger: deallocated with ‘winpr_HMAC_Free’ here; allocation at [(4)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘free’
#  424|   	result = TRUE;
#  425|   out:
#  426|-> 	winpr_HMAC_Free(ctx);
#  427|   	return result;
#  428|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1623]
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:481:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ctx’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_Digest_Free’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:454:33: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:455:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:463:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:465:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:466:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:481:9: danger: deallocated with ‘winpr_Digest_Free’ here; allocation at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  479|   	WINPR_PRAGMA_DIAG_PUSH
#  480|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  481|-> 	winpr_Digest_Free(ctx);
#  482|   	WINPR_PRAGMA_DIAG_POP
#  483|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1624]
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:724:13: warning[-Wanalyzer-use-after-free]: use after ‘winpr_Digest_Free’ of ‘ctx’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:452:19: enter_function: entry to ‘winpr_Digest_New’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:454:33: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:455:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:463:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:465:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:466:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:481:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:481:9: call_function: calling ‘winpr_Digest_Free’ from ‘winpr_Digest_New’
#  722|   		return;
#  723|   #if defined(WITH_OPENSSL)
#  724|-> 	if (ctx->mdctx)
#  725|   	{
#  726|   #if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1625]
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:788:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_Digest_New()’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_Digest_Free’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:769:6: enter_function: entry to ‘winpr_Digest’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:772:33: call_function: calling ‘winpr_Digest_New’ from ‘winpr_Digest’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:772:33: return_function: returning to ‘winpr_Digest’ from ‘winpr_Digest_New’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:774:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:777:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:777:14: call_function: calling ‘winpr_Digest_Init’ from ‘winpr_Digest’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:777:14: return_function: returning to ‘winpr_Digest’ from ‘winpr_Digest_Init’
FreeRDP-3.16.0/winpr/libwinpr/crypto/hash.c:788:9: danger: deallocated with ‘winpr_Digest_Free’ here; allocation at [(4)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘free’
#  786|   	result = TRUE;
#  787|   out:
#  788|-> 	winpr_Digest_Free(ctx);
#  789|   	return result;
#  790|   }

Error: COMPILER_WARNING (CWE-477): [#def1626]
FreeRDP-3.16.0/winpr/libwinpr/crypto/test/TestCryptoCipher.c:28:17: warning[-Wdeprecated-declarations]: ‘winpr_Cipher_New’ is deprecated: [since 3.10.0] use winpr_Cipher_NewEx
#   26|   #if !defined(WITHOUT_FREERDP_3x_DEPRECATED)
#   27|   	else
#   28|-> 		ctx = winpr_Cipher_New(WINPR_CIPHER_AES_128_CBC, WINPR_ENCRYPT, key, iv);
#   29|   #endif
#   30|   	if (!ctx)

Error: COMPILER_WARNING (CWE-477): [#def1627]
FreeRDP-3.16.0/winpr/libwinpr/crypto/test/TestCryptoCipher.c:74:17: warning[-Wdeprecated-declarations]: ‘winpr_Cipher_New’ is deprecated: [since 3.10.0] use winpr_Cipher_NewEx
#   72|   #if !defined(WITHOUT_FREERDP_3x_DEPRECATED)
#   73|   	else
#   74|-> 		ctx = winpr_Cipher_New(WINPR_CIPHER_AES_128_CBC, WINPR_DECRYPT, key, iv);
#   75|   
#   76|   #endif

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1628]
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:126:37: warning[-Wanalyzer-null-argument]: use of NULL ‘ServiceClass’ where non-null expected
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:47:7: enter_function: entry to ‘DsMakeSpnW’
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:63:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:66:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:66:12: branch_false: following ‘false’ branch (when ‘ServiceClass’ is NULL)...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:72:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:72:12: branch_true: following ‘true’ branch (when ‘ServiceName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:74:32: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:75:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:78:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:78:12: branch_false: following ‘false’ branch (when ‘InstanceName’ is NULL)...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:84:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:84:12: branch_false: following ‘false’ branch (when ‘Referrer’ is NULL)...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:90:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:90:15: call_function: calling ‘DsMakeSpnA’ from ‘DsMakeSpnW’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  124|   		return ERROR_INVALID_PARAMETER;
#  125|   
#  126|-> 	ServiceClassLength = (DWORD)strlen(ServiceClass);
#  127|   	ServiceNameLength = (DWORD)strlen(ServiceName);
#  128|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1629]
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:127:36: warning[-Wanalyzer-null-argument]: use of NULL ‘ServiceName’ where non-null expected
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:47:7: enter_function: entry to ‘DsMakeSpnW’
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:63:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:66:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:66:12: branch_true: following ‘true’ branch (when ‘ServiceClass’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:68:33: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:69:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:72:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:72:12: branch_false: following ‘false’ branch (when ‘ServiceName’ is NULL)...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:78:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:78:12: branch_false: following ‘false’ branch (when ‘InstanceName’ is NULL)...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:84:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:84:12: branch_false: following ‘false’ branch (when ‘Referrer’ is NULL)...
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:90:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/dsparse/dsparse.c:90:15: call_function: calling ‘DsMakeSpnA’ from ‘DsMakeSpnW’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  125|   
#  126|   	ServiceClassLength = (DWORD)strlen(ServiceClass);
#  127|-> 	ServiceNameLength = (DWORD)strlen(ServiceName);
#  128|   
#  129|   	SpnLength = ServiceClassLength + 1 + ServiceNameLength + 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1630]
FreeRDP-3.16.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:23:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
FreeRDP-3.16.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:20:38: acquire_memory: this call could return NULL
FreeRDP-3.16.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:23:16: danger: ‘p’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   21|   	p = (TCHAR*)lpszMergedEnvironmentBlock;
#   22|   
#   23|-> 	while (p[0] && p[1])
#   24|   	{
#   25|   		printf("%s\n", p);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1631]
FreeRDP-3.16.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:30:9: warning[-Wanalyzer-mismatching-deallocation]: ‘MergeEnvironmentStrings(GetEnvironmentStrings(), "SHELL=123\000test=1\000test1=2\000DISPLAY=:77\000\000")’ should have been deallocated with ‘free’ but was deallocated with ‘FreeEnvironmentStringsA’
FreeRDP-3.16.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:20:38: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:23:16: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:30:9: danger: deallocated with ‘FreeEnvironmentStringsA’ here; allocation at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#   28|   	}
#   29|   
#   30|-> 	FreeEnvironmentStrings(lpszMergedEnvironmentBlock);
#   31|   	FreeEnvironmentStrings(lpszEnvironmentBlock);
#   32|   #endif

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1632]
FreeRDP-3.16.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:30:9: warning[-Wanalyzer-mismatching-deallocation]: ‘p’ should have been deallocated with ‘free’ but was deallocated with ‘FreeEnvironmentStringsA’
FreeRDP-3.16.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:20:38: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:30:9: danger: deallocated with ‘FreeEnvironmentStringsA’ here; allocation at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#   28|   	}
#   29|   
#   30|-> 	FreeEnvironmentStrings(lpszMergedEnvironmentBlock);
#   31|   	FreeEnvironmentStrings(lpszEnvironmentBlock);
#   32|   #endif

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1633]
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:882:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1023:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1026:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1035:38: call_function: calling ‘map_posix_err’ from ‘FileCreateFileA’
#  880|   		{
#  881|   			char ebuffer[256] = { 0 };
#  882|-> 			WLog_ERR(TAG, "Missing ERRNO mapping %s [%d]",
#  883|   			         winpr_strerror(fs_errno, ebuffer, sizeof(ebuffer)), fs_errno);
#  884|   			rc = STATUS_UNSUCCESSFUL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1634]
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:986:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘winpr_fopen(_strdup(lpFileName), "ab")’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:942:20: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:953:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:953:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:954:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:962:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:986:12: danger: ‘winpr_fopen(_strdup(lpFileName), "ab")’ leaks here; was opened at [(13)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/12)
#  984|   	}
#  985|   
#  986|-> 	if (NULL == fp)
#  987|   		fp = winpr_fopen(pFile->lpFileName, mode);
#  988|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1635]
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1031:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1023:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1026:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1031:25: danger: ‘fp’ leaks here; was opened at [(15)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/14)
# 1029|   			         winpr_strerror(errno, ebuffer, sizeof(ebuffer)), errno);
# 1030|   #else
# 1031|-> 			WLog_ERR(TAG, "flock failed with %s [0x%08X]",
# 1032|   			         winpr_strerror(errno, ebuffer, sizeof(ebuffer)), errno);
# 1033|   #endif

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1636]
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1035:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1023:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1026:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1035:38: call_function: calling ‘map_posix_err’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1035:38: return_function: returning to ‘FileCreateFileA’ from ‘map_posix_err’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1035:25: danger: ‘fp’ leaks here; was opened at [(15)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/14)
# 1033|   #endif
# 1034|   
# 1035|-> 			SetLastError(map_posix_err(errno));
# 1036|   			FileCloseHandle(pFile);
# 1037|   			return INVALID_HANDLE_VALUE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1637]
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1054:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1014:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1018:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1018:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1043:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/file.c:1054:9: danger: ‘fp’ leaks here; was opened at [(15)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/14)
# 1052|   	}
# 1053|   
# 1054|-> 	SetLastError(STATUS_SUCCESS);
# 1055|   	return pFile;
# 1056|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1638]
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:922:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pFileSearch’ should have been deallocated with ‘free’ but was deallocated with ‘FindClose’
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:876:62: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:877:12: branch_false: following ‘false’ branch (when ‘pFileSearch’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:880:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:884:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:885:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:922:9: danger: deallocated with ‘FindClose’ here; allocation at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  920|   	WINPR_PRAGMA_DIAG_PUSH
#  921|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  922|-> 	FindClose(pFileSearch);
#  923|   	WINPR_PRAGMA_DIAG_POP
#  924|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1639]
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:1216:14: warning[-Wanalyzer-use-after-free]: use after ‘FindClose’ of ‘hFindFile’
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:873:27: enter_function: entry to ‘file_search_new’
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:876:62: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:877:12: branch_false: following ‘false’ branch (when ‘pFileSearch’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:880:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:922:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:922:9: call_function: calling ‘FindClose’ from ‘file_search_new’
# 1214|   #endif
# 1215|   
# 1216|-> 	free(pFileSearch->lpPath);
# 1217|   	free(pFileSearch->lpPattern);
# 1218|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1640]
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:1216:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(WIN32_FILE_SEARCH *)hFindFile.lpPath’
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:1046:8: enter_function: entry to ‘FindFirstFileW’
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:1050:12: branch_false: following ‘false’ branch (when ‘lpFileName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:1053:53: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:1055:12: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:1061:23: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:1062:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:1069:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/generic.c:1069:13: call_function: calling ‘FindFirstFileA’ from ‘FindFirstFileW’
# 1214|   #endif
# 1215|   
# 1216|-> 	free(pFileSearch->lpPath);
# 1217|   	free(pFileSearch->lpPattern);
# 1218|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1641]
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:203:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*pNamedPipe.clientfd’
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:120:1: enter_function: entry to ‘NamedPipeClientCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:129:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:136:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:136:12: branch_false: following ‘false’ branch (when ‘lpFileName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:139:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:139:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:142:59: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:144:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:151:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘NamedPipeClientCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:154:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:160:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:167:34: call_function: calling ‘GetNamedPipeNameWithoutPrefixA’ from ‘NamedPipeClientCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:167:34: return_function: returning to ‘NamedPipeClientCreateFileA’ from ‘GetNamedPipeNameWithoutPrefixA’
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:169:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:172:34: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:172:34: call_function: calling ‘GetNamedPipeUnixDomainSocketFilePathA’ from ‘NamedPipeClientCreateFileA’
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:172:34: return_function: returning to ‘NamedPipeClientCreateFileA’ from ‘GetNamedPipeUnixDomainSocketFilePathA’
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:174:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:177:32: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:177:32: acquire_resource: stream socket created here
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:178:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:181:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:188:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:189:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:202:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:203:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/file/namedPipeClient.c:203:25: danger: ‘*pNamedPipe.clientfd’ leaks here
#  201|   	{
#  202|   		if (pNamedPipe->clientfd >= 0)
#  203|-> 			close(pNamedPipe->clientfd);
#  204|   		free(pNamedPipe->name);
#  205|   		free(pNamedPipe->lpFileName);

Error: COMPILER_WARNING (CWE-477): [#def1642]
FreeRDP-3.16.0/winpr/libwinpr/file/test/TestFileCreateFile.c:41:9: warning[-Wdeprecated-declarations]: ‘CreateFileA’ is deprecated: since 3.16.0, Use winpr_CreateFile
#   39|   		rc = -1;
#   40|   
#   41|-> 	handle = CreateFileA(name, GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_NEW,
#   42|   	                     FILE_ATTRIBUTE_NORMAL, NULL);
#   43|   

Error: COMPILER_WARNING (CWE-477): [#def1643]
FreeRDP-3.16.0/winpr/libwinpr/file/test/TestFileFindFirstFile.c:25:21: warning[-Wdeprecated-declarations]: ‘CreateFileA’ is deprecated: since 3.16.0, Use winpr_CreateFile
#   23|   
#   24|   		HANDLE hdl =
#   25|-> 		    CreateFileA(FilePath, GENERIC_ALL, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
#   26|   		if (hdl == INVALID_HANDLE_VALUE)
#   27|   			return FALSE;

Error: COMPILER_WARNING (CWE-477): [#def1644]
FreeRDP-3.16.0/winpr/libwinpr/file/test/TestFileFindFirstFile.c:228:13: warning[-Wdeprecated-declarations]: ‘CreateFileA’ is deprecated: since 3.16.0, Use winpr_CreateFile
#  226|   
#  227|   	HANDLE hdl =
#  228|-> 	    CreateFileA(FilePath, GENERIC_ALL, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
#  229|   	if (hdl == INVALID_HANDLE_VALUE)
#  230|   		goto fail;

Error: COMPILER_WARNING (CWE-477): [#def1645]
FreeRDP-3.16.0/winpr/libwinpr/file/test/TestFileWriteFile.c:51:13: warning[-Wdeprecated-declarations]: ‘CreateFileA’ is deprecated: since 3.16.0, Use winpr_CreateFile
#   49|   
#   50|   	HANDLE hdl =
#   51|-> 	    CreateFileA(filename, GENERIC_WRITE, 0, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL);
#   52|   	if (!hdl || (hdl == INVALID_HANDLE_VALUE))
#   53|   		goto fail;

Error: COMPILER_WARNING (CWE-477): [#def1646]
FreeRDP-3.16.0/winpr/libwinpr/file/test/TestFileWriteFile.c:80:13: warning[-Wdeprecated-declarations]: ‘CreateFileA’ is deprecated: since 3.16.0, Use winpr_CreateFile
#   78|   	char* cmp = calloc(datalen + 1, sizeof(char));
#   79|   	HANDLE hdl =
#   80|-> 	    CreateFileA(filename, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
#   81|   	if (!hdl || (hdl == INVALID_HANDLE_VALUE) || !cmp)
#   82|   		goto fail;

Error: COMPILER_WARNING (CWE-477): [#def1647]
FreeRDP-3.16.0/winpr/libwinpr/file/test/TestFileWriteFile.c:118:9: warning[-Wdeprecated-declarations]: ‘DeleteFileA’ is deprecated: since 3.16.0, Use winpr_DeleteFile
#  116|   	rc = 0;
#  117|   fail:
#  118|-> 	if (!DeleteFile(filename))
#  119|   		rc = -2;
#  120|   

Error: COMPILER_WARNING (CWE-477): [#def1648]
FreeRDP-3.16.0/winpr/libwinpr/file/test/TestFileWriteFile.c:124:17: warning[-Wdeprecated-declarations]: ‘RemoveDirectoryA’ is deprecated: since 3.16.0, Use winpr_RemoveDirectory
#  122|   	if (d)
#  123|   	{
#  124|-> 		if (!RemoveDirectory(d))
#  125|   			rc = -3;
#  126|   	}

Error: COMPILER_WARNING (CWE-477): [#def1649]
FreeRDP-3.16.0/winpr/libwinpr/file/test/TestSetFileAttributes.c:56:9: warning[-Wdeprecated-declarations]: ‘CreateFileA’ is deprecated: since 3.16.0, Use winpr_CreateFile
#   54|   	}
#   55|   
#   56|-> 	handle = CreateFileA(name, GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_NEW,
#   57|   	                     FILE_ATTRIBUTE_NORMAL, NULL);
#   58|   	if (handle == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1650]
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:46:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘winpr_aligned_malloc(24, 16)’
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:24:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:30:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:32:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:40:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:42:25: branch_true: following ‘true’ branch (when ‘Count != 11’)...
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:45:33: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:45:33: acquire_memory: this call could return NULL
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:46:17: danger: ‘winpr_aligned_malloc(24, 16)’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#   44|   		pListItem =
#   45|   		    (PLIST_ITEM)winpr_aligned_malloc(sizeof(LIST_ITEM), MEMORY_ALLOCATION_ALIGNMENT);
#   46|-> 		pListItem->Signature = Count;
#   47|   		InsertHeadList(pListHead, &(pListItem->ItemEntry));
#   48|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1651]
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:65:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘winpr_aligned_malloc(24, 16)’
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:24:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:30:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:32:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:40:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:42:25: branch_true: following ‘true’ branch (when ‘Count != 11’)...
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:45:33: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:50:26: branch_true: following ‘true’ branch (when ‘Count != 0’)...
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:52:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:61:25: branch_true: following ‘true’ branch (when ‘Count != 11’)...
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:64:33: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:64:33: acquire_memory: this call could return NULL
FreeRDP-3.16.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:65:17: danger: ‘winpr_aligned_malloc(24, 16)’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
#   63|   		pListItem =
#   64|   		    (PLIST_ITEM)winpr_aligned_malloc(sizeof(LIST_ITEM), MEMORY_ALLOCATION_ALIGNMENT);
#   65|-> 		pListItem->Signature = Count;
#   66|   		InsertTailList(pListHead, &(pListItem->ItemEntry));
#   67|   	}

Error: GCC_ANALYZER_WARNING (CWE-122): [#def1652]
FreeRDP-3.16.0/winpr/libwinpr/library/library.c:296:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
FreeRDP-3.16.0/winpr/libwinpr/library/library.c:237:7: enter_function: entry to ‘GetModuleFileNameW’
FreeRDP-3.16.0/winpr/libwinpr/library/library.c:240:12: branch_false: following ‘false’ branch (when ‘lpFilename’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/library/library.c:246:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/library/library.c:247:12: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/library/library.c:252:18: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/library/library.c:252:18: call_function: calling ‘GetModuleFileNameA’ from ‘GetModuleFileNameW’
#  294|   
#  295|   	CopyMemory(lpFilename, buffer, nSize - 1);
#  296|-> 	lpFilename[nSize - 1] = '\0';
#  297|   	SetLastError(ERROR_INSUFFICIENT_BUFFER);
#  298|   	return nSize;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1653]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:25:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
#   23|   	 */
#   24|   
#   25|-> 	_tcsncpy(Path, testPathNoBackslash, ARRAYSIZE(Path));
#   26|   
#   27|   	/* Add a backslash to a path without a trailing backslash, expect S_OK */

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1654]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:45:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:31:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:37:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:37:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:45:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:45:9: danger: out-of-bounds read from byte 18 till byte 32767 but ‘testPathBackslash’ ends at byte 18
#   43|   	/* Add a backslash to a path with a trailing backslash, expect S_FALSE */
#   44|   
#   45|-> 	_tcsncpy(Path, testPathBackslash, ARRAYSIZE(Path));
#   46|   
#   47|   	status = PathCchAddBackslash(Path, PATHCCH_MAX_CCH);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1655]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:27:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
#   25|   	 */
#   26|   
#   27|-> 	_tcsncpy(Path, testPathNoBackslash, ARRAYSIZE(Path));
#   28|   
#   29|   	/* Add a backslash to a path without a trailing backslash, expect S_OK */

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1656]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:47:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:33:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:39:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:39:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:47:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:47:9: danger: out-of-bounds read from byte 18 till byte 32767 but ‘testPathBackslash’ ends at byte 18
#   45|   	/* Add a backslash to a path with a trailing backslash, expect S_FALSE */
#   46|   
#   47|-> 	_tcsncpy(Path, testPathBackslash, ARRAYSIZE(Path));
#   48|   
#   49|   	status = PathCchAddBackslashEx(Path, sizeof(Path) / sizeof(TCHAR), &pszEnd, &cchRemaining);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1657]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:23:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
#   21|   	/* Path: no extension, Extension: dot */
#   22|   
#   23|-> 	_tcsncpy(Path, testPathNoExtension, ARRAYSIZE(Path));
#   24|   
#   25|   	status = PathCchAddExtension(Path, PATHCCH_MAX_CCH, testExtDot);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1658]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:41:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:27:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:41:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:41:9: danger: out-of-bounds read from byte 24 till byte 32767 but ‘testPathNoExtension’ ends at byte 24
#   39|   	/* Path: no extension, Extension: no dot */
#   40|   
#   41|-> 	_tcsncpy(Path, testPathNoExtension, ARRAYSIZE(Path));
#   42|   
#   43|   	status = PathCchAddExtension(Path, PATHCCH_MAX_CCH, testExtNoDot);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1659]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:59:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:27:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:41:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:45:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:51:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:59:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:59:9: danger: out-of-bounds read from byte 28 till byte 32767 but ‘testPathExtension’ ends at byte 28
#   57|   	/* Path: extension, Extension: dot */
#   58|   
#   59|-> 	_tcsncpy(Path, testPathExtension, ARRAYSIZE(Path));
#   60|   
#   61|   	status = PathCchAddExtension(Path, PATHCCH_MAX_CCH, testExtDot);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1660]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:77:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:27:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:41:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:45:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:51:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:59:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:63:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:69:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:69:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:77:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:77:9: danger: out-of-bounds read from byte 28 till byte 32767 but ‘testPathExtension’ ends at byte 28
#   75|   	/* Path: extension, Extension: no dot */
#   76|   
#   77|-> 	_tcsncpy(Path, testPathExtension, ARRAYSIZE(Path));
#   78|   
#   79|   	status = PathCchAddExtension(Path, PATHCCH_MAX_CCH, testExtDot);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1661]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:24:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
#   22|   	/* Base Path: Backslash, More Path: No Backslash */
#   23|   
#   24|-> 	_tcsncpy(Path, testBasePathBackslash, ARRAYSIZE(Path));
#   25|   
#   26|   	status = PathCchAppend(Path, PATHCCH_MAX_CCH, testMorePathNoBackslash);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1662]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: danger: out-of-bounds read from byte 18 till byte 32767 but ‘testBasePathBackslash’ ends at byte 18
#   40|   	/* Base Path: Backslash, More Path: Backslash */
#   41|   
#   42|-> 	_tcsncpy(Path, testBasePathBackslash, ARRAYSIZE(Path));
#   43|   
#   44|   	status = PathCchAppend(Path, PATHCCH_MAX_CCH, testMorePathBackslash);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1663]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: danger: out-of-bounds read from byte 17 till byte 32767 but ‘testBasePathNoBackslash’ ends at byte 17
#   58|   	/* Base Path: No Backslash, More Path: Backslash */
#   59|   
#   60|-> 	_tcsncpy(Path, testBasePathNoBackslash, ARRAYSIZE(Path));
#   61|   
#   62|   	status = PathCchAppend(Path, PATHCCH_MAX_CCH, testMorePathBackslash);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1664]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:78:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:78:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:78:9: danger: out-of-bounds read from byte 17 till byte 32767 but ‘testBasePathNoBackslash’ ends at byte 17
#   76|   	/* Base Path: No Backslash, More Path: No Backslash */
#   77|   
#   78|-> 	_tcsncpy(Path, testBasePathNoBackslash, ARRAYSIZE(Path));
#   79|   
#   80|   	status = PathCchAppend(Path, PATHCCH_MAX_CCH, testMorePathNoBackslash);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1665]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:105:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:78:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:82:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:95:18: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:96:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:105:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:105:9: danger: out-of-bounds read from byte 17 till byte 32767 but ‘testBasePathNoBackslash’ ends at byte 17
#  103|   
#  104|   	/* According to msdn a NULL pszMore is an invalid argument (although optional !?) */
#  105|-> 	_tcsncpy(Path, testBasePathNoBackslash, ARRAYSIZE(Path));
#  106|   	status = PathCchAppend(Path, PATHCCH_MAX_CCH, NULL);
#  107|   	if (status != E_INVALIDARG)

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1666]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:116:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:78:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:82:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:95:18: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:96:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:105:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:107:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:116:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:116:9: danger: out-of-bounds read from byte 17 till byte 32767 but ‘testBasePathNoBackslash’ ends at byte 17
#  114|   
#  115|   	/* According to msdn cchPath must be > 0 and <= PATHCCH_MAX_CCH */
#  116|-> 	_tcsncpy(Path, testBasePathNoBackslash, ARRAYSIZE(Path));
#  117|   	status = PathCchAppend(Path, 0, testMorePathNoBackslash);
#  118|   	if (status != E_INVALIDARG)

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1667]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:125:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:78:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:82:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:95:18: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:96:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:105:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:107:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:116:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:118:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:125:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchAppend.c:125:9: danger: out-of-bounds read from byte 17 till byte 32767 but ‘testBasePathNoBackslash’ ends at byte 17
#  123|   		return -1;
#  124|   	}
#  125|-> 	_tcsncpy(Path, testBasePathNoBackslash, ARRAYSIZE(Path));
#  126|   	status = PathCchAppend(Path, PATHCCH_MAX_CCH + 1, testMorePathNoBackslash);
#  127|   	if (status != E_INVALIDARG)

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1668]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:35:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
#   33|   	/* Path with prefix (File Namespace) */
#   34|   
#   35|-> 	_tcsncpy(Path, testPathPrefixFileNamespace, ARRAYSIZE(Path));
#   36|   
#   37|   	status = PathCchStripPrefix(Path, sizeof(testPathPrefixFileNamespace) / sizeof(TCHAR));

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1669]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:54:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:39:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:54:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:54:9: danger: out-of-bounds read from byte 15 till byte 32767 but ‘testPathPrefixDeviceNamespace’ ends at byte 15
#   52|   	/* Path with prefix (Device Namespace) */
#   53|   
#   54|-> 	_tcsncpy(Path, testPathPrefixDeviceNamespace, ARRAYSIZE(Path));
#   55|   
#   56|   	status = PathCchStripPrefix(Path, ARRAYSIZE(testPathPrefixDeviceNamespace));

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1670]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:85:17: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:39:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:54:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:58:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:64:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:72:18: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:73:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:83:25: branch_true: following ‘true’ branch (when ‘i <= 4’)...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:85:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:85:17: danger: out-of-bounds read from byte 22 till byte 32767 but ‘testPathPrefixFileNamespace’ ends at byte 22
#   83|   	for (int i = 0; i < 5; i++)
#   84|   	{
#   85|-> 		_tcsncpy(Path, testPathPrefixFileNamespace, ARRAYSIZE(Path));
#   86|   		if (i == 4)
#   87|   			i = PATHCCH_MAX_CCH + 1;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1671]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:99:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:39:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:54:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:58:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:64:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:72:18: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:73:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:83:25: branch_true: following ‘true’ branch (when ‘i <= 4’)...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:85:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:86:20: branch_false: following ‘false’ branch (when ‘i != 4’)...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:88:26: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:89:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:83:32: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:99:9: danger: out-of-bounds read from byte 7 till byte 32767 but ‘testPathPrefixFileNamespaceMinimum’ ends at byte 7
#   97|   
#   98|   	/* Minimum Path that would get successfully stripped on windows */
#   99|-> 	_tcsncpy(Path, testPathPrefixFileNamespaceMinimum, ARRAYSIZE(Path));
#  100|   	size_t i = ARRAYSIZE(testPathPrefixFileNamespaceMinimum);
#  101|   	i = i - 1; /* include testing of a non-null terminated string */

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1672]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:23:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
#   21|   	/* Path is UNC */
#   22|   
#   23|-> 	_tcsncpy(Path, testPathUNC, ARRAYSIZE(Path));
#   24|   
#   25|   	status = PathIsUNCEx(Path, &Server);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1673]
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:41:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:27:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:33:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:33:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:41:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:41:9: danger: out-of-bounds read from byte 19 till byte 32767 but ‘testPathNotUNC’ ends at byte 19
#   39|   	/* Path is not UNC */
#   40|   
#   41|-> 	_tcsncpy(Path, testPathNotUNC, ARRAYSIZE(Path));
#   42|   
#   43|   	status = PathIsUNCEx(Path, &Server);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1674]
FreeRDP-3.16.0/winpr/libwinpr/pipe/../handle/handle.h:129:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:563:8: enter_function: entry to ‘CreateNamedPipeA’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:668:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:723:9: call_function: calling ‘NamedPipeCloseHandle’ from ‘CreateNamedPipeA’
#  127|   	if (invalid || (pWinprHandle->Type != type))
#  128|   	{
#  129|-> 		SetLastError(ERROR_INVALID_HANDLE);
#  130|   		return FALSE;
#  131|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1675]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:500:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:494:34: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:497:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:499:21: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:499:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:500:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:500:25: danger: ‘pipe_fd[0]’ leaks here
#  498|   	{
#  499|   		if (pipe_fd[0] >= 0)
#  500|-> 			close(pipe_fd[0]);
#  501|   		if (pipe_fd[1] >= 0)
#  502|   			close(pipe_fd[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1676]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:500:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[1]’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:494:34: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:497:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:499:21: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:499:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:500:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:500:25: danger: ‘pipe_fd[1]’ leaks here
#  498|   	{
#  499|   		if (pipe_fd[0] >= 0)
#  500|-> 			close(pipe_fd[0]);
#  501|   		if (pipe_fd[1] >= 0)
#  502|   			close(pipe_fd[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1677]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:502:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:494:34: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:497:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:499:21: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:499:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:501:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:501:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:502:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:502:25: danger: ‘pipe_fd[0]’ leaks here
#  500|   			close(pipe_fd[0]);
#  501|   		if (pipe_fd[1] >= 0)
#  502|-> 			close(pipe_fd[1]);
#  503|   		free(pReadPipe);
#  504|   		free(pWritePipe);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1678]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:502:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[1]’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:494:34: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:497:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:499:21: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:499:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:501:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:501:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:502:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:502:25: danger: ‘pipe_fd[1]’ leaks here
#  500|   			close(pipe_fd[0]);
#  501|   		if (pipe_fd[1] >= 0)
#  502|-> 			close(pipe_fd[1]);
#  503|   		free(pReadPipe);
#  504|   		free(pWritePipe);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1679]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:669:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:668:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:669:25: danger: ‘serverfd’ leaks here
#  667|   		{
#  668|   			char ebuffer[256] = { 0 };
#  669|-> 			WLog_ERR(TAG, "CreateNamedPipeA: bind error, %s",
#  670|   			         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
#  671|   			goto out;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1680]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:677:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:674:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:674:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:676:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:677:25: danger: ‘serverfd’ leaks here
#  675|   		{
#  676|   			char ebuffer[256] = { 0 };
#  677|-> 			WLog_ERR(TAG, "CreateNamedPipeA: listen error, %s",
#  678|   			         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
#  679|   			goto out;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1681]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:682:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:674:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:674:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:682:36: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:682:17: danger: ‘serverfd’ leaks here
#  680|   		}
#  681|   
#  682|-> 		UnixChangeFileMode(pNamedPipe->lpFilePath, 0xFFFF);
#  683|   
#  684|   		if (!(baseSocket = (NamedPipeServerSocketEntry*)malloc(sizeof(NamedPipeServerSocketEntry))))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1682]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:687:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:674:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:674:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:682:36: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:684:20: branch_false: following ‘false’ branch (when ‘baseSocket’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:687:42: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:687:42: danger: ‘serverfd’ leaks here
#  685|   			goto out;
#  686|   
#  687|-> 		if (!(baseSocket->name = _strdup(lpName)))
#  688|   		{
#  689|   			free(baseSocket);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1683]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:696:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:674:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:674:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:682:36: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:684:20: branch_false: following ‘false’ branch (when ‘baseSocket’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:687:42: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:687:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:693:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:696:22: danger: ‘serverfd’ leaks here
#  694|   		baseSocket->references = 0;
#  695|   
#  696|-> 		if (!ArrayList_Append(g_NamedPipeServerSockets, baseSocket))
#  697|   		{
#  698|   			free(baseSocket->name);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1684]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:720:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:674:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:674:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:682:36: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:684:20: branch_false: following ‘false’ branch (when ‘baseSocket’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:687:42: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:687:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:693:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:696:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:707:32: acquire_resource: opened here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:720:9: danger: leaks here; was opened at [(34)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/33)
#  718|   
#  719|   	// NOLINTNEXTLINE(clang-analyzer-unix.Malloc): ArrayList_Append takes ownership of baseSocket
#  720|-> 	ArrayList_Unlock(g_NamedPipeServerSockets);
#  721|   	return pNamedPipe;
#  722|   out:

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1685]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:726:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:563:8: enter_function: entry to ‘CreateNamedPipeA’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:668:30: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:723:9: call_function: calling ‘NamedPipeCloseHandle’ from ‘CreateNamedPipeA’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:723:9: return_function: returning to ‘CreateNamedPipeA’ from ‘NamedPipeCloseHandle’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:725:12: branch_true: following ‘true’ branch (when ‘serverfd != -1’)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:726:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:726:17: danger: ‘serverfd’ leaks here
#  724|   
#  725|   	if (serverfd != -1)
#  726|-> 		close(serverfd);
#  727|   
#  728|   	ArrayList_Unlock(g_NamedPipeServerSockets);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1686]
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:768:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘((WINPR_NAMED_PIPE)*(void *)hNamedPipe).serverfd’
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:750:12: branch_false: following ‘false’ branch (when ‘lpOverlapped’ is NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:757:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:757:12: branch_false: following ‘false’ branch (when ‘hNamedPipe’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:762:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:762:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:764:36: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/pipe/pipe.c:768:20: danger: ‘((WINPR_NAMED_PIPE)*(void *)hNamedPipe).serverfd’ leaks here
#  766|   		status = accept(pNamedPipe->serverfd, (struct sockaddr*)&s, &length);
#  767|   
#  768|-> 		if (status < 0)
#  769|   		{
#  770|   			WLog_ERR(TAG, "ConnectNamedPipe: accept error");

Error: COMPILER_WARNING (CWE-477): [#def1687]
FreeRDP-3.16.0/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c:38:13: warning[-Wdeprecated-declarations]: ‘CreateFileA’ is deprecated: since 3.16.0, Use winpr_CreateFile
#   36|   	(void)WaitForSingleObject(ReadyEvent, INFINITE);
#   37|   	hNamedPipe =
#   38|-> 	    CreateFile(lpszPipeNameMt, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
#   39|   
#   40|   	if (hNamedPipe == INVALID_HANDLE_VALUE)

Error: COMPILER_WARNING (CWE-590): [#def1688]
FreeRDP-3.16.0/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c: scope_hint: In function ‘named_pipe_client_thread’
FreeRDP-3.16.0/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c:87:15: warning[-Wfree-nonheap-object]: ‘CloseHandle’ called on a pointer to an unallocated object ‘-1B’
#   87 |         (void)CloseHandle(hNamedPipe);
#      |               ^
#   85|   	free(lpReadBuffer);
#   86|   	free(lpWriteBuffer);
#   87|-> 	(void)CloseHandle(hNamedPipe);
#   88|   
#   89|   	if (!fSuccess)

Error: COMPILER_WARNING (CWE-590): [#def1689]
FreeRDP-3.16.0/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c:87:15: warning[-Wfree-nonheap-object]: ‘CloseHandle’ called on a pointer to an unallocated object ‘18446744073709551615’
#   85|   	free(lpReadBuffer);
#   86|   	free(lpWriteBuffer);
#   87|-> 	(void)CloseHandle(hNamedPipe);
#   88|   
#   89|   	if (!fSuccess)

Error: COMPILER_WARNING (CWE-590): [#def1690]
FreeRDP-3.16.0/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c: scope_hint: In function ‘named_pipe_server_thread’
FreeRDP-3.16.0/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c:182:15: warning[-Wfree-nonheap-object]: ‘CloseHandle’ called on a pointer to an unallocated object ‘-1B’
#  182 |         (void)CloseHandle(hNamedPipe);
#      |               ^
#  180|   	free(lpReadBuffer);
#  181|   	free(lpWriteBuffer);
#  182|-> 	(void)CloseHandle(hNamedPipe);
#  183|   
#  184|   	if (!fSuccess)

Error: COMPILER_WARNING (CWE-590): [#def1691]
FreeRDP-3.16.0/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c:182:15: warning[-Wfree-nonheap-object]: ‘CloseHandle’ called on a pointer to an unallocated object ‘18446744073709551615’
#  180|   	free(lpReadBuffer);
#  181|   	free(lpWriteBuffer);
#  182|-> 	(void)CloseHandle(hNamedPipe);
#  183|   
#  184|   	if (!fSuccess)

Error: COMPILER_WARNING (CWE-477): [#def1692]
FreeRDP-3.16.0/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c:254:17: warning[-Wdeprecated-declarations]: ‘CreateFileA’ is deprecated: since 3.16.0, Use winpr_CreateFile
#  252|   	{
#  253|   		BOOL fConnected = 0;
#  254|-> 		if ((clients[i] = CreateFile(lpszPipeNameSt, GENERIC_READ | GENERIC_WRITE, 0, NULL,
#  255|   		                             OPEN_EXISTING, 0, NULL)) == INVALID_HANDLE_VALUE)
#  256|   		{

Error: COMPILER_WARNING (CWE-477): [#def1693]
FreeRDP-3.16.0/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipeOverlapped.c:57:9: warning[-Wdeprecated-declarations]: ‘CreateFileA’ is deprecated: since 3.16.0, Use winpr_CreateFile
#   55|   	/* 2: connect to server named pipe */
#   56|   
#   57|-> 	hNamedPipe = CreateFile(lpszPipeName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING,
#   58|   	                        FILE_FLAG_OVERLAPPED, NULL);
#   59|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1694]
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1331:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘kerberos_ContextNew(sspi_SecureHandleGetLowerPointer(phCredential))’
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1284:34: enter_function: entry to ‘kerberos_AcceptSecurityContext’
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1316:12: branch_true: following ‘true’ branch (when ‘pInput’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1317:32: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1318:12: branch_false: following ‘false’ branch (when ‘pOutput’ is NULL)...
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1321:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1321:12: branch_false: following ‘false’ branch (when ‘input_buffer’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1324:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1324:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1327:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1327:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1330:27: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1330:27: call_function: calling ‘kerberos_ContextNew’ from ‘kerberos_AcceptSecurityContext’
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1330:27: return_function: returning to ‘kerberos_AcceptSecurityContext’ from ‘kerberos_ContextNew’
FreeRDP-3.16.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1331:17: danger: dereference of NULL ‘kerberos_ContextNew(sspi_SecureHandleGetLowerPointer(phCredential))’
# 1329|   		isNewContext = TRUE;
# 1330|   		context = kerberos_ContextNew(credentials);
# 1331|-> 		context->acceptor = TRUE;
# 1332|   
# 1333|   		if (sspi_gss_oid_compare(&oid, &kerberos_u2u_OID))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1695]
FreeRDP-3.16.0/winpr/libwinpr/sspi/Schannel/schannel.c:139:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘credentials’
FreeRDP-3.16.0/winpr/libwinpr/sspi/Schannel/schannel.c:127:34: enter_function: entry to ‘schannel_AcquireCredentialsHandleW’
FreeRDP-3.16.0/winpr/libwinpr/sspi/Schannel/schannel.c:138:31: call_function: inlined call to ‘schannel_CredentialsNew’ from ‘schannel_AcquireCredentialsHandleW’
FreeRDP-3.16.0/winpr/libwinpr/sspi/Schannel/schannel.c:139:17: danger: ‘credentials’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  137|   		SCHANNEL_CRED* cred = NULL;
#  138|   		credentials = schannel_CredentialsNew();
#  139|-> 		credentials->fCredentialUse = fCredentialUse;
#  140|   		cred = (SCHANNEL_CRED*)pAuthData;
#  141|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1696]
FreeRDP-3.16.0/winpr/libwinpr/sspi/Schannel/schannel.c:154:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘credentials’
FreeRDP-3.16.0/winpr/libwinpr/sspi/Schannel/schannel.c:127:34: enter_function: entry to ‘schannel_AcquireCredentialsHandleW’
FreeRDP-3.16.0/winpr/libwinpr/sspi/Schannel/schannel.c:135:12: branch_false: following ‘false’ branch (when ‘fCredentialUse != 2’)...
FreeRDP-3.16.0/winpr/libwinpr/sspi/Schannel/schannel.c:151:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/sspi/Schannel/schannel.c:151:17: branch_true: following ‘true’ branch (when ‘fCredentialUse == 1’)...
FreeRDP-3.16.0/winpr/libwinpr/sspi/Schannel/schannel.c:153:31: call_function: inlined call to ‘schannel_CredentialsNew’ from ‘schannel_AcquireCredentialsHandleW’
FreeRDP-3.16.0/winpr/libwinpr/sspi/Schannel/schannel.c:154:17: danger: ‘credentials’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#  152|   	{
#  153|   		credentials = schannel_CredentialsNew();
#  154|-> 		credentials->fCredentialUse = fCredentialUse;
#  155|   		sspi_SecureHandleSetLowerPointer(phCredential, (void*)credentials);
#  156|   		sspi_SecureHandleSetUpperPointer(phCredential, (void*)SCHANNEL_PACKAGE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1697]
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:155:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:137:12: branch_false: following ‘false’ branch (when ‘semaphore’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:140:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:146:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:153:16: branch_true: following ‘true’ branch (when ‘lInitialCount > 0’)...
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:155:21: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:155:21: danger: leaks here
#  153|   	while (lInitialCount > 0)
#  154|   	{
#  155|-> 		if (write(semaphore->pipe_fd[1], "-", 1) != 1)
#  156|   		{
#  157|   			close(semaphore->pipe_fd[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1698]
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:157:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:137:12: branch_false: following ‘false’ branch (when ‘semaphore’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:140:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:146:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:153:16: branch_true: following ‘true’ branch (when ‘lInitialCount > 0’)...
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:155:21: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:155:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:157:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:157:25: danger: leaks here
#  155|   		if (write(semaphore->pipe_fd[1], "-", 1) != 1)
#  156|   		{
#  157|-> 			close(semaphore->pipe_fd[0]);
#  158|   			close(semaphore->pipe_fd[1]);
#  159|   			free(semaphore);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1699]
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:158:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:137:12: branch_false: following ‘false’ branch (when ‘semaphore’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:140:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:146:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:153:16: branch_true: following ‘true’ branch (when ‘lInitialCount > 0’)...
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:155:21: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:155:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:157:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/synch/semaphore.c:158:25: danger: leaks here
#  156|   		{
#  157|   			close(semaphore->pipe_fd[0]);
#  158|-> 			close(semaphore->pipe_fd[1]);
#  159|   			free(semaphore);
#  160|   			return NULL;

Error: COMPILER_WARNING (CWE-1164): [#def1700]
FreeRDP-3.16.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:68:29: warning[-Wunused-function]: ‘tz_entry_clone’ defined but not used
#   68 | static TimeZoneNameMapEntry tz_entry_clone(const TimeZoneNameMapEntry* entry)
#      |                             ^~~~~~~~~~~~~~
#   66|   }

#   67|   

#   68|-> static TimeZoneNameMapEntry tz_entry_clone(const TimeZoneNameMapEntry* entry)

#   69|   {

#   70|   	TimeZoneNameMapEntry clone = { 0 };


Error: CPPCHECK_WARNING (CWE-664): [#def1701]
FreeRDP-3.16.0/winpr/libwinpr/timezone/timezone.c:600: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  598|   		return;
#  599|   
#  600|-> 	va_list ap = { 0 };
#  601|   	va_start(ap, line);
#  602|   	WLog_PrintMessageVA(log, WLOG_MESSAGE_TEXT, level, line, file, fkt, ap);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1702]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:122:13: warning[-Wanalyzer-use-after-free]: use after ‘ArrayList_Free’ of ‘arrayList’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:576:13: enter_function: entry to ‘ArrayList_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:580:34: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:582:12: branch_false: following ‘false’ branch (when ‘arrayList’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:585:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:590:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:591:14: call_function: calling ‘ArrayList_EnsureCapacity’ from ‘ArrayList_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:591:14: return_function: returning to ‘ArrayList_New’ from ‘ArrayList_EnsureCapacity’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:591:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:592:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:599:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:599:9: call_function: calling ‘ArrayList_Free’ from ‘ArrayList_New’
#  120|   {
#  121|   	WINPR_ASSERT(arrayList);
#  122|-> 	if (arrayList->synchronized)
#  123|   		EnterCriticalSection(&arrayList->lock);
#  124|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1703]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:123:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:535:6: enter_function: entry to ‘ArrayList_ForEach’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:539:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:540:14: call_function: calling ‘ArrayList_ForEachAP’ from ‘ArrayList_ForEach’
#  121|   	WINPR_ASSERT(arrayList);
#  122|   	if (arrayList->synchronized)
#  123|-> 		EnterCriticalSection(&arrayList->lock);
#  124|   }
#  125|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1704]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:140:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:535:6: enter_function: entry to ‘ArrayList_ForEach’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:539:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:540:14: call_function: calling ‘ArrayList_ForEachAP’ from ‘ArrayList_ForEach’
#  138|   	WINPR_ASSERT(arrayList);
#  139|   	if (arrayList->synchronized)
#  140|-> 		LeaveCriticalSection(&arrayList->lock);
#  141|   }
#  142|   

Error: CPPCHECK_WARNING (CWE-664): [#def1705]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:538: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  536|   {
#  537|   	BOOL rc = 0;
#  538|-> 	va_list ap = { 0 };
#  539|   	va_start(ap, fkt);
#  540|   	rc = ArrayList_ForEachAP(arrayList, fkt, ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1706]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:561:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:546:6: enter_function: entry to ‘ArrayList_ForEachAP’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:556:32: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:559:29: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:559:29: call_function: calling ‘ArrayList_GetItem’ from ‘ArrayList_ForEachAP’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:559:29: return_function: returning to ‘ArrayList_ForEachAP’ from ‘ArrayList_GetItem’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:560:17: acquire_resource: ‘va_copy’ called here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:561:22: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  559|   		void* obj = ArrayList_GetItem(arrayList, index);
#  560|   		va_copy(cap, ap);
#  561|-> 		rs = fkt(obj, index, cap);
#  562|   		va_end(cap);
#  563|   		if (!rs)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1707]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:599:9: warning[-Wanalyzer-mismatching-deallocation]: ‘arrayList’ should have been deallocated with ‘free’ but was deallocated with ‘ArrayList_Free’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:576:13: enter_function: entry to ‘ArrayList_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:580:34: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:582:12: branch_false: following ‘false’ branch (when ‘arrayList’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:585:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:588:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:590:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:591:14: call_function: calling ‘ArrayList_EnsureCapacity’ from ‘ArrayList_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:591:14: return_function: returning to ‘ArrayList_New’ from ‘ArrayList_EnsureCapacity’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:591:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:592:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ArrayList.c:599:9: danger: deallocated with ‘ArrayList_Free’ here; allocation at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1) expects deallocation with ‘free’
#  597|   	WINPR_PRAGMA_DIAG_PUSH
#  598|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  599|-> 	ArrayList_Free(arrayList);
#  600|   	WINPR_PRAGMA_DIAG_POP
#  601|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1708]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:59:13: warning[-Wanalyzer-use-after-free]: use after ‘BufferPool_Free’ of ‘pool’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:496:14: enter_function: entry to ‘BufferPool_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:500:30: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:502:12: branch_true: following ‘true’ branch (when ‘pool’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:504:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:515:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:519:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:523:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:524:33: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:551:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:551:9: call_function: calling ‘BufferPool_Free’ from ‘BufferPool_New’
#   57|   		return FALSE;
#   58|   
#   59|-> 	if (pool->synchronized)
#   60|   		EnterCriticalSection(&pool->lock);
#   61|   	return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1709]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:356:17: warning[-Wanalyzer-mismatching-deallocation]: ‘buffer’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_aligned_free’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:227:7: enter_function: entry to ‘BufferPool_Take’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:237:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:263:20: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:288:20: branch_false: following ‘false’ branch (when ‘found != 0’)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:306:34: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:308:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:311:37: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:311:36: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:315:69: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:317:36: branch_false: following ‘false’ branch (when ‘newBuffer’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:323:30: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:323:30: call_function: calling ‘BufferPool_ShiftAvailable’ from ‘BufferPool_Take’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:323:30: return_function: returning to ‘BufferPool_Take’ from ‘BufferPool_ShiftAvailable’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:323:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:327:20: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:327:20: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:330:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:330:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:332:47: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:355:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:356:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:356:17: danger: deallocated with ‘winpr_aligned_free’ here
#  354|   out_error:
#  355|   	if (pool->alignment)
#  356|-> 		winpr_aligned_free(buffer);
#  357|   	else
#  358|   		free(buffer);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1710]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:358:17: warning[-Wanalyzer-mismatching-deallocation]: ‘buffer’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘free’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:237:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:263:20: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:282:20: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:288:20: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:288:20: branch_true: following ‘true’ branch (when ‘found == 0’)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:290:28: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:290:28: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:294:37: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:294:36: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:295:50: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:295:50: acquire_memory: allocated here (expects deallocation with ‘winpr_aligned_free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:300:36: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:330:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:330:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:332:47: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:334:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:335:33: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:355:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:358:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:358:17: danger: deallocated with ‘free’ here; allocation at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10) expects deallocation with ‘winpr_aligned_free’
#  356|   		winpr_aligned_free(buffer);
#  357|   	else
#  358|-> 		free(buffer);
#  359|   out_error_no_free:
#  360|   	BufferPool_Unlock(pool);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1711]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:551:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pool’ should have been deallocated with ‘free’ but was deallocated with ‘BufferPool_Free’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:500:30: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:502:12: branch_true: following ‘true’ branch (when ‘pool’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:504:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:512:20: branch_false: following ‘false’ branch (when ‘synchronized == 0’)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:515:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:515:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:519:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:523:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:524:33: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/BufferPool.c:551:9: danger: deallocated with ‘BufferPool_Free’ here; allocation at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  549|   	WINPR_PRAGMA_DIAG_PUSH
#  550|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  551|-> 	BufferPool_Free(pool);
#  552|   	WINPR_PRAGMA_DIAG_POP
#  553|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1712]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:196:9: warning[-Wanalyzer-mismatching-deallocation]: ‘countdown’ should have been deallocated with ‘free’ but was deallocated with ‘CountdownEvent_Free’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:170:56: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:172:12: branch_false: following ‘false’ branch (when ‘countdown’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:175:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:178:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:179:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:196:9: danger: deallocated with ‘CountdownEvent_Free’ here; allocation at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  194|   	WINPR_PRAGMA_DIAG_PUSH
#  195|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  196|-> 	CountdownEvent_Free(countdown);
#  197|   	WINPR_PRAGMA_DIAG_POP
#  198|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1713]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:207:15: warning[-Wanalyzer-use-after-free]: use after ‘CountdownEvent_Free’ of ‘countdown’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:168:18: enter_function: entry to ‘CountdownEvent_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:170:56: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:172:12: branch_false: following ‘false’ branch (when ‘countdown’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:175:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:196:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/CountdownEvent.c:196:9: call_function: calling ‘CountdownEvent_Free’ from ‘CountdownEvent_New’
#  205|   
#  206|   	DeleteCriticalSection(&countdown->lock);
#  207|-> 	(void)CloseHandle(countdown->event);
#  208|   
#  209|   	free(countdown);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1714]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:787:9: warning[-Wanalyzer-mismatching-deallocation]: ‘table’ should have been deallocated with ‘free’ but was deallocated with ‘HashTable_Free’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:762:42: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:764:12: branch_false: following ‘false’ branch (when ‘table’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:767:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:773:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:774:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:787:9: danger: deallocated with ‘HashTable_Free’ here; allocation at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  785|   	WINPR_PRAGMA_DIAG_PUSH
#  786|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  787|-> 	HashTable_Free(table);
#  788|   	WINPR_PRAGMA_DIAG_POP
#  789|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1715]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:800:13: warning[-Wanalyzer-use-after-free]: use after ‘HashTable_Free’ of ‘table’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:760:13: enter_function: entry to ‘HashTable_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:762:42: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:764:12: branch_false: following ‘false’ branch (when ‘table’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:767:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:773:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:774:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:787:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/HashTable.c:787:9: call_function: calling ‘HashTable_Free’ from ‘HashTable_New’
#  798|   		return;
#  799|   
#  800|-> 	if (table->bucketArray)
#  801|   	{
#  802|   		for (size_t index = 0; index < table->numOfBuckets; index++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1716]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ListDictionary.c:174:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pKeys’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ListDictionary.c:134:12: branch_false: following ‘false’ branch (when ‘ppKeys’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ListDictionary.c:137:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ListDictionary.c:153:12: branch_false: following ‘false’ branch (when ‘count == 0’)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ListDictionary.c:168:12: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ListDictionary.c:168:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ListDictionary.c:172:24: branch_true: following ‘true’ branch (when ‘item’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ListDictionary.c:174:53: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ListDictionary.c:174:30: release_memory: ‘pKeys’ is NULL
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/ListDictionary.c:174:25: danger: dereference of NULL ‘pKeys + index * 8’
#  172|   		while (item)
#  173|   		{
#  174|-> 			pKeys[index++] = (ULONG_PTR)item->key;
#  175|   			item = item->next;
#  176|   		}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1717]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:266:9: warning[-Wanalyzer-mismatching-deallocation]: ‘queue’ should have been deallocated with ‘free’ but was deallocated with ‘MessageQueue_Free’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:244:33: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:245:12: branch_false: following ‘false’ branch (when ‘queue’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:248:52: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:266:9: danger: deallocated with ‘MessageQueue_Free’ here; allocation at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  264|   	WINPR_PRAGMA_DIAG_PUSH
#  265|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  266|-> 	MessageQueue_Free(queue);
#  267|   	WINPR_PRAGMA_DIAG_POP
#  268|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1718]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:276:13: warning[-Wanalyzer-use-after-free]: use after ‘MessageQueue_Free’ of ‘queue’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:240:16: enter_function: entry to ‘MessageQueue_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:244:33: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:245:12: branch_false: following ‘false’ branch (when ‘queue’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:248:52: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:266:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/MessageQueue.c:266:9: call_function: calling ‘MessageQueue_Free’ from ‘MessageQueue_New’
#  274|   		return;
#  275|   
#  276|-> 	if (queue->event)
#  277|   		MessageQueue_Clear(queue);
#  278|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1719]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:62:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:150:5: enter_function: entry to ‘PubSub_Unsubscribe’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:158:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:161:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:162:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:162:17: call_function: calling ‘PubSub_Lock’ from ‘PubSub_Unsubscribe’
#   60|   	WINPR_ASSERT(pubSub);
#   61|   	if (pubSub->synchronized)
#   62|-> 		EnterCriticalSection(&pubSub->lock);
#   63|   }
#   64|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1720]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:69:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:150:5: enter_function: entry to ‘PubSub_Unsubscribe’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:158:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:166:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:184:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:184:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:185:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:185:17: call_function: calling ‘PubSub_Unlock’ from ‘PubSub_Unsubscribe’
#   67|   	WINPR_ASSERT(pubSub);
#   68|   	if (pubSub->synchronized)
#   69|-> 		LeaveCriticalSection(&pubSub->lock);
#   70|   }
#   71|   

Error: CPPCHECK_WARNING (CWE-664): [#def1721]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:124: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  122|   	WINPR_ASSERT(pubSub);
#  123|   
#  124|-> 	va_list ap = { 0 };
#  125|   	va_start(ap, EventName);
#  126|   	pEventHandler EventHandler = va_arg(ap, pEventHandler);

Error: CPPCHECK_WARNING (CWE-664): [#def1722]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:157: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  155|   	WINPR_ASSERT(EventName);
#  156|   
#  157|-> 	va_list ap = { 0 };
#  158|   	va_start(ap, EventName);
#  159|   	pEventHandler EventHandler = va_arg(ap, pEventHandler);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1723]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:252:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pubSub’ should have been deallocated with ‘free’ but was deallocated with ‘PubSub_Free’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:231:37: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:233:12: branch_false: following ‘false’ branch (when ‘pubSub’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:236:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:238:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:252:9: danger: deallocated with ‘PubSub_Free’ here; allocation at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  250|   	WINPR_PRAGMA_DIAG_PUSH
#  251|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  252|-> 	PubSub_Free(pubSub);
#  253|   	WINPR_PRAGMA_DIAG_POP
#  254|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1724]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:261:21: warning[-Wanalyzer-use-after-free]: use after ‘PubSub_Free’ of ‘pubSub’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:229:10: enter_function: entry to ‘PubSub_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:231:37: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:233:12: branch_false: following ‘false’ branch (when ‘pubSub’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:236:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:245:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:246:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:252:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/PubSub.c:252:9: call_function: calling ‘PubSub_Free’ from ‘PubSub_New’
#  259|   	if (pubSub)
#  260|   	{
#  261|-> 		if (pubSub->synchronized)
#  262|   			DeleteCriticalSection(&pubSub->lock);
#  263|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1725]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:333:9: warning[-Wanalyzer-mismatching-deallocation]: ‘queue’ should have been deallocated with ‘free’ but was deallocated with ‘Queue_Free’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:302:26: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:304:12: branch_false: following ‘false’ branch (when ‘queue’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:307:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:315:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:316:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:333:9: danger: deallocated with ‘Queue_Free’ here; allocation at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  331|   	WINPR_PRAGMA_DIAG_PUSH
#  332|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  333|-> 	Queue_Free(queue);
#  334|   	WINPR_PRAGMA_DIAG_POP
#  335|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1726]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:343:13: warning[-Wanalyzer-use-after-free]: use after ‘Queue_Free’ of ‘queue’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:298:9: enter_function: entry to ‘Queue_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:302:26: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:304:12: branch_false: following ‘false’ branch (when ‘queue’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:307:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:333:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Queue.c:333:9: call_function: calling ‘Queue_Free’ from ‘Queue_New’
#  341|   		return;
#  342|   
#  343|-> 	if (queue->haveLock)
#  344|   	{
#  345|   		Queue_Clear(queue);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1727]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:237:9: warning[-Wanalyzer-mismatching-deallocation]: ‘stack’ should have been deallocated with ‘free’ but was deallocated with ‘Stack_Free’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:217:26: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:219:12: branch_false: following ‘false’ branch (when ‘stack’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:222:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:227:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:228:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:237:9: danger: deallocated with ‘Stack_Free’ here; allocation at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  235|   	WINPR_PRAGMA_DIAG_PUSH
#  236|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  237|-> 	Stack_Free(stack);
#  238|   	WINPR_PRAGMA_DIAG_POP
#  239|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1728]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:246:21: warning[-Wanalyzer-use-after-free]: use after ‘Stack_Free’ of ‘stack’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:214:9: enter_function: entry to ‘Stack_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:217:26: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:219:12: branch_false: following ‘false’ branch (when ‘stack’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:222:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:227:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:228:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:237:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/Stack.c:237:9: call_function: calling ‘Stack_Free’ from ‘Stack_New’
#  244|   	if (stack)
#  245|   	{
#  246|-> 		if (stack->synchronized)
#  247|   			DeleteCriticalSection(&stack->lock);
#  248|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1729]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:93:13: warning[-Wanalyzer-use-after-free]: use after ‘StreamPool_Free’ of ‘pool’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:401:14: enter_function: entry to ‘StreamPool_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:405:30: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:407:12: branch_true: following ‘true’ branch (when ‘pool’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:409:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:412:22: call_function: calling ‘StreamPool_EnsureCapacity’ from ‘StreamPool_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:412:22: return_function: returning to ‘StreamPool_New’ from ‘StreamPool_EnsureCapacity’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:412:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:413:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:424:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:424:9: call_function: calling ‘StreamPool_Free’ from ‘StreamPool_New’
#   91|   {
#   92|   	WINPR_ASSERT(pool);
#   93|-> 	if (pool->synchronized)
#   94|   		EnterCriticalSection(&pool->lock);
#   95|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1730]
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:424:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pool’ should have been deallocated with ‘free’ but was deallocated with ‘StreamPool_Free’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:401:14: enter_function: entry to ‘StreamPool_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:405:30: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:407:12: branch_true: following ‘true’ branch (when ‘pool’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:409:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:412:22: call_function: calling ‘StreamPool_EnsureCapacity’ from ‘StreamPool_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:412:22: return_function: returning to ‘StreamPool_New’ from ‘StreamPool_EnsureCapacity’
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:412:20: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:413:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/collections/StreamPool.c:424:9: danger: deallocated with ‘StreamPool_Free’ here; allocation at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1) expects deallocation with ‘free’
#  422|   	WINPR_PRAGMA_DIAG_PUSH
#  423|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  424|-> 	StreamPool_Free(pool);
#  425|   	WINPR_PRAGMA_DIAG_POP
#  426|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1731]
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:496:14: warning[-Wanalyzer-use-after-free]: use after ‘IniFile_Free’ of ‘ini’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:820:11: enter_function: entry to ‘IniFile_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:822:36: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:824:12: branch_false: following ‘false’ branch (when ‘ini’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:827:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:827:14: call_function: calling ‘IniFile_SectionResize’ from ‘IniFile_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:827:14: return_function: returning to ‘IniFile_New’ from ‘IniFile_SectionResize’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:827:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:828:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:835:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:835:9: call_function: calling ‘IniFile_Free’ from ‘IniFile_New’
#  494|   {
#  495|   	WINPR_ASSERT(ini);
#  496|-> 	free(ini->filename);
#  497|   	ini->filename = NULL;
#  498|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1732]
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:835:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ini’ should have been deallocated with ‘free’ but was deallocated with ‘IniFile_Free’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:820:11: enter_function: entry to ‘IniFile_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:822:36: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:824:12: branch_false: following ‘false’ branch (when ‘ini’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:827:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:827:14: call_function: calling ‘IniFile_SectionResize’ from ‘IniFile_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:827:14: return_function: returning to ‘IniFile_New’ from ‘IniFile_SectionResize’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:827:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:828:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:835:9: danger: deallocated with ‘IniFile_Free’ here; allocation at [(2)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/1) expects deallocation with ‘free’
#  833|   	WINPR_PRAGMA_DIAG_PUSH
#  834|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  835|-> 	IniFile_Free(ini);
#  836|   	WINPR_PRAGMA_DIAG_POP
#  837|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1733]
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:884:9: warning[-Wanalyzer-mismatching-deallocation]: ‘IniFile_New()’ should have been deallocated with ‘free’ but was deallocated with ‘IniFile_Free’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:840:11: enter_function: entry to ‘IniFile_Clone’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:842:12: branch_false: following ‘false’ branch (when ‘ini’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:845:26: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:845:26: call_function: calling ‘IniFile_New’ from ‘IniFile_Clone’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:845:26: return_function: returning to ‘IniFile_Clone’ from ‘IniFile_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:846:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:849:28: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:850:14: call_function: calling ‘IniFile_SetFilename’ from ‘IniFile_Clone’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:850:14: return_function: returning to ‘IniFile_Clone’ from ‘IniFile_SetFilename’
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:850:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:853:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:853:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:860:26: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:862:28: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:864:46: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:865:20: branch_true: following ‘true’ branch (when ‘cur’ is NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:866:25: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/ini.c:884:9: danger: deallocated with ‘IniFile_Free’ here; allocation at [(6)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/5) expects deallocation with ‘free’
#  882|   
#  883|   fail:
#  884|-> 	IniFile_Free(copy);
#  885|   	return NULL;
#  886|   }

Error: CPPCHECK_WARNING (CWE-476): [#def1734]
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:67: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_buf
#   65|   		{
#   66|   			new_buf = (BYTE*)malloc(new_capacity);
#   67|-> 			CopyMemory(new_buf, s->buffer, s->capacity);
#   68|   			s->isOwner = TRUE;
#   69|   		}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1735]
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:261:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:466:9: enter_function: entry to ‘Stream_Write_UTF16_String_From_UTF8’
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:472:12: branch_true: following ‘true’ branch (when ‘length != 0’)...
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:474:22: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:474:22: call_function: calling ‘Stream_CheckAndLogRequiredCapacityEx’ from ‘Stream_Write_UTF16_String_From_UTF8’
#  259|   	{
#  260|   		WLog_FATAL(STREAM_TAG, "wStream API misuse: stream was written out of bounds");
#  261|-> 		winpr_log_backtrace(STREAM_TAG, WLOG_FATAL, 20);
#  262|   		return 0;
#  263|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1736]
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:278:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:423:6: enter_function: entry to ‘Stream_CheckAndLogRequiredLengthWLogEx’
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:429:12: branch_true: following ‘true’ branch (when ‘actual < nmemb’)...
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:433:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:433:17: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:434:17: call_function: calling ‘Stream_CheckAndLogRequiredLengthWLogExVa’ from ‘Stream_CheckAndLogRequiredLengthWLogEx’
#  276|   	{
#  277|   		WLog_FATAL(STREAM_TAG, "wStream API misuse: stream was read out of bounds");
#  278|-> 		winpr_log_backtrace(STREAM_TAG, WLOG_FATAL, 20);
#  279|   		return 0;
#  280|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1737]
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:340:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:466:9: enter_function: entry to ‘Stream_Write_UTF16_String_From_UTF8’
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:472:12: branch_true: following ‘true’ branch (when ‘length != 0’)...
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:474:22: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:474:22: call_function: calling ‘Stream_CheckAndLogRequiredCapacityEx’ from ‘Stream_Write_UTF16_String_From_UTF8’
#  338|   
#  339|   	if (actual < nmemb)
#  340|-> 		return Stream_CheckAndLogRequiredCapacityWLogExVa(WLog_Get(tag), level, s, nmemb, size, fmt,
#  341|   		                                                  args);
#  342|   	return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1738]
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:418:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:392:6: enter_function: entry to ‘Stream_CheckAndLogRequiredLengthEx’
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:398:12: branch_true: following ‘true’ branch (when ‘actual < nmemb’)...
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:402:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:402:17: acquire_resource: ‘va_start’ called here
FreeRDP-3.16.0/winpr/libwinpr/utils/stream.c:403:17: call_function: calling ‘Stream_CheckAndLogRequiredLengthExVa’ from ‘Stream_CheckAndLogRequiredLengthEx’
#  416|   
#  417|   	if (actual < nmemb)
#  418|-> 		return Stream_CheckAndLogRequiredLengthWLogExVa(WLog_Get(tag), level, s, nmemb, size, fmt,
#  419|   		                                                args);
#  420|   	return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1739]
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:112:17: warning[-Wanalyzer-mismatching-deallocation]: ‘CommandLineParseCommaSeparatedValuesEx(&testListAppName,  list, & count)’ should have been deallocated with ‘CommandLineParserFree’ but was deallocated with ‘free’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:95:13: enter_function: entry to ‘TestCommandLineParseCommaSeparatedValuesEx’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:100:28: branch_true: following ‘true’ branch (when ‘x != 11’)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:108:29: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:110:26: acquire_memory: allocated here (expects deallocation with ‘CommandLineParserFree’)
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:111:30: call_function: calling ‘checkResult’ from ‘TestCommandLineParseCommaSeparatedValuesEx’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:111:30: return_function: returning to ‘TestCommandLineParseCommaSeparatedValuesEx’ from ‘checkResult’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:112:17: danger: deallocated with ‘free’ here; allocation at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘CommandLineParserFree’
#  110|   		ptr.pp = CommandLineParseCommaSeparatedValuesEx(testListAppName, list, &count);
#  111|   		BOOL valid = checkResult(x, ptr.pp, count);
#  112|-> 		free(ptr.p);
#  113|   		if (!valid)
#  114|   			return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1740]
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:312:25: warning[-Wanalyzer-mismatching-deallocation]: ‘CommandLineParseCommaSeparatedValuesEx(*arg.Name, *arg.Value, & count)’ should have been deallocated with ‘CommandLineParserFree’ but was deallocated with ‘free’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:196:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:202:18: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:204:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:210:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:212:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:218:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:220:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:226:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:228:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:234:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:236:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:242:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:250:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:252:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:258:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:260:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:266:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:268:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:274:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:276:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:283:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:301:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:308:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:311:36: acquire_memory: allocated here (expects deallocation with ‘CommandLineParserFree’)
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:312:25: danger: deallocated with ‘free’ here; allocation at [(25)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/24) expects deallocation with ‘CommandLineParserFree’
#  310|   			size_t count = 0;
#  311|   			char** p = CommandLineParseCommaSeparatedValuesEx(arg->Name, arg->Value, &count);
#  312|-> 			free((void*)p);
#  313|   
#  314|   			if (!p || count != 3)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1741]
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:326:25: warning[-Wanalyzer-mismatching-deallocation]: ‘CommandLineParseCommaSeparatedValuesEx(*arg.Name, *arg.Value, & count)’ should have been deallocated with ‘CommandLineParserFree’ but was deallocated with ‘free’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:196:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:202:18: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:204:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:210:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:212:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:218:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:220:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:226:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:228:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:234:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:236:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:242:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:244:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:250:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:252:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:258:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:260:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:266:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:268:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:274:15: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:276:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:283:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:294:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:301:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:301:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:308:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:308:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:322:17: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:322:17: branch_true: following ‘true’ branch (when the strings are equal)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:324:32: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:325:36: acquire_memory: allocated here (expects deallocation with ‘CommandLineParserFree’)
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestCmdLine.c:326:25: danger: deallocated with ‘free’ here; allocation at [(31)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/30) expects deallocation with ‘CommandLineParserFree’
#  324|   			size_t count = 0;
#  325|   			char** p = CommandLineParseCommaSeparatedValuesEx(arg->Name, arg->Value, &count);
#  326|-> 			free((void*)p);
#  327|   
#  328|   			if (!p || count != 1)

Error: GCC_ANALYZER_WARNING (CWE-590): [#def1742]
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:133:9: warning[-Wanalyzer-free-of-non-heap]: ‘Stream_Free’ of ‘&staticStream’ which points to memory on the stack
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:91:13: enter_function: entry to ‘TestStream_Static’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:101:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘TestStream_Static’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:103:12: branch_false: following ‘false’ branch (when ‘v == 51889’)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:106:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:109:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:113:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:113:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:118:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘TestStream_Static’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:120:12: branch_false: following ‘false’ branch (when ‘v == 1’)...
 branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:123:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘TestStream_Static’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:125:12: branch_false: following ‘false’ branch (when ‘v == 2’)...
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:133:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:133:9: danger: call to ‘Stream_Free’ here
#  131|   	WINPR_PRAGMA_DIAG_PUSH
#  132|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  133|-> 	Stream_Free(s, TRUE);
#  134|   	WINPR_PRAGMA_DIAG_POP
#  135|   	return TRUE;

Error: COMPILER_WARNING (CWE-590): [#def1743]
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:133:9: warning[-Wfree-nonheap-object]: ‘Stream_Free’ called on unallocated object ‘staticStream’
#  133 |         Stream_Free(s, TRUE);
#      |         ^
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c: scope_hint: In function ‘TestStream’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:94:17: note: declared here
#   94 |         wStream staticStream = { 0 };
#      |                 ^
#  131|   	WINPR_PRAGMA_DIAG_PUSH
#  132|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  133|-> 	Stream_Free(s, TRUE);
#  134|   	WINPR_PRAGMA_DIAG_POP
#  135|   	return TRUE;

Error: COMPILER_WARNING (CWE-590): [#def1744]
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStream.c:133:9: warning[-Wfree-nonheap-object]: ‘Stream_Free’ called on unallocated object ‘staticStream’
#  131|   	WINPR_PRAGMA_DIAG_PUSH
#  132|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  133|-> 	Stream_Free(s, TRUE);
#  134|   	WINPR_PRAGMA_DIAG_POP
#  135|   	return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def1745]
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:56:9: warning[-Wanalyzer-double-free]: double-‘Stream_Release’ of ‘StreamPool_Take(StreamPool_New(1, 16384), 0)’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:40:16: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:55:9: release_memory: first ‘Stream_Release’ here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:56:9: danger: second ‘Stream_Release’ here; first ‘Stream_Release’ was at [(2)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/1)
#   54|   
#   55|   	Stream_Release(s[2]);
#   56|-> 	Stream_Release(s[2]);
#   57|   
#   58|   	Stream_Release(s[3]);

Error: GCC_ANALYZER_WARNING (CWE-415): [#def1746]
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:59:9: warning[-Wanalyzer-double-free]: double-‘Stream_Release’ of ‘StreamPool_Take(StreamPool_New(1, 16384), 0)’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:41:16: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:58:9: release_memory: first ‘Stream_Release’ here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:59:9: danger: second ‘Stream_Release’ here; first ‘Stream_Release’ was at [(2)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/1)
#   57|   
#   58|   	Stream_Release(s[3]);
#   59|-> 	Stream_Release(s[3]);
#   60|   	Stream_Release(s[3]);
#   61|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def1747]
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:63:9: warning[-Wanalyzer-double-free]: double-‘Stream_Release’ of ‘StreamPool_Take(StreamPool_New(1, 16384), 0)’
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:42:16: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:62:9: release_memory: first ‘Stream_Release’ here
FreeRDP-3.16.0/winpr/libwinpr/utils/test/TestStreamPool.c:63:9: danger: second ‘Stream_Release’ here; first ‘Stream_Release’ was at [(2)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/1)
#   61|   
#   62|   	Stream_Release(s[4]);
#   63|-> 	Stream_Release(s[4]);
#   64|   	Stream_Release(s[4]);
#   65|   	Stream_Release(s[4]);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1748]
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:154:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ctx’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_unwind_backtrace_free’
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:131:33: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:132:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:134:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:136:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:137:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:154:9: danger: deallocated with ‘winpr_unwind_backtrace_free’ here; allocation at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  152|   	return ctx;
#  153|   fail:
#  154|-> 	winpr_unwind_backtrace_free(ctx);
#  155|   	return NULL;
#  156|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1749]
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:163:14: warning[-Wanalyzer-use-after-free]: use after ‘winpr_unwind_backtrace_free’ of ‘buffer’
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:128:7: enter_function: entry to ‘winpr_unwind_backtrace’
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:131:33: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:132:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:134:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:136:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:137:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:154:9: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:154:9: call_function: calling ‘winpr_unwind_backtrace_free’ from ‘winpr_unwind_backtrace’
#  161|   	if (!ctx)
#  162|   		return;
#  163|-> 	free(ctx->info);
#  164|   	free(ctx);
#  165|   }

Error: CPPCHECK_WARNING (CWE-401): [#def1750]
FreeRDP-3.16.0/winpr/libwinpr/utils/unwind/debug.c:205: error[memleak]: Memory leak: cnv.pv
#  203|   
#  204|   	// NOLINTNEXTLINE(clang-analyzer-unix.Malloc): function is an allocator
#  205|-> 	return cnv.cpp;
#  206|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1751]
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/Appender.c:29:13: warning[-Wanalyzer-use-after-free]: use after ‘WLog_Appender_Free’ of ‘appender’
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/Appender.c:152:6: enter_function: entry to ‘WLog_SetLogAppenderType’
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/Appender.c:154:12: branch_false: following ‘false’ branch (when ‘log’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/Appender.c:157:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/Appender.c:157:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/Appender.c:159:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/Appender.c:159:17: release_memory: deallocated here
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/Appender.c:159:17: call_function: calling ‘WLog_Appender_Free’ from ‘WLog_SetLogAppenderType’
#   27|   		return;
#   28|   
#   29|-> 	if (appender->Layout)
#   30|   	{
#   31|   		WLog_Layout_Free(log, appender->Layout);

Error: CPPCHECK_WARNING (CWE-562): [#def1752]
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/CallbackAppender.c:52: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#   50|   		return FALSE;
#   51|   
#   52|-> 	message->PrefixString = prefix;
#   53|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#   54|   

Error: CPPCHECK_WARNING (CWE-562): [#def1753]
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/CallbackAppender.c:72: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#   70|   		return FALSE;
#   71|   
#   72|-> 	message->PrefixString = prefix;
#   73|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#   74|   

Error: CPPCHECK_WARNING (CWE-562): [#def1754]
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/CallbackAppender.c:91: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#   89|   		return FALSE;
#   90|   
#   91|-> 	message->PrefixString = prefix;
#   92|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#   93|   

Error: CPPCHECK_WARNING (CWE-562): [#def1755]
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/CallbackAppender.c:110: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  108|   		return FALSE;
#  109|   
#  110|-> 	message->PrefixString = prefix;
#  111|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#  112|   

Error: CPPCHECK_WARNING (CWE-562): [#def1756]
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/ConsoleAppender.c:64: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#   62|   	consoleAppender = (wLogConsoleAppender*)appender;
#   63|   
#   64|-> 	message->PrefixString = prefix;
#   65|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#   66|   

Error: CPPCHECK_WARNING (CWE-562): [#def1757]
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/FileAppender.c:144: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  142|   		return FALSE;
#  143|   
#  144|-> 	message->PrefixString = prefix;
#  145|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#  146|   	(void)fprintf(fp, "%s%s\n", message->PrefixString, message->TextString);

Error: CPPCHECK_WARNING (CWE-562): [#def1758]
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/UdpAppender.c:99: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#   97|   
#   98|   	udpAppender = (wLogUdpAppender*)appender;
#   99|-> 	message->PrefixString = prefix;
#  100|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#  101|   	(void)_sendto(udpAppender->sock, message->PrefixString,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1759]
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:921:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*log.Name’
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:830:7: enter_function: entry to ‘WLog_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:838:12: branch_false: following ‘false’ branch (when ‘log’ is non-NULL)...
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:841:21: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:843:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:846:14: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:846:14: call_function: calling ‘WLog_ParseName’ from ‘WLog_New’
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:846:14: return_function: returning to ‘WLog_New’ from ‘WLog_ParseName’
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:846:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:849:9: branch_false: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:854:12: branch_true: following ‘true’ branch...
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:855:17: branch_true: ...to here
FreeRDP-3.16.0/winpr/libwinpr/utils/wlog/wlog.c:907:9: call_function: calling ‘WLog_Free’ from ‘WLog_New’
#  919|   		}
#  920|   
#  921|-> 		free(log->Name);
#  922|   
#  923|   		/* The first element in this array is allocated, the rest are indices into this variable */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1760]
FreeRDP-3.16.0/winpr/tools/makecert-cli/main.c:39:13: warning[-Wanalyzer-malloc-leak]: leak of ‘makecert_context_new()’
FreeRDP-3.16.0/winpr/tools/makecert-cli/main.c:35:19: acquire_memory: allocated here
FreeRDP-3.16.0/winpr/tools/makecert-cli/main.c:36:12: branch_false: following ‘false’ branch...
FreeRDP-3.16.0/winpr/tools/makecert-cli/main.c:39:13: branch_false: ...to here
FreeRDP-3.16.0/winpr/tools/makecert-cli/main.c:39:13: danger: ‘makecert_context_new()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   37|   		return 1;
#   38|   
#   39|-> 	if (makecert_context_process(context, argc, argv) < 0)
#   40|   		ret = 1;
#   41|   

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-219.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namefreerdp-3.16.0-4.fc44
store-results-to/tmp/tmpx3s63f14/freerdp-3.16.0-4.fc44.tar.xz
time-created2025-10-28 18:01:48
time-finished2025-10-28 18:08:56
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpx3s63f14/freerdp-3.16.0-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpx3s63f14/freerdp-3.16.0-4.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9