freerdp-3.20.0-1.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:60:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cur’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:51:28: acquire_memory: this call could return NULL
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:54:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:54:12: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:56:36: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:58:57: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:60:25: danger: ‘cur’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/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): [#def2]
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:78:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cur’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:51:28: acquire_memory: this call could return NULL
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:54:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:66:18: branch_false: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:66:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:66:17: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:68:36: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:70:57: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:78:33: danger: ‘cur’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/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): [#def3]
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:95:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cur’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:51:28: acquire_memory: this call could return NULL
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:54:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:66:18: branch_false: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:66:17: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:84:18: branch_false: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:84:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:84:17: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:86:36: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:88:57: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:91:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:95:49: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_format.c:95:33: danger: ‘cur’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/9/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): [#def4]
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:284:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:255:13: enter_function: entry to ‘cliprdr_process_monitor_ready’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:259:41: call_function: inlined call to ‘cliprdr_get_client_interface’ from ‘cliprdr_process_monitor_ready’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:265:9: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:267:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:281:9: branch_false: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:284:9: danger: dereference of NULL ‘<unknown>’
#  282|   	monitorReady.common.msgFlags = flags;
#  283|   	monitorReady.common.dataLen = length;
#  284|-> 	IFCALLRET(context->MonitorReady, error, context, &monitorReady);
#  285|   
#  286|   	if (error)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:317:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:297:13: enter_function: entry to ‘cliprdr_process_filecontents_request’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:301:41: call_function: inlined call to ‘cliprdr_get_client_interface’ from ‘cliprdr_process_filecontents_request’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:307:9: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:313:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:317:41: branch_false: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:317:41: danger: dereference of NULL ‘<unknown>’
#  315|   
#  316|   	const UINT32 mask =
#  317|-> 	    freerdp_settings_get_uint32(context->rdpcontext->settings, FreeRDP_ClipboardFeatureMask);
#  318|   	if ((mask & (CLIPRDR_FLAG_LOCAL_TO_REMOTE_FILES)) == 0)
#  319|   	{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:356:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:337:13: enter_function: entry to ‘cliprdr_process_filecontents_response’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:341:41: call_function: inlined call to ‘cliprdr_get_client_interface’ from ‘cliprdr_process_filecontents_response’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:347:9: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:353:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:356:9: branch_false: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:356:9: danger: dereference of NULL ‘<unknown>’
#  354|   		return error;
#  355|   
#  356|-> 	IFCALLRET(context->ServerFileContentsResponse, error, context, &response);
#  357|   
#  358|   	if (error)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:389:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:370:13: enter_function: entry to ‘cliprdr_process_lock_clipdata’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:374:41: call_function: inlined call to ‘cliprdr_get_client_interface’ from ‘cliprdr_process_lock_clipdata’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:380:9: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:382:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:385:9: branch_false: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:388:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘cliprdr_process_lock_clipdata’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:389:9: danger: dereference of NULL ‘<unknown>’
#  387|   	lockClipboardData.common.dataLen = length;
#  388|   	Stream_Read_UINT32(s, lockClipboardData.clipDataId); /* clipDataId (4 bytes) */
#  389|-> 	IFCALLRET(context->ServerLockClipboardData, error, context, &lockClipboardData);
#  390|   
#  391|   	if (error)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:422:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:403:13: enter_function: entry to ‘cliprdr_process_unlock_clipdata’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:407:41: call_function: inlined call to ‘cliprdr_get_client_interface’ from ‘cliprdr_process_unlock_clipdata’
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:413:9: branch_true: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:415:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:418:9: branch_false: ...to here
FreeRDP-3.20.0/channels/cliprdr/client/cliprdr_main.c:422:9: danger: dereference of NULL ‘<unknown>’
#  420|   	unlockClipboardData.common.dataLen = length;
#  421|   
#  422|-> 	IFCALLRET(context->ServerUnlockClipboardData, error, context, &unlockClipboardData);
#  423|   
#  424|   	if (error)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
FreeRDP-3.20.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.20.0/channels/disp/client/disp_main.c:253:13: enter_function: entry to ‘disp_send_monitor_layout’
FreeRDP-3.20.0/channels/disp/client/disp_main.c:266:16: call_function: calling ‘disp_send_display_control_monitor_layout_pdu’ from ‘disp_send_monitor_layout’
#   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-401): [#def10]
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:170:36: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:161:13: acquire_memory: allocated here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:163:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:170:36: branch_false: ...to here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:170:13: throw: if ‘WTSVirtualChannelQuery’ throws an exception...
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:170:36: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/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): [#def11]
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:273:9: warning[-Wanalyzer-malloc-leak]: leak of ‘**context.priv.ChannelHandle’
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:274:13: acquire_memory: allocated here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:273:9: danger: ‘**context.priv.ChannelHandle’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  271|   static UINT encomsp_server_start(EncomspServerContext* context)
#  272|   {
#  273|-> 	context->priv->ChannelHandle =
#  274|   	    WTSVirtualChannelOpen(context->vcm, WTS_CURRENT_SESSION, ENCOMSP_SVC_CHANNEL_NAME);
#  275|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:230:30: warning[-Wanalyzer-malloc-leak]: leak of ‘mappedGeometry’
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:318:13: enter_function: entry to ‘geometry_on_data_received’
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:321:16: call_function: calling ‘geometry_recv_pdu’ from ‘geometry_on_data_received’
#  228|   			mappedGeometry->mappingId = id;
#  229|   
#  230|-> 			if (!HashTable_Insert(context->geometries, &(mappedGeometry->mappingId),
#  231|   			                      mappedGeometry))
#  232|   			{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:233:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mappedGeometry’
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:318:13: enter_function: entry to ‘geometry_on_data_received’
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:321:16: call_function: calling ‘geometry_recv_pdu’ from ‘geometry_on_data_received’
#  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): [#def14]
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:365:31: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:358:43: acquire_memory: allocated here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:359:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:365:31: branch_false: ...to here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:365:31: throw: if ‘HashTable_New’ throws an exception...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:365:31: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  363|   	}
#  364|   
#  365|-> 	context->geometries = HashTable_New(FALSE);
#  366|   	if (!context->geometries)
#  367|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:368:17: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:358:43: acquire_memory: allocated here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:359:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:365:31: branch_false: ...to here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:366:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:368:17: branch_true: ...to here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:368:17: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:368:17: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  366|   	if (!context->geometries)
#  367|   	{
#  368|-> 		WLog_Print(base->log, WLOG_ERROR, "unable to allocate geometries");
#  369|   		free(context);
#  370|   		return CHANNEL_RC_NO_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:373:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:359:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:365:31: branch_false: ...to here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:365:31: acquire_memory: allocated here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:366:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:373:9: branch_false: ...to here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:373:9: throw: if ‘HashTable_SetHashFunction’ throws an exception...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:373:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  371|   	}
#  372|   
#  373|-> 	HashTable_SetHashFunction(context->geometries, mappedGeometryHash);
#  374|   	{
#  375|   		wObject* obj = HashTable_KeyObject(context->geometries);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:373:9: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:358:43: acquire_memory: allocated here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:359:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:365:31: branch_false: ...to here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:366:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:373:9: branch_false: ...to here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:373:9: throw: if ‘HashTable_SetHashFunction’ throws an exception...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:373:9: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  371|   	}
#  372|   
#  373|-> 	HashTable_SetHashFunction(context->geometries, mappedGeometryHash);
#  374|   	{
#  375|   		wObject* obj = HashTable_KeyObject(context->geometries);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:375:32: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:358:43: acquire_memory: allocated here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:359:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:365:31: branch_false: ...to here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:366:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:373:9: branch_false: ...to here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:375:32: throw: if ‘HashTable_KeyObject’ throws an exception...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:375:32: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  373|   	HashTable_SetHashFunction(context->geometries, mappedGeometryHash);
#  374|   	{
#  375|-> 		wObject* obj = HashTable_KeyObject(context->geometries);
#  376|   		obj->fnObjectEquals = mappedGeometryKeyCompare;
#  377|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:379:32: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:358:43: acquire_memory: allocated here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:359:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:365:31: branch_false: ...to here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:366:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:373:9: branch_false: ...to here
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:379:32: throw: if ‘HashTable_ValueObject’ throws an exception...
FreeRDP-3.20.0/channels/geometry/client/geometry_main.c:379:32: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  377|   	}
#  378|   	{
#  379|-> 		wObject* obj = HashTable_ValueObject(context->geometries);
#  380|   		obj->fnObjectFree = mappedGeometryUnref_void;
#  381|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def20]
FreeRDP-3.20.0/channels/location/client/location_main.c:82:14: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.20.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/channels/location/client/location_main.c:379:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/location/client/location_main.c:383:66: branch_false: ...to here
FreeRDP-3.20.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): [#def21]
FreeRDP-3.20.0/channels/location/client/location_main.c:218:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.20.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/channels/location/client/location_main.c:352:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/location/client/location_main.c:356:65: branch_false: ...to here
FreeRDP-3.20.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): [#def22]
FreeRDP-3.20.0/channels/location/client/location_main.c:259:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.20.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/channels/location/client/location_main.c:379:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/location/client/location_main.c:383:66: branch_false: ...to here
FreeRDP-3.20.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): [#def23]
FreeRDP-3.20.0/channels/location/client/location_main.c:295:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.20.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/channels/location/client/location_main.c:401:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/location/client/location_main.c:405:66: branch_false: ...to here
FreeRDP-3.20.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): [#def24]
FreeRDP-3.20.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-404): [#def25]
FreeRDP-3.20.0/channels/rdpdr/client/rdpdr_main.c:1673:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/rdpdr/client/rdpdr_main.c:1772:13: enter_function: entry to ‘rdpdr_process_receive’
FreeRDP-3.20.0/channels/rdpdr/client/rdpdr_main.c:1786:17: call_function: inlined call to ‘stream_read_u16_le’ from ‘rdpdr_process_receive’
FreeRDP-3.20.0/channels/rdpdr/client/rdpdr_main.c:1787:17: call_function: inlined call to ‘stream_read_u16_le’ from ‘rdpdr_process_receive’
FreeRDP-3.20.0/channels/rdpdr/client/rdpdr_main.c:1789:20: branch_true: following ‘true’ branch (when ‘v == 17522’)...
FreeRDP-3.20.0/channels/rdpdr/client/rdpdr_main.c:1791:30: branch_true: ...to here
FreeRDP-3.20.0/channels/rdpdr/client/rdpdr_main.c:1791:30: call_function: calling ‘rdpdr_check_channel_state’ from ‘rdpdr_process_receive’
# 1671|   		enum RDPDR_CHANNEL_STATE cur = va_arg(ap, enum RDPDR_CHANNEL_STATE);
# 1672|   		const char* curstr = rdpdr_state_str(cur);
# 1673|-> 		winpr_str_append(curstr, buffer, size, "|");
# 1674|   	}
# 1675|   	return buffer;

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

Error: COMPILER_WARNING: [#def27]
FreeRDP-3.20.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: [#def28]
FreeRDP-3.20.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: [#def29]
FreeRDP-3.20.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_read_general_capability_set’
FreeRDP-3.20.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: [#def30]
FreeRDP-3.20.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: [#def31]
FreeRDP-3.20.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: [#def32]
FreeRDP-3.20.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: [#def33]
FreeRDP-3.20.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: [#def34]
FreeRDP-3.20.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: [#def35]
FreeRDP-3.20.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_create_request’
FreeRDP-3.20.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: [#def36]
FreeRDP-3.20.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_device_control_request’
FreeRDP-3.20.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: [#def37]
FreeRDP-3.20.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: [#def38]
FreeRDP-3.20.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_change_directory_request’
FreeRDP-3.20.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: [#def39]
FreeRDP-3.20.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_drive_rename_file_callback2’
FreeRDP-3.20.0/channels/rdpdr/server/rdpdr_main.c:3492:16: warning[-Wunused-but-set-variable=]: variable ‘length’ set but not used
# 3492 |         UINT32 length = 0;
#      |                ^~~~~~
# 3490|                                                        UINT32 completionId, UINT32 ioStatus)
# 3491|   {
# 3492|-> 	UINT32 length = 0;
# 3493|   	WINPR_ASSERT(context);
# 3494|   	WINPR_ASSERT(context->priv);

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

Error: GCC_ANALYZER_WARNING (CWE-404): [#def41]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1073:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1207:13: enter_function: entry to ‘rdpei_touch_raw_event’
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1212:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1213:14: call_function: calling ‘rdpei_touch_process’ from ‘rdpei_touch_raw_event’
# 1071|   	if (contactPoint)
# 1072|   		contactIdlocal = contactPoint->contactId;
# 1073|-> 	LeaveCriticalSection(&rdpei->lock);
# 1074|   
# 1075|   	if (contactIdlocal > UINT32_MAX)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def42]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1106:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1207:13: enter_function: entry to ‘rdpei_touch_raw_event’
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1212:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1213:14: call_function: calling ‘rdpei_touch_process’ from ‘rdpei_touch_raw_event’
# 1104|   			if (p >= 360)
# 1105|   			{
# 1106|-> 				WLog_Print(rdpei->base.log, WLOG_WARN,
# 1107|   				           "TouchContact %" PRId64 ": Invalid orientation value %" PRIu32
# 1108|   				           "degree, clamping to 359 degree",

Error: CPPCHECK_WARNING (CWE-664): [#def43]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1145: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1143|   {
# 1144|   	UINT rc = 0;
# 1145|-> 	va_list ap = { 0 };
# 1146|   	rc = rdpei_touch_process(context, externalId,
# 1147|   	                         RDPINPUT_CONTACT_FLAG_DOWN | RDPINPUT_CONTACT_FLAG_INRANGE |

Error: CPPCHECK_WARNING (CWE-664): [#def44]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1149: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1147|   	                         RDPINPUT_CONTACT_FLAG_DOWN | RDPINPUT_CONTACT_FLAG_INRANGE |
# 1148|   	                             RDPINPUT_CONTACT_FLAG_INCONTACT,
# 1149|-> 	                         x, y, contactId, 0, ap);
# 1150|   	return rc;
# 1151|   }

Error: CPPCHECK_WARNING (CWE-664): [#def45]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1162: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1160|   {
# 1161|   	UINT rc = 0;
# 1162|-> 	va_list ap = { 0 };
# 1163|   	rc = rdpei_touch_process(context, externalId,
# 1164|   	                         RDPINPUT_CONTACT_FLAG_UPDATE | RDPINPUT_CONTACT_FLAG_INRANGE |

Error: CPPCHECK_WARNING (CWE-664): [#def46]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1166: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1164|   	                         RDPINPUT_CONTACT_FLAG_UPDATE | RDPINPUT_CONTACT_FLAG_INRANGE |
# 1165|   	                             RDPINPUT_CONTACT_FLAG_INCONTACT,
# 1166|-> 	                         x, y, contactId, 0, ap);
# 1167|   	return rc;
# 1168|   }

Error: CPPCHECK_WARNING (CWE-664): [#def47]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1179: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1177|   {
# 1178|   	UINT error = 0;
# 1179|-> 	va_list ap = { 0 };
# 1180|   	error = rdpei_touch_process(context, externalId,
# 1181|   	                            RDPINPUT_CONTACT_FLAG_UPDATE | RDPINPUT_CONTACT_FLAG_INRANGE |

Error: CPPCHECK_WARNING (CWE-664): [#def48]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1183: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1181|   	                            RDPINPUT_CONTACT_FLAG_UPDATE | RDPINPUT_CONTACT_FLAG_INRANGE |
# 1182|   	                                RDPINPUT_CONTACT_FLAG_INCONTACT,
# 1183|-> 	                            x, y, contactId, 0, ap);
# 1184|   	if (error != CHANNEL_RC_OK)
# 1185|   		return error;

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

Error: CPPCHECK_WARNING (CWE-664): [#def50]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1203: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1201|   	rc = rdpei_touch_process(context, externalId,
# 1202|   	                         RDPINPUT_CONTACT_FLAG_UP | RDPINPUT_CONTACT_FLAG_CANCELED, x, y,
# 1203|-> 	                         contactId, 0, ap);
# 1204|   	return rc;
# 1205|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def51]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1291:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1464:13: enter_function: entry to ‘rdpei_pen_raw_event’
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1470:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1471:17: call_function: calling ‘rdpei_pen_process’ from ‘rdpei_pen_raw_event’
# 1289|   	rdpei = (RDPEI_PLUGIN*)context->handle;
# 1290|   
# 1291|-> 	EnterCriticalSection(&rdpei->lock);
# 1292|   	// Start a new contact only when it is not active.
# 1293|   	contactPoint = rdpei_pen_contact(rdpei, externalId, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def52]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1302:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1464:13: enter_function: entry to ‘rdpei_pen_raw_event’
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1470:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1471:17: call_function: calling ‘rdpei_pen_process’ from ‘rdpei_pen_raw_event’
# 1300|   		}
# 1301|   	}
# 1302|-> 	LeaveCriticalSection(&rdpei->lock);
# 1303|   	if (contactPoint != NULL)
# 1304|   	{

Error: GCC_ANALYZER_WARNING (CWE-404): [#def53]
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1339:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1449:13: enter_function: entry to ‘rdpei_pen_hover_cancel’
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1455:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/channels/rdpei/client/rdpei_main.c:1456:17: call_function: calling ‘rdpei_pen_process’ from ‘rdpei_pen_hover_cancel’
# 1337|   		}
# 1338|   
# 1339|-> 		error = context->AddPen(context, externalId, &contact);
# 1340|   	}
# 1341|   

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
FreeRDP-3.20.0/channels/rdpgfx/server/rdpgfx_main.c:1648:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
FreeRDP-3.20.0/channels/rdpgfx/server/rdpgfx_main.c:1698:22: enter_function: entry to ‘rdpgfx_server_context_new’
FreeRDP-3.20.0/channels/rdpgfx/server/rdpgfx_main.c:1702:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/channels/rdpgfx/server/rdpgfx_main.c:1708:9: branch_false: ...to here
FreeRDP-3.20.0/channels/rdpgfx/server/rdpgfx_main.c:1736:35: acquire_memory: allocated here
FreeRDP-3.20.0/channels/rdpgfx/server/rdpgfx_main.c:1738:12: release_memory: assuming ‘<unknown>’ is NULL
FreeRDP-3.20.0/channels/rdpgfx/server/rdpgfx_main.c:1738:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/rdpgfx/server/rdpgfx_main.c:1740:17: branch_true: ...to here
FreeRDP-3.20.0/channels/rdpgfx/server/rdpgfx_main.c:1767:9: call_function: calling ‘rdpgfx_server_context_free’ from ‘rdpgfx_server_context_new’
# 1646|   	WINPR_ASSERT(priv);
# 1647|   
# 1648|-> 	if (priv->ownThread && priv->thread)
# 1649|   	{
# 1650|   		(void)SetEvent(priv->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
FreeRDP-3.20.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.20.0/channels/remdesk/server/remdesk_main.c:267:13: enter_function: entry to ‘remdesk_recv_ctl_verify_password_pdu’
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:272:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.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.20.0/channels/remdesk/server/remdesk_main.c:276:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:279:38: branch_false: ...to here
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:282:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:285:9: branch_false: ...to here
FreeRDP-3.20.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): [#def57]
FreeRDP-3.20.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.20.0/channels/remdesk/server/remdesk_main.c:427:21: enter_function: entry to ‘remdesk_server_thread’
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:445:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:448:21: branch_true: ...to here
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:448:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:451:17: branch_false: ...to here
FreeRDP-3.20.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): [#def58]
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:445:36: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:436:22: acquire_memory: allocated here
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:438:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:445:36: branch_false: ...to here
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:445:13: throw: if ‘WTSVirtualChannelQuery’ throws an exception...
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:445:36: danger: ‘Stream_New(0, 4096)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/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): [#def59]
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:556:9: warning[-Wanalyzer-malloc-leak]: leak of ‘**context.priv.ChannelHandle’
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:557:13: acquire_memory: allocated here
FreeRDP-3.20.0/channels/remdesk/server/remdesk_main.c:556:9: danger: ‘**context.priv.ChannelHandle’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  554|   static UINT remdesk_server_start(RemdeskServerContext* context)
#  555|   {
#  556|-> 	context->priv->ChannelHandle =
#  557|   	    WTSVirtualChannelOpen(context->vcm, WTS_CURRENT_SESSION, REMDESK_SVC_CHANNEL_NAME);
#  558|   

Error: CPPCHECK_WARNING (CWE-664): [#def60]
FreeRDP-3.20.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-688): [#def61]
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:288:49: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:255:25: enter_function: entry to ‘func_iso_callback’
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:271:46: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:274:46: branch_true: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:279:36: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:284:45: call_function: inlined call to ‘libusb_get_iso_packet_buffer_simple’ from ‘func_iso_callback’
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:285:54: branch_true: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:287:44: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:288:49: branch_true: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:288:49: danger: argument 2 (‘<unknown>’) NULL where non-null expected
#  286|   
#  287|   					if (data != packetBuffer)
#  288|-> 						memmove(data, packetBuffer, act_len);
#  289|   
#  290|   					index += act_len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:633:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t_MsPipe’
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:599:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:616:31: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:618:43: branch_true: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:626:39: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:628:60: branch_true: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:628:60: acquire_memory: this call could return NULL
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:630:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:633:33: danger: ‘t_MsPipe’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/23/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): [#def63]
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:640:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t_MsPipe’
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:599:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:616:31: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:618:43: branch_true: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:626:39: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:628:60: branch_true: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:628:60: acquire_memory: this call could return NULL
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:640:33: danger: ‘t_MsPipe’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/24/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): [#def64]
FreeRDP-3.20.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): [#def65]
FreeRDP-3.20.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): [#def66]
FreeRDP-3.20.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): [#def67]
FreeRDP-3.20.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): [#def68]
FreeRDP-3.20.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): [#def69]
FreeRDP-3.20.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): [#def70]
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:649:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t_MsPipes’
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:599:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:616:31: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:618:43: branch_true: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:624:46: acquire_memory: this call could return NULL
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:626:39: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:628:60: branch_true: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:630:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.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/25/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): [#def71]
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:1855:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:1834:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:1839:12: branch_false: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:1839:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:1845:38: branch_false: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:1847:12: branch_false: following ‘false’ branch (when ‘array’ is non-NULL)...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:1847:12: branch_false: ...to here
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:1850:29: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/urbdrc/client/libusb/libusb_udevice.c:1852:49: branch_true: ...to here
FreeRDP-3.20.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): [#def72]
FreeRDP-3.20.0/channels/video/client/video_main.c:146:23: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.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): [#def73]
FreeRDP-3.20.0/channels/video/client/video_main.c:146:23: warning[-Wanalyzer-malloc-leak]: leak of ‘videoContext’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1237:53: acquire_memory: allocated here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.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): [#def74]
FreeRDP-3.20.0/channels/video/client/video_main.c:146:23: warning[-Wanalyzer-malloc-leak]: leak of ‘videoPlugin’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: acquire_memory: allocated here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.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): [#def75]
FreeRDP-3.20.0/channels/video/client/video_main.c:153:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.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): [#def76]
FreeRDP-3.20.0/channels/video/client/video_main.c:153:28: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.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): [#def77]
FreeRDP-3.20.0/channels/video/client/video_main.c:153:28: warning[-Wanalyzer-malloc-leak]: leak of ‘videoContext’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1237:53: acquire_memory: allocated here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.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): [#def78]
FreeRDP-3.20.0/channels/video/client/video_main.c:153:28: warning[-Wanalyzer-malloc-leak]: leak of ‘videoPlugin’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: acquire_memory: allocated here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.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): [#def79]
FreeRDP-3.20.0/channels/video/client/video_main.c:160:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.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): [#def80]
FreeRDP-3.20.0/channels/video/client/video_main.c:160:14: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.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): [#def81]
FreeRDP-3.20.0/channels/video/client/video_main.c:183:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/channels/video/client/video_main.c:435:13: enter_function: entry to ‘video_PresentationRequest’
FreeRDP-3.20.0/channels/video/client/video_main.c:446:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:451:28: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:451:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:457:21: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:470:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:476:75: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:477:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:483:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:484:45: call_function: calling ‘PresentationContext_new’ from ‘video_PresentationRequest’
#  181|   	WINPR_ASSERT(presentation);
#  182|   
#  183|-> 	InterlockedIncrement(&presentation->refCounter);
#  184|   	return TRUE;
#  185|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
FreeRDP-3.20.0/channels/video/client/video_main.c:183:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.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): [#def83]
FreeRDP-3.20.0/channels/video/client/video_main.c:183:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:435:13: enter_function: entry to ‘video_PresentationRequest’
FreeRDP-3.20.0/channels/video/client/video_main.c:446:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:451:28: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:451:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:457:21: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:470:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:476:75: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:477:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:483:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:484:45: call_function: calling ‘PresentationContext_new’ from ‘video_PresentationRequest’
#  181|   	WINPR_ASSERT(presentation);
#  182|   
#  183|-> 	InterlockedIncrement(&presentation->refCounter);
#  184|   	return TRUE;
#  185|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
FreeRDP-3.20.0/channels/video/client/video_main.c:205:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:435:13: enter_function: entry to ‘video_PresentationRequest’
FreeRDP-3.20.0/channels/video/client/video_main.c:446:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:451:28: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:451:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:457:21: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:470:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:476:75: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:477:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:483:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:484:45: call_function: calling ‘PresentationContext_new’ from ‘video_PresentationRequest’
#  203|   	ret->PresentationId = PresentationId;
#  204|   
#  205|-> 	ret->h264 = h264_context_new(FALSE);
#  206|   	if (!ret->h264)
#  207|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
FreeRDP-3.20.0/channels/video/client/video_main.c:211:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/channels/video/client/video_main.c:435:13: enter_function: entry to ‘video_PresentationRequest’
FreeRDP-3.20.0/channels/video/client/video_main.c:446:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:451:28: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:451:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:457:21: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:470:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:476:75: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:477:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:483:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:484:45: call_function: calling ‘PresentationContext_new’ from ‘video_PresentationRequest’
#  209|   		goto fail;
#  210|   	}
#  211|-> 	if (!h264_context_reset(ret->h264, width, height))
#  212|   		goto fail;
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
FreeRDP-3.20.0/channels/video/client/video_main.c:211:14: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:435:13: enter_function: entry to ‘video_PresentationRequest’
FreeRDP-3.20.0/channels/video/client/video_main.c:446:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:451:28: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:451:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:457:21: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:470:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:476:75: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:477:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:483:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:484:45: call_function: calling ‘PresentationContext_new’ from ‘video_PresentationRequest’
#  209|   		goto fail;
#  210|   	}
#  211|-> 	if (!h264_context_reset(ret->h264, width, height))
#  212|   		goto fail;
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
FreeRDP-3.20.0/channels/video/client/video_main.c:214:30: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:435:13: enter_function: entry to ‘video_PresentationRequest’
FreeRDP-3.20.0/channels/video/client/video_main.c:446:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:451:28: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:451:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:457:21: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:470:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:476:75: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:477:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:483:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:484:45: call_function: calling ‘PresentationContext_new’ from ‘video_PresentationRequest’
#  212|   		goto fail;
#  213|   
#  214|-> 	ret->currentSample = Stream_New(NULL, 4096);
#  215|   	if (!ret->currentSample)
#  216|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
FreeRDP-3.20.0/channels/video/client/video_main.c:221:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/channels/video/client/video_main.c:435:13: enter_function: entry to ‘video_PresentationRequest’
FreeRDP-3.20.0/channels/video/client/video_main.c:446:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:451:28: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:451:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:457:21: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:470:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:476:75: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:477:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:483:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:484:45: call_function: calling ‘PresentationContext_new’ from ‘video_PresentationRequest’
#  219|   	}
#  220|   
#  221|-> 	ret->surface = video->createSurface(video, x, y, width, height);
#  222|   	if (!ret->surface)
#  223|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
FreeRDP-3.20.0/channels/video/client/video_main.c:221:24: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:435:13: enter_function: entry to ‘video_PresentationRequest’
FreeRDP-3.20.0/channels/video/client/video_main.c:446:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:451:28: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:451:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:457:21: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:470:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:476:75: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:477:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:483:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:484:45: call_function: calling ‘PresentationContext_new’ from ‘video_PresentationRequest’
#  219|   	}
#  220|   
#  221|-> 	ret->surface = video->createSurface(video, x, y, width, height);
#  222|   	if (!ret->surface)
#  223|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
FreeRDP-3.20.0/channels/video/client/video_main.c:249:13: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:922:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:924:33: branch_true: ...to here
FreeRDP-3.20.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): [#def91]
FreeRDP-3.20.0/channels/video/client/video_main.c:249:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:435:13: enter_function: entry to ‘video_PresentationRequest’
FreeRDP-3.20.0/channels/video/client/video_main.c:446:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:451:28: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:451:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:457:21: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:470:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:476:75: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:477:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:483:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:484:45: call_function: calling ‘PresentationContext_new’ from ‘video_PresentationRequest’
#  247|   		return;
#  248|   
#  249|-> 	if (InterlockedDecrement(&presentation->refCounter) > 0)
#  250|   		return;
#  251|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
FreeRDP-3.20.0/channels/video/client/video_main.c:261:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:922:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:924:33: branch_true: ...to here
FreeRDP-3.20.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): [#def93]
FreeRDP-3.20.0/channels/video/client/video_main.c:262:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:922:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:924:33: branch_true: ...to here
FreeRDP-3.20.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): [#def94]
FreeRDP-3.20.0/channels/video/client/video_main.c:277:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.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): [#def95]
FreeRDP-3.20.0/channels/video/client/video_main.c:282:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:922:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:924:33: branch_true: ...to here
FreeRDP-3.20.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): [#def96]
FreeRDP-3.20.0/channels/video/client/video_main.c:282:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.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): [#def97]
FreeRDP-3.20.0/channels/video/client/video_main.c:305:9: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.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): [#def98]
FreeRDP-3.20.0/channels/video/client/video_main.c:313:30: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.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): [#def99]
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: throw: if ‘avc420_decompress’ throws an exception...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: danger: ‘frame’ leaks here; was allocated at [(16)](sarif:/runs/0/results/52/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): [#def100]
FreeRDP-3.20.0/channels/video/client/video_main.c:928:25: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:928:25: throw: if ‘EnterCriticalSection’ throws an exception...
FreeRDP-3.20.0/channels/video/client/video_main.c:928:25: danger: ‘frame’ leaks here; was allocated at [(16)](sarif:/runs/0/results/53/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): [#def101]
FreeRDP-3.20.0/channels/video/client/video_main.c:929:41: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:929:41: throw: if ‘Queue_Enqueue’ throws an exception...
FreeRDP-3.20.0/channels/video/client/video_main.c:929:41: danger: ‘frame’ leaks here; was allocated at [(16)](sarif:/runs/0/results/54/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): [#def102]
FreeRDP-3.20.0/channels/video/client/video_main.c:930:25: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:930:25: throw: if ‘LeaveCriticalSection’ throws an exception...
FreeRDP-3.20.0/channels/video/client/video_main.c:930:25: danger: ‘frame’ leaks here; was allocated at [(16)](sarif:/runs/0/results/55/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): [#def103]
FreeRDP-3.20.0/channels/video/client/video_main.c:945:1: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:932:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:940:25: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:945:1: danger: ‘frame’ leaks here; was allocated at [(16)](sarif:/runs/0/results/56/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): [#def104]
FreeRDP-3.20.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::scoped_lock lock(_mux);
#   49|-> 	va_list ap = {};
#   50|   	va_start(ap, fmt);
#   51|   	_title = print(fmt, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def105]
FreeRDP-3.20.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): [#def106]
FreeRDP-3.20.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): [#def107]
FreeRDP-3.20.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): [#def108]
FreeRDP-3.20.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:163: 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
#  161|   		{
#  162|   			if (!update())
#  163|-> 				throw;
#  164|   
#  165|   			SDL_Event event = {};

Error: CPPCHECK_WARNING (CWE-480): [#def109]
FreeRDP-3.20.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:167: 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
#  165|   			SDL_Event event = {};
#  166|   			if (!SDL_WaitEvent(&event))
#  167|-> 				throw;
#  168|   			do
#  169|   			{

Error: CPPCHECK_WARNING (CWE-480): [#def110]
FreeRDP-3.20.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:184: 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
#  182|   									{
#  183|   										if (!cur->set_str(""))
#  184|-> 											throw;
#  185|   									}
#  186|   									else

Error: CPPCHECK_WARNING (CWE-480): [#def111]
FreeRDP-3.20.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:189: 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
#  187|   									{
#  188|   										if (!cur->remove_str(1))
#  189|-> 											throw;
#  190|   									}
#  191|   								}

Error: CPPCHECK_WARNING (CWE-480): [#def112]
FreeRDP-3.20.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:229: 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
#  227|   						{
#  228|   							if (!cur->append_str(event.text.text))
#  229|-> 								throw;
#  230|   						}
#  231|   					}

Error: CPPCHECK_WARNING (CWE-480): [#def113]
FreeRDP-3.20.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:239: 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
#  237|   						{
#  238|   							if (!cur->set_mouseover(false))
#  239|-> 								throw;
#  240|   						}
#  241|   						if (TextInputIndex >= 0)

Error: CPPCHECK_WARNING (CWE-480): [#def114]
FreeRDP-3.20.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:245: 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
#  243|   							auto& cur = m_list[static_cast<size_t>(TextInputIndex)];
#  244|   							if (!cur->set_mouseover(true))
#  245|-> 								throw;
#  246|   						}
#  247|   

Error: CPPCHECK_WARNING (CWE-480): [#def115]
FreeRDP-3.20.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:285: 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
#  283|   			{
#  284|   				if (!cur->set_highlight(false))
#  285|-> 					throw;
#  286|   			}
#  287|   			auto cur = get(m_currentActiveTextInput);

Error: CPPCHECK_WARNING (CWE-480): [#def116]
FreeRDP-3.20.0/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp:291: 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
#  289|   			{
#  290|   				if (!cur->set_highlight(true))
#  291|-> 					throw;
#  292|   			}
#  293|   

Error: CPPCHECK_WARNING (CWE-480): [#def117]
FreeRDP-3.20.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): [#def118]
FreeRDP-3.20.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): [#def119]
FreeRDP-3.20.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): [#def120]
FreeRDP-3.20.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): [#def121]
FreeRDP-3.20.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-457): [#def122]
FreeRDP-3.20.0/client/X11/xf_client.c:693:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘xevent.xvisibility.state’
FreeRDP-3.20.0/client/X11/xf_client.c:597:6: enter_function: entry to ‘xf_create_window’
FreeRDP-3.20.0/client/X11/xf_client.c:621:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:623:31: branch_true: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:649:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:651:49: branch_true: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:665:31: call_function: calling ‘xf_window_get_title’ from ‘xf_create_window’
FreeRDP-3.20.0/client/X11/xf_client.c:665:31: return_function: returning to ‘xf_create_window’ from ‘xf_window_get_title’
FreeRDP-3.20.0/client/X11/xf_client.c:667:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:672:21: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:690:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:693:35: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:693:35: danger: use of uninitialized value ‘xevent.xvisibility.state’ here
#  691|   			xf_SetWindowFullscreen(xfc, xfc->window, xfc->fullscreen);
#  692|   
#  693|-> 		xfc->unobscured = (xevent.xvisibility.state == VisibilityUnobscured);
#  694|   		XSetWMProtocols(xfc->display, xfc->window->handle, &(xfc->WM_DELETE_WINDOW), 1);
#  695|   		xfc->drawable = xfc->window->handle;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
FreeRDP-3.20.0/client/X11/xf_client.c:1305:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.20.0/client/X11/xf_client.c:1297:18: acquire_resource: opened here
FreeRDP-3.20.0/client/X11/xf_client.c:1298:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1298:12: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1305:17: throw: if ‘freerdp_shall_disconnect_context’ throws an exception...
FreeRDP-3.20.0/client/X11/xf_client.c:1305:17: danger: ‘open(pipe, 2048)’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1303|   		return FALSE;
# 1304|   	}
# 1305|-> 	while (!freerdp_shall_disconnect_context(context))
# 1306|   	{
# 1307|   		char buffer[64] = { 0 };

Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
FreeRDP-3.20.0/client/X11/xf_client.c:1326:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.20.0/client/X11/xf_client.c:1297:18: acquire_resource: opened here
FreeRDP-3.20.0/client/X11/xf_client.c:1298:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1298:12: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1305:16: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1307:22: branch_true: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1323:25: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1325:30: branch_true: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1326:25: throw: if ‘winpr_strerror’ throws an exception...
FreeRDP-3.20.0/client/X11/xf_client.c:1326:25: danger: ‘open(pipe, 2048)’ leaks here; was opened at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1324|   		{
# 1325|   			char ebuffer[256] = { 0 };
# 1326|-> 			WLog_ERR(TAG, "pipe '%s' read returned %s [%d]", pipe,
# 1327|   			         winpr_strerror(errno, ebuffer, sizeof(ebuffer)), errno);
# 1328|   			break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
FreeRDP-3.20.0/client/X11/xf_client.c:1332:66: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.20.0/client/X11/xf_client.c:1295:13: enter_function: entry to ‘xf_process_pipe’
FreeRDP-3.20.0/client/X11/xf_client.c:1297:18: acquire_resource: opened here
FreeRDP-3.20.0/client/X11/xf_client.c:1298:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1298:12: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1305:16: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1307:22: branch_true: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1323:25: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1332:66: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1332:30: call_function: calling ‘xf_inject_keypress’ from ‘xf_process_pipe’
# 1330|   		else
# 1331|   		{
# 1332|-> 			if (!xf_inject_keypress(context, buffer, WINPR_ASSERTING_INT_CAST(size_t, rd)))
# 1333|   				break;
# 1334|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def126]
FreeRDP-3.20.0/client/X11/xf_client.c:1336:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(pipe, 2048)’
FreeRDP-3.20.0/client/X11/xf_client.c:1297:18: acquire_resource: opened here
FreeRDP-3.20.0/client/X11/xf_client.c:1298:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1298:12: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1336:9: danger: ‘open(pipe, 2048)’ leaks here; was opened at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 1334|   		}
# 1335|   	}
# 1336|-> 	close(fd);
# 1337|   	return TRUE;
# 1338|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def127]
FreeRDP-3.20.0/client/X11/xf_client.c:1950:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*xfc.supportedAtoms’ where non-null expected
FreeRDP-3.20.0/client/X11/xf_client.c:1903:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1909:13: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1924:21: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1934:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1945:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1948:47: acquire_memory: this call could return NULL
FreeRDP-3.20.0/client/X11/xf_client.c:1950:25: danger: argument 1 (‘calloc(nitems, 8)’) from [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
# 1948|   			xfc->supportedAtoms = calloc(xfc->supportedAtomCount, sizeof(Atom));
# 1949|   			WINPR_ASSERT(xfc->supportedAtoms);
# 1950|-> 			memcpy(xfc->supportedAtoms, data, nitems * sizeof(Atom));
# 1951|   		}
# 1952|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def128]
FreeRDP-3.20.0/client/X11/xf_client.c:1950:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘calloc(nitems, 8)’ where non-null expected
FreeRDP-3.20.0/client/X11/xf_client.c:1160:13: enter_function: entry to ‘xf_pre_connect’
FreeRDP-3.20.0/client/X11/xf_client.c:1174:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1177:14: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1177:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/X11/xf_client.c:1179:22: branch_true: ...to here
FreeRDP-3.20.0/client/X11/xf_client.c:1179:22: call_function: calling ‘xf_setup_x11’ from ‘xf_pre_connect’
# 1948|   			xfc->supportedAtoms = calloc(xfc->supportedAtomCount, sizeof(Atom));
# 1949|   			WINPR_ASSERT(xfc->supportedAtoms);
# 1950|-> 			memcpy(xfc->supportedAtoms, data, nitems * sizeof(Atom));
# 1951|   		}
# 1952|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
FreeRDP-3.20.0/client/X11/xf_cliprdr.c:726:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cformat’
FreeRDP-3.20.0/client/X11/xf_cliprdr.c:1814:13: enter_function: entry to ‘xf_cliprdr_send_client_format_list’
FreeRDP-3.20.0/client/X11/xf_cliprdr.c:1822:35: call_function: calling ‘xf_cliprdr_get_client_formats’ from ‘xf_cliprdr_send_client_format_list’
#  724|   		{
#  725|   			CLIPRDR_FORMAT* cformat = &formats[*numFormats];
#  726|-> 			cformat->formatId = format->formatToRequest;
#  727|   
#  728|   			/* We do not want to double register a format, so check if HTML was already registered.

Error: CPPCHECK_WARNING (CWE-476): [#def130]
FreeRDP-3.20.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): [#def131]
FreeRDP-3.20.0/client/X11/xf_floatbar.c:278:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘button’
FreeRDP-3.20.0/client/X11/xf_floatbar.c:277:37: acquire_memory: this call could return NULL
FreeRDP-3.20.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: CPPCHECK_WARNING (CWE-664): [#def132]
FreeRDP-3.20.0/client/X11/xf_utils.c:50: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   48|                         WINPR_FORMAT_ARG const char* fmt, ...)
#   49|   {
#   50|-> 	va_list ap = { 0 };
#   51|   	va_start(ap, fmt);
#   52|   	WLog_PrintTextMessageVA(log, level, line, fname, fkt, fmt, ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def133]
FreeRDP-3.20.0/client/X11/xf_utils.c:52:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/X11/xf_utils.c:756:5: enter_function: entry to ‘LogDynAndXRestackWindows_ex’
FreeRDP-3.20.0/client/X11/xf_utils.c:759:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/X11/xf_utils.c:761:17: branch_true: ...to here
FreeRDP-3.20.0/client/X11/xf_utils.c:761:17: call_function: calling ‘write_log’ from ‘LogDynAndXRestackWindows_ex’
#   50|   	va_list ap = { 0 };
#   51|   	va_start(ap, fmt);
#   52|-> 	WLog_PrintTextMessageVA(log, level, line, fname, fkt, fmt, ap);
#   53|   	va_end(ap);
#   54|   }

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-758): [#def140]
FreeRDP-3.20.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): [#def141]
FreeRDP-3.20.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.20.0/client/X11/xf_window.c:1220:6: enter_function: entry to ‘xf_ShowWindow’
FreeRDP-3.20.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): [#def142]
FreeRDP-3.20.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.20.0/client/X11/xf_window.c:1220:6: enter_function: entry to ‘xf_ShowWindow’
FreeRDP-3.20.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): [#def143]
FreeRDP-3.20.0/client/X11/xf_window.c:252:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/X11/xf_window.c:236:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/X11/xf_window.c:252:9: throw: if ‘LogDynAndXSendEvent_ex’ throws an exception...
FreeRDP-3.20.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): [#def144]
FreeRDP-3.20.0/client/X11/xf_window.c:254:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/X11/xf_window.c:236:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/X11/xf_window.c:254:9: throw: if ‘LogDynAndXSync_ex’ throws an exception...
FreeRDP-3.20.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): [#def145]
FreeRDP-3.20.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): [#def146]
FreeRDP-3.20.0/client/X11/xf_window.c:1302:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xrects’
FreeRDP-3.20.0/client/X11/xf_window.c:1294:12: branch_false: following ‘false’ branch (when ‘nrects > 0’)...
FreeRDP-3.20.0/client/X11/xf_window.c:1298:31: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_window.c:1298:31: acquire_memory: this call could return NULL
FreeRDP-3.20.0/client/X11/xf_window.c:1300:25: branch_true: following ‘true’ branch (when ‘i < nrects’)...
FreeRDP-3.20.0/client/X11/xf_window.c:1302:31: branch_true: ...to here
FreeRDP-3.20.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): [#def147]
FreeRDP-3.20.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): [#def148]
FreeRDP-3.20.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): [#def149]
FreeRDP-3.20.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): [#def150]
FreeRDP-3.20.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): [#def151]
FreeRDP-3.20.0/client/X11/xf_window.c:1327:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xrects’
FreeRDP-3.20.0/client/X11/xf_window.c:1319:12: branch_false: following ‘false’ branch (when ‘nrects > 0’)...
FreeRDP-3.20.0/client/X11/xf_window.c:1323:31: branch_false: ...to here
FreeRDP-3.20.0/client/X11/xf_window.c:1323:31: acquire_memory: this call could return NULL
FreeRDP-3.20.0/client/X11/xf_window.c:1325:25: branch_true: following ‘true’ branch (when ‘i < nrects’)...
FreeRDP-3.20.0/client/X11/xf_window.c:1327:31: branch_true: ...to here
FreeRDP-3.20.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): [#def152]
FreeRDP-3.20.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): [#def153]
FreeRDP-3.20.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): [#def154]
FreeRDP-3.20.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): [#def155]
FreeRDP-3.20.0/client/common/client.c:1199: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1197|   				          ", ignoring",
# 1198|   				          count);
# 1199|-> 			va_list ap = { 0 };
# 1200|   			va_start(ap, count);
# 1201|   			const char* scope = va_arg(ap, const char*);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def156]
FreeRDP-3.20.0/client/common/client.c:2355:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2499:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2353|   {
# 2354|   	char* redirect_uri = NULL;
# 2355|-> 	const bool cli = freerdp_settings_get_bool(settings, FreeRDP_UseCommonStdioCallbacks);
# 2356|   	if (cli)
# 2357|   	{

Error: GCC_ANALYZER_WARNING (CWE-404): [#def157]
FreeRDP-3.20.0/client/common/client.c:2359:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2499:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2357|   	{
# 2358|   		const char* redirect_fmt =
# 2359|-> 		    freerdp_settings_get_string(settings, FreeRDP_GatewayAvdAccessAadFormat);
# 2360|   		const BOOL useTenant = freerdp_settings_get_bool(settings, FreeRDP_GatewayAvdUseTenantid);
# 2361|   		const char* tenantid = "common";

Error: GCC_ANALYZER_WARNING (CWE-404): [#def158]
FreeRDP-3.20.0/client/common/client.c:2360:40: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2499:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2358|   		const char* redirect_fmt =
# 2359|   		    freerdp_settings_get_string(settings, FreeRDP_GatewayAvdAccessAadFormat);
# 2360|-> 		const BOOL useTenant = freerdp_settings_get_bool(settings, FreeRDP_GatewayAvdUseTenantid);
# 2361|   		const char* tenantid = "common";
# 2362|   		if (useTenant)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def159]
FreeRDP-3.20.0/client/common/client.c:2363:36: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2499:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2361|   		const char* tenantid = "common";
# 2362|   		if (useTenant)
# 2363|-> 			tenantid = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdAadtenantid);
# 2364|   
# 2365|   		if (tenantid && redirect_fmt)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def160]
FreeRDP-3.20.0/client/common/client.c:2368:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2499:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2366|   		{
# 2367|   			const char* url =
# 2368|-> 			    freerdp_settings_get_string(settings, FreeRDP_GatewayAzureActiveDirectory);
# 2369|   
# 2370|   			size_t redirect_len = 0;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def161]
FreeRDP-3.20.0/client/common/client.c:2371:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2499:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2369|   
# 2370|   			size_t redirect_len = 0;
# 2371|-> 			winpr_asprintf(&redirect_uri, &redirect_len, redirect_fmt, url, tenantid);
# 2372|   		}
# 2373|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def162]
FreeRDP-3.20.0/client/common/client.c:2376:41: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2499:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2374|   	else
# 2375|   	{
# 2376|-> 		const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2377|   		const char* redirect_fmt =
# 2378|   		    freerdp_settings_get_string(settings, FreeRDP_GatewayAvdAccessTokenFormat);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def163]
FreeRDP-3.20.0/client/common/client.c:2378:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2499:31: call_function: calling ‘aad_auth_request’ from ‘freerdp_client_get_aad_url’
# 2376|   		const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2377|   		const char* redirect_fmt =
# 2378|-> 		    freerdp_settings_get_string(settings, FreeRDP_GatewayAvdAccessTokenFormat);
# 2379|   
# 2380|   		size_t redirect_len = 0;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def164]
FreeRDP-3.20.0/client/common/client.c:2389:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2505:31: call_function: calling ‘avd_auth_request’ from ‘freerdp_client_get_aad_url’
# 2387|   {
# 2388|   	const rdpSettings* settings = cctx->context.settings;
# 2389|-> 	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2390|   	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2391|   	                                                        AAD_WELLKNOWN_authorization_endpoint);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def165]
FreeRDP-3.20.0/client/common/client.c:2390:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2505:31: call_function: calling ‘avd_auth_request’ from ‘freerdp_client_get_aad_url’
# 2388|   	const rdpSettings* settings = cctx->context.settings;
# 2389|   	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2390|-> 	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2391|   	                                                        AAD_WELLKNOWN_authorization_endpoint);
# 2392|   	const char* scope = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdScope);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def166]
FreeRDP-3.20.0/client/common/client.c:2392:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2505:31: call_function: calling ‘avd_auth_request’ from ‘freerdp_client_get_aad_url’
# 2390|   	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2391|   	                                                        AAD_WELLKNOWN_authorization_endpoint);
# 2392|-> 	const char* scope = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdScope);
# 2393|   
# 2394|   	if (!client_id || !ep || !scope)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def167]
FreeRDP-3.20.0/client/common/client.c:2412:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2508:31: call_function: calling ‘avd_token_request’ from ‘freerdp_client_get_aad_url’
# 2410|   {
# 2411|   	const rdpSettings* settings = cctx->context.settings;
# 2412|-> 	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2413|   	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2414|   	                                                        AAD_WELLKNOWN_authorization_endpoint);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def168]
FreeRDP-3.20.0/client/common/client.c:2413:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2508:31: call_function: calling ‘avd_token_request’ from ‘freerdp_client_get_aad_url’
# 2411|   	const rdpSettings* settings = cctx->context.settings;
# 2412|   	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2413|-> 	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2414|   	                                                        AAD_WELLKNOWN_authorization_endpoint);
# 2415|   	const char* scope = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdScope);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def169]
FreeRDP-3.20.0/client/common/client.c:2415:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2508:31: call_function: calling ‘avd_token_request’ from ‘freerdp_client_get_aad_url’
# 2413|   	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2414|   	                                                        AAD_WELLKNOWN_authorization_endpoint);
# 2415|-> 	const char* scope = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdScope);
# 2416|   
# 2417|   	if (!client_id || !ep || !scope)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def170]
FreeRDP-3.20.0/client/common/client.c:2462:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2502:31: call_function: calling ‘aad_token_request’ from ‘freerdp_client_get_aad_url’
# 2460|   {
# 2461|   	const rdpSettings* settings = cctx->context.settings;
# 2462|-> 	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2463|   	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2464|   	                                                        AAD_WELLKNOWN_authorization_endpoint);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def171]
FreeRDP-3.20.0/client/common/client.c:2463:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client.c:2488:7: enter_function: entry to ‘freerdp_client_get_aad_url’
FreeRDP-3.20.0/client/common/client.c:2494:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/client/common/client.c:2502:31: call_function: calling ‘aad_token_request’ from ‘freerdp_client_get_aad_url’
# 2461|   	const rdpSettings* settings = cctx->context.settings;
# 2462|   	const char* client_id = freerdp_settings_get_string(settings, FreeRDP_GatewayAvdClientID);
# 2463|-> 	const char* ep = freerdp_utils_aad_get_wellknown_string(&cctx->context,
# 2464|   	                                                        AAD_WELLKNOWN_authorization_endpoint);
# 2465|   	const char* scope = va_arg(ap, const char*);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def172]
FreeRDP-3.20.0/client/common/client_cliprdr_file.c:232:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/client/common/client_cliprdr_file.c:2367:18: enter_function: entry to ‘fuse_file_new_root’
FreeRDP-3.20.0/client/common/client_cliprdr_file.c:2369: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: CPPCHECK_WARNING (CWE-664): [#def173]
FreeRDP-3.20.0/client/common/client_cliprdr_file.c:650: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  648|   		return;
#  649|   
#  650|-> 	va_list ap = { 0 };
#  651|   	va_start(ap, fmt);
#  652|   	WLog_PrintTextMessageVA(log, level, line, fname, fkt, fmt, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def174]
FreeRDP-3.20.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): [#def175]
FreeRDP-3.20.0/client/common/file.c:1732:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘CommandLineParseCommaSeparatedValues(values, & count) + x * 8’
FreeRDP-3.20.0/client/common/file.c:1753:6: enter_function: entry to ‘freerdp_client_populate_settings_from_rdp_file_unchecked’
FreeRDP-3.20.0/client/common/file.c:2486:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/common/file.c:2486:57: call_function: inlined call to ‘utils_str_is_empty’ from ‘freerdp_client_populate_settings_from_rdp_file_unchecked’
FreeRDP-3.20.0/client/common/file.c:2494:36: branch_false: ...to here
FreeRDP-3.20.0/client/common/file.c:2494:36: call_function: calling ‘rdp_file_to_args’ from ‘freerdp_client_populate_settings_from_rdp_file_unchecked’
# 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): [#def176]
FreeRDP-3.20.0/client/common/file.c:2537:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘CommandLineParseCommaSeparatedValues(*file.SelectedMonitors, & count)’
FreeRDP-3.20.0/client/common/file.c:2516:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/common/file.c:2518:24: branch_true: ...to here
FreeRDP-3.20.0/client/common/file.c:2519:30: acquire_memory: this call could return NULL
FreeRDP-3.20.0/client/common/file.c:2522:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/client/common/file.c:2527:24: branch_false: ...to here
FreeRDP-3.20.0/client/common/file.c:2533:36: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/client/common/file.c:2536:25: branch_true: ...to here
FreeRDP-3.20.0/client/common/file.c:2537:31: danger: ‘CommandLineParseCommaSeparatedValues(*file.SelectedMonitors, & count) + x * 8’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
# 2535|   			unsigned long val = 0;
# 2536|   			errno = 0;
# 2537|-> 			val = strtoul(ptr[x], NULL, 0);
# 2538|   			if ((val >= UINT32_MAX) && (errno != 0))
# 2539|   			{

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
FreeRDP-3.20.0/include/freerdp/codec/color.h:196:25: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_malloc((long long unsigned int)nHeight * (long long unsigned int)nDstStep, 16)’
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:41:13: enter_function: entry to ‘gdi_create_bitmap’
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:50:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:53:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:54:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:56:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:60:29: call_function: inlined call to ‘FreeRDPGetBytesPerPixel’ from ‘gdi_create_bitmap’
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:62:14: throw: if ‘freerdp_image_copy_no_overlap’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:60:29: call_function: inlined call to ‘FreeRDPGetBytesPerPixel’ from ‘gdi_create_bitmap’
#  194|   	static inline UINT32 FreeRDPGetBitsPerPixel(UINT32 format)
#  195|   	{
#  196|-> 		return (((format) >> 24) & 0x3F);
#  197|   	}
#  198|   

Error: COMPILER_WARNING (CWE-477): [#def179]
FreeRDP-3.20.0/include/freerdp/client/rdpgfx.h:28: included_from: Included from here.
FreeRDP-3.20.0/include/freerdp/gdi/gdi.h:34: included_from: Included from here.
FreeRDP-3.20.0/include/freerdp/freerdp.h:35: included_from: Included from here.
FreeRDP-3.20.0/channels/drdynvc/client/drdynvc_main.c:29: included_from: Included from here.
FreeRDP-3.20.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.20.0/winpr/include/winpr/assert-api.h:27: included_from: Included from here.
FreeRDP-3.20.0/winpr/include/winpr/cast.h:24: included_from: Included from here.
FreeRDP-3.20.0/winpr/include/winpr/crt.h:27: included_from: Included from here.
FreeRDP-3.20.0/channels/drdynvc/client/drdynvc_main.c:24: included_from: Included from here.
FreeRDP-3.20.0/include/freerdp/codecs.h:91:47: note: declared here
#   91 |                              FREERDP_API void codecs_free(rdpCodecs* codecs));
#      |                                               ^~~~~~~~~~~
FreeRDP-3.20.0/winpr/include/winpr/platform.h:527:41: note: in definition of macro ‘WINPR_DEPRECATED_VAR’
#  527 | #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): [#def180]
FreeRDP-3.20.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-401): [#def181]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:295:32: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapCache’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:358:17: enter_function: entry to ‘bitmap_cache_new’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:378:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:379:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:400:9: call_function: calling ‘bitmap_cache_free’ from ‘bitmap_cache_new’
#  293|   	rdpSettings* settings = context->settings;
#  294|   
#  295|-> 	const UINT32 version = freerdp_settings_get_uint32(settings, FreeRDP_BitmapCacheVersion);
#  296|   
#  297|   	if (version != 2)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:300:14: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapCache’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:358:17: enter_function: entry to ‘bitmap_cache_new’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:378:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:379:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:400:9: call_function: calling ‘bitmap_cache_free’ from ‘bitmap_cache_new’
#  298|   		return 0; /* persistent bitmap cache already saved in egfx channel */
#  299|   
#  300|-> 	if (!freerdp_settings_get_bool(settings, FreeRDP_BitmapCachePersistEnabled))
#  301|   		return 0;
#  302|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:304:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapCache’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:358:17: enter_function: entry to ‘bitmap_cache_new’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:378:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:379:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:400:9: call_function: calling ‘bitmap_cache_free’ from ‘bitmap_cache_new’
#  302|   
#  303|   	const char* BitmapCachePersistFile =
#  304|-> 	    freerdp_settings_get_string(settings, FreeRDP_BitmapCachePersistFile);
#  305|   	if (!BitmapCachePersistFile)
#  306|   		return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:308:42: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapCache’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:358:17: enter_function: entry to ‘bitmap_cache_new’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:378:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:379:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:400:9: call_function: calling ‘bitmap_cache_free’ from ‘bitmap_cache_new’
#  306|   		return 0;
#  307|   
#  308|-> 	rdpPersistentCache* persistent = persistent_cache_new();
#  309|   
#  310|   	if (!persistent)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:313:22: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapCache’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:358:17: enter_function: entry to ‘bitmap_cache_new’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:378:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:379:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:400:9: call_function: calling ‘bitmap_cache_free’ from ‘bitmap_cache_new’
#  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): [#def186]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:313:22: warning[-Wanalyzer-malloc-leak]: leak of ‘persistent_cache_new()’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:297:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:300:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:300:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:304:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:305:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:308:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:308:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:310:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:313:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:313:22: throw: if ‘persistent_cache_open’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:313:22: danger: ‘persistent_cache_new()’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/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): [#def187]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:354:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapCache’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:358:17: enter_function: entry to ‘bitmap_cache_new’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:378:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:379:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:400:9: call_function: calling ‘bitmap_cache_free’ from ‘bitmap_cache_new’
#  352|   
#  353|   end:
#  354|-> 	persistent_cache_free(persistent);
#  355|   	return status;
#  356|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapCache’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: throw: if ‘freerdp_settings_get_uint32’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: danger: ‘bitmapCache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/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): [#def189]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:378:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:380:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:389:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:391:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:393:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: throw: if ‘freerdp_settings_get_pointer_array’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/13/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): [#def190]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapCache’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:378:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:380:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: throw: if ‘freerdp_settings_get_pointer_array’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: danger: ‘bitmapCache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/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): [#def191]
FreeRDP-3.20.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.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:376:47: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:378:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:380:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: throw: if ‘freerdp_settings_get_pointer_array’ throws an exception...
FreeRDP-3.20.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/10/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): [#def192]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: warning[-Wanalyzer-malloc-leak]: leak of ‘cell’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:376:47: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:378:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:380:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:391:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:393:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:382:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: throw: if ‘freerdp_settings_get_pointer_array’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:385:21: danger: ‘cell’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/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): [#def193]
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:434:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapCache’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:358:17: enter_function: entry to ‘bitmap_cache_new’
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:368:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:370:12: branch_false: following ‘false’ branch (when ‘bitmapCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:374:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:378:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:379:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/bitmap.c:400:9: call_function: calling ‘bitmap_cache_free’ from ‘bitmap_cache_new’
#  432|   	}
#  433|   
#  434|-> 	persistent_cache_free(bitmapCache->persistent);
#  435|   
#  436|   	free(bitmapCache);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: throw: if ‘glyph_cache_new’ throws an exception...
FreeRDP-3.20.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): [#def195]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: throw: if ‘brush_cache_new’ throws an exception...
FreeRDP-3.20.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): [#def196]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: throw: if ‘brush_cache_new’ throws an exception...
FreeRDP-3.20.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): [#def197]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: throw: if ‘pointer_cache_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#   47|   		goto error;
#   48|   
#   49|-> 	cache->pointer = pointer_cache_new(context);
#   50|   
#   51|   	if (!cache->pointer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: throw: if ‘pointer_cache_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: danger: ‘cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/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): [#def199]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:54:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:54:25: throw: if ‘bitmap_cache_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:54:25: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#   52|   		goto error;
#   53|   
#   54|-> 	cache->bitmap = bitmap_cache_new(context);
#   55|   
#   56|   	if (!cache->bitmap)

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:64:26: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:56:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:59:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:61:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:64:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:64:26: throw: if ‘palette_cache_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:64:26: danger: ‘cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/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): [#def205]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:69:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:56:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:59:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:61:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:64:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:66:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:69:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:69:28: throw: if ‘nine_grid_cache_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:69:28: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/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): [#def206]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:69:28: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:44:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:49:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:54:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:56:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:59:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:61:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:64:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:66:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:69:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:69:28: throw: if ‘nine_grid_cache_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:69:28: danger: ‘cache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/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): [#def207]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:87:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:28:11: enter_function: entry to ‘cache_new’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:42:17: branch_true: ...to here
FreeRDP-3.20.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-401): [#def208]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:88:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:28:11: enter_function: entry to ‘cache_new’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:42:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:78:9: call_function: calling ‘cache_free’ from ‘cache_new’
#   86|   	{
#   87|   		glyph_cache_free(cache->glyph);
#   88|-> 		brush_cache_free(cache->brush);
#   89|   		pointer_cache_free(cache->pointer);
#   90|   		bitmap_cache_free(cache->bitmap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:89:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:28:11: enter_function: entry to ‘cache_new’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:42:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:78:9: call_function: calling ‘cache_free’ from ‘cache_new’
#   87|   		glyph_cache_free(cache->glyph);
#   88|   		brush_cache_free(cache->brush);
#   89|-> 		pointer_cache_free(cache->pointer);
#   90|   		bitmap_cache_free(cache->bitmap);
#   91|   		offscreen_cache_free(cache->offscreen);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:90:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:28:11: enter_function: entry to ‘cache_new’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:42:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:78:9: call_function: calling ‘cache_free’ from ‘cache_new’
#   88|   		brush_cache_free(cache->brush);
#   89|   		pointer_cache_free(cache->pointer);
#   90|-> 		bitmap_cache_free(cache->bitmap);
#   91|   		offscreen_cache_free(cache->offscreen);
#   92|   		palette_cache_free(cache->palette);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:91:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:28:11: enter_function: entry to ‘cache_new’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:42:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:78:9: call_function: calling ‘cache_free’ from ‘cache_new’
#   89|   		pointer_cache_free(cache->pointer);
#   90|   		bitmap_cache_free(cache->bitmap);
#   91|-> 		offscreen_cache_free(cache->offscreen);
#   92|   		palette_cache_free(cache->palette);
#   93|   		nine_grid_cache_free(cache->nine_grid);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:92:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:28:11: enter_function: entry to ‘cache_new’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:42:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:78:9: call_function: calling ‘cache_free’ from ‘cache_new’
#   90|   		bitmap_cache_free(cache->bitmap);
#   91|   		offscreen_cache_free(cache->offscreen);
#   92|-> 		palette_cache_free(cache->palette);
#   93|   		nine_grid_cache_free(cache->nine_grid);
#   94|   		free(cache);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
FreeRDP-3.20.0/libfreerdp/cache/cache.c:93:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:28:11: enter_function: entry to ‘cache_new’
FreeRDP-3.20.0/libfreerdp/cache/cache.c:34:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:36:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:39:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:41:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/cache.c:42:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/cache.c:78:9: call_function: calling ‘cache_free’ from ‘cache_new’
#   91|   		offscreen_cache_free(cache->offscreen);
#   92|   		palette_cache_free(cache->palette);
#   93|-> 		nine_grid_cache_free(cache->nine_grid);
#   94|   		free(cache);
#   95|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:654:9: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:640:12: branch_false: following ‘false’ branch (when ‘index <= 255’)...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:646:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:646:12: branch_false: following ‘false’ branch (when ‘size != 0’)...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:649:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:649:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:651:12: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:654:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:654:9: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:654:9: danger: ‘copy’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  652|   		return FALSE;
#  653|   
#  654|-> 	WLog_Print(glyphCache->log, WLOG_DEBUG,
#  655|   	           "GlyphCacheFragmentPut: index: %" PRIu32 " size: %" PRIu32 "", index, size);
#  656|   	CopyMemory(copy, fragment, size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:697:27: warning[-Wanalyzer-malloc-leak]: leak of ‘glyphCache’
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:692:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:694:12: branch_false: following ‘false’ branch (when ‘glyphCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:697:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:697:27: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:697:27: danger: ‘glyphCache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  695|   		return NULL;
#  696|   
#  697|-> 	glyphCache->log = WLog_Get("com.freerdp.cache.glyph");
#  698|   	glyphCache->context = context;
#  699|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:703:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:694:12: branch_false: following ‘false’ branch (when ‘glyphCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:697:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:700:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:703:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:707:53: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:709:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:700:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:700:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:703:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:703:21: throw: if ‘freerdp_settings_get_pointer_array’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:703:21: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  701|   	{
#  702|   		const GLYPH_CACHE_DEFINITION* currentGlyph =
#  703|-> 		    freerdp_settings_get_pointer_array(settings, FreeRDP_GlyphCache, i);
#  704|   		GLYPH_CACHE* currentCache = &glyphCache->glyphCache[i];
#  705|   		currentCache->number = currentGlyph->cacheEntries;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:703:21: warning[-Wanalyzer-malloc-leak]: leak of ‘glyphCache’
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:692:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:694:12: branch_false: following ‘false’ branch (when ‘glyphCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:697:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:700:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:703:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:703:21: throw: if ‘freerdp_settings_get_pointer_array’ throws an exception...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:703:21: danger: ‘glyphCache’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  701|   	{
#  702|   		const GLYPH_CACHE_DEFINITION* currentGlyph =
#  703|-> 		    freerdp_settings_get_pointer_array(settings, FreeRDP_GlyphCache, i);
#  704|   		GLYPH_CACHE* currentCache = &glyphCache->glyphCache[i];
#  705|   		currentCache->number = currentGlyph->cacheEntries;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:741:41: warning[-Wanalyzer-malloc-leak]: leak of ‘glyphCache’
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:682:16: enter_function: entry to ‘glyph_cache_new’
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:692:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:694:12: branch_false: following ‘false’ branch (when ‘glyphCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:697:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:700:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:703:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:709:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:710:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/cache/glyph.c:717:9: call_function: calling ‘glyph_cache_free’ from ‘glyph_cache_new’
#  739|   				if (glyph)
#  740|   				{
#  741|-> 					glyph->Free(glyphCache->context, glyph);
#  742|   					entries[j] = NULL;
#  743|   				}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:96:14: warning[-Wanalyzer-malloc-leak]: leak of ‘nine_grid’
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:87:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:88:12: branch_false: following ‘false’ branch (when ‘nine_grid’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:91:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:96:14: throw: if ‘freerdp_settings_set_uint32’ throws an exception...
FreeRDP-3.20.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): [#def220]
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:98:14: warning[-Wanalyzer-malloc-leak]: leak of ‘nine_grid’
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:87:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:88:12: branch_false: following ‘false’ branch (when ‘nine_grid’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:91:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:96:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:98:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/nine_grid.c:98:14: throw: if ‘freerdp_settings_set_uint32’ throws an exception...
FreeRDP-3.20.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-401): [#def221]
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:213:14: warning[-Wanalyzer-malloc-leak]: leak of ‘offscreenCache’
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:204:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:206:12: branch_false: following ‘false’ branch (when ‘offscreenCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:209:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:213:14: throw: if ‘freerdp_settings_set_uint32’ throws an exception...
FreeRDP-3.20.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): [#def222]
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:215:14: warning[-Wanalyzer-malloc-leak]: leak of ‘offscreenCache’
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:204:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:206:12: branch_false: following ‘false’ branch (when ‘offscreenCache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:209:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:213:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:215:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/offscreen.c:215:14: throw: if ‘freerdp_settings_set_uint32’ throws an exception...
FreeRDP-3.20.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-401): [#def223]
FreeRDP-3.20.0/libfreerdp/cache/pointer.c:361:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_cache’
FreeRDP-3.20.0/libfreerdp/cache/pointer.c:352:43: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/pointer.c:354:12: branch_false: following ‘false’ branch (when ‘pointer_cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/pointer.c:357:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/pointer.c:361:29: throw: if ‘freerdp_settings_get_uint32’ throws an exception...
FreeRDP-3.20.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): [#def224]
FreeRDP-3.20.0/libfreerdp/cache/pointer.c:362:34: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_cache’
FreeRDP-3.20.0/libfreerdp/cache/pointer.c:352:43: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/pointer.c:354:12: branch_false: following ‘false’ branch (when ‘pointer_cache’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/pointer.c:357:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/pointer.c:362:34: throw: if ‘freerdp_settings_get_uint32’ throws an exception...
FreeRDP-3.20.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-476): [#def225]
FreeRDP-3.20.0/libfreerdp/codec/color.c:1684:56: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘palette’
FreeRDP-3.20.0/libfreerdp/codec/color.c:1681:28: branch_true: following ‘true’ branch (when ‘color <= 255’)...
FreeRDP-3.20.0/libfreerdp/codec/color.c:1683:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/codec/color.c:1681:28: branch_true: following ‘true’ branch (when ‘color <= 255’)...
FreeRDP-3.20.0/libfreerdp/codec/color.c:1683:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/codec/color.c:1684:56: danger: dereference of NULL ‘palette’
# 1682|   			{
# 1683|   				tmp = palette->palette[color];
# 1684|-> 				FreeRDPSplitColor(tmp, palette->format, _r, _g, _b, _a, NULL);
# 1685|   			}
# 1686|   			else

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

Error: COMPILER_WARNING (CWE-1164): [#def227]
FreeRDP-3.20.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-415): [#def228]
FreeRDP-3.20.0/libfreerdp/codec/region.c:191:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*data.rects’
FreeRDP-3.20.0/libfreerdp/codec/region.c:576:6: enter_function: entry to ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:584:42: call_function: calling ‘region16_extents’ from ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:584:42: return_function: returning to ‘region16_union_rect’ from ‘region16_extents’
FreeRDP-3.20.0/libfreerdp/codec/region.c:585:36: call_function: inlined call to ‘region16_extents_noconst’ from ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:587:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/codec/region.c:587:32: call_function: calling ‘region16_n_rects’ from ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:587:32: return_function: returning to ‘region16_union_rect’ from ‘region16_n_rects’
FreeRDP-3.20.0/libfreerdp/codec/region.c:588:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/codec/region.c:607:50: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/codec/region.c:607:35: call_function: calling ‘allocateRegion’ from ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:607:35: return_function: returning to ‘region16_union_rect’ from ‘allocateRegion’
FreeRDP-3.20.0/libfreerdp/codec/region.c:609:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/codec/region.c:612:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/codec/region.c:615:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/codec/region.c:628:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/codec/region.c:628:43: call_function: calling ‘region16_rects’ from ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:628:43: return_function: returning to ‘region16_union_rect’ from ‘region16_rects’
FreeRDP-3.20.0/libfreerdp/codec/region.c:631:16: branch_true: following ‘true’ branch (when ‘currentBand < endSrcRect’)...
FreeRDP-3.20.0/libfreerdp/codec/region.c:633:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/codec/region.c:633:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/codec/region.c:683:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/codec/region.c:685:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/codec/region.c:685:38: call_function: calling ‘region16_copy_band_with_union’ from ‘region16_union_rect’
#  189|   {
#  190|   	if (data)
#  191|-> 		free(data->rects);
#  192|   	free(data);
#  193|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def229]
FreeRDP-3.20.0/libfreerdp/codec/region.c:599:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.20.0/libfreerdp/codec/region.c:576:6: enter_function: entry to ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:588:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/codec/region.c:591:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/codec/region.c:593:22: call_function: calling ‘resizeRegion’ from ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:593:22: return_function: returning to ‘region16_union_rect’ from ‘resizeRegion’
FreeRDP-3.20.0/libfreerdp/codec/region.c:593:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/codec/region.c:596:41: call_function: inlined call to ‘region16_rects_noconst’ from ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:599:32: branch_true: ...to here
FreeRDP-3.20.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-476): [#def230]
FreeRDP-3.20.0/libfreerdp/codec/region.c:615:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nextBand’
FreeRDP-3.20.0/libfreerdp/codec/region.c:576:6: enter_function: entry to ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:578:29: release_memory: ‘nextBand’ is NULL
FreeRDP-3.20.0/libfreerdp/codec/region.c:584:42: call_function: calling ‘region16_extents’ from ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:584:42: return_function: returning to ‘region16_union_rect’ from ‘region16_extents’
FreeRDP-3.20.0/libfreerdp/codec/region.c:585:36: call_function: inlined call to ‘region16_extents_noconst’ from ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:587:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/codec/region.c:587:32: call_function: calling ‘region16_n_rects’ from ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:587:32: return_function: returning to ‘region16_union_rect’ from ‘region16_n_rects’
FreeRDP-3.20.0/libfreerdp/codec/region.c:588:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/codec/region.c:607:50: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/codec/region.c:607:35: call_function: calling ‘allocateRegion’ from ‘region16_union_rect’
FreeRDP-3.20.0/libfreerdp/codec/region.c:607:35: return_function: returning to ‘region16_union_rect’ from ‘allocateRegion’
FreeRDP-3.20.0/libfreerdp/codec/region.c:609:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/codec/region.c:612:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/codec/region.c:615:25: danger: dereference of NULL ‘region16_extents(src)’
#  613|   
#  614|   	/* adds the piece of rect that is on the top of src */
#  615|-> 	if (rect->top < srcExtents->top)
#  616|   	{
#  617|   		RECTANGLE_16* dstRect = nextRect(newItems, usedRects++);

Error: COMPILER_WARNING: [#def231]
FreeRDP-3.20.0/libfreerdp/codec/sse/../../primitives/sse/prim_avxsse.h:65:16: note[note]: called from here
#   63|   {
#   64|   	const __m128i* mptr = WINPR_CXX_COMPAT_CAST(const __m128i*, ptr);
#   65|-> 	return _mm_lddqu_si128(mptr);
#   66|   }
#   67|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
FreeRDP-3.20.0/libfreerdp/codec/test/img2bgra.c:114:25: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_image_new()’
FreeRDP-3.20.0/libfreerdp/codec/test/img2bgra.c:101:12: branch_false: following ‘false’ branch (when ‘argc == 3’)...
FreeRDP-3.20.0/libfreerdp/codec/test/img2bgra.c:108:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/codec/test/img2bgra.c:110:23: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/codec/test/img2bgra.c:111:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/codec/test/img2bgra.c:114:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/codec/test/img2bgra.c:114:25: throw: if ‘winpr_image_read’ throws an exception...
FreeRDP-3.20.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 (CWE-401): [#def233]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:135:26: warning[-Wanalyzer-malloc-leak]: leak of ‘abuffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1184:5: enter_function: entry to ‘freerdp_assistance_parse_file_buffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1193:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1199:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1199:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1204:12: branch_false: following ‘false’ branch (when ‘abuffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1207:24: branch_false: ...to here
FreeRDP-3.20.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): [#def234]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:135:26: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1212:5: enter_function: entry to ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:14: call_function: calling ‘update_name’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:14: return_function: returning to ‘freerdp_assistance_parse_file’ from ‘update_name’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1227:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1229:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1235:15: call_function: inlined call to ‘_fseeki64’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1246:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1246:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1248:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1254:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1264:12: branch_false: following ‘false’ branch (when ‘readSize != 0’)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1272:15: branch_false: ...to here
FreeRDP-3.20.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): [#def235]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:535:13: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(*file.ConnectionString2)’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1488:5: enter_function: entry to ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1491:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1495:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1498:14: call_function: inlined call to ‘update_connectionstring2_nocopy’ from ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1500:14: call_function: calling ‘update_password’ from ‘freerdp_assistance_set_connection_string2’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1500:14: return_function: returning to ‘freerdp_assistance_set_connection_string2’ from ‘update_password’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1500:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1502:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1502:16: call_function: calling ‘freerdp_assistance_parse_connection_string2’ from ‘freerdp_assistance_set_connection_string2’
#  533|   	WINPR_ASSERT(rc > 0);
#  534|   	WINPR_ASSERT((size_t)rc < sizeof(bkey));
#  535|-> 	if ((rc < 0) || ((size_t)rc >= sizeof(bkey)))
#  536|   		return NULL;
#  537|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1376:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1384:20: enter_function: entry to ‘freerdp_assistance_file_new’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: acquire_memory: allocated here
FreeRDP-3.20.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): [#def237]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1376:24: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1384:20: enter_function: entry to ‘freerdp_assistance_file_new’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.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): [#def238]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: throw: if ‘ArrayList_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: danger: ‘file’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/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): [#def239]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1392:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1392:30: throw: if ‘ArrayList_New’ throws an exception...
FreeRDP-3.20.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): [#def240]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1392:30: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1392:30: throw: if ‘ArrayList_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1392:30: danger: ‘file’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/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): [#def241]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1393:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1393:29: throw: if ‘ArrayList_New’ throws an exception...
FreeRDP-3.20.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): [#def242]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1393:29: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1393:29: throw: if ‘ArrayList_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1393:29: danger: ‘file’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/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): [#def243]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1430:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1384:20: enter_function: entry to ‘freerdp_assistance_file_new’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1392:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1395:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1395:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1399:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1406:9: call_function: calling ‘freerdp_assistance_file_free’ from ‘freerdp_assistance_file_new’
# 1428|   	free(file->EncryptedPassStub);
# 1429|   
# 1430|-> 	ArrayList_Free(file->MachineAddresses);
# 1431|   	ArrayList_Free(file->MachinePorts);
# 1432|   	ArrayList_Free(file->MachineUris);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1430:9: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1384:20: enter_function: entry to ‘freerdp_assistance_file_new’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1399:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1406:9: call_function: calling ‘freerdp_assistance_file_free’ from ‘freerdp_assistance_file_new’
# 1428|   	free(file->EncryptedPassStub);
# 1429|   
# 1430|-> 	ArrayList_Free(file->MachineAddresses);
# 1431|   	ArrayList_Free(file->MachinePorts);
# 1432|   	ArrayList_Free(file->MachineUris);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1431:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1384:20: enter_function: entry to ‘freerdp_assistance_file_new’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1392:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1395:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1395:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1399:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1406:9: call_function: calling ‘freerdp_assistance_file_free’ from ‘freerdp_assistance_file_new’
# 1429|   
# 1430|   	ArrayList_Free(file->MachineAddresses);
# 1431|-> 	ArrayList_Free(file->MachinePorts);
# 1432|   	ArrayList_Free(file->MachineUris);
# 1433|   	free(file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1431:9: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1384:20: enter_function: entry to ‘freerdp_assistance_file_new’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1399:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1406:9: call_function: calling ‘freerdp_assistance_file_free’ from ‘freerdp_assistance_file_new’
# 1429|   
# 1430|   	ArrayList_Free(file->MachineAddresses);
# 1431|-> 	ArrayList_Free(file->MachinePorts);
# 1432|   	ArrayList_Free(file->MachineUris);
# 1433|   	free(file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1432:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1384:20: enter_function: entry to ‘freerdp_assistance_file_new’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1393:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1395:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1398:14: call_function: inlined call to ‘setup_string’ from ‘freerdp_assistance_file_new’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1399:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1406:9: call_function: calling ‘freerdp_assistance_file_free’ from ‘freerdp_assistance_file_new’
# 1430|   	ArrayList_Free(file->MachineAddresses);
# 1431|   	ArrayList_Free(file->MachinePorts);
# 1432|-> 	ArrayList_Free(file->MachineUris);
# 1433|   	free(file);
# 1434|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1432:9: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1384:20: enter_function: entry to ‘freerdp_assistance_file_new’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1387:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1388:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1391:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1395:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1399:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1406:9: call_function: calling ‘freerdp_assistance_file_free’ from ‘freerdp_assistance_file_new’
# 1430|   	ArrayList_Free(file->MachineAddresses);
# 1431|   	ArrayList_Free(file->MachinePorts);
# 1432|-> 	ArrayList_Free(file->MachineUris);
# 1433|   	free(file);
# 1434|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
FreeRDP-3.20.0/libfreerdp/common/settings.c:878:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.20.0/libfreerdp/common/settings.c:910:6: enter_function: entry to ‘freerdp_capability_buffer_resize’
FreeRDP-3.20.0/libfreerdp/common/settings.c:930:14: call_function: calling ‘resize_setting’ from ‘freerdp_capability_buffer_resize’
#  876|   
#  877|   	// NOLINTNEXTLINE(clang-analyzer-unix.Malloc
#  878|-> 	return freerdp_settings_set_pointer(settings, id, ptr);
#  879|   }
#  880|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
FreeRDP-3.20.0/libfreerdp/common/settings.c:907:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.20.0/libfreerdp/common/settings.c:1010:6: enter_function: entry to ‘freerdp_target_net_addresses_resize’
FreeRDP-3.20.0/libfreerdp/common/settings.c:1021:14: call_function: calling ‘resize_setting_ptr’ from ‘freerdp_target_net_addresses_resize’
#  905|   
#  906|   	// NOLINTNEXTLINE(clang-analyzer-unix.Malloc
#  907|-> 	return freerdp_settings_set_pointer(settings, id, ptr);
#  908|   }
#  909|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
FreeRDP-3.20.0/libfreerdp/common/settings.c:1416:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
FreeRDP-3.20.0/libfreerdp/common/settings.c:1407:12: branch_false: following ‘false’ branch (when ‘len <= 4294967295’)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1409:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1409:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1411:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1411:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1412:12: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1414:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1414:12: branch_false: following ‘false’ branch (when ‘data’ is NULL)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1416:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1416:14: throw: if ‘freerdp_settings_set_pointer’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1416:14: danger: ‘copy’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
# 1414|   	if (data)
# 1415|   		memcpy(copy, data, len * size);
# 1416|-> 	rc = freerdp_settings_set_pointer(settings, id, copy);
# 1417|   	if (!rc)
# 1418|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
FreeRDP-3.20.0/libfreerdp/common/settings.c:1427:16: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
FreeRDP-3.20.0/libfreerdp/common/settings.c:1403:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1407:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1407:12: branch_false: following ‘false’ branch (when ‘len <= 4294967295’)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1409:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1409:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1411:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1411:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1412:12: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1414:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1414:12: branch_false: following ‘false’ branch (when ‘data’ is NULL)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1416:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1417:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1425:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1425:12: branch_false: following ‘false’ branch (when ‘lenId != -1’)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1427:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:1427:16: throw: if ‘freerdp_settings_set_uint32’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:1427:16: danger: ‘copy’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
# 1425|   	if (lenId == FreeRDP_UINT32_UNUSED)
# 1426|   		return TRUE;
# 1427|-> 	return freerdp_settings_set_uint32(settings, lenId, (UINT32)len);
# 1428|   }
# 1429|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
FreeRDP-3.20.0/libfreerdp/common/settings.c:2730:22: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
FreeRDP-3.20.0/libfreerdp/common/settings.c:2725:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:2726:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:2730:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:2730:22: throw: if ‘ConvertWCharNToUtf8’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:2730:22: danger: ‘str’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 2728|   
# 2729|   	WINPR_JSON* jstr = NULL;
# 2730|-> 	SSIZE_T rc = ConvertWCharNToUtf8(wstr, len, str, slen);
# 2731|   	if (rc >= 0)
# 2732|   		jstr = WINPR_JSON_AddStringToObject(obj, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: throw: if ‘freerdp_settings_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 4325|   	if (!json)
# 4326|   		return NULL;
# 4327|-> 	rdpSettings* settings = freerdp_settings_new(0);
# 4328|   	if (!settings)
# 4329|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 4329|   		goto fail;
# 4330|   
# 4331|-> 	WINPR_JSON* jbool = WINPR_JSON_GetObjectItemCaseSensitive(
# 4332|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_BOOL));
# 4333|   	if (!jbool)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
# 4329|   		goto fail;
# 4330|   
# 4331|-> 	WINPR_JSON* jbool = WINPR_JSON_GetObjectItemCaseSensitive(
# 4332|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_BOOL));
# 4333|   	if (!jbool)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 4333|   	if (!jbool)
# 4334|   		goto fail;
# 4335|-> 	WINPR_JSON* juint16 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4336|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_UINT16));
# 4337|   	if (!juint16)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
# 4333|   	if (!jbool)
# 4334|   		goto fail;
# 4335|-> 	WINPR_JSON* juint16 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4336|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_UINT16));
# 4337|   	if (!juint16)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 4337|   	if (!juint16)
# 4338|   		goto fail;
# 4339|-> 	WINPR_JSON* jint16 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4340|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_INT16));
# 4341|   	if (!jint16)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
# 4337|   	if (!juint16)
# 4338|   		goto fail;
# 4339|-> 	WINPR_JSON* jint16 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4340|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_INT16));
# 4341|   	if (!jint16)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
# 4341|   	if (!jint16)
# 4342|   		goto fail;
# 4343|-> 	WINPR_JSON* juint32 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4344|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_UINT32));
# 4345|   	if (!juint32)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
# 4341|   	if (!jint16)
# 4342|   		goto fail;
# 4343|-> 	WINPR_JSON* juint32 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4344|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_UINT32));
# 4345|   	if (!juint32)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
# 4345|   	if (!juint32)
# 4346|   		goto fail;
# 4347|-> 	WINPR_JSON* jint32 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4348|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_INT32));
# 4349|   	if (!jint32)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
# 4345|   	if (!juint32)
# 4346|   		goto fail;
# 4347|-> 	WINPR_JSON* jint32 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4348|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_INT32));
# 4349|   	if (!jint32)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4349:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
# 4349|   	if (!jint32)
# 4350|   		goto fail;
# 4351|-> 	WINPR_JSON* juint64 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4352|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_UINT64));
# 4353|   	if (!juint64)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4349:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/2)
# 4349|   	if (!jint32)
# 4350|   		goto fail;
# 4351|-> 	WINPR_JSON* juint64 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4352|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_UINT64));
# 4353|   	if (!juint64)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4349:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4353:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
# 4353|   	if (!juint64)
# 4354|   		goto fail;
# 4355|-> 	WINPR_JSON* jint64 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4356|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_INT64));
# 4357|   	if (!jint64)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4349:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4353:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/2)
# 4353|   	if (!juint64)
# 4354|   		goto fail;
# 4355|-> 	WINPR_JSON* jint64 = WINPR_JSON_GetObjectItemCaseSensitive(
# 4356|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_INT64));
# 4357|   	if (!jint64)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4349:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4353:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4357:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
# 4357|   	if (!jint64)
# 4358|   		goto fail;
# 4359|-> 	WINPR_JSON* jstring = WINPR_JSON_GetObjectItemCaseSensitive(
# 4360|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_STRING));
# 4361|   	if (!jstring)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4349:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4353:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4357:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
# 4357|   	if (!jint64)
# 4358|   		goto fail;
# 4359|-> 	WINPR_JSON* jstring = WINPR_JSON_GetObjectItemCaseSensitive(
# 4360|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_STRING));
# 4361|   	if (!jstring)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4363:32: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4349:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4353:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4357:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4361:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4363:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4363:32: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4363:32: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
# 4361|   	if (!jstring)
# 4362|   		goto fail;
# 4363|-> 	WINPR_JSON* jpointer = WINPR_JSON_GetObjectItemCaseSensitive(
# 4364|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_POINTER));
# 4365|   	if (!jpointer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4363:32: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4349:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4353:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4357:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4361:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4363:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4363:32: throw: if ‘freerdp_settings_get_type_name_for_type’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4363:32: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
# 4361|   	if (!jstring)
# 4362|   		goto fail;
# 4363|-> 	WINPR_JSON* jpointer = WINPR_JSON_GetObjectItemCaseSensitive(
# 4364|   	    json, freerdp_settings_get_type_name_for_type(RDP_SETTINGS_TYPE_POINTER));
# 4365|   	if (!jpointer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4386:32: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4349:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4353:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4357:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4361:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4363:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4365:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4365:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4368:25: branch_true: following ‘true’ branch (when ‘x != 5312’)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4386:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4386:32: throw: if ‘freerdp_settings_get_type_for_key’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4386:32: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
# 4384|   		iter.s = x;
# 4385|   
# 4386|-> 		SSIZE_T type = freerdp_settings_get_type_for_key(iter.s);
# 4387|   		switch (type)
# 4388|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4386:32: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4335:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4337:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4339:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4343:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4347:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4349:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4351:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4353:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4355:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4357:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4359:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4361:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4363:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4365:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4365:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4368:25: branch_true: following ‘true’ branch (when ‘x != 5312’)...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4386:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4386:32: throw: if ‘freerdp_settings_get_type_for_key’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4386:32: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/2)
# 4384|   		iter.s = x;
# 4385|   
# 4386|-> 		SSIZE_T type = freerdp_settings_get_type_for_key(iter.s);
# 4387|   		switch (type)
# 4388|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4516:9: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4329:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4516:9: throw: if ‘freerdp_settings_free’ throws an exception...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4516:9: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/122/codeFlows/0/threadFlows/0/locations/0)
# 4514|   
# 4515|   fail:
# 4516|-> 	freerdp_settings_free(settings);
# 4517|   	WINPR_JSON_Delete(json);
# 4518|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4516:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_new(0)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4331:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4516:9: danger: ‘freerdp_settings_new(0)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/123/codeFlows/0/threadFlows/0/locations/2)
# 4514|   
# 4515|   fail:
# 4516|-> 	freerdp_settings_free(settings);
# 4517|   	WINPR_JSON_Delete(json);
# 4518|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
FreeRDP-3.20.0/libfreerdp/common/settings.c:4517:9: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(jstr,  length)’
FreeRDP-3.20.0/libfreerdp/common/settings.c:4324:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/settings.c:4327:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/settings.c:4517:9: danger: ‘WINPR_JSON_ParseWithLength(jstr,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/124/codeFlows/0/threadFlows/0/locations/0)
# 4515|   fail:
# 4516|   	freerdp_settings_free(settings);
# 4517|-> 	WINPR_JSON_Delete(json);
# 4518|   	return NULL;
# 4519|   }

Error: COMPILER_WARNING: [#def278]
FreeRDP-3.20.0/libfreerdp/common/settings_getters.c: scope_hint: In function ‘freerdp_settings_set_int16’
FreeRDP-3.20.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): [#def279]
FreeRDP-3.20.0/libfreerdp/common/settings_getters.c: scope_hint: In function ‘freerdp_settings_get_uint32’
FreeRDP-3.20.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): [#def280]
FreeRDP-3.20.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): [#def281]
FreeRDP-3.20.0/libfreerdp/common/settings_getters.c: scope_hint: In function ‘freerdp_settings_set_uint32’
FreeRDP-3.20.0/libfreerdp/common/settings_getters.c:2545:17: warning[-Wswitch]: case value ‘395’ not in enumerated type ‘FreeRDP_Settings_Keys_UInt32’
# 2545 |                 case FreeRDP_MonitorLocalShiftX:
#      |                 ^~~~
# 2543|   #if !defined(WITHOUT_FREERDP_3x_DEPRECATED)
# 2544|   		// API Compatibility section, remove with FreeRDP 4.x
# 2545|-> 		case FreeRDP_MonitorLocalShiftX:
# 2546|   			settings->MonitorLocalShiftX = (int32_t)cnv.c;
# 2547|   			break;

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

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

Error: CPPCHECK_WARNING (CWE-664): [#def284]
FreeRDP-3.20.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): [#def285]
FreeRDP-3.20.0/libfreerdp/core/aad.c:340:13: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.20.0/libfreerdp/core/aad.c:469:12: enter_function: entry to ‘aad_send_auth_request’
FreeRDP-3.20.0/libfreerdp/core/aad.c:479:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:480:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:484:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:484:22: call_function: calling ‘aad_create_jws_header’ from ‘aad_send_auth_request’
#  338|   	size_t bufferlen = 0;
#  339|   	const int length =
#  340|-> 	    winpr_asprintf(&buffer, &bufferlen, "{\"alg\":\"RS256\",\"kid\":\"%s\"}", aad->kid);
#  341|   	if (length < 0)
#  342|   		return NULL;

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
FreeRDP-3.20.0/libfreerdp/core/aad.c:546:14: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(*s.pointer,  Stream_GetRemainingLength(s))’
FreeRDP-3.20.0/libfreerdp/core/aad.c:527:12: enter_function: entry to ‘aad_parse_state_initial’
FreeRDP-3.20.0/libfreerdp/core/aad.c:535:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:538:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:538:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:539:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:546:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:546:14: call_function: calling ‘json_get_const_string’ from ‘aad_parse_state_initial’
#  544|   	}
#  545|   
#  546|-> 	if (!json_get_const_string(aad->log, json, "ts_nonce", &ts_nonce))
#  547|   		goto fail;
#  548|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
FreeRDP-3.20.0/libfreerdp/core/aad.c:575:14: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(*s.pointer,  Stream_GetRemainingLength(s))’
FreeRDP-3.20.0/libfreerdp/core/aad.c:555:12: enter_function: entry to ‘aad_parse_state_auth’
FreeRDP-3.20.0/libfreerdp/core/aad.c:564:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:567:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:567:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:568:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:575:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:575:14: call_function: calling ‘json_get_number’ from ‘aad_parse_state_auth’
#  573|   	}
#  574|   
#  575|-> 	if (!json_get_number(aad->log, json, "authentication_result", &result))
#  576|   		goto fail;
#  577|   	error_code = (DWORD)result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
FreeRDP-3.20.0/libfreerdp/core/aad.c:626:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/aad.c:619:36: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:620:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:626:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:626:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/aad.c:626:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  624|   	}
#  625|   
#  626|-> 	if (!winpr_Digest_Init(digest, WINPR_MD_SHA256))
#  627|   	{
#  628|   		WLog_Print(aad->log, WLOG_ERROR, "winpr_Digest_Init(WINPR_MD_SHA256) failed");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
FreeRDP-3.20.0/libfreerdp/core/aad.c:808:20: warning[-Wanalyzer-malloc-leak]: leak of ‘aad’
FreeRDP-3.20.0/libfreerdp/core/aad.c:803:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:805:12: branch_false: following ‘false’ branch (when ‘aad’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/aad.c:808:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:808:20: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/aad.c:808:20: danger: ‘aad’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  806|   		return NULL;
#  807|   
#  808|-> 	aad->log = WLog_Get(FREERDP_TAG("aad"));
#  809|   	aad->key = freerdp_key_new();
#  810|   	if (!aad->key)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
FreeRDP-3.20.0/libfreerdp/core/aad.c:809:20: warning[-Wanalyzer-malloc-leak]: leak of ‘aad’
FreeRDP-3.20.0/libfreerdp/core/aad.c:803:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:805:12: branch_false: following ‘false’ branch (when ‘aad’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/aad.c:808:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:809:20: throw: if ‘freerdp_key_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/aad.c:809:20: danger: ‘aad’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  807|   
#  808|   	aad->log = WLog_Get(FREERDP_TAG("aad"));
#  809|-> 	aad->key = freerdp_key_new();
#  810|   	if (!aad->key)
#  811|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
FreeRDP-3.20.0/libfreerdp/core/aad.c:834:9: warning[-Wanalyzer-malloc-leak]: leak of ‘aad’
FreeRDP-3.20.0/libfreerdp/core/aad.c:798:9: enter_function: entry to ‘aad_new’
FreeRDP-3.20.0/libfreerdp/core/aad.c:803:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:805:12: branch_false: following ‘false’ branch (when ‘aad’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/aad.c:808:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:810:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:811:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:819:9: call_function: calling ‘aad_free’ from ‘aad_new’
#  832|   	free(aad->access_token);
#  833|   	free(aad->kid);
#  834|-> 	freerdp_key_free(aad->key);
#  835|   
#  836|   	free(aad);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
FreeRDP-3.20.0/libfreerdp/core/aad.c:869:29: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.20.0/libfreerdp/core/aad.c:860:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:869:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:869:29: throw: if ‘WINPR_JSON_GetObjectItemCaseSensitive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/aad.c:869:29: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  867|   	}
#  868|   
#  869|-> 	access_token_prop = WINPR_JSON_GetObjectItemCaseSensitive(json, "access_token");
#  870|   	if (!access_token_prop)
#  871|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
FreeRDP-3.20.0/libfreerdp/core/aad.c:872:17: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.20.0/libfreerdp/core/aad.c:860:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:869:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:870:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:872:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:872:17: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/aad.c:872:17: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#  870|   	if (!access_token_prop)
#  871|   	{
#  872|-> 		WLog_Print(log, WLOG_ERROR, "Response has no \"access_token\" property");
#  873|   		goto cleanup;
#  874|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
FreeRDP-3.20.0/libfreerdp/core/aad.c:876:28: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.20.0/libfreerdp/core/aad.c:860:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:869:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:870:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:876:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:876:28: throw: if ‘WINPR_JSON_GetStringValue’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/aad.c:876:28: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
#  874|   	}
#  875|   
#  876|-> 	access_token_str = WINPR_JSON_GetStringValue(access_token_prop);
#  877|   	if (!access_token_str)
#  878|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
FreeRDP-3.20.0/libfreerdp/core/aad.c:879:17: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.20.0/libfreerdp/core/aad.c:860:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:869:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:870:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:876:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:877:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:879:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:879:17: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/aad.c:879:17: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
#  877|   	if (!access_token_str)
#  878|   	{
#  879|-> 		WLog_Print(log, WLOG_ERROR, "Invalid value for \"access_token\"");
#  880|   		goto cleanup;
#  881|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
FreeRDP-3.20.0/libfreerdp/core/aad.c:883:17: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.20.0/libfreerdp/core/aad.c:860:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:869:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:870:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:876:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:877:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:883:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:883:17: throw: if ‘_strdup’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/aad.c:883:17: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
#  881|   	}
#  882|   
#  883|-> 	token = _strdup(access_token_str);
#  884|   
#  885|   cleanup:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
FreeRDP-3.20.0/libfreerdp/core/aad.c:886:9: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(data,  length)’
FreeRDP-3.20.0/libfreerdp/core/aad.c:860:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:869:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:870:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:876:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:877:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:883:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:886:9: danger: ‘WINPR_JSON_ParseWithLength(data,  length)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
#  884|   
#  885|   cleanup:
#  886|-> 	WINPR_JSON_Delete(json);
#  887|   	return token;
#  888|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
FreeRDP-3.20.0/libfreerdp/core/aad.c:886:9: warning[-Wanalyzer-malloc-leak]: leak of ‘token’
FreeRDP-3.20.0/libfreerdp/core/aad.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:869:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:870:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:876:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:877:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/aad.c:883:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/aad.c:883:17: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/aad.c:886:9: throw: if ‘WINPR_JSON_Delete’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/aad.c:886:9: danger: ‘token’ leaks here; was allocated at [(7)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/6)
#  884|   
#  885|   cleanup:
#  886|-> 	WINPR_JSON_Delete(json);
#  887|   	return token;
#  888|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
FreeRDP-3.20.0/libfreerdp/core/activation.c:304:47: warning[-Wanalyzer-malloc-leak]: leak of ‘persistent_cache_new()’
FreeRDP-3.20.0/libfreerdp/core/activation.c:292:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/activation.c:295:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/activation.c:295:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/activation.c:298:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/activation.c:298:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/activation.c:300:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/activation.c:304:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/activation.c:304:13: throw: if ‘persistent_cache_open’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/activation.c:304:47: 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): [#def301]
FreeRDP-3.20.0/libfreerdp/core/activation.c:323:21: warning[-Wanalyzer-malloc-leak]: leak of ‘keyList’
FreeRDP-3.20.0/libfreerdp/core/activation.c:292:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/activation.c:295:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/activation.c:295:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/activation.c:298:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/activation.c:300:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/activation.c:304:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/activation.c:306:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/activation.c:309:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/activation.c:310:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/activation.c:313:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/activation.c:314:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/activation.c:316:12: branch_false: following ‘false’ branch (when ‘keyList’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/activation.c:316:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/activation.c:319:29: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/activation.c:321:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/activation.c:323:21: throw: if ‘persistent_cache_read_entry’ throws an exception...
FreeRDP-3.20.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): [#def302]
FreeRDP-3.20.0/libfreerdp/core/autodetect.c:1046:27: warning[-Wanalyzer-malloc-leak]: leak of ‘autoDetect’
FreeRDP-3.20.0/libfreerdp/core/autodetect.c:1042:53: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/autodetect.c:1043:12: branch_false: following ‘false’ branch (when ‘autoDetect’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/autodetect.c:1045:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/autodetect.c:1046:27: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.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-688): [#def303]
FreeRDP-3.20.0/libfreerdp/core/capabilities.c:4279:17: warning[-Wanalyzer-null-argument]: use of NULL ‘tmp’ where non-null expected
FreeRDP-3.20.0/libfreerdp/core/capabilities.c:4258:6: enter_function: entry to ‘rdp_read_capability_set’
FreeRDP-3.20.0/libfreerdp/core/capabilities.c:4263:12: branch_true: following ‘true’ branch (when ‘type <= 30’)...
FreeRDP-3.20.0/libfreerdp/core/capabilities.c:4265:37: call_function: inlined call to ‘Stream_Length’ from ‘rdp_read_capability_set’
FreeRDP-3.20.0/libfreerdp/core/capabilities.c:4266:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/capabilities.c:4270:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/capabilities.c:4277:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/capabilities.c:4279:29: call_function: inlined call to ‘Stream_Buffer’ from ‘rdp_read_capability_set’
FreeRDP-3.20.0/libfreerdp/core/capabilities.c:4279:17: danger: argument 1 (‘tmp’) NULL where non-null expected
# 4277|   		if (!tmp && (size > 0))
# 4278|   			return FALSE;
# 4279|-> 		memcpy(tmp, Stream_Buffer(sub), size);
# 4280|   		settings->ReceivedCapabilityData[type] = tmp;
# 4281|   	}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def304]
FreeRDP-3.20.0/libfreerdp/core/childsession.c:229:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
FreeRDP-3.20.0/libfreerdp/core/childsession.c:266:12: enter_function: entry to ‘transport_bio_named_gets’
FreeRDP-3.20.0/libfreerdp/core/childsession.c:271: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): [#def305]
FreeRDP-3.20.0/libfreerdp/core/childsession.c:229:37: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
FreeRDP-3.20.0/libfreerdp/core/childsession.c:266:12: enter_function: entry to ‘transport_bio_named_gets’
FreeRDP-3.20.0/libfreerdp/core/childsession.c:271: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): [#def306]
FreeRDP-3.20.0/libfreerdp/core/childsession.c:392:14: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.20.0/libfreerdp/core/childsession.c:388:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/childsession.c:389:12: branch_false: following ‘false’ branch (when ‘ptr’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/childsession.c:392:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/childsession.c:392:14: throw: if ‘ringbuffer_init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/childsession.c:392:14: danger: ‘ptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  390|   		return 0;
#  391|   
#  392|-> 	if (!ringbuffer_init(&ptr->readBuffer, 0xfffff))
#  393|   		goto error;
#  394|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
FreeRDP-3.20.0/libfreerdp/core/childsession.c:517:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateFileW(&pipePath, 3221225472, 0, 0, 3, 1073741824, 0)’
FreeRDP-3.20.0/libfreerdp/core/childsession.c:457:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/childsession.c:463:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/childsession.c:475:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/childsession.c:477:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/childsession.c:482:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/childsession.c:488:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/childsession.c:489:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/childsession.c:495:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/childsession.c:515:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/childsession.c:517: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)
#  515|   	HANDLE f = CreateFileW(pipePath, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING,
#  516|   	                       FILE_FLAG_OVERLAPPED, NULL);
#  517|-> 	if (f == INVALID_HANDLE_VALUE)
#  518|   	{
#  519|   		WLog_ERR(TAG, "error when connecting to local named pipe");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
FreeRDP-3.20.0/libfreerdp/core/client.c:164:9: warning[-Wanalyzer-malloc-leak]: leak of ‘channels’
FreeRDP-3.20.0/libfreerdp/core/client.c:159:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/client.c:161:12: branch_false: following ‘false’ branch (when ‘channels’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/client.c:164:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:164:9: throw: if ‘winpr_InitOnceExecuteOnce’ throws an exception...
FreeRDP-3.20.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): [#def309]
FreeRDP-3.20.0/libfreerdp/core/client.c:168:14: warning[-Wanalyzer-malloc-leak]: leak of ‘channels’
FreeRDP-3.20.0/libfreerdp/core/client.c:159:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/client.c:161:12: branch_false: following ‘false’ branch (when ‘channels’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/client.c:164:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:166:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/client.c:168:52: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:168:14: throw: if ‘InitializeCriticalSectionAndSpinCount’ throws an exception...
FreeRDP-3.20.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-401): [#def310]
FreeRDP-3.20.0/libfreerdp/core/client.c:202:9: warning[-Wanalyzer-malloc-leak]: leak of ‘channels’
FreeRDP-3.20.0/libfreerdp/core/client.c:155:14: enter_function: entry to ‘freerdp_channels_new’
FreeRDP-3.20.0/libfreerdp/core/client.c:159:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/client.c:161:12: branch_false: following ‘false’ branch (when ‘channels’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/client.c:164:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:166:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/client.c:167:17: branch_true: ...to here
FreeRDP-3.20.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): [#def311]
FreeRDP-3.20.0/libfreerdp/core/client.c:204:9: warning[-Wanalyzer-malloc-leak]: leak of ‘channels’
FreeRDP-3.20.0/libfreerdp/core/client.c:155:14: enter_function: entry to ‘freerdp_channels_new’
FreeRDP-3.20.0/libfreerdp/core/client.c:159:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/client.c:161:12: branch_false: following ‘false’ branch (when ‘channels’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/client.c:164:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:166:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/client.c:167:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:192:9: call_function: calling ‘freerdp_channels_free’ from ‘freerdp_channels_new’
#  202|   	HashTable_Free(channels->channelEvents);
#  203|   
#  204|-> 	DeleteCriticalSection(&channels->channelsLock);
#  205|   
#  206|   	if (channels->queue)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
FreeRDP-3.20.0/libfreerdp/core/client.c:1297:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pChannelOpenEvent’
FreeRDP-3.20.0/libfreerdp/core/client.c:1256:12: branch_false: following ‘false’ branch (when ‘pInitHandle’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/client.c:1260:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:1262:12: branch_false: following ‘false’ branch (when ‘channels’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/client.c:1265:76: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:1267:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/client.c:1270:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:1270:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/client.c:1273:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:1273:12: branch_false: following ‘false’ branch (when ‘pData’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/client.c:1276:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:1276:12: branch_false: following ‘false’ branch (when ‘dataLength != 0’)...
FreeRDP-3.20.0/libfreerdp/core/client.c:1279:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:1279:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/client.c:1282:50: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:1282:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/client.c:1284:12: branch_false: following ‘false’ branch (when ‘pChannelOpenEvent’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/client.c:1287:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/client.c:1297:14: throw: if ‘MessageQueue_Dispatch’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/client.c:1297:14: danger: ‘pChannelOpenEvent’ leaks here; was allocated at [(15)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/14)
# 1295|   	message.Free = channel_queue_message_free;
# 1296|   
# 1297|-> 	if (!MessageQueue_Dispatch(channels->queue, &message))
# 1298|   	{
# 1299|   		free(pChannelOpenEvent);

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
FreeRDP-3.20.0/libfreerdp/core/connection.c:766:9: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_client_random’
FreeRDP-3.20.0/libfreerdp/core/connection.c:987:13: enter_function: entry to ‘rdp_client_send_client_info_and_change_state’
FreeRDP-3.20.0/libfreerdp/core/connection.c:990:14: call_function: calling ‘rdp_client_establish_keys’ from ‘rdp_client_send_client_info_and_change_state’
#  764|   		return FALSE;
#  765|   
#  766|-> 	crypto_rsa_public_encrypt(settings->ClientRandom, settings->ClientRandomLength, info,
#  767|   	                          crypt_client_random, info->ModulusLength);
#  768|   	/* send crypt client random to server */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
FreeRDP-3.20.0/libfreerdp/core/connection.c:783:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, length)’
FreeRDP-3.20.0/libfreerdp/core/connection.c:987:13: enter_function: entry to ‘rdp_client_send_client_info_and_change_state’
FreeRDP-3.20.0/libfreerdp/core/connection.c:990:14: call_function: calling ‘rdp_client_establish_keys’ from ‘rdp_client_send_client_info_and_change_state’
#  781|   
#  782|   	UINT16 sec_flags = SEC_EXCHANGE_PKT | SEC_LICENSE_ENCRYPT_SC;
#  783|-> 	if (!rdp_write_header(rdp, s, length, MCS_GLOBAL_CHANNEL_ID, sec_flags))
#  784|   		goto end;
#  785|   	if (!rdp_write_security_header(rdp, s, sec_flags))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
FreeRDP-3.20.0/libfreerdp/core/connection.c:1728:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_addin_argv_new(1, &params)’
FreeRDP-3.20.0/libfreerdp/core/connection.c:1707:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/connection.c:1711:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/connection.c:1711:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/connection.c:1714:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/connection.c:1718:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/connection.c:1721:39: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/connection.c:1724:23: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/connection.c:1725:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/connection.c:1728:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/connection.c:1728:22: throw: if ‘freerdp_static_channel_collection_add’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/connection.c:1728:22: danger: ‘freerdp_addin_argv_new(1, &params)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
# 1726|   			return FALSE;
# 1727|   
# 1728|-> 		if (!freerdp_static_channel_collection_add(rdp->settings, arg))
# 1729|   		{
# 1730|   			freerdp_addin_argv_free(arg);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:536:18: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:510:9: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:520:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:520:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:521:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:524:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:536:18: throw: if the called function throws an exception...
FreeRDP-3.20.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): [#def318]
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:796:13: warning[-Wanalyzer-malloc-leak]: leak of ‘module’
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:779:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:783:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:783:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:789:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:789:31: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:790:12: branch_false: following ‘false’ branch (when ‘module’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:796:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:796:13: throw: if ‘RegQueryValueExA’ throws an exception...
FreeRDP-3.20.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): [#def319]
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:892:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*auth.kerberosSettings.kdcUrl’
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:877:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:879:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:879:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:880:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:887:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:887:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:889:39: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:890:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:892:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:892:25: danger: ‘*auth.kerberosSettings.kdcUrl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  890|   		if (!krb_settings->cache)
#  891|   		{
#  892|-> 			WLog_ERR(TAG, "unable to copy cache name");
#  893|   			return FALSE;
#  894|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:902:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*auth.kerberosSettings.kdcUrl’
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:877:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:879:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:879:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:880:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:887:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:887:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:897:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:897:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:899:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:900:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:902:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:902:25: danger: ‘*auth.kerberosSettings.kdcUrl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  900|   		if (!krb_settings->keytab)
#  901|   		{
#  902|-> 			WLog_ERR(TAG, "unable to copy keytab name");
#  903|   			return FALSE;
#  904|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:912:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*auth.kerberosSettings.kdcUrl’
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:877:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:879:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:879:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:880:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:887:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:887:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:897:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:897:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:907:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:907:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:909:44: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:910:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:912:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:912:25: danger: ‘*auth.kerberosSettings.kdcUrl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  910|   		if (!krb_settings->armorCache)
#  911|   		{
#  912|-> 			WLog_ERR(TAG, "unable to copy armorCache");
#  913|   			return FALSE;
#  914|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:922:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*auth.kerberosSettings.kdcUrl’
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:877:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:879:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:879:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:880:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:887:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:887:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:897:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:897:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:907:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:907:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:917:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:917:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:919:51: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:920:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:922:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:922:25: danger: ‘*auth.kerberosSettings.kdcUrl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  920|   		if (!krb_settings->pkinitX509Anchors)
#  921|   		{
#  922|-> 			WLog_ERR(TAG, "unable to copy pkinitX509Anchors");
#  923|   			return FALSE;
#  924|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:932:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*auth.kerberosSettings.kdcUrl’
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:877:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:879:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:879:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:880:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:887:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:887:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:897:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:897:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:907:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:907:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:917:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:917:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:927:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:927:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:929:42: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:930:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:932:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/credssp_auth.c:932:25: danger: ‘*auth.kerberosSettings.kdcUrl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  930|   		if (!ntlm_settings->samFile)
#  931|   		{
#  932|-> 			WLog_ERR(TAG, "unable to copy samFile");
#  933|   			return FALSE;
#  934|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:312:30: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_bitmap_update(update,  s)’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.20.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): [#def325]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:324:30: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_palette(update,  s)’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.20.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): [#def326]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:423:38: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_position(update,  s)’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.20.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): [#def327]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:436:38: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_color(update,  s, 24)’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.20.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): [#def328]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:448:38: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_cached(update,  s)’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.20.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): [#def329]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:460:38: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_new(update,  s)’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.20.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): [#def330]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:472:38: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_large(update,  s)’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:492:12: enter_function: entry to ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:506:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:508:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:511:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:513:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: call_function: calling ‘fastpath_read_update_header’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:14: return_function: returning to ‘fastpath_recv_update_data’ from ‘fastpath_read_update_header’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:516:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:519:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:529:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:532:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘fastpath_recv_update_data’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:534:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:538:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:547:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:550:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:552:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:554:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:560:26: branch_false: ...to here
FreeRDP-3.20.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): [#def331]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1387:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1380:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1387:24: throw: if ‘Stream_New’ throws an exception...
FreeRDP-3.20.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): [#def332]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1388:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1387:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1388:32: throw: if ‘Stream_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1388:32: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/39/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): [#def333]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1388:32: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1380:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1388:32: throw: if ‘Stream_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1388:32: danger: ‘fastpath’ leaks here; was allocated at [(1)](sarif:/runs/0/results/38/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): [#def334]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1403:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1374:14: enter_function: entry to ‘fastpath_new’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1388:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1390:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1391:17: branch_true: ...to here
FreeRDP-3.20.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): [#def335]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1403:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1374:14: enter_function: entry to ‘fastpath_new’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1380:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1390:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1391:17: branch_true: ...to here
FreeRDP-3.20.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): [#def336]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1404:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1374:14: enter_function: entry to ‘fastpath_new’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1387:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1390:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1390:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1390:13: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1391:17: branch_true: ...to here
FreeRDP-3.20.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): [#def337]
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1404:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1374:14: enter_function: entry to ‘fastpath_new’
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1380:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1382:12: branch_false: following ‘false’ branch (when ‘fastpath’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1385:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1390:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/fastpath.c:1391:17: branch_true: ...to here
FreeRDP-3.20.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): [#def338]
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:817:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:798:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:802:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:806:28: branch_false: following ‘false’ branch (when ‘count == 2’)...
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:815:45: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:817:38: throw: if the called function throws an exception...
FreeRDP-3.20.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): [#def339]
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:831:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:798:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:802:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:822:28: branch_false: following ‘false’ branch (when ‘count == 0’)...
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:831:38: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:831:38: throw: if the called function throws an exception...
FreeRDP-3.20.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): [#def340]
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:1388: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1386|   void setChannelError(rdpContext* context, UINT errorNum, WINPR_FORMAT_ARG const char* format, ...)
# 1387|   {
# 1388|-> 	va_list ap = { 0 };
# 1389|   	va_start(ap, format);
# 1390|   

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:1504:9: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:1488:31: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:1490:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:1491:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:1504:9: throw: if ‘transport_free’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/freerdp.c:1504:9: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 1502|   
# 1503|   fail:
# 1504|-> 	transport_free(transport);
# 1505|   	free(context);
# 1506|   	freerdp_settings_free(settings);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:203:33: warning[-Wanalyzer-malloc-leak]: leak of ‘http_request_new()’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:198:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:203:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:205:14: throw: if ‘http_request_set_method’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:203:33: danger: ‘http_request_new()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  201|   		return NULL;
#  202|   
#  203|-> 	rdpSettings* settings = arm->context->settings;
#  204|   
#  205|   	if (!http_request_set_method(request, method) || !http_request_set_uri(request, uri))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:283:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:289:16: enter_function: entry to ‘arm_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:294:12: branch_false: following ‘false’ branch (when ‘arm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:297:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:299:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:300:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:303:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:305:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:306:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:311:9: call_function: inlined call to ‘arm_free’ from ‘arm_new’
#  281|   		return;
#  282|   
#  283|-> 	freerdp_tls_free(arm->tls);
#  284|   	http_context_free(arm->http);
#  285|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:283:9: warning[-Wanalyzer-malloc-leak]: leak of ‘arm’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:289:16: enter_function: entry to ‘arm_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:293:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:294:12: branch_false: following ‘false’ branch (when ‘arm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:297:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:300:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:301:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:311:9: call_function: inlined call to ‘arm_free’ from ‘arm_new’
#  281|   		return;
#  282|   
#  283|-> 	freerdp_tls_free(arm->tls);
#  284|   	http_context_free(arm->http);
#  285|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:284:9: warning[-Wanalyzer-malloc-leak]: leak of ‘arm’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:289:16: enter_function: entry to ‘arm_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:293:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:294:12: branch_false: following ‘false’ branch (when ‘arm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:297:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:300:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:301:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:311:9: call_function: inlined call to ‘arm_free’ from ‘arm_new’
#  282|   
#  283|   	freerdp_tls_free(arm->tls);
#  284|-> 	http_context_free(arm->http);
#  285|   
#  286|   	free(arm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:297:20: warning[-Wanalyzer-malloc-leak]: leak of ‘arm’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:293:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:294:12: branch_false: following ‘false’ branch (when ‘arm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:297:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:297:20: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:297:20: danger: ‘arm’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  295|   		goto fail;
#  296|   
#  297|-> 	arm->log = WLog_Get(TAG);
#  298|   	arm->context = context;
#  299|   	arm->tls = freerdp_tls_new(context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:299:20: warning[-Wanalyzer-malloc-leak]: leak of ‘arm’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:293:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:294:12: branch_false: following ‘false’ branch (when ‘arm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:297:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:299:20: throw: if ‘freerdp_tls_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:299:20: danger: ‘arm’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  297|   	arm->log = WLog_Get(TAG);
#  298|   	arm->context = context;
#  299|-> 	arm->tls = freerdp_tls_new(context);
#  300|   	if (!arm->tls)
#  301|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:303:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:294:12: branch_false: following ‘false’ branch (when ‘arm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:297:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:299:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:300:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:303:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:303:21: throw: if ‘http_context_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:303:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
#  301|   		goto fail;
#  302|   
#  303|-> 	arm->http = http_context_new();
#  304|   
#  305|   	if (!arm->http)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:303:21: warning[-Wanalyzer-malloc-leak]: leak of ‘arm’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:293:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:294:12: branch_false: following ‘false’ branch (when ‘arm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:297:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:300:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:303:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:303:21: throw: if ‘http_context_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:303:21: danger: ‘arm’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  301|   		goto fail;
#  302|   
#  303|-> 	arm->http = http_context_new();
#  304|   
#  305|   	if (!arm->http)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:336:13: warning[-Wanalyzer-malloc-leak]: leak of ‘lbi’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:327:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:329:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:332:12: branch_false: following ‘false’ branch (when ‘lbi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:336:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:336:13: throw: if ‘freerdp_settings_get_uint32’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:336:13: danger: ‘lbi’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
#  334|   
#  335|   	const size_t len =
#  336|-> 	    freerdp_settings_get_uint32(arm->context->settings, FreeRDP_LoadBalanceInfoLength);
#  337|   	memcpy(lbi, freerdp_settings_get_pointer(arm->context->settings, FreeRDP_LoadBalanceInfo), len);
#  338|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:337:21: warning[-Wanalyzer-malloc-leak]: leak of ‘lbi’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:327:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:329:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:332:12: branch_false: following ‘false’ branch (when ‘lbi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:336:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:337:21: throw: if ‘freerdp_settings_get_pointer’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:337:21: danger: ‘lbi’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#  335|   	const size_t len =
#  336|   	    freerdp_settings_get_uint32(arm->context->settings, FreeRDP_LoadBalanceInfoLength);
#  337|-> 	memcpy(lbi, freerdp_settings_get_pointer(arm->context->settings, FreeRDP_LoadBalanceInfo), len);
#  338|   
#  339|   	WINPR_JSON_AddStringToObject(json, "loadBalanceInfo", lbi);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:339:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lbi’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:327:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:329:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:332:12: branch_false: following ‘false’ branch (when ‘lbi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:336:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:339:9: throw: if ‘WINPR_JSON_AddStringToObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:339:9: danger: ‘lbi’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
#  337|   	memcpy(lbi, freerdp_settings_get_pointer(arm->context->settings, FreeRDP_LoadBalanceInfo), len);
#  338|   
#  339|-> 	WINPR_JSON_AddStringToObject(json, "loadBalanceInfo", lbi);
#  340|   	WINPR_JSON_AddNullToObject(json, "LogonToken");
#  341|   	WINPR_JSON_AddNullToObject(json, "gatewayLoadBalancerToken");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:340:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lbi’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:327:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:329:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:332:12: branch_false: following ‘false’ branch (when ‘lbi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:336:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:340:9: throw: if ‘WINPR_JSON_AddNullToObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:340:9: danger: ‘lbi’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
#  338|   
#  339|   	WINPR_JSON_AddStringToObject(json, "loadBalanceInfo", lbi);
#  340|-> 	WINPR_JSON_AddNullToObject(json, "LogonToken");
#  341|   	WINPR_JSON_AddNullToObject(json, "gatewayLoadBalancerToken");
#  342|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:341:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lbi’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:327:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:329:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:332:12: branch_false: following ‘false’ branch (when ‘lbi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:336:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:341:9: throw: if ‘WINPR_JSON_AddNullToObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:341:9: danger: ‘lbi’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
#  339|   	WINPR_JSON_AddStringToObject(json, "loadBalanceInfo", lbi);
#  340|   	WINPR_JSON_AddNullToObject(json, "LogonToken");
#  341|-> 	WINPR_JSON_AddNullToObject(json, "gatewayLoadBalancerToken");
#  342|   
#  343|   	message = WINPR_JSON_PrintUnformatted(json);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:343:19: warning[-Wanalyzer-malloc-leak]: leak of ‘lbi’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:327:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:329:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:332:12: branch_false: following ‘false’ branch (when ‘lbi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:336:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:343:19: throw: if ‘WINPR_JSON_PrintUnformatted’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:343:19: danger: ‘lbi’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
#  341|   	WINPR_JSON_AddNullToObject(json, "gatewayLoadBalancerToken");
#  342|   
#  343|-> 	message = WINPR_JSON_PrintUnformatted(json);
#  344|   arm_create_cleanup:
#  345|   	if (json)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:346:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lbi’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:327:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:329:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:332:12: branch_false: following ‘false’ branch (when ‘lbi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:336:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:346:17: throw: if ‘WINPR_JSON_Delete’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:346:17: danger: ‘lbi’ leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
#  344|   arm_create_cleanup:
#  345|   	if (json)
#  346|-> 		WINPR_JSON_Delete(json);
#  347|   	free(lbi);
#  348|   	return message;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:346:17: warning[-Wanalyzer-malloc-leak]: leak of ‘message’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:327:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:332:12: branch_false: following ‘false’ branch (when ‘lbi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:336:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:343:19: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:346:17: throw: if ‘WINPR_JSON_Delete’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:346:17: danger: ‘message’ leaks here; was allocated at [(5)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/4)
#  344|   arm_create_cleanup:
#  345|   	if (json)
#  346|-> 		WINPR_JSON_Delete(json);
#  347|   	free(lbi);
#  348|   	return message;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:449:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Cipher_NewEx(cipherType, 0, *<unknown>.pointer, (long unsigned int)Stream_Get_UINT32(Stream_StaticConstInit(&staticStream,  pbInput + algoLen,  cbInput)), 0, 0)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:365:26: enter_function: entry to ‘treatAuthBlob’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:374:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:380:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:380:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:386:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:388:12: branch_false: following ‘false’ branch (when ‘cbInput >= algoLen’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:394:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:400:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:403:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:403:32: call_function: calling ‘Stream_Get_UINT32’ from ‘treatAuthBlob’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:403:32: return_function: returning to ‘treatAuthBlob’ from ‘Stream_Get_UINT32’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:404:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:410:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:410:34: call_function: calling ‘Stream_Get_UINT32’ from ‘treatAuthBlob’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:410:34: return_function: returning to ‘treatAuthBlob’ from ‘Stream_Get_UINT32’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:411:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:418:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:418:34: call_function: calling ‘Stream_Get_UINT32’ from ‘treatAuthBlob’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:418:34: return_function: returning to ‘treatAuthBlob’ from ‘Stream_Get_UINT32’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:419:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:426:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:442:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:443:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:449:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:449:14: throw: if ‘winpr_Cipher_SetPadding’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:449:14: danger: ‘winpr_Cipher_NewEx(cipherType, 0, *<unknown>.pointer, (long unsigned int)Stream_Get_UINT32(Stream_StaticConstInit(&staticStream,  pbInput + algoLen,  cbInput)), 0, 0)’ leaks here; was allocated at [(37)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/36)
#  447|   	}
#  448|   
#  449|-> 	if (!winpr_Cipher_SetPadding(ret, TRUE))
#  450|   	{
#  451|   		WLog_Print(log, WLOG_ERROR, "unable to enable padding on cipher");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:507:14: warning[-Wanalyzer-malloc-leak]: leak of ‘encryptedPass’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:494:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:500:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:501:31: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:503:12: branch_false: following ‘false’ branch (when ‘encryptedPass’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:506:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:507:14: throw: if ‘winpr_Cipher_Update’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:507:14: danger: ‘encryptedPass’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
#  505|   
#  506|   	size_t encryptedPassLen = 0;
#  507|-> 	if (!winpr_Cipher_Update(cipher, wpasswd, wpasswdBytes, encryptedPass, &encryptedPassLen))
#  508|   		goto out;
#  509|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:634:33: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:775:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:777:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:782:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:783:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:783:34: call_function: calling ‘arm_parse_ipvx_count’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  632|   {
#  633|   	WINPR_ASSERT(ipvX);
#  634|-> 	WINPR_JSON* ipAddress = WINPR_JSON_GetObjectItemCaseSensitive(ipvX, "ipAddress");
#  635|   	if (!ipAddress || !WINPR_JSON_IsArray(ipAddress))
#  636|   		return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:635:28: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:775:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:777:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:782:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:783:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:783:34: call_function: calling ‘arm_parse_ipvx_count’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  633|   	WINPR_ASSERT(ipvX);
#  634|   	WINPR_JSON* ipAddress = WINPR_JSON_GetObjectItemCaseSensitive(ipvX, "ipAddress");
#  635|-> 	if (!ipAddress || !WINPR_JSON_IsArray(ipAddress))
#  636|   		return 0;
#  637|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:639:16: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:775:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:777:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:782:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:783:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:783:34: call_function: calling ‘arm_parse_ipvx_count’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  637|   
#  638|   	/* Each entry might contain a public and a private address */
#  639|-> 	return WINPR_JSON_GetArraySize(ipAddress) * 2;
#  640|   }
#  641|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:648:14: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:793:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:794:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:796:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:803:30: call_function: calling ‘arm_parse_ipv6’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  646|   	WINPR_ASSERT(pAddressIdx);
#  647|   
#  648|-> 	if (!freerdp_settings_get_bool(settings, FreeRDP_IPv6Enabled))
#  649|   		return TRUE;
#  650|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:651:33: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:793:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:794:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:796:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:803:30: call_function: calling ‘arm_parse_ipv6’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  649|   		return TRUE;
#  650|   
#  651|-> 	WINPR_JSON* ipAddress = WINPR_JSON_GetObjectItemCaseSensitive(ipv6, "ipAddress");
#  652|   	if (!ipAddress || !WINPR_JSON_IsArray(ipAddress))
#  653|   		return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:652:28: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:793:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:794:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:796:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:803:30: call_function: calling ‘arm_parse_ipv6’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  650|   
#  651|   	WINPR_JSON* ipAddress = WINPR_JSON_GetObjectItemCaseSensitive(ipv6, "ipAddress");
#  652|-> 	if (!ipAddress || !WINPR_JSON_IsArray(ipAddress))
#  653|   		return TRUE;
#  654|   	const size_t naddresses = WINPR_JSON_GetArraySize(ipAddress);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:654:35: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:793:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:794:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:796:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:803:30: call_function: calling ‘arm_parse_ipv6’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  652|   	if (!ipAddress || !WINPR_JSON_IsArray(ipAddress))
#  653|   		return TRUE;
#  654|-> 	const size_t naddresses = WINPR_JSON_GetArraySize(ipAddress);
#  655|   	const uint32_t count = freerdp_settings_get_uint32(settings, FreeRDP_TargetNetAddressCount);
#  656|   	for (size_t j = 0; j < naddresses; j++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:655:32: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:793:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:794:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:796:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:803:30: call_function: calling ‘arm_parse_ipv6’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  653|   		return TRUE;
#  654|   	const size_t naddresses = WINPR_JSON_GetArraySize(ipAddress);
#  655|-> 	const uint32_t count = freerdp_settings_get_uint32(settings, FreeRDP_TargetNetAddressCount);
#  656|   	for (size_t j = 0; j < naddresses; j++)
#  657|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:658:39: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:793:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:794:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:796:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:803:30: call_function: calling ‘arm_parse_ipv6’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  656|   	for (size_t j = 0; j < naddresses; j++)
#  657|   	{
#  658|-> 		WINPR_JSON* adressN = WINPR_JSON_GetArrayItem(ipAddress, j);
#  659|   		if (!adressN || !WINPR_JSON_IsString(adressN))
#  660|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:659:34: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:793:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:794:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:796:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:803:30: call_function: calling ‘arm_parse_ipv6’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  657|   	{
#  658|   		WINPR_JSON* adressN = WINPR_JSON_GetArrayItem(ipAddress, j);
#  659|-> 		if (!adressN || !WINPR_JSON_IsString(adressN))
#  660|   			continue;
#  661|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:685:33: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:793:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:794:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:796:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:801:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:807:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:810:30: call_function: calling ‘arm_parse_ipv4’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  683|   	WINPR_ASSERT(pAddressIdx);
#  684|   
#  685|-> 	WINPR_JSON* ipAddress = WINPR_JSON_GetObjectItemCaseSensitive(ipv4, "ipAddress");
#  686|   	if (!ipAddress || !WINPR_JSON_IsArray(ipAddress))
#  687|   		return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:686:28: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:793:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:794:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:796:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:801:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:807:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:810:30: call_function: calling ‘arm_parse_ipv4’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  684|   
#  685|   	WINPR_JSON* ipAddress = WINPR_JSON_GetObjectItemCaseSensitive(ipv4, "ipAddress");
#  686|-> 	if (!ipAddress || !WINPR_JSON_IsArray(ipAddress))
#  687|   		return TRUE;
#  688|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:689:35: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:793:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:794:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:796:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:801:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:807:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:810:30: call_function: calling ‘arm_parse_ipv4’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  687|   		return TRUE;
#  688|   
#  689|-> 	const size_t naddresses = WINPR_JSON_GetArraySize(ipAddress);
#  690|   	const uint32_t count = freerdp_settings_get_uint32(settings, FreeRDP_TargetNetAddressCount);
#  691|   	for (size_t j = 0; j < naddresses; j++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:146:28: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:136:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:138:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:139:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: call_function: calling ‘HashTable_New_String’ from ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: return_function: returning to ‘http_context_new’ from ‘HashTable_New_String’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:143:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:146:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:146:28: throw: if ‘ListDictionary_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:146:28: danger: ‘context’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#  144|   		goto fail;
#  145|   
#  146|-> 	context->cookies = ListDictionary_New(FALSE);
#  147|   	if (!context->cookies)
#  148|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:150:24: warning[-Wanalyzer-malloc-leak]: leak of ‘ListDictionary_New(0)’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:136:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:139:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: call_function: calling ‘HashTable_New_String’ from ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: return_function: returning to ‘http_context_new’ from ‘HashTable_New_String’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:143:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:146:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:146:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:147:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:150:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:150:24: throw: if ‘ListDictionary_KeyObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:150:24: danger: ‘ListDictionary_New(0)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
#  148|   		goto fail;
#  149|   
#  150|-> 	wObject* key = ListDictionary_KeyObject(context->cookies);
#  151|   	wObject* value = ListDictionary_ValueObject(context->cookies);
#  152|   	if (!key || !value)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:150:24: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:136:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:138:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:139:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: call_function: calling ‘HashTable_New_String’ from ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: return_function: returning to ‘http_context_new’ from ‘HashTable_New_String’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:143:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:146:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:147:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:150:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:150:24: throw: if ‘ListDictionary_KeyObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:150:24: danger: ‘context’ leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
#  148|   		goto fail;
#  149|   
#  150|-> 	wObject* key = ListDictionary_KeyObject(context->cookies);
#  151|   	wObject* value = ListDictionary_ValueObject(context->cookies);
#  152|   	if (!key || !value)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:151:26: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:136:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:138:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:139:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: call_function: calling ‘HashTable_New_String’ from ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: return_function: returning to ‘http_context_new’ from ‘HashTable_New_String’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:143:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:146:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:147:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:150:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:151:26: throw: if ‘ListDictionary_ValueObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:151:26: danger: ‘context’ leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#  149|   
#  150|   	wObject* key = ListDictionary_KeyObject(context->cookies);
#  151|-> 	wObject* value = ListDictionary_ValueObject(context->cookies);
#  152|   	if (!key || !value)
#  153|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def381]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:277:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:276:9: acquire_resource: ‘va_copy’ called here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:277:26: throw: if ‘winpr_vasprintf’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:277:26: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  275|   
#  276|   	va_copy(vat, ap);
#  277|-> 	const int size = winpr_vasprintf(&Pragma, &PragmaSize, str, ap);
#  278|   	va_end(vat);
#  279|   

Error: CPPCHECK_WARNING (CWE-664): [#def382]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:313: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  311|   	context->Pragma = NULL;
#  312|   
#  313|-> 	va_list ap = { 0 };
#  314|   	va_start(ap, Pragma);
#  315|   	return list_append(context, Pragma, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def383]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:315: error[va_end_missing]: va_list 'ap' was opened but not closed by va_end().
#  313|   	va_list ap = { 0 };
#  314|   	va_start(ap, Pragma);
#  315|-> 	return list_append(context, Pragma, ap);
#  316|   }
#  317|   

Error: CPPCHECK_WARNING (CWE-664): [#def384]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:324: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  322|   		return FALSE;
#  323|   
#  324|-> 	va_list ap = { 0 };
#  325|   	va_start(ap, Pragma);
#  326|   	return list_append(context, Pragma, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def385]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:326: error[va_end_missing]: va_list 'ap' was opened but not closed by va_end().
#  324|   	va_list ap = { 0 };
#  325|   	va_start(ap, Pragma);
#  326|-> 	return list_append(context, Pragma, ap);
#  327|   }
#  328|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:425:17: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:136:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:138:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:139:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:143:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:144:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:165:9: call_function: calling ‘http_context_free’ from ‘http_context_new’
#  423|   		free(context->Connection);
#  424|   		free(context->Pragma);
#  425|-> 		HashTable_Free(context->headers);
#  426|   		ListDictionary_Free(context->cookies);
#  427|   		free(context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:426:17: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:136:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:138:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:139:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:143:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:144:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:165:9: call_function: calling ‘http_context_free’ from ‘http_context_new’
#  424|   		free(context->Pragma);
#  425|   		HashTable_Free(context->headers);
#  426|-> 		ListDictionary_Free(context->cookies);
#  427|   		free(context);
#  428|   	}

Error: CPPCHECK_WARNING (CWE-664): [#def388]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:501: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  499|   {
#  500|   	char* str = NULL;
#  501|-> 	va_list ap = { 0 };
#  502|   	int length = 0;
#  503|   	int used = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:625:58: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:617:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:620:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:620:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:625:58: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:625:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:628:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:625:58: danger: ‘Stream_New(0, 1024)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  623|   		return NULL;
#  624|   
#  625|-> 	if (!http_encode_header_line(s, request->Method, request->URI) ||
#  626|   
#  627|   	    !http_encode_body_line(s, "Pragma", context->Pragma))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:716:9: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:690:14: enter_function: entry to ‘http_request_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:692:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:693:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:696:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:697:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:698:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:702:9: call_function: calling ‘http_request_free’ from ‘http_request_new’
#  714|   	free(request->Method);
#  715|   	free(request->URI);
#  716|-> 	HashTable_Free(request->headers);
#  717|   	free(request);
#  718|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1480:29: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:136:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:138:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:139:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: call_function: calling ‘HashTable_New_String’ from ‘http_context_new’
# 1478|   wHashTable* HashTable_New_String(void)
# 1479|   {
# 1480|-> 	wHashTable* table = HashTable_New(FALSE);
# 1481|   	if (!table)
# 1482|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1480:29: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:690:14: enter_function: entry to ‘http_request_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:692:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:693:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:696:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:696:28: call_function: calling ‘HashTable_New_String’ from ‘http_request_new’
# 1478|   wHashTable* HashTable_New_String(void)
# 1479|   {
# 1480|-> 	wHashTable* table = HashTable_New(FALSE);
# 1481|   	if (!table)
# 1482|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1480:29: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1494:15: enter_function: entry to ‘http_response_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1496:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1498:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: call_function: calling ‘HashTable_New_String’ from ‘http_response_new’
# 1478|   wHashTable* HashTable_New_String(void)
# 1479|   {
# 1480|-> 	wHashTable* table = HashTable_New(FALSE);
# 1481|   	if (!table)
# 1482|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1484:14: warning[-Wanalyzer-malloc-leak]: leak of ‘HashTable_New(0)’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1480:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1481:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1484:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1484:14: throw: if ‘HashTable_SetupForStringData’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1484:14: danger: ‘HashTable_New(0)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1482|   		return NULL;
# 1483|   
# 1484|-> 	if (!HashTable_SetupForStringData(table, TRUE))
# 1485|   	{
# 1486|   		HashTable_Free(table);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1484:14: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:136:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:138:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:139:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: call_function: calling ‘HashTable_New_String’ from ‘http_context_new’
# 1482|   		return NULL;
# 1483|   
# 1484|-> 	if (!HashTable_SetupForStringData(table, TRUE))
# 1485|   	{
# 1486|   		HashTable_Free(table);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1484:14: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:690:14: enter_function: entry to ‘http_request_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:692:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:693:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:696:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:696:28: call_function: calling ‘HashTable_New_String’ from ‘http_request_new’
# 1482|   		return NULL;
# 1483|   
# 1484|-> 	if (!HashTable_SetupForStringData(table, TRUE))
# 1485|   	{
# 1486|   		HashTable_Free(table);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1484:14: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1494:15: enter_function: entry to ‘http_response_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1496:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1498:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: call_function: calling ‘HashTable_New_String’ from ‘http_response_new’
# 1482|   		return NULL;
# 1483|   
# 1484|-> 	if (!HashTable_SetupForStringData(table, TRUE))
# 1485|   	{
# 1486|   		HashTable_Free(table);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1486:17: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:136:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:138:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:139:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: call_function: calling ‘HashTable_New_String’ from ‘http_context_new’
# 1484|   	if (!HashTable_SetupForStringData(table, TRUE))
# 1485|   	{
# 1486|-> 		HashTable_Free(table);
# 1487|   		return NULL;
# 1488|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1486:17: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:690:14: enter_function: entry to ‘http_request_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:692:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:693:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:696:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:696:28: call_function: calling ‘HashTable_New_String’ from ‘http_request_new’
# 1484|   	if (!HashTable_SetupForStringData(table, TRUE))
# 1485|   	{
# 1486|-> 		HashTable_Free(table);
# 1487|   		return NULL;
# 1488|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1486:17: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1494:15: enter_function: entry to ‘http_response_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1496:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1498:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: call_function: calling ‘HashTable_New_String’ from ‘http_response_new’
# 1484|   	if (!HashTable_SetupForStringData(table, TRUE))
# 1485|   	{
# 1486|-> 		HashTable_Free(table);
# 1487|   		return NULL;
# 1488|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1489:9: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:136:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:138:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:139:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: call_function: calling ‘HashTable_New_String’ from ‘http_context_new’
# 1487|   		return NULL;
# 1488|   	}
# 1489|-> 	HashTable_KeyObject(table)->fnObjectEquals = strings_equals_nocase;
# 1490|   	HashTable_ValueObject(table)->fnObjectEquals = strings_equals_nocase;
# 1491|   	return table;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1489:9: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:690:14: enter_function: entry to ‘http_request_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:692:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:693:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:696:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:696:28: call_function: calling ‘HashTable_New_String’ from ‘http_request_new’
# 1487|   		return NULL;
# 1488|   	}
# 1489|-> 	HashTable_KeyObject(table)->fnObjectEquals = strings_equals_nocase;
# 1490|   	HashTable_ValueObject(table)->fnObjectEquals = strings_equals_nocase;
# 1491|   	return table;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1489:9: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1494:15: enter_function: entry to ‘http_response_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1496:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1498:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: call_function: calling ‘HashTable_New_String’ from ‘http_response_new’
# 1487|   		return NULL;
# 1488|   	}
# 1489|-> 	HashTable_KeyObject(table)->fnObjectEquals = strings_equals_nocase;
# 1490|   	HashTable_ValueObject(table)->fnObjectEquals = strings_equals_nocase;
# 1491|   	return table;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1490:9: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:136:14: enter_function: entry to ‘http_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:138:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:139:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:142:28: call_function: calling ‘HashTable_New_String’ from ‘http_context_new’
# 1488|   	}
# 1489|   	HashTable_KeyObject(table)->fnObjectEquals = strings_equals_nocase;
# 1490|-> 	HashTable_ValueObject(table)->fnObjectEquals = strings_equals_nocase;
# 1491|   	return table;
# 1492|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1490:9: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:690:14: enter_function: entry to ‘http_request_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:692:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:693:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:696:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:696:28: call_function: calling ‘HashTable_New_String’ from ‘http_request_new’
# 1488|   	}
# 1489|   	HashTable_KeyObject(table)->fnObjectEquals = strings_equals_nocase;
# 1490|-> 	HashTable_ValueObject(table)->fnObjectEquals = strings_equals_nocase;
# 1491|   	return table;
# 1492|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1490:9: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1494:15: enter_function: entry to ‘http_response_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1496:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1498:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: call_function: calling ‘HashTable_New_String’ from ‘http_response_new’
# 1488|   	}
# 1489|   	HashTable_KeyObject(table)->fnObjectEquals = strings_equals_nocase;
# 1490|-> 	HashTable_ValueObject(table)->fnObjectEquals = strings_equals_nocase;
# 1491|   	return table;
# 1492|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1511:26: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1494:15: enter_function: entry to ‘http_response_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1496:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1498:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: call_function: calling ‘HashTable_New_String’ from ‘http_response_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: return_function: returning to ‘http_response_new’ from ‘HashTable_New_String’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1506:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1506:31: call_function: calling ‘HashTable_New_String’ from ‘http_response_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1506:31: return_function: returning to ‘http_response_new’ from ‘HashTable_New_String’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1508:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1511:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1511:26: throw: if ‘Stream_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1511:26: danger: ‘response’ leaks here; was allocated at [(2)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/1)
# 1509|   		goto fail;
# 1510|   
# 1511|-> 	response->data = Stream_New(NULL, 2048);
# 1512|   
# 1513|   	if (!response->data)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1532:9: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1494:15: enter_function: entry to ‘http_response_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1496:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1498:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1503:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1504:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1521:9: call_function: calling ‘http_response_free’ from ‘http_response_new’
# 1530|   
# 1531|   	free((void*)response->lines);
# 1532|-> 	HashTable_Free(response->Authenticates);
# 1533|   	HashTable_Free(response->SetCookie);
# 1534|   	Stream_Free(response->data, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1533:9: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1494:15: enter_function: entry to ‘http_response_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1496:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1498:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1503:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1504:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1521:9: call_function: calling ‘http_response_free’ from ‘http_response_new’
# 1531|   	free((void*)response->lines);
# 1532|   	HashTable_Free(response->Authenticates);
# 1533|-> 	HashTable_Free(response->SetCookie);
# 1534|   	Stream_Free(response->data, TRUE);
# 1535|   	free(response);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1534:9: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1494:15: enter_function: entry to ‘http_response_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1496:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1498:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1501:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1503:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1504:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1521:9: call_function: calling ‘http_response_free’ from ‘http_response_new’
# 1532|   	HashTable_Free(response->Authenticates);
# 1533|   	HashTable_Free(response->SetCookie);
# 1534|-> 	Stream_Free(response->data, TRUE);
# 1535|   	free(response);
# 1536|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1626:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1608:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1611:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1611:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1617:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1622:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1622:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1623:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1626:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1626:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1626:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(7)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/6)
# 1624|   		goto out;
# 1625|   
# 1626|-> 	if (!winpr_Digest_Init(sha1, WINPR_MD_SHA1))
# 1627|   		goto out;
# 1628|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def412]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1708:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1707:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1708:9: throw: if ‘winpr_vasprintf’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1708:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
# 1706|   	va_list ap;
# 1707|   	va_start(ap, value);
# 1708|-> 	winpr_vasprintf(&v, &vlen, value, ap);
# 1709|   	va_end(ap);
# 1710|   	const BOOL rc = HashTable_Insert(request->headers, key, v);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def413]
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1720:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1690:20: enter_function: entry to ‘http_context_set_header’
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1695:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/libfreerdp/core/gateway/http.c:1696:25: call_function: calling ‘http_context_set_header_va’ from ‘http_context_set_header’
# 1718|   	char* v = NULL;
# 1719|   	size_t vlen = 0;
# 1720|-> 	winpr_vasprintf(&v, &vlen, value, ap);
# 1721|   	const BOOL rc = HashTable_Insert(context->headers, key, v);
# 1722|   	free(v);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:362:49: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, payloadSize)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1786:13: enter_function: entry to ‘rdg_process_control_packet’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1793:12: branch_false: following ‘false’ branch (when ‘packetLength > 7’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1799:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1799:12: branch_true: following ‘true’ branch (when ‘payloadSize != 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1801:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1801:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1803:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1803:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1806:24: branch_true: following ‘true’ branch (when ‘readCount < payloadSize’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1808:29: call_function: inlined call to ‘rdg_shall_abort’ from ‘rdg_process_control_packet’
#  360|   {
#  361|   	WINPR_ASSERT(rdg);
#  362|-> 	return freerdp_shall_disconnect_context(rdg->context);
#  363|   }
#  364|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:680:14: warning[-Wanalyzer-malloc-leak]: leak of ‘http_request_new()’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:671:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:674:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:675:19: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:677:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:680:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:680:14: throw: if ‘http_request_set_method’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:680:14: danger: ‘http_request_new()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
#  678|   		return NULL;
#  679|   
#  680|-> 	if (!http_request_set_method(request, method) || !http_request_set_uri(request, uri))
#  681|   		goto out;
#  682|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def416]
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1023:9: warning[-Wanalyzer-malloc-leak]: leak of ‘authTokenData’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:985:13: enter_function: entry to ‘rdg_process_extauth_sspi’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:994:9: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdg_process_extauth_sspi’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:995:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘rdg_process_extauth_sspi’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:997:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1004:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1004:12: branch_false: following ‘false’ branch (when ‘v != 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1015:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1015:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1016:12: branch_false: following ‘false’ branch (when ‘authTokenData’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1018:9: call_function: inlined call to ‘Stream_Read’ from ‘rdg_process_extauth_sspi’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1023:9: throw: if ‘credssp_auth_take_input_buffer’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1023:9: danger: ‘authTokenData’ leaks here; was allocated at [(15)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/14)
# 1021|   	authToken.cbBuffer = authBlobLen;
# 1022|   
# 1023|-> 	credssp_auth_take_input_buffer(rdg->auth, &authToken);
# 1024|   
# 1025|   	if (credssp_auth_authenticate(rdg->auth) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1634:9: warning[-Wanalyzer-malloc-leak]: leak of ‘websocket_context_packet_new(payloadSize, 2, & maskingKey.u32)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1619:12: branch_false: following ‘false’ branch (when ‘isize >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1622:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1630:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1631:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1634:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1651:9: throw: if ‘Stream_StaticConstInit’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1634:9: danger: ‘websocket_context_packet_new(payloadSize, 2, & maskingKey.u32)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
# 1632|   		return FALSE;
# 1633|   
# 1634|-> 	Stream_Write_UINT16(
# 1635|   	    sWS, WINPR_ASSERTING_INT_CAST(
# 1636|   	             uint16_t, PKT_TYPE_DATA ^ (maskingKey.u8[0] | maskingKey.u8[1] << 8))); /* Type */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1837:17: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, payloadSize)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1793:12: branch_false: following ‘false’ branch (when ‘packetLength > 7’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1799:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1799:12: branch_true: following ‘true’ branch (when ‘payloadSize != 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1801:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1801:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1803:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1803:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1806:24: branch_false: following ‘false’ branch (when ‘readCount >= payloadSize’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1837:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1837:17: throw: if ‘Stream_SetPosition’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1837:17: danger: ‘Stream_New(0, payloadSize)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
# 1835|   		}
# 1836|   
# 1837|-> 		Stream_SetPosition(s, 0);
# 1838|   	}
# 1839|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2169:20: warning[-Wanalyzer-malloc-leak]: leak of ‘rdg’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2162:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2165:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2165:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2166:12: branch_false: following ‘false’ branch (when ‘rdg’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2169:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2169:20: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2169:20: danger: ‘rdg’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
# 2167|   		return NULL;
# 2168|   
# 2169|-> 	rdg->log = WLog_Get(TAG);
# 2170|   	rdg->state = RDG_CLIENT_STATE_INITIAL;
# 2171|   	rdg->context = context;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def420]
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2179:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rdg’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2162:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2165:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2165:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2166:12: branch_false: following ‘false’ branch (when ‘rdg’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2169:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2179:9: throw: if ‘UuidCreate’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:2179:9: danger: ‘rdg’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
# 2177|   		rdg->extAuth = HTTP_EXTENDED_AUTH_PAA;
# 2178|   
# 2179|-> 	UuidCreate(&rdg->guid);
# 2180|   
# 2181|   	rdg->tlsOut = freerdp_tls_new(rdg->context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:522:25: warning[-Wanalyzer-malloc-leak]: leak of ‘inChannel’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:595:22: enter_function: entry to ‘rpc_in_channel_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:597:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:599:12: branch_true: following ‘true’ branch (when ‘inChannel’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:601:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:601:17: call_function: calling ‘rpc_in_channel_init’ from ‘rpc_in_channel_new’
#  520|   
#  521|   	settings = client->context->settings;
#  522|-> 	channel->auth = credssp_auth_new(client->context);
#  523|   	rts_generate_cookie((BYTE*)&channel->Cookie);
#  524|   	channel->client = client;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:522:25: warning[-Wanalyzer-malloc-leak]: leak of ‘outChannel’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:647:16: enter_function: entry to ‘rpc_out_channel_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:649:53: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:651:12: branch_true: following ‘true’ branch (when ‘outChannel’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:653:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:653:17: call_function: calling ‘rpc_out_channel_init’ from ‘rpc_out_channel_new’
#  520|   
#  521|   	settings = client->context->settings;
#  522|-> 	channel->auth = credssp_auth_new(client->context);
#  523|   	rts_generate_cookie((BYTE*)&channel->Cookie);
#  524|   	channel->client = client;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:523:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:595:22: enter_function: entry to ‘rpc_in_channel_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:599:12: branch_true: following ‘true’ branch (when ‘inChannel’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:601:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:601:17: call_function: calling ‘rpc_in_channel_init’ from ‘rpc_in_channel_new’
#  521|   	settings = client->context->settings;
#  522|   	channel->auth = credssp_auth_new(client->context);
#  523|-> 	rts_generate_cookie((BYTE*)&channel->Cookie);
#  524|   	channel->client = client;
#  525|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:523:9: warning[-Wanalyzer-malloc-leak]: leak of ‘inChannel’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:595:22: enter_function: entry to ‘rpc_in_channel_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:597:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:599:12: branch_true: following ‘true’ branch (when ‘inChannel’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:601:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:601:17: call_function: calling ‘rpc_in_channel_init’ from ‘rpc_in_channel_new’
#  521|   	settings = client->context->settings;
#  522|   	channel->auth = credssp_auth_new(client->context);
#  523|-> 	rts_generate_cookie((BYTE*)&channel->Cookie);
#  524|   	channel->client = client;
#  525|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:523:9: warning[-Wanalyzer-malloc-leak]: leak of ‘outChannel’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:647:16: enter_function: entry to ‘rpc_out_channel_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:649:53: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:651:12: branch_true: following ‘true’ branch (when ‘outChannel’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:653:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:653:17: call_function: calling ‘rpc_out_channel_init’ from ‘rpc_out_channel_new’
#  521|   	settings = client->context->settings;
#  522|   	channel->auth = credssp_auth_new(client->context);
#  523|-> 	rts_generate_cookie((BYTE*)&channel->Cookie);
#  524|   	channel->client = client;
#  525|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:697:9: warning[-Wanalyzer-malloc-leak]: leak of ‘connection’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:692:36: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:694:12: branch_false: following ‘false’ branch (when ‘connection’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:697:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:697:9: throw: if ‘rts_generate_cookie’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:697:9: danger: ‘connection’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  695|   		return NULL;
#  696|   
#  697|-> 	rts_generate_cookie((BYTE*)&(connection->Cookie));
#  698|   	rts_generate_cookie((BYTE*)&(connection->AssociationGroupId));
#  699|   	connection->State = VIRTUAL_CONNECTION_STATE_INITIAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:935:20: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:930:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:932:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:935:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:935:20: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:935:20: danger: ‘rpc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  933|   		return NULL;
#  934|   
#  935|-> 	rpc->log = WLog_Get(TAG);
#  936|   	rpc->State = RPC_CLIENT_STATE_INITIAL;
#  937|   	rpc->transport = transport;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:939:21: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:930:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:932:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:935:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:939:21: throw: if ‘credssp_auth_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:939:21: danger: ‘rpc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  937|   	rpc->transport = transport;
#  938|   	rpc->SendSeqNum = 0;
#  939|-> 	rpc->auth = credssp_auth_new(context);
#  940|   
#  941|   	if (!rpc->auth)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:962:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:932:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:935:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:939:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:941:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:944:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:962:23: throw: if ‘rpc_client_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:962:23: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  960|   	rpc->CurrentKeepAliveTime = 0;
#  961|   	rpc->CallId = 2;
#  962|-> 	rpc->client = rpc_client_new(context, rpc->max_recv_frag);
#  963|   
#  964|   	if (!rpc->client)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:962:23: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:930:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:932:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:935:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:941:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:944:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:962:23: throw: if ‘rpc_client_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:962:23: danger: ‘rpc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  960|   	rpc->CurrentKeepAliveTime = 0;
#  961|   	rpc->CallId = 2;
#  962|-> 	rpc->client = rpc_client_new(context, rpc->max_recv_frag);
#  963|   
#  964|   	if (!rpc->client)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:980:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:923:9: enter_function: entry to ‘rpc_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:932:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:935:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:939:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:941:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:944:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:964:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:965:17: branch_true: ...to here
FreeRDP-3.20.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): [#def432]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:980:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:923:9: enter_function: entry to ‘rpc_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:930:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:932:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:935:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:941:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:942:17: branch_true: ...to here
FreeRDP-3.20.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): [#def433]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:981:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:923:9: enter_function: entry to ‘rpc_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:932:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:935:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:939:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:941:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:944:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:964:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:965:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:971:9: call_function: calling ‘rpc_free’ from ‘rpc_new’
#  979|   	{
#  980|   		rpc_client_free(rpc->client);
#  981|-> 		credssp_auth_free(rpc->auth);
#  982|   		rpc_virtual_connection_free(rpc->VirtualConnection);
#  983|   		free(rpc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:981:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:923:9: enter_function: entry to ‘rpc_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:930:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:932:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:935:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:941:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:942:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc.c:971:9: call_function: calling ‘rpc_free’ from ‘rpc_new’
#  979|   	{
#  980|   		rpc_client_free(rpc->client);
#  981|-> 		credssp_auth_free(rpc->auth);
#  982|   		rpc_virtual_connection_free(rpc->VirtualConnection);
#  983|   		free(rpc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:251:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:228:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:251:13: throw: if ‘credssp_auth_pkg_name’ throws an exception...
FreeRDP-3.20.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): [#def436]
FreeRDP-3.20.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.20.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:217:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:251:13: throw: if ‘credssp_auth_pkg_name’ throws an exception...
FreeRDP-3.20.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): [#def437]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:260:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:228:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:260:18: throw: if ‘Stream_New’ throws an exception...
FreeRDP-3.20.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): [#def438]
FreeRDP-3.20.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.20.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:217:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:260:18: throw: if ‘Stream_New’ throws an exception...
FreeRDP-3.20.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): [#def439]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:265:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:228:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:262:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:265:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:265:14: throw: if ‘rts_write_pdu_bind’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:265:14: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/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): [#def440]
FreeRDP-3.20.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.20.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:260:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:262:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:265:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:265:14: throw: if ‘rts_write_pdu_bind’ throws an exception...
FreeRDP-3.20.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): [#def441]
FreeRDP-3.20.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.20.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:217:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:262:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:265:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:265:14: throw: if ‘rts_write_pdu_bind’ throws an exception...
FreeRDP-3.20.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/6/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): [#def442]
FreeRDP-3.20.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.20.0/libfreerdp/core/gateway/rpc_bind.c:193:12: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:196:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:203:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: following ‘false’ branch (when ‘initial == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:206:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:219:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:223:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:230:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:233:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:243:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:246:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:262:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:265:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:265:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:268:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:268:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:270:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:273:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:273:14: throw: if ‘ArrayList_Append’ throws an exception...
FreeRDP-3.20.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/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): [#def443]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:357:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer.pvBuffer’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:336:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:339:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:353:27: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:354:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:356:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:357:9: throw: if ‘credssp_auth_take_input_buffer’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:357:9: danger: ‘buffer.pvBuffer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/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): [#def444]
FreeRDP-3.20.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.20.0/libfreerdp/core/gateway/rpc_bind.c:398:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:401:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:424:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:426:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:429:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:429:14: throw: if ‘rts_write_pdu_auth3’ throws an exception...
FreeRDP-3.20.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/12/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): [#def445]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:434:30: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_client_call_new(auth_3_pdu.header.call_id, 0)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:398:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:401:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:426:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:429:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:429:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:432:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:432:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_bind.c:434:30: danger: ‘rpc_client_call_new(auth_3_pdu.header.call_id, 0)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/13/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-401): [#def446]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:590:21: warning[-Wanalyzer-malloc-leak]: leak of ‘http_response_recv(*outChannel.common.tls, 1)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:580:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:582:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:582:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:585:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:585:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:587:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:590:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:590:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:593:30: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:593:30: throw: if ‘rpc_ncacn_http_recv_out_channel_response’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:590:21: danger: ‘http_response_recv(*outChannel.common.tls, 1)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  588|   			return -1;
#  589|   
#  590|-> 		if (outChannel->State == CLIENT_OUT_CHANNEL_STATE_SECURITY)
#  591|   		{
#  592|   			/* Receive OUT Channel Response */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:649:43: warning[-Wanalyzer-malloc-leak]: leak of ‘http_response_recv(*outChannel.common.tls, 0)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:580:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:638:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:638:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:641:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:641:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:644:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:644:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:646:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:649:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:649:43: throw: if ‘http_response_get_status_code’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:649:43: danger: ‘http_response_recv(*outChannel.common.tls, 0)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#  647|   			return -1;
#  648|   
#  649|-> 		const UINT16 statusCode = http_response_get_status_code(response);
#  650|   		if (statusCode != HTTP_STATUS_OK)
#  651|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:652:25: warning[-Wanalyzer-malloc-leak]: leak of ‘http_response_recv(*outChannel.common.tls, 0)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:580:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:638:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:638:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:641:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:641:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:644:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:644:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:646:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:649:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:650:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:652:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:652:25: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:652:25: danger: ‘http_response_recv(*outChannel.common.tls, 0)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  650|   		if (statusCode != HTTP_STATUS_OK)
#  651|   		{
#  652|-> 			http_response_log_error_status(WLog_Get(TAG), WLOG_ERROR, response);
#  653|   
#  654|   			if (statusCode == HTTP_STATUS_DENIED)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:656:55: warning[-Wanalyzer-malloc-leak]: leak of ‘http_response_recv(*outChannel.common.tls, 0)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:580:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:638:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:638:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:641:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:641:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:644:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:644:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:646:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:649:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:650:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:652:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:654:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:656:55: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:656:55: throw: if ‘transport_get_context’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:656:55: danger: ‘http_response_recv(*outChannel.common.tls, 0)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#  654|   			if (statusCode == HTTP_STATUS_DENIED)
#  655|   			{
#  656|-> 				rdpContext* context = transport_get_context(rpc->transport);
#  657|   				freerdp_set_last_error_if_not(context, FREERDP_ERROR_CONNECT_ACCESS_DENIED);
#  658|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:660:25: warning[-Wanalyzer-malloc-leak]: leak of ‘http_response_recv(*outChannel.common.tls, 0)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:580:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:638:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:638:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:641:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:641:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:644:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:644:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:646:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:649:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:650:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:652:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:660:25: danger: ‘http_response_recv(*outChannel.common.tls, 0)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
#  658|   			}
#  659|   
#  660|-> 			http_response_free(response);
#  661|   			return -1;
#  662|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:664:17: warning[-Wanalyzer-malloc-leak]: leak of ‘http_response_recv(*outChannel.common.tls, 0)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:580:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:638:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:638:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:641:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:641:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:644:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:644:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:646:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:649:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:650:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:664:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:664:17: danger: ‘http_response_recv(*outChannel.common.tls, 0)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
#  662|   		}
#  663|   
#  664|-> 		http_response_free(response);
#  665|   		rpc_virtual_connection_transition_to_state(rpc, rpc->VirtualConnection,
#  666|   		                                           VIRTUAL_CONNECTION_STATE_WAIT_A3W);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:767:25: warning[-Wanalyzer-malloc-leak]: leak of ‘http_response_recv(*nextOutChannel.common.tls, 1)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:763:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:763:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:765:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:767:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:767:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:769:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:770:37: throw: if ‘rpc_ncacn_http_recv_out_channel_response’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:767:25: danger: ‘http_response_recv(*nextOutChannel.common.tls, 1)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  765|   	if (response)
#  766|   	{
#  767|-> 		switch (nextOutChannel->State)
#  768|   		{
#  769|   			case CLIENT_OUT_CHANNEL_STATE_SECURITY:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:868:21: warning[-Wanalyzer-malloc-leak]: leak of ‘http_response_recv(*inChannel.common.tls, 1)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:858:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:861:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:861:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:863:28: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:863:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:865:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:868:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:868:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:912:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:868:21: danger: ‘http_response_recv(*inChannel.common.tls, 1)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
#  866|   			return -1;
#  867|   
#  868|-> 		if (inChannel->State == CLIENT_IN_CHANNEL_STATE_SECURITY)
#  869|   		{
#  870|   			if (!rpc_ncacn_http_recv_in_channel_response(&inChannel->common, response))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:922:17: warning[-Wanalyzer-malloc-leak]: leak of ‘http_response_recv(*inChannel.common.tls, 1)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:858:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:861:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:916:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:916:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:918:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:922:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:922:17: danger: ‘http_response_recv(*inChannel.common.tls, 1)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
#  920|   
#  921|   		/* We can receive an unauthorized HTTP response on the IN channel */
#  922|-> 		http_response_free(response);
#  923|   	}
#  924|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1077:31: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_client_call_new(*rpc.CallId, (unsigned int)opnum)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1020:6: enter_function: entry to ‘rpc_client_write_call’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1034:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1037:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1037:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1040:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1043:12: branch_false: following ‘false’ branch (when ‘auth’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1049:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1049:12: branch_false: following ‘false’ branch (when ‘connection’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1052:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1054:12: branch_false: following ‘false’ branch (when ‘inChannel’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1057:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1059:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1062:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1072:22: call_function: calling ‘rpc_client_call_new’ from ‘rpc_client_write_call’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1072:22: return_function: returning to ‘rpc_client_write_call’ from ‘rpc_client_call_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1074:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1077:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1077:14: throw: if ‘ArrayList_Append’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1077:31: danger: ‘rpc_client_call_new(*rpc.CallId, (unsigned int)opnum)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/15)
# 1075|   		goto fail;
# 1076|   
# 1077|-> 	if (!ArrayList_Append(rpc->client->ClientCallList, clientCall))
# 1078|   	{
# 1079|   		rpc_client_call_free(clientCall);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1112:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1020:6: enter_function: entry to ‘rpc_client_write_call’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1034:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1037:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1037:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1040:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1043:12: branch_false: following ‘false’ branch (when ‘auth’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1049:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1049:12: branch_false: following ‘false’ branch (when ‘connection’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1052:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1054:12: branch_false: following ‘false’ branch (when ‘inChannel’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1057:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1059:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1062:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1072:22: call_function: calling ‘rpc_client_call_new’ from ‘rpc_client_write_call’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1072:22: return_function: returning to ‘rpc_client_write_call’ from ‘rpc_client_call_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1074:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1077:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1077:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1084:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1102:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1104:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1105:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1107:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1110:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1112:9: throw: if ‘rpc_offset_pad’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1112:9: danger: ‘buffer’ leaks here; was allocated at [(25)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/24)
# 1110|   	CopyMemory(buffer, &request_pdu, 24);
# 1111|   	offset = 24;
# 1112|-> 	rpc_offset_pad(&offset, stub_data_pad);
# 1113|   	CopyMemory(&buffer[offset], request_pdu.stub_data, length);
# 1114|   	offset += length;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1115:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1020:6: enter_function: entry to ‘rpc_client_write_call’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1034:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1037:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1037:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1040:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1043:12: branch_false: following ‘false’ branch (when ‘auth’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1049:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1049:12: branch_false: following ‘false’ branch (when ‘connection’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1052:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1054:12: branch_false: following ‘false’ branch (when ‘inChannel’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1057:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1059:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1062:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1072:22: call_function: calling ‘rpc_client_call_new’ from ‘rpc_client_write_call’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1072:22: return_function: returning to ‘rpc_client_write_call’ from ‘rpc_client_call_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1074:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1077:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1077:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1084:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1102:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1104:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1105:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1107:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1110:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1115:9: throw: if ‘rpc_offset_pad’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1115:9: danger: ‘buffer’ leaks here; was allocated at [(25)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/24)
# 1113|   	CopyMemory(&buffer[offset], request_pdu.stub_data, length);
# 1114|   	offset += length;
# 1115|-> 	rpc_offset_pad(&offset, request_pdu.auth_verifier.auth_pad_length);
# 1116|   	CopyMemory(&buffer[offset], &request_pdu.auth_verifier.auth_type, 8);
# 1117|   	offset += 8;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1127:14: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1020:6: enter_function: entry to ‘rpc_client_write_call’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1034:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1037:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1037:12: branch_false: following ‘false’ branch (when ‘rpc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1040:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1043:12: branch_false: following ‘false’ branch (when ‘auth’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1049:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1049:12: branch_false: following ‘false’ branch (when ‘connection’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1052:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1054:12: branch_false: following ‘false’ branch (when ‘inChannel’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1057:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1059:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1062:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1072:22: call_function: calling ‘rpc_client_call_new’ from ‘rpc_client_write_call’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1072:22: return_function: returning to ‘rpc_client_write_call’ from ‘rpc_client_call_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1074:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1077:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1077:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1084:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1102:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1104:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1105:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1107:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1110:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1119:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1122:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1127:14: throw: if ‘credssp_auth_encrypt’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1127:14: danger: ‘buffer’ leaks here; was allocated at [(25)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/24)
# 1125|   
# 1126|   	size_t size = 0;
# 1127|-> 	if (!credssp_auth_encrypt(auth, &plaintext, &ciphertext, &size, rpc->SendSeqNum++))
# 1128|   		goto fail;
# 1129|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1160:44: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1177:12: enter_function: entry to ‘rpc_client_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1180:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1182:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: call_function: calling ‘rpc_client_resolve_gateway’ from ‘rpc_client_new’
# 1158|   	else
# 1159|   	{
# 1160|-> 		const char* peerHostname = freerdp_settings_get_string(settings, FreeRDP_GatewayHostname);
# 1161|   		const char* proxyUsername = freerdp_settings_get_string(settings, FreeRDP_GatewayUsername);
# 1162|   		const char* proxyPassword = freerdp_settings_get_string(settings, FreeRDP_GatewayPassword);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1161:45: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1177:12: enter_function: entry to ‘rpc_client_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1180:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1182:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: call_function: calling ‘rpc_client_resolve_gateway’ from ‘rpc_client_new’
# 1159|   	{
# 1160|   		const char* peerHostname = freerdp_settings_get_string(settings, FreeRDP_GatewayHostname);
# 1161|-> 		const char* proxyUsername = freerdp_settings_get_string(settings, FreeRDP_GatewayUsername);
# 1162|   		const char* proxyPassword = freerdp_settings_get_string(settings, FreeRDP_GatewayPassword);
# 1163|   		*port = (UINT16)freerdp_settings_get_uint32(settings, FreeRDP_GatewayPort);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def461]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1162:45: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1177:12: enter_function: entry to ‘rpc_client_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1180:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1182:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: call_function: calling ‘rpc_client_resolve_gateway’ from ‘rpc_client_new’
# 1160|   		const char* peerHostname = freerdp_settings_get_string(settings, FreeRDP_GatewayHostname);
# 1161|   		const char* proxyUsername = freerdp_settings_get_string(settings, FreeRDP_GatewayUsername);
# 1162|-> 		const char* proxyPassword = freerdp_settings_get_string(settings, FreeRDP_GatewayPassword);
# 1163|   		*port = (UINT16)freerdp_settings_get_uint32(settings, FreeRDP_GatewayPort);
# 1164|   		*isProxy = proxy_prepare(settings, &peerHostname, port, &proxyUsername, &proxyPassword);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1163:33: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1177:12: enter_function: entry to ‘rpc_client_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1180:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1182:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: call_function: calling ‘rpc_client_resolve_gateway’ from ‘rpc_client_new’
# 1161|   		const char* proxyUsername = freerdp_settings_get_string(settings, FreeRDP_GatewayUsername);
# 1162|   		const char* proxyPassword = freerdp_settings_get_string(settings, FreeRDP_GatewayPassword);
# 1163|-> 		*port = (UINT16)freerdp_settings_get_uint32(settings, FreeRDP_GatewayPort);
# 1164|   		*isProxy = proxy_prepare(settings, &peerHostname, port, &proxyUsername, &proxyPassword);
# 1165|   		result = freerdp_tcp_resolve_host(peerHostname, *port, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1164:28: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1177:12: enter_function: entry to ‘rpc_client_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1180:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1182:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: call_function: calling ‘rpc_client_resolve_gateway’ from ‘rpc_client_new’
# 1162|   		const char* proxyPassword = freerdp_settings_get_string(settings, FreeRDP_GatewayPassword);
# 1163|   		*port = (UINT16)freerdp_settings_get_uint32(settings, FreeRDP_GatewayPort);
# 1164|-> 		*isProxy = proxy_prepare(settings, &peerHostname, port, &proxyUsername, &proxyPassword);
# 1165|   		result = freerdp_tcp_resolve_host(peerHostname, *port, 0);
# 1166|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1244:9: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1177:12: enter_function: entry to ‘rpc_client_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1180:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1182:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: call_function: calling ‘rpc_client_resolve_gateway’ from ‘rpc_client_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:14: return_function: returning to ‘rpc_client_new’ from ‘rpc_client_resolve_gateway’
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1185:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1187:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rpc_client.c:1226:9: call_function: calling ‘rpc_client_free’ from ‘rpc_client_new’
# 1242|   		(void)CloseHandle(client->PipeEvent);
# 1243|   
# 1244|-> 	ringbuffer_destroy(&(client->ReceivePipe));
# 1245|   	DeleteCriticalSection(&(client->PipeLock));
# 1246|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:1233:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)header.header.frag_length)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2113:12: enter_function: entry to ‘rts_send_OUT_R2_A7_pdu’
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2138:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2140:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2143:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2143:14: call_function: calling ‘rts_write_pdu_header’ from ‘rts_send_OUT_R2_A7_pdu’
# 1231|   	WINPR_ASSERT(s);
# 1232|   	WINPR_ASSERT(header);
# 1233|-> 	if (!Stream_EnsureRemainingCapacity(s, sizeof(rpcconn_rts_hdr_t)))
# 1234|   		return FALSE;
# 1235|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2276:18: warning[-Wanalyzer-malloc-leak]: leak of ‘*connection.NonDefaultOutChannel’
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2254:12: enter_function: entry to ‘rts_recv_OUT_R1_A2_pdu’
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2267:18: call_function: calling ‘rts_destination_command_read’ from ‘rts_recv_OUT_R1_A2_pdu’
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2267:18: return_function: returning to ‘rts_recv_OUT_R1_A2_pdu’ from ‘rts_destination_command_read’
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2268:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2271:69: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2271:44: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2273:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2276:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2276:18: danger: ‘*connection.NonDefaultOutChannel’ leaks here; was allocated at [(15)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/14)
# 2274|   		return -1;
# 2275|   
# 2276|-> 	status = rpc_out_channel_replacement_connect(connection->NonDefaultOutChannel, 5000);
# 2277|   
# 2278|   	if (status < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2276:18: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_out_channel_new(rpc, &*connection.Cookie)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2340:6: enter_function: entry to ‘rts_recv_out_of_sequence_pdu’
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2355:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2362:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2364:12: branch_false: following ‘false’ branch (when ‘connection’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2370:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2370:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2373:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2375:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2379:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2379:17: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2384:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2384:17: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2390:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2390:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2392:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2392:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2394:42: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rts.c:2394:42: call_function: calling ‘rts_recv_OUT_R1_A2_pdu’ from ‘rts_recv_out_of_sequence_pdu’
# 2274|   		return -1;
# 2275|   
# 2276|-> 	status = rpc_out_channel_replacement_connect(connection->NonDefaultOutChannel, 5000);
# 2277|   
# 2278|   	if (status < 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def468]
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:337:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tunnelContext’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2336:6: enter_function: entry to ‘tsg_recv_pdu’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2538:30: call_function: calling ‘TsProxyCloseChannelReadResponse’ from ‘tsg_recv_pdu’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2538:30: return_function: returning to ‘tsg_recv_pdu’ from ‘TsProxyCloseChannelReadResponse’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2538:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2544:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2544:30: call_function: calling ‘tsg_transition_to_state’ from ‘tsg_recv_pdu’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2544:30: return_function: returning to ‘tsg_recv_pdu’ from ‘tsg_transition_to_state’
FreeRDP-3.20.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: COMPILER_WARNING (CWE-563): [#def469]
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c: scope_hint: In function ‘tsg_ndr_read_packet_response’
FreeRDP-3.20.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): [#def470]
FreeRDP-3.20.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): [#def471]
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1354:53: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, length)’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2847:12: enter_function: entry to ‘tsg_write’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2851:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2854:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2860:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2860:18: call_function: calling ‘TsProxySendToServer’ from ‘tsg_write’
# 1352|   
# 1353|   	/* PCHANNEL_CONTEXT_HANDLE_NOSERIALIZE_NR (20 bytes) */
# 1354|-> 	if (!TsProxyWriteTunnelContext(tsg->log, s, &tsg->ChannelContext))
# 1355|   		goto fail;
# 1356|   	Stream_Write_UINT32_BE(s, totalDataBytes);            /* totalDataBytes (4 bytes) */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1415:17: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 108)’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2284:6: enter_function: entry to ‘tsg_proxy_begin’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2292:14: call_function: calling ‘TsProxyCreateTunnelWriteRequest’ from ‘tsg_proxy_begin’
# 1413|   		return FALSE;
# 1414|   
# 1415|-> 	switch (tsgPacket->packetId)
# 1416|   	{
# 1417|   		case TSG_PACKET_TYPE_VERSIONCAPS:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1754:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (_wcslen(*tsg.MachineName) + 513) * 2)’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1732:13: enter_function: entry to ‘TsProxyAuthorizeTunnelWriteRequest’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1740:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1744:12: branch_false: following ‘false’ branch (when ‘count <= 4294967295’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1747:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1749:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1751:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1754:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1754:14: call_function: calling ‘TsProxyWriteTunnelContext’ from ‘TsProxyAuthorizeTunnelWriteRequest’
# 1752|   		return FALSE;
# 1753|   
# 1754|-> 	if (!TsProxyWriteTunnelContext(tsg->log, s, tunnelContext))
# 1755|   	{
# 1756|   		Stream_Free(s, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1907:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 40)’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1889:13: enter_function: entry to ‘TsProxyMakeTunnelCallWriteRequest’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1895:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1900:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1902:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1906:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:1907:14: call_function: calling ‘TsProxyWriteTunnelContext’ from ‘TsProxyMakeTunnelCallWriteRequest’
# 1905|   	/* TunnelContext (20 bytes) */
# 1906|   	UINT32 index = 0;
# 1907|-> 	if (!TsProxyWriteTunnelContext(tsg->log, s, tunnelContext))
# 1908|   		goto fail;
# 1909|   	Stream_Write_UINT32(s, procId);                     /* ProcId (4 bytes) */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2047:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (_wcslen(*tsg.Hostname) + 31) * 2)’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2027:13: enter_function: entry to ‘TsProxyCreateChannelWriteRequest’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2034:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2039:12: branch_false: following ‘false’ branch (when ‘count <= 4294967295’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2042:39: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2042:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2043:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2047:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2047:14: call_function: calling ‘TsProxyWriteTunnelContext’ from ‘TsProxyCreateChannelWriteRequest’
# 2045|   
# 2046|   	/* TunnelContext (20 bytes) */
# 2047|-> 	if (!TsProxyWriteTunnelContext(tsg->log, s, tunnelContext))
# 2048|   		goto fail;
# 2049|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2122:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 20)’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2106:13: enter_function: entry to ‘TsProxyCloseChannelWriteRequest’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2116:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2118:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2122:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2122:14: call_function: calling ‘TsProxyWriteTunnelContext’ from ‘TsProxyCloseChannelWriteRequest’
# 2120|   
# 2121|   	/* ChannelContext (20 bytes) */
# 2122|-> 	if (!TsProxyWriteTunnelContext(tsg->log, s, context))
# 2123|   		goto fail;
# 2124|   	return rpc_client_write_call(rpc, s, TsProxyCloseChannelOpnum);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2178:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 20)’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2162:13: enter_function: entry to ‘TsProxyCloseTunnelWriteRequest’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2172:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2174:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2178:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2178:14: call_function: calling ‘TsProxyWriteTunnelContext’ from ‘TsProxyCloseTunnelWriteRequest’
# 2176|   
# 2177|   	/* TunnelContext (20 bytes) */
# 2178|-> 	if (!TsProxyWriteTunnelContext(tsg->log, s, context))
# 2179|   		goto fail;
# 2180|   	return rpc_client_write_call(rpc, s, TsProxyCloseTunnelOpnum);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2240:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 20)’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2221:13: enter_function: entry to ‘TsProxySetupReceivePipeWriteRequest’
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2230:12: branch_false: following ‘false’ branch (when ‘channelContext’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2233:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2234:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2236:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2240:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/tsg.c:2240:14: call_function: calling ‘TsProxyWriteTunnelContext’ from ‘TsProxySetupReceivePipeWriteRequest’
# 2238|   
# 2239|   	/* ChannelContext (20 bytes) */
# 2240|-> 	if (!TsProxyWriteTunnelContext(tsg->log, s, channelContext))
# 2241|   		goto fail;
# 2242|   	return rpc_client_write_call(rpc, s, TsProxySetupReceivePipeOpnum);

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, fullLen)’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:120:6: enter_function: entry to ‘websocket_context_write_wstream’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:136:24: call_function: calling ‘websocket_context_packet_new’ from ‘websocket_context_write_wstream’
#   97|   
#   98|   	UINT32 maskingKey = 0;
#   99|-> 	winpr_RAND(&maskingKey, sizeof(maskingKey));
#  100|   
#  101|   	Stream_Write_UINT8(sWS, (UINT8)(WEBSOCKET_FIN_BIT | opcode));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:101:9: warning[-Wanalyzer-malloc-leak]: leak of ‘websocket_context_packet_new(*sPacket.length,  opcode, & maskingKey)’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:120:6: enter_function: entry to ‘websocket_context_write_wstream’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:136:24: call_function: calling ‘websocket_context_packet_new’ from ‘websocket_context_write_wstream’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:136:24: return_function: returning to ‘websocket_context_write_wstream’ from ‘websocket_context_packet_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:137:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:140:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:140:16: call_function: calling ‘websocket_context_mask_and_send’ from ‘websocket_context_write_wstream’
#   99|   	winpr_RAND(&maskingKey, sizeof(maskingKey));
#  100|   
#  101|-> 	Stream_Write_UINT8(sWS, (UINT8)(WEBSOCKET_FIN_BIT | opcode));
#  102|   	if (len < 126)
#  103|   		Stream_Write_UINT8(sWS, (UINT8)len | WEBSOCKET_MASK_BIT);

Error: GCC_ANALYZER_WARNING (CWE-835): [#def483]
FreeRDP-3.20.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-401): [#def484]
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:469:41: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:465:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:466:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:469:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:469:41: throw: if ‘Stream_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:469:41: danger: ‘context’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  467|   		goto fail;
#  468|   
#  469|-> 	context->responseStreamBuffer = Stream_New(NULL, 1024);
#  470|   	if (!context->responseStreamBuffer)
#  471|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:487:9: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:463:20: enter_function: entry to ‘websocket_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:465:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:466:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:469:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:470:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:471:17: branch_true: ...to here
FreeRDP-3.20.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-401): [#def486]
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:496:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:463:20: enter_function: entry to ‘websocket_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:466:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:469:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:469:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:470:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:473:14: call_function: inlined call to ‘websocket_context_reset’ from ‘websocket_context_new’
#  494|   
#  495|   	context->state = WebsocketStateOpcodeAndFin;
#  496|-> 	return Stream_SetPosition(context->responseStreamBuffer, 0);
#  497|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:496:16: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:463:20: enter_function: entry to ‘websocket_context_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:465:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:466:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:469:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:470:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/websocket.c:473:14: call_function: inlined call to ‘websocket_context_reset’ from ‘websocket_context_new’
#  494|   
#  495|   	context->state = WebsocketStateOpcodeAndFin;
#  496|-> 	return Stream_SetPosition(context->responseStreamBuffer, 0);
#  497|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:308:14: warning[-Wanalyzer-malloc-leak]: leak of ‘http_request_new()’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:299:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:302:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:303:19: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:305:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:308:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:308:14: throw: if ‘http_request_set_method’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:308:14: danger: ‘http_request_new()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  306|   		return NULL;
#  307|   
#  308|-> 	if (!http_request_set_method(request, "GET") || !http_request_set_uri(request, uri))
#  309|   		goto out;
#  310|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:763:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  761|   	if (bio_methods == NULL)
#  762|   	{
#  763|-> 		if (!(bio_methods = BIO_meth_new(BIO_TYPE_TSG, "WSTransport")))
#  764|   			return NULL;
#  765|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:763:37: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  761|   	if (bio_methods == NULL)
#  762|   	{
#  763|-> 		if (!(bio_methods = BIO_meth_new(BIO_TYPE_TSG, "WSTransport")))
#  764|   			return NULL;
#  765|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:766:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  764|   			return NULL;
#  765|   
#  766|-> 		BIO_meth_set_write(bio_methods, wst_bio_write);
#  767|   		BIO_meth_set_read(bio_methods, wst_bio_read);
#  768|   		BIO_meth_set_puts(bio_methods, wst_bio_puts);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:766:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  764|   			return NULL;
#  765|   
#  766|-> 		BIO_meth_set_write(bio_methods, wst_bio_write);
#  767|   		BIO_meth_set_read(bio_methods, wst_bio_read);
#  768|   		BIO_meth_set_puts(bio_methods, wst_bio_puts);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:767:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  765|   
#  766|   		BIO_meth_set_write(bio_methods, wst_bio_write);
#  767|-> 		BIO_meth_set_read(bio_methods, wst_bio_read);
#  768|   		BIO_meth_set_puts(bio_methods, wst_bio_puts);
#  769|   		BIO_meth_set_gets(bio_methods, wst_bio_gets);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def494]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:767:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  765|   
#  766|   		BIO_meth_set_write(bio_methods, wst_bio_write);
#  767|-> 		BIO_meth_set_read(bio_methods, wst_bio_read);
#  768|   		BIO_meth_set_puts(bio_methods, wst_bio_puts);
#  769|   		BIO_meth_set_gets(bio_methods, wst_bio_gets);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:768:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  766|   		BIO_meth_set_write(bio_methods, wst_bio_write);
#  767|   		BIO_meth_set_read(bio_methods, wst_bio_read);
#  768|-> 		BIO_meth_set_puts(bio_methods, wst_bio_puts);
#  769|   		BIO_meth_set_gets(bio_methods, wst_bio_gets);
#  770|   		BIO_meth_set_ctrl(bio_methods, wst_bio_ctrl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:768:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  766|   		BIO_meth_set_write(bio_methods, wst_bio_write);
#  767|   		BIO_meth_set_read(bio_methods, wst_bio_read);
#  768|-> 		BIO_meth_set_puts(bio_methods, wst_bio_puts);
#  769|   		BIO_meth_set_gets(bio_methods, wst_bio_gets);
#  770|   		BIO_meth_set_ctrl(bio_methods, wst_bio_ctrl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:769:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  767|   		BIO_meth_set_read(bio_methods, wst_bio_read);
#  768|   		BIO_meth_set_puts(bio_methods, wst_bio_puts);
#  769|-> 		BIO_meth_set_gets(bio_methods, wst_bio_gets);
#  770|   		BIO_meth_set_ctrl(bio_methods, wst_bio_ctrl);
#  771|   		BIO_meth_set_create(bio_methods, wst_bio_new);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:769:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  767|   		BIO_meth_set_read(bio_methods, wst_bio_read);
#  768|   		BIO_meth_set_puts(bio_methods, wst_bio_puts);
#  769|-> 		BIO_meth_set_gets(bio_methods, wst_bio_gets);
#  770|   		BIO_meth_set_ctrl(bio_methods, wst_bio_ctrl);
#  771|   		BIO_meth_set_create(bio_methods, wst_bio_new);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:770:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  768|   		BIO_meth_set_puts(bio_methods, wst_bio_puts);
#  769|   		BIO_meth_set_gets(bio_methods, wst_bio_gets);
#  770|-> 		BIO_meth_set_ctrl(bio_methods, wst_bio_ctrl);
#  771|   		BIO_meth_set_create(bio_methods, wst_bio_new);
#  772|   		BIO_meth_set_destroy(bio_methods, wst_bio_free);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:770:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  768|   		BIO_meth_set_puts(bio_methods, wst_bio_puts);
#  769|   		BIO_meth_set_gets(bio_methods, wst_bio_gets);
#  770|-> 		BIO_meth_set_ctrl(bio_methods, wst_bio_ctrl);
#  771|   		BIO_meth_set_create(bio_methods, wst_bio_new);
#  772|   		BIO_meth_set_destroy(bio_methods, wst_bio_free);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:771:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  769|   		BIO_meth_set_gets(bio_methods, wst_bio_gets);
#  770|   		BIO_meth_set_ctrl(bio_methods, wst_bio_ctrl);
#  771|-> 		BIO_meth_set_create(bio_methods, wst_bio_new);
#  772|   		BIO_meth_set_destroy(bio_methods, wst_bio_free);
#  773|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:771:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  769|   		BIO_meth_set_gets(bio_methods, wst_bio_gets);
#  770|   		BIO_meth_set_ctrl(bio_methods, wst_bio_ctrl);
#  771|-> 		BIO_meth_set_create(bio_methods, wst_bio_new);
#  772|   		BIO_meth_set_destroy(bio_methods, wst_bio_free);
#  773|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:772:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  770|   		BIO_meth_set_ctrl(bio_methods, wst_bio_ctrl);
#  771|   		BIO_meth_set_create(bio_methods, wst_bio_new);
#  772|-> 		BIO_meth_set_destroy(bio_methods, wst_bio_free);
#  773|   	}
#  774|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:772:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:886:33: call_function: calling ‘BIO_s_wst’ from ‘wst_new’
#  770|   		BIO_meth_set_ctrl(bio_methods, wst_bio_ctrl);
#  771|   		BIO_meth_set_create(bio_methods, wst_bio_new);
#  772|-> 		BIO_meth_set_destroy(bio_methods, wst_bio_free);
#  773|   	}
#  774|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:794:25: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
#  792|   		if (strncmp("https://", url, 8) != 0)
#  793|   		{
#  794|-> 			WLog_Print(wst->log, WLOG_ERROR,
#  795|   			           "Websocket URL is invalid. Only wss:// or https:// URLs are supported");
#  796|   			return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:835:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
#  833|   	else
#  834|   		wst->gwport = 443;
#  835|-> 	wst->gwpath = _strdup(pos);
#  836|   	if (!wst->gwpath)
#  837|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:835:23: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
#  833|   	else
#  834|   		wst->gwport = 443;
#  835|-> 	wst->gwpath = _strdup(pos);
#  836|   	if (!wst->gwpath)
#  837|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: danger: ‘wst’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
#  848|   		return NULL;
#  849|   
#  850|-> 	wst->log = WLog_Get(TAG);
#  851|   	wst->context = context;
#  852|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: throw: if ‘freerdp_tls_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/9)
#  858|   		goto wst_alloc_error;
#  859|   
#  860|-> 	wst->tls = freerdp_tls_new(wst->context);
#  861|   	if (!wst->tls)
#  862|   		goto wst_alloc_error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: throw: if ‘freerdp_tls_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/3)
#  858|   		goto wst_alloc_error;
#  859|   
#  860|-> 	wst->tls = freerdp_tls_new(wst->context);
#  861|   	if (!wst->tls)
#  862|   		goto wst_alloc_error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: throw: if ‘http_context_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/9)
#  862|   		goto wst_alloc_error;
#  863|   
#  864|-> 	wst->http = http_context_new();
#  865|   
#  866|   	if (!wst->http)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: throw: if ‘http_context_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/3)
#  862|   		goto wst_alloc_error;
#  863|   
#  864|-> 	wst->http = http_context_new();
#  865|   
#  866|   	if (!wst->http)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:13: throw: if ‘freerdp_settings_get_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:13: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/9)
#  868|   
#  869|   	const char* useragent =
#  870|-> 	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpUserAgent);
#  871|   	const char* msuseragent =
#  872|   	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpMsUserAgent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:13: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:13: throw: if ‘freerdp_settings_get_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:13: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/3)
#  868|   
#  869|   	const char* useragent =
#  870|-> 	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpUserAgent);
#  871|   	const char* msuseragent =
#  872|   	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpMsUserAgent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:872:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:872:13: throw: if ‘freerdp_settings_get_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:872:13: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/9)
#  870|   	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpUserAgent);
#  871|   	const char* msuseragent =
#  872|-> 	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpMsUserAgent);
#  873|   	if (!http_context_set_uri(wst->http, wst->gwpath) ||
#  874|   	    !http_context_set_accept(wst->http, "*/*") ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:872:13: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:872:13: throw: if ‘freerdp_settings_get_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:872:13: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/3)
#  870|   	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpUserAgent);
#  871|   	const char* msuseragent =
#  872|-> 	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpMsUserAgent);
#  873|   	if (!http_context_set_uri(wst->http, wst->gwpath) ||
#  874|   	    !http_context_set_accept(wst->http, "*/*") ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:14: throw: if ‘http_context_set_uri’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:14: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/9)
#  871|   	const char* msuseragent =
#  872|   	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpMsUserAgent);
#  873|-> 	if (!http_context_set_uri(wst->http, wst->gwpath) ||
#  874|   	    !http_context_set_accept(wst->http, "*/*") ||
#  875|   	    !http_context_set_cache_control(wst->http, "no-cache") ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:14: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:14: throw: if ‘http_context_set_uri’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:14: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/3)
#  871|   	const char* msuseragent =
#  872|   	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpMsUserAgent);
#  873|-> 	if (!http_context_set_uri(wst->http, wst->gwpath) ||
#  874|   	    !http_context_set_accept(wst->http, "*/*") ||
#  875|   	    !http_context_set_cache_control(wst->http, "no-cache") ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: throw: if ‘http_context_set_accept’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/9)
#  872|   	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpMsUserAgent);
#  873|   	if (!http_context_set_uri(wst->http, wst->gwpath) ||
#  874|-> 	    !http_context_set_accept(wst->http, "*/*") ||
#  875|   	    !http_context_set_cache_control(wst->http, "no-cache") ||
#  876|   	    !http_context_set_pragma(wst->http, "no-cache") ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: throw: if ‘http_context_set_accept’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/3)
#  872|   	    freerdp_settings_get_string(context->settings, FreeRDP_GatewayHttpMsUserAgent);
#  873|   	if (!http_context_set_uri(wst->http, wst->gwpath) ||
#  874|-> 	    !http_context_set_accept(wst->http, "*/*") ||
#  875|   	    !http_context_set_cache_control(wst->http, "no-cache") ||
#  876|   	    !http_context_set_pragma(wst->http, "no-cache") ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: throw: if ‘http_context_set_cache_control’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/9)
#  873|   	if (!http_context_set_uri(wst->http, wst->gwpath) ||
#  874|   	    !http_context_set_accept(wst->http, "*/*") ||
#  875|-> 	    !http_context_set_cache_control(wst->http, "no-cache") ||
#  876|   	    !http_context_set_pragma(wst->http, "no-cache") ||
#  877|   	    !http_context_set_connection(wst->http, "Keep-Alive") ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: throw: if ‘http_context_set_cache_control’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/3)
#  873|   	if (!http_context_set_uri(wst->http, wst->gwpath) ||
#  874|   	    !http_context_set_accept(wst->http, "*/*") ||
#  875|-> 	    !http_context_set_cache_control(wst->http, "no-cache") ||
#  876|   	    !http_context_set_pragma(wst->http, "no-cache") ||
#  877|   	    !http_context_set_connection(wst->http, "Keep-Alive") ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: throw: if ‘http_context_set_pragma’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/9)
#  874|   	    !http_context_set_accept(wst->http, "*/*") ||
#  875|   	    !http_context_set_cache_control(wst->http, "no-cache") ||
#  876|-> 	    !http_context_set_pragma(wst->http, "no-cache") ||
#  877|   	    !http_context_set_connection(wst->http, "Keep-Alive") ||
#  878|   	    !http_context_set_user_agent(wst->http, useragent) ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: throw: if ‘http_context_set_pragma’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/3)
#  874|   	    !http_context_set_accept(wst->http, "*/*") ||
#  875|   	    !http_context_set_cache_control(wst->http, "no-cache") ||
#  876|-> 	    !http_context_set_pragma(wst->http, "no-cache") ||
#  877|   	    !http_context_set_connection(wst->http, "Keep-Alive") ||
#  878|   	    !http_context_set_user_agent(wst->http, useragent) ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: throw: if ‘http_context_set_connection’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/9)
#  875|   	    !http_context_set_cache_control(wst->http, "no-cache") ||
#  876|   	    !http_context_set_pragma(wst->http, "no-cache") ||
#  877|-> 	    !http_context_set_connection(wst->http, "Keep-Alive") ||
#  878|   	    !http_context_set_user_agent(wst->http, useragent) ||
#  879|   	    !http_context_set_x_ms_user_agent(wst->http, msuseragent) ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: throw: if ‘http_context_set_connection’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/3)
#  875|   	    !http_context_set_cache_control(wst->http, "no-cache") ||
#  876|   	    !http_context_set_pragma(wst->http, "no-cache") ||
#  877|-> 	    !http_context_set_connection(wst->http, "Keep-Alive") ||
#  878|   	    !http_context_set_user_agent(wst->http, useragent) ||
#  879|   	    !http_context_set_x_ms_user_agent(wst->http, msuseragent) ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: throw: if ‘http_context_set_user_agent’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/9)
#  876|   	    !http_context_set_pragma(wst->http, "no-cache") ||
#  877|   	    !http_context_set_connection(wst->http, "Keep-Alive") ||
#  878|-> 	    !http_context_set_user_agent(wst->http, useragent) ||
#  879|   	    !http_context_set_x_ms_user_agent(wst->http, msuseragent) ||
#  880|   	    !http_context_set_host(wst->http, wst->gwhostname) ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: throw: if ‘http_context_set_user_agent’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/3)
#  876|   	    !http_context_set_pragma(wst->http, "no-cache") ||
#  877|   	    !http_context_set_connection(wst->http, "Keep-Alive") ||
#  878|-> 	    !http_context_set_user_agent(wst->http, useragent) ||
#  879|   	    !http_context_set_x_ms_user_agent(wst->http, msuseragent) ||
#  880|   	    !http_context_set_host(wst->http, wst->gwhostname) ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: throw: if ‘http_context_set_x_ms_user_agent’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/9)
#  877|   	    !http_context_set_connection(wst->http, "Keep-Alive") ||
#  878|   	    !http_context_set_user_agent(wst->http, useragent) ||
#  879|-> 	    !http_context_set_x_ms_user_agent(wst->http, msuseragent) ||
#  880|   	    !http_context_set_host(wst->http, wst->gwhostname) ||
#  881|   	    !http_context_enable_websocket_upgrade(wst->http, TRUE))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: throw: if ‘http_context_set_x_ms_user_agent’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/3)
#  877|   	    !http_context_set_connection(wst->http, "Keep-Alive") ||
#  878|   	    !http_context_set_user_agent(wst->http, useragent) ||
#  879|-> 	    !http_context_set_x_ms_user_agent(wst->http, msuseragent) ||
#  880|   	    !http_context_set_host(wst->http, wst->gwhostname) ||
#  881|   	    !http_context_enable_websocket_upgrade(wst->http, TRUE))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:14: throw: if ‘http_context_set_host’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:14: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/9)
#  878|   	    !http_context_set_user_agent(wst->http, useragent) ||
#  879|   	    !http_context_set_x_ms_user_agent(wst->http, msuseragent) ||
#  880|-> 	    !http_context_set_host(wst->http, wst->gwhostname) ||
#  881|   	    !http_context_enable_websocket_upgrade(wst->http, TRUE))
#  882|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:14: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:14: throw: if ‘http_context_set_host’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:14: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/3)
#  878|   	    !http_context_set_user_agent(wst->http, useragent) ||
#  879|   	    !http_context_set_x_ms_user_agent(wst->http, msuseragent) ||
#  880|-> 	    !http_context_set_host(wst->http, wst->gwhostname) ||
#  881|   	    !http_context_enable_websocket_upgrade(wst->http, TRUE))
#  882|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: throw: if ‘http_context_enable_websocket_upgrade’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/9)
#  879|   	    !http_context_set_x_ms_user_agent(wst->http, msuseragent) ||
#  880|   	    !http_context_set_host(wst->http, wst->gwhostname) ||
#  881|-> 	    !http_context_enable_websocket_upgrade(wst->http, TRUE))
#  882|   	{
#  883|   		goto wst_alloc_error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:860:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:861:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:864:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:870:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:880:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:873:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: throw: if ‘http_context_enable_websocket_upgrade’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:881:14: danger: ‘wst’ leaks here; was allocated at [(4)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/3)
#  879|   	    !http_context_set_x_ms_user_agent(wst->http, msuseragent) ||
#  880|   	    !http_context_set_host(wst->http, wst->gwhostname) ||
#  881|-> 	    !http_context_enable_websocket_upgrade(wst->http, TRUE))
#  882|   	{
#  883|   		goto wst_alloc_error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:915:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: call_function: calling ‘wst_parse_url’ from ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:14: return_function: returning to ‘wst_new’ from ‘wst_parse_url’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:858:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:905:9: call_function: calling ‘wst_free’ from ‘wst_new’
#  913|   		return;
#  914|   
#  915|-> 	freerdp_tls_free(wst->tls);
#  916|   	http_context_free(wst->http);
#  917|   	credssp_auth_free(wst->auth);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:915:9: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:858:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:905:9: call_function: calling ‘wst_free’ from ‘wst_new’
#  913|   		return;
#  914|   
#  915|-> 	freerdp_tls_free(wst->tls);
#  916|   	http_context_free(wst->http);
#  917|   	credssp_auth_free(wst->auth);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def537]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:916:9: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:858:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:905:9: call_function: calling ‘wst_free’ from ‘wst_new’
#  914|   
#  915|   	freerdp_tls_free(wst->tls);
#  916|-> 	http_context_free(wst->http);
#  917|   	credssp_auth_free(wst->auth);
#  918|   	free(wst->gwhostname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:917:9: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:858:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:905:9: call_function: calling ‘wst_free’ from ‘wst_new’
#  915|   	freerdp_tls_free(wst->tls);
#  916|   	http_context_free(wst->http);
#  917|-> 	credssp_auth_free(wst->auth);
#  918|   	free(wst->gwhostname);
#  919|   	free(wst->gwpath);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def539]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:922:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:858:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:905:9: call_function: calling ‘wst_free’ from ‘wst_new’
#  920|   
#  921|   	if (!wst->attached)
#  922|-> 		BIO_free_all(wst->frontBio);
#  923|   
#  924|   	DeleteCriticalSection(&wst->writeSection);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:924:9: warning[-Wanalyzer-malloc-leak]: leak of ‘wst’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:841:9: enter_function: entry to ‘wst_new’
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:843:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:846:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:847:12: branch_false: following ‘false’ branch (when ‘wst’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:850:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:857:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:858:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/wst.c:905:9: call_function: calling ‘wst_free’ from ‘wst_new’
#  922|   		BIO_free_all(wst->frontBio);
#  923|   
#  924|-> 	DeleteCriticalSection(&wst->writeSection);
#  925|   
#  926|   	websocket_context_free(wst->wscontext);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
FreeRDP-3.20.0/libfreerdp/core/graphics.c:148:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/graphics.c:119:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/graphics.c:124:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/graphics.c:127:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/graphics.c:129:12: branch_false: following ‘false’ branch (when ‘glyph’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/graphics.c:132:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/graphics.c:138:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/graphics.c:140:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/graphics.c:146:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/graphics.c:148:14: throw: if the called function throws an exception...
FreeRDP-3.20.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): [#def542]
FreeRDP-3.20.0/libfreerdp/core/graphics.c:148:14: warning[-Wanalyzer-malloc-leak]: leak of ‘glyph’
FreeRDP-3.20.0/libfreerdp/core/graphics.c:119:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/graphics.c:124:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/graphics.c:127:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/graphics.c:127:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/graphics.c:129:12: branch_false: following ‘false’ branch (when ‘glyph’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/graphics.c:132:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/graphics.c:140:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/graphics.c:146:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/graphics.c:148:14: throw: if the called function throws an exception...
FreeRDP-3.20.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): [#def543]
FreeRDP-3.20.0/libfreerdp/core/info.c:135:25: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
FreeRDP-3.20.0/libfreerdp/core/info.c:743:13: enter_function: entry to ‘rdp_write_info_packet’
FreeRDP-3.20.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): [#def544]
FreeRDP-3.20.0/libfreerdp/core/input.c:1134:24: warning[-Wanalyzer-malloc-leak]: leak of ‘input’
FreeRDP-3.20.0/libfreerdp/core/input.c:1126:58: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/input.c:1130:12: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/input.c:1133:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/input.c:1134:24: throw: if ‘MessageQueue_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/input.c:1134:24: danger: ‘input’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1132|   
# 1133|   	input->common.context = rdp->context;
# 1134|-> 	input->queue = MessageQueue_New(&cb);
# 1135|   	input->log = WLog_Get(TAG);
# 1136|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
FreeRDP-3.20.0/libfreerdp/core/input.c:1135:22: warning[-Wanalyzer-malloc-leak]: leak of ‘MessageQueue_New(&cb)’
FreeRDP-3.20.0/libfreerdp/core/input.c:1130:12: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/input.c:1133:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/input.c:1134:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/input.c:1135:22: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/input.c:1135:22: danger: ‘MessageQueue_New(&cb)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 1133|   	input->common.context = rdp->context;
# 1134|   	input->queue = MessageQueue_New(&cb);
# 1135|-> 	input->log = WLog_Get(TAG);
# 1136|   
# 1137|   	if (!input->queue)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
FreeRDP-3.20.0/libfreerdp/core/input.c:1135:22: warning[-Wanalyzer-malloc-leak]: leak of ‘input’
FreeRDP-3.20.0/libfreerdp/core/input.c:1126:58: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/input.c:1130:12: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/input.c:1133:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/input.c:1135:22: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/input.c:1135:22: danger: ‘input’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1133|   	input->common.context = rdp->context;
# 1134|   	input->queue = MessageQueue_New(&cb);
# 1135|-> 	input->log = WLog_Get(TAG);
# 1136|   
# 1137|   	if (!input->queue)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
FreeRDP-3.20.0/libfreerdp/core/input.c:1143:16: warning[-Wanalyzer-malloc-leak]: leak of ‘input’
FreeRDP-3.20.0/libfreerdp/core/input.c:1126:58: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/input.c:1130:12: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/input.c:1133:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/input.c:1137:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/input.c:1143:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/input.c:1143:16: danger: ‘input’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1141|   	}
# 1142|   
# 1143|-> 	return &input->common;
# 1144|   }
# 1145|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
FreeRDP-3.20.0/libfreerdp/core/license.c:490:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/license.c:485:12: branch_false: following ‘false’ branch (when ‘len > 40’)...
FreeRDP-3.20.0/libfreerdp/core/license.c:488:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:488:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:488:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:490:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:490:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/license.c:490:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  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): [#def549]
FreeRDP-3.20.0/libfreerdp/core/license.c:544:14: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(freerdp_settings_get_string(settings, 1793), &licenseStore)’
FreeRDP-3.20.0/libfreerdp/core/license.c:537:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:537:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:544:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:544:14: throw: if ‘winpr_PathFileExists’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/license.c:544:14: danger: ‘GetCombinedPath(freerdp_settings_get_string(settings, 1793), &licenseStore)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  542|   	}
#  543|   
#  544|-> 	if (!winpr_PathFileExists(licenseStorePath))
#  545|   	{
#  546|   		if (!winpr_PathMakePath(licenseStorePath, 0))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
FreeRDP-3.20.0/libfreerdp/core/license.c:546:22: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(freerdp_settings_get_string(settings, 1793), &licenseStore)’
FreeRDP-3.20.0/libfreerdp/core/license.c:537:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:537:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:544:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:544:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:546:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:546:22: throw: if ‘winpr_PathMakePath’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/license.c:546:22: danger: ‘GetCombinedPath(freerdp_settings_get_string(settings, 1793), &licenseStore)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  544|   	if (!winpr_PathFileExists(licenseStorePath))
#  545|   	{
#  546|-> 		if (!winpr_PathMakePath(licenseStorePath, 0))
#  547|   		{
#  548|   			WLog_Print(log, WLOG_ERROR, "error creating directory '%s'", licenseStorePath);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
FreeRDP-3.20.0/libfreerdp/core/license.c:548:25: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(freerdp_settings_get_string(settings, 1793), &licenseStore)’
FreeRDP-3.20.0/libfreerdp/core/license.c:537:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:537:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:544:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:544:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:546:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:546:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:548:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:548:25: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/license.c:548:25: danger: ‘GetCombinedPath(freerdp_settings_get_string(settings, 1793), &licenseStore)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  546|   		if (!winpr_PathMakePath(licenseStorePath, 0))
#  547|   		{
#  548|-> 			WLog_Print(log, WLOG_ERROR, "error creating directory '%s'", licenseStorePath);
#  549|   			goto out;
#  550|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
FreeRDP-3.20.0/libfreerdp/core/license.c:551:17: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(freerdp_settings_get_string(settings, 1793), &licenseStore)’
FreeRDP-3.20.0/libfreerdp/core/license.c:537:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:537:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:544:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:544:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:546:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:546:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:551:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:551:17: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/license.c:551:17: danger: ‘GetCombinedPath(freerdp_settings_get_string(settings, 1793), &licenseStore)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  549|   			goto out;
#  550|   		}
#  551|-> 		WLog_Print(log, WLOG_INFO, "creating directory %s", licenseStorePath);
#  552|   	}
#  553|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
FreeRDP-3.20.0/libfreerdp/core/license.c:1040:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/license.c:2734:13: enter_function: entry to ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2739:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2741:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2751:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:38: call_function: inlined call to ‘license_new_product_info’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:12: branch_false: following ‘false’ branch (when ‘productInfo’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2773:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2782:36: call_function: inlined call to ‘license_new_scope_list’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2782:12: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2785:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2785: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): [#def554]
FreeRDP-3.20.0/libfreerdp/core/license.c:1040:9: warning[-Wanalyzer-malloc-leak]: leak of ‘license’
FreeRDP-3.20.0/libfreerdp/core/license.c:2734:13: enter_function: entry to ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2738:44: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:2739:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2741:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2751:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:38: call_function: inlined call to ‘license_new_product_info’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:12: branch_false: following ‘false’ branch (when ‘productInfo’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2773:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2782:36: call_function: inlined call to ‘license_new_scope_list’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2782:12: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2785:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2785: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): [#def555]
FreeRDP-3.20.0/libfreerdp/core/license.c:1040:9: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.20.0/libfreerdp/core/license.c:2734:13: enter_function: entry to ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2739:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2741:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2751:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:38: call_function: inlined call to ‘license_new_product_info’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:12: branch_false: following ‘false’ branch (when ‘productInfo’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2773:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2782:36: call_function: inlined call to ‘license_new_scope_list’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2782:12: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2785:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2785: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): [#def556]
FreeRDP-3.20.0/libfreerdp/core/license.c:1040:9: warning[-Wanalyzer-malloc-leak]: leak of ‘productInfo’
FreeRDP-3.20.0/libfreerdp/core/license.c:2734:13: enter_function: entry to ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2739:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2741:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2751:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:38: call_function: inlined call to ‘license_new_product_info’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:12: branch_false: following ‘false’ branch (when ‘productInfo’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:38: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2757:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:42: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2759:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2761:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:41: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2763:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2765:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:44: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2767:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:52: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2769:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:53: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2771:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2774:19: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2773:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:51: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2776:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:46: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2778:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:47: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2780:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2782:36: call_function: inlined call to ‘license_new_scope_list’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2782:12: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2785:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2785: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): [#def557]
FreeRDP-3.20.0/libfreerdp/core/license.c:1214:21: warning[-Wanalyzer-malloc-leak]: leak of ‘EncryptedPremasterSecret’
FreeRDP-3.20.0/libfreerdp/core/license.c:1180:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:1185:64: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:1186:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:1200:59: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:1200:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:1201:12: branch_false: following ‘false’ branch (when ‘EncryptedPremasterSecret’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:1209:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:1214:21: throw: if ‘crypto_rsa_public_encrypt’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/license.c:1214:21: danger: ‘EncryptedPremasterSecret’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
# 1212|   	{
# 1213|   		const SSIZE_T length =
# 1214|-> 		    crypto_rsa_public_encrypt(license->PremasterSecret, sizeof(license->PremasterSecret),
# 1215|   		                              info, EncryptedPremasterSecret, info->ModulusLength);
# 1216|   		if ((length < 0) || (length > UINT16_MAX))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
FreeRDP-3.20.0/libfreerdp/core/license.c:1247:34: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_RC4_New_Allow_FIPS(&*license.LicensingEncryptionKey, 16)’
FreeRDP-3.20.0/libfreerdp/core/license.c:1237:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:1239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:1246:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:1246:12: branch_true: following ‘true’ branch (when ‘len != 0’)...
FreeRDP-3.20.0/libfreerdp/core/license.c:1247:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:1248:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:1251:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:1254:14: throw: if ‘winpr_RC4_Update’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/license.c:1247:34: danger: ‘winpr_RC4_New_Allow_FIPS(&*license.LicensingEncryptionKey, 16)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1245|   	BYTE* buffer = NULL;
# 1246|   	if (len > 0)
# 1247|-> 		buffer = realloc(target->data, len);
# 1248|   	if (!buffer)
# 1249|   		goto error_buffer;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
FreeRDP-3.20.0/libfreerdp/core/license.c:1261:9: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_RC4_New_Allow_FIPS(&*license.LicensingEncryptionKey, 16)’
FreeRDP-3.20.0/libfreerdp/core/license.c:1237:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:1239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:1246:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:1261:9: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/license.c:1261:9: danger: ‘winpr_RC4_New_Allow_FIPS(&*license.LicensingEncryptionKey, 16)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 1259|   
# 1260|   error_buffer:
# 1261|-> 	WLog_Print(license->log, WLOG_ERROR, "Failed to create/update RC4: len=%" PRIuz ", buffer=%p",
# 1262|   	           len, (const void*)buffer);
# 1263|   	winpr_RC4_Free(rc4);

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
FreeRDP-3.20.0/libfreerdp/core/license.c:2104:42: warning[-Wanalyzer-malloc-leak]: leak of ‘license_new_binary_blob(1)’
FreeRDP-3.20.0/libfreerdp/core/license.c:2136:6: enter_function: entry to ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.20.0/libfreerdp/core/license.c:2154:33: call_function: calling ‘license_new_binary_blob’ from ‘license_read_new_or_upgrade_license_packet’
FreeRDP-3.20.0/libfreerdp/core/license.c:2154:33: return_function: returning to ‘license_read_new_or_upgrade_license_packet’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2155:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2159:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2159:14: call_function: calling ‘license_read_encrypted_blob’ from ‘license_read_new_or_upgrade_license_packet’
# 2102|   	WINPR_ASSERT(target);
# 2103|   
# 2104|-> 	if (!license_check_stream_length(license->log, s, 4, "license encrypted blob"))
# 2105|   		return FALSE;
# 2106|   

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def565]
FreeRDP-3.20.0/libfreerdp/core/license.c:2806:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/license.c:2734:13: enter_function: entry to ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2739:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2741:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2751:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:2751:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:38: call_function: inlined call to ‘license_new_product_info’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:12: branch_true: following ‘true’ branch (when ‘productInfo’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2754:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2792:9: call_function: calling ‘license_free’ from ‘license_new’
# 2804|   	if (license)
# 2805|   	{
# 2806|-> 		freerdp_certificate_free(license->certificate);
# 2807|   		license_free_product_info(license->ProductInfo);
# 2808|   		license_free_binary_blob(license->ErrorInfo);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
FreeRDP-3.20.0/libfreerdp/core/license.c:2806:17: warning[-Wanalyzer-malloc-leak]: leak of ‘license’
FreeRDP-3.20.0/libfreerdp/core/license.c:2734:13: enter_function: entry to ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2738:44: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:2739:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2741:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2751:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2752:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2792:9: call_function: calling ‘license_free’ from ‘license_new’
# 2804|   	if (license)
# 2805|   	{
# 2806|-> 		freerdp_certificate_free(license->certificate);
# 2807|   		license_free_product_info(license->ProductInfo);
# 2808|   		license_free_binary_blob(license->ErrorInfo);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
FreeRDP-3.20.0/libfreerdp/core/license.c:2806:17: warning[-Wanalyzer-malloc-leak]: leak of ‘productInfo’
FreeRDP-3.20.0/libfreerdp/core/license.c:2734:13: enter_function: entry to ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2739:12: branch_false: following ‘false’ branch (when ‘license’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2741:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2751:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:38: call_function: inlined call to ‘license_new_product_info’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2753:12: branch_false: following ‘false’ branch (when ‘productInfo’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: call_function: calling ‘license_new_binary_blob’ from ‘license_new’
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:36: return_function: returning to ‘license_new’ from ‘license_new_binary_blob’
FreeRDP-3.20.0/libfreerdp/core/license.c:2755:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2756:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/license.c:2792:9: call_function: calling ‘license_free’ from ‘license_new’
# 2804|   	if (license)
# 2805|   	{
# 2806|-> 		freerdp_certificate_free(license->certificate);
# 2807|   		license_free_product_info(license->ProductInfo);
# 2808|   		license_free_binary_blob(license->ErrorInfo);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def568]
FreeRDP-3.20.0/libfreerdp/core/listener.c:68:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/listener.c:61:28: acquire_resource: stream socket created here
FreeRDP-3.20.0/libfreerdp/core/listener.c:62:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.20.0/libfreerdp/core/listener.c:68:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:68:27: throw: if ‘fcntl’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/listener.c:68:27: danger: ‘sockfd’ leaks here
#   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): [#def569]
FreeRDP-3.20.0/libfreerdp/core/listener.c:103:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/listener.c:61:28: acquire_resource: stream socket created here
FreeRDP-3.20.0/libfreerdp/core/listener.c:62:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.20.0/libfreerdp/core/listener.c:68:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:69:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:77:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:100:13: acquire_resource: socket created here
FreeRDP-3.20.0/libfreerdp/core/listener.c:100:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:102:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:103:17: throw: if ‘winpr_strerror’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/listener.c:103:17: danger: ‘sockfd’ leaks here
#  101|   	{
#  102|   		char ebuffer[256] = { 0 };
#  103|-> 		WLog_ERR(TAG, "Error binding vsock at cid %d port %d: %s", addr.svm_cid, port,
#  104|   		         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
#  105|   		close(sockfd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def570]
FreeRDP-3.20.0/libfreerdp/core/listener.c:105:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/listener.c:61:28: acquire_resource: stream socket created here
FreeRDP-3.20.0/libfreerdp/core/listener.c:62:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.20.0/libfreerdp/core/listener.c:68:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:69:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:77:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:100:13: acquire_resource: socket created here
FreeRDP-3.20.0/libfreerdp/core/listener.c:100:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:102:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:105:17: throw: if ‘close’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/listener.c:105:17: danger: ‘sockfd’ leaks here
#  103|   		WLog_ERR(TAG, "Error binding vsock at cid %d port %d: %s", addr.svm_cid, port,
#  104|   		         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
#  105|-> 		close(sockfd);
#  106|   		return FALSE;
#  107|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def571]
FreeRDP-3.20.0/libfreerdp/core/listener.c:112:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/listener.c:61:28: acquire_resource: stream socket created here
FreeRDP-3.20.0/libfreerdp/core/listener.c:62:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.20.0/libfreerdp/core/listener.c:68:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:69:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:77:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:100:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:109:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:109:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:111:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:112:17: throw: if ‘winpr_strerror’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/listener.c:112:17: danger: ‘sockfd’ leaks here
#  110|   	{
#  111|   		char ebuffer[256] = { 0 };
#  112|-> 		WLog_ERR(TAG, "Error listening to socket at cid %d port %d: %s", addr.svm_cid, port,
#  113|   		         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
#  114|   		close(sockfd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def572]
FreeRDP-3.20.0/libfreerdp/core/listener.c:114:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/listener.c:137:13: enter_function: entry to ‘freerdp_listener_open’
FreeRDP-3.20.0/libfreerdp/core/listener.c:154:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:156:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:157:24: call_function: calling ‘freerdp_listener_open_from_vsock’ from ‘freerdp_listener_open’
#  112|   		WLog_ERR(TAG, "Error listening to socket at cid %d port %d: %s", addr.svm_cid, port,
#  113|   		         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
#  114|-> 		close(sockfd);
#  115|   		return FALSE;
#  116|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
FreeRDP-3.20.0/libfreerdp/core/listener.c:118:9: warning[-Wanalyzer-malloc-leak]: leak of ‘WSACreateEvent()’
FreeRDP-3.20.0/libfreerdp/core/listener.c:137:13: enter_function: entry to ‘freerdp_listener_open’
FreeRDP-3.20.0/libfreerdp/core/listener.c:154:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:156:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:157:24: call_function: calling ‘freerdp_listener_open_from_vsock’ from ‘freerdp_listener_open’
#  116|   	}
#  117|   	listener->sockfds[listener->num_sockfds] = sockfd;
#  118|-> 	listener->events[listener->num_sockfds] = WSACreateEvent();
#  119|   
#  120|   	if (!listener->events[listener->num_sockfds])

Error: GCC_ANALYZER_WARNING (CWE-775): [#def574]
FreeRDP-3.20.0/libfreerdp/core/listener.c:118:51: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/listener.c:137:13: enter_function: entry to ‘freerdp_listener_open’
FreeRDP-3.20.0/libfreerdp/core/listener.c:154:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:156:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:157:24: call_function: calling ‘freerdp_listener_open_from_vsock’ from ‘freerdp_listener_open’
#  116|   	}
#  117|   	listener->sockfds[listener->num_sockfds] = sockfd;
#  118|-> 	listener->events[listener->num_sockfds] = WSACreateEvent();
#  119|   
#  120|   	if (!listener->events[listener->num_sockfds])

Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
FreeRDP-3.20.0/libfreerdp/core/listener.c:228:17: warning[-Wanalyzer-malloc-leak]: leak of ‘WSACreateEvent()’
FreeRDP-3.20.0/libfreerdp/core/listener.c:154:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:160:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:162:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:162:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:165:41: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:178:20: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.20.0/libfreerdp/core/listener.c:184:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:211:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:217:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:219:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:227:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:228:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/listener.c:228:17: danger: ‘WSACreateEvent()’ leaks here; was allocated at [(14)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/13)
#  226|   		/* FIXME: these file descriptors do not work on Windows */
#  227|   		listener->sockfds[listener->num_sockfds] = sockfd;
#  228|-> 		listener->events[listener->num_sockfds] = WSACreateEvent();
#  229|   
#  230|   		if (!listener->events[listener->num_sockfds])

Error: GCC_ANALYZER_WARNING (CWE-775): [#def576]
FreeRDP-3.20.0/libfreerdp/core/listener.c:269:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/listener.c:255:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:261:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:261:18: acquire_resource: stream socket created here
FreeRDP-3.20.0/libfreerdp/core/listener.c:263:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.20.0/libfreerdp/core/listener.c:269:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:269:18: throw: if ‘fcntl’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/listener.c:269:18: danger: ‘sockfd’ leaks here
#  267|   	}
#  268|   
#  269|-> 	int rc = fcntl(sockfd, F_SETFL, O_NONBLOCK);
#  270|   	if (rc != 0)
#  271|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
FreeRDP-3.20.0/libfreerdp/core/listener.c:308:9: warning[-Wanalyzer-malloc-leak]: leak of ‘((rdpListener)*(void *)*instance.listener).events[<unknown>]’
FreeRDP-3.20.0/libfreerdp/core/listener.c:255:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:261:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:263:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.20.0/libfreerdp/core/listener.c:269:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:270:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:277:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:282:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:289:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:291:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:298:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:298:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/listener.c:300:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:307:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:308:9: danger: ‘((rdpListener)*(void *)*instance.listener).events[<unknown>]’ leaks here; was allocated at [(13)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/12)
#  306|   
#  307|   	listener->sockfds[listener->num_sockfds] = sockfd;
#  308|-> 	listener->events[listener->num_sockfds] = hevent;
#  309|   	listener->num_sockfds++;
#  310|   	WLog_INFO(TAG, "Listening on socket %s.", addr.sun_path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
FreeRDP-3.20.0/libfreerdp/core/listener.c:332:9: warning[-Wanalyzer-malloc-leak]: leak of ‘WSACreateEvent()’
FreeRDP-3.20.0/libfreerdp/core/listener.c:322:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:328:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:331:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:332:51: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/listener.c:332:9: danger: ‘WSACreateEvent()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
#  330|   
#  331|   	listener->sockfds[listener->num_sockfds] = fd;
#  332|-> 	listener->events[listener->num_sockfds] = WSACreateEvent();
#  333|   
#  334|   	if (!listener->events[listener->num_sockfds])

Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
FreeRDP-3.20.0/libfreerdp/core/listener.c:407:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_peer_new(peer_sockfd)’
FreeRDP-3.20.0/libfreerdp/core/listener.c:441:13: enter_function: entry to ‘freerdp_check_and_create_client’
FreeRDP-3.20.0/libfreerdp/core/listener.c:449:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:455:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:455:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/listener.c:456:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/listener.c:462:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/listener.c:462:14: call_function: calling ‘freerdp_peer_set_local_and_hostname’ from ‘freerdp_check_and_create_client’
#  405|   	WINPR_ASSERT(peer_addr);
#  406|   
#  407|-> 	if (peer_addr->ss_family == AF_INET)
#  408|   	{
#  409|   		const UINT32* usin_addr = sin_addr = &(((const struct sockaddr_in*)peer_addr)->sin_addr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:385:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 12)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1218:6: enter_function: entry to ‘mcs_send_channel_join_request’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1226:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1228:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1234:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1234:9: call_function: calling ‘mcs_write_domain_mcspdu_header’ from ‘mcs_send_channel_join_request’
#  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): [#def581]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:385:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 15)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1279:6: enter_function: entry to ‘mcs_send_channel_join_confirm’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1285:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1288:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1288:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1290:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1296:14: branch_false: ...to here
FreeRDP-3.20.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): [#def582]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:385:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 8)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1094:6: enter_function: entry to ‘mcs_send_attach_user_request’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1100:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1103:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1103:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1105:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1111:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1111:9: call_function: calling ‘mcs_write_domain_mcspdu_header’ from ‘mcs_send_attach_user_request’
#  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): [#def583]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:385:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 9)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1369:6: enter_function: entry to ‘mcs_send_disconnect_provider_ultimatum’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1377:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1379:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1382:14: branch_false: ...to here
FreeRDP-3.20.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): [#def584]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:464:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *s.capacity)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:456:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:458:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:464:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:464:9: throw: if ‘ber_write_integer’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:464:9: danger: ‘Stream_New(0, *s.capacity)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  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): [#def585]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:739:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *s.capacity)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:721:6: enter_function: entry to ‘mcs_write_connect_initial’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:727:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:730:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:732:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:739:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:739:9: throw: if ‘ber_write_octet_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:739:9: danger: ‘Stream_New(0, *s.capacity)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/22/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): [#def586]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:796:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *s.capacity)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:779:6: enter_function: entry to ‘mcs_write_connect_response’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:785:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:788:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:790:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:796:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:796:9: throw: if ‘ber_write_enumerated’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:796:9: danger: ‘Stream_New(0, *s.capacity)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/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): [#def587]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:845:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:819:13: enter_function: entry to ‘mcs_send_connect_initial’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:830:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:833:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:836:9: call_function: calling ‘mcs_initialize_client_channels’ from ‘mcs_send_connect_initial’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:836:9: return_function: returning to ‘mcs_send_connect_initial’ from ‘mcs_initialize_client_channels’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:837:23: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:839:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:845:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:845:14: throw: if ‘gcc_write_client_data_blocks’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:845:14: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/10)
#  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): [#def588]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:855:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:819:13: enter_function: entry to ‘mcs_send_connect_initial’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:830:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:833:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:836:9: call_function: calling ‘mcs_initialize_client_channels’ from ‘mcs_send_connect_initial’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:836:9: return_function: returning to ‘mcs_send_connect_initial’ from ‘mcs_initialize_client_channels’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:839:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:845:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:845:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:847:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:847:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:849:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:855:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:855:14: throw: if ‘gcc_write_conference_create_request’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:855:14: danger: ‘Stream_New(0, 1024)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/14)
#  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): [#def589]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:962:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:951:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:954:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:954:23: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:962:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:962:14: throw: if ‘gcc_write_server_data_blocks’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:962:14: danger: ‘Stream_New(0, 512)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/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): [#def590]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:973:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *<unknown>.capacity + 512)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:941:6: enter_function: entry to ‘mcs_send_connect_response’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:951:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:954:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:962:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:965:44: call_function: inlined call to ‘Stream_Capacity’ from ‘mcs_send_connect_response’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:965:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:973:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:973:14: throw: if ‘gcc_write_conference_create_response’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:973:14: danger: ‘Stream_New(0, *<unknown>.capacity + 512)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/27/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): [#def591]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1164:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 11)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1147:6: enter_function: entry to ‘mcs_send_attach_user_confirm’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1153:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1156:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1156:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1158:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1164:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1165:9: call_function: calling ‘mcs_write_domain_mcspdu_header’ from ‘mcs_send_attach_user_confirm’
# 1162|   	}
# 1163|   
# 1164|-> 	mcs->userId = mcs->baseChannelId++;
# 1165|   	mcs_write_domain_mcspdu_header(s, DomainMCSPDU_AttachUserConfirm, length, 2);
# 1166|   	per_write_enumerated(s, 0, MCS_Result_enum_length);       /* result */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1433:20: warning[-Wanalyzer-malloc-leak]: leak of ‘mcs’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1429:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1431:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1433:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1433:20: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:1433:20: danger: ‘mcs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/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): [#def593]
FreeRDP-3.20.0/libfreerdp/core/message.c:132:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_bitmap_update(context,  bitmap)’
FreeRDP-3.20.0/libfreerdp/core/message.c:127:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:129:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:132:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:132:14: danger: ‘copy_bitmap_update(context,  bitmap)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  130|   		return FALSE;
#  131|   
#  132|-> 	up = update_cast(context->update);
#  133|   	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(Update, BitmapUpdate),
#  134|   	                         (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
FreeRDP-3.20.0/libfreerdp/core/message.c:150:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_palette_update(context,  palette)’
FreeRDP-3.20.0/libfreerdp/core/message.c:145:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:147:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:150:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:150:14: danger: ‘copy_palette_update(context,  palette)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  148|   		return FALSE;
#  149|   
#  150|-> 	up = update_cast(context->update);
#  151|   	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(Update, Palette),
#  152|   	                         (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def595]
FreeRDP-3.20.0/libfreerdp/core/message.c:258:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, Stream_GetRemainingLength(s))’
FreeRDP-3.20.0/libfreerdp/core/message.c:253:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:255:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:258:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:258:9: throw: if ‘Stream_GetRemainingLength’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/message.c:258:9: danger: ‘Stream_New(0, Stream_GetRemainingLength(s))’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  256|   		return FALSE;
#  257|   
#  258|-> 	Stream_Copy(s, wParam, Stream_GetRemainingLength(s));
#  259|   	Stream_SetPosition(wParam, 0);
#  260|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
FreeRDP-3.20.0/libfreerdp/core/message.c:280:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_surface_bits_command(context,  surfaceBitsCommand)’
FreeRDP-3.20.0/libfreerdp/core/message.c:275:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:277:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:280:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:280:14: danger: ‘copy_surface_bits_command(context,  surfaceBitsCommand)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  278|   		return FALSE;
#  279|   
#  280|-> 	up = update_cast(context->update);
#  281|   	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(Update, SurfaceBits),
#  282|   	                         (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
FreeRDP-3.20.0/libfreerdp/core/message.c:711:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/message.c:688:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:691:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:693:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:695:54: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:695:47: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:697:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:703:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:711:16: throw: if ‘MessageQueue_Post’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/message.c:711:16: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
#  709|   
#  710|   	up = update_cast(context->update);
#  711|-> 	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(PrimaryUpdate, FastGlyph),
#  712|   	                         (void*)wParam, NULL);
#  713|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def598]
FreeRDP-3.20.0/libfreerdp/core/message.c:711:16: warning[-Wanalyzer-malloc-leak]: leak of ‘wParam’
FreeRDP-3.20.0/libfreerdp/core/message.c:686:37: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:688:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:691:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:693:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:707:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:711:16: throw: if ‘MessageQueue_Post’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/message.c:711:16: danger: ‘wParam’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  709|   
#  710|   	up = update_cast(context->update);
#  711|-> 	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(PrimaryUpdate, FastGlyph),
#  712|   	                         (void*)wParam, NULL);
#  713|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def599]
FreeRDP-3.20.0/libfreerdp/core/message.c:831:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_cache_bitmap_order(context,  cacheBitmapOrder)’
FreeRDP-3.20.0/libfreerdp/core/message.c:826:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:828:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:831:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:831:14: danger: ‘copy_cache_bitmap_order(context,  cacheBitmapOrder)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  829|   		return FALSE;
#  830|   
#  831|-> 	up = update_cast(context->update);
#  832|   	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(SecondaryUpdate, CacheBitmap),
#  833|   	                         (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def600]
FreeRDP-3.20.0/libfreerdp/core/message.c:850:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_cache_bitmap_v2_order(context,  cacheBitmapV2Order)’
FreeRDP-3.20.0/libfreerdp/core/message.c:845:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:847:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:850:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:850:14: danger: ‘copy_cache_bitmap_v2_order(context,  cacheBitmapV2Order)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  848|   		return FALSE;
#  849|   
#  850|-> 	up = update_cast(context->update);
#  851|   	return MessageQueue_Post(up->queue, (void*)context,
#  852|   	                         MakeMessageId(SecondaryUpdate, CacheBitmapV2), (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def601]
FreeRDP-3.20.0/libfreerdp/core/message.c:869:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_cache_bitmap_v3_order(context,  cacheBitmapV3Order)’
FreeRDP-3.20.0/libfreerdp/core/message.c:864:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:866:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:869:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:869:14: danger: ‘copy_cache_bitmap_v3_order(context,  cacheBitmapV3Order)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  867|   		return FALSE;
#  868|   
#  869|-> 	up = update_cast(context->update);
#  870|   	return MessageQueue_Post(up->queue, (void*)context,
#  871|   	                         MakeMessageId(SecondaryUpdate, CacheBitmapV3), (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def602]
FreeRDP-3.20.0/libfreerdp/core/message.c:888:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_cache_color_table_order(context,  cacheColorTableOrder)’
FreeRDP-3.20.0/libfreerdp/core/message.c:883:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:885:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:888:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:888:14: danger: ‘copy_cache_color_table_order(context,  cacheColorTableOrder)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  886|   		return FALSE;
#  887|   
#  888|-> 	up = update_cast(context->update);
#  889|   	return MessageQueue_Post(up->queue, (void*)context,
#  890|   	                         MakeMessageId(SecondaryUpdate, CacheColorTable), (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
FreeRDP-3.20.0/libfreerdp/core/message.c:943:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_cache_brush_order(context,  cacheBrushOrder)’
FreeRDP-3.20.0/libfreerdp/core/message.c:938:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:940:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:943:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:943:14: danger: ‘copy_cache_brush_order(context,  cacheBrushOrder)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  941|   		return FALSE;
#  942|   
#  943|-> 	up = update_cast(context->update);
#  944|   	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(SecondaryUpdate, CacheBrush),
#  945|   	                         (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
FreeRDP-3.20.0/libfreerdp/core/message.c:1319:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/message.c:1305:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1308:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1311:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1314:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1314:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1316:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1319:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1319:9: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
# 1317|   		goto out_fail;
# 1318|   
# 1319|-> 	CopyMemory(lParam, windowIcon, sizeof(WINDOW_ICON_ORDER));
# 1320|   	WLog_VRB(TAG, "update_message_WindowIcon");
# 1321|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
FreeRDP-3.20.0/libfreerdp/core/message.c:1356:16: warning[-Wanalyzer-malloc-leak]: leak of ‘lParam’
FreeRDP-3.20.0/libfreerdp/core/message.c:1305:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1308:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1309:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1311:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1314:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1316:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1319:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1322:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1333:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1344:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1344:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1355:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1356:16: throw: if ‘MessageQueue_Post’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/message.c:1356:16: danger: ‘lParam’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
# 1354|   
# 1355|   	up = update_cast(context->update);
# 1356|-> 	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(WindowUpdate, WindowIcon),
# 1357|   	                         (void*)wParam, (void*)lParam);
# 1358|   out_fail:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
FreeRDP-3.20.0/libfreerdp/core/message.c:1356:16: warning[-Wanalyzer-malloc-leak]: leak of ‘wParam’
FreeRDP-3.20.0/libfreerdp/core/message.c:1303:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1305:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1308:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1311:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1314:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1316:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1319:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1322:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1333:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1333:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1344:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1344:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1355:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1356:16: throw: if ‘MessageQueue_Post’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/message.c:1356:16: danger: ‘wParam’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
# 1354|   
# 1355|   	up = update_cast(context->update);
# 1356|-> 	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(WindowUpdate, WindowIcon),
# 1357|   	                         (void*)wParam, (void*)lParam);
# 1358|   out_fail:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def607]
FreeRDP-3.20.0/libfreerdp/core/message.c:1539:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘calloc((long unsigned int)((unsigned int*)&<unknown>)[1], 4)’ where non-null expected
FreeRDP-3.20.0/libfreerdp/core/message.c:1521:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1524:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1527:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1533:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1536:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1538:46: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1538:46: acquire_memory: this call could return NULL
FreeRDP-3.20.0/libfreerdp/core/message.c:1539:17: danger: argument 1 (‘calloc((long unsigned int)((unsigned int*)&<unknown>)[1], 4)’) from [(7)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
# 1537|   	{
# 1538|   		lParam->windowIds = (UINT32*)calloc(lParam->numWindowIds, sizeof(UINT32));
# 1539|-> 		CopyMemory(lParam->windowIds, monitoredDesktop->windowIds, lParam->numWindowIds);
# 1540|   	}
# 1541|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def608]
FreeRDP-3.20.0/libfreerdp/core/message.c:1543:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/message.c:1521:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1524:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1527:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1533:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1536:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1538:46: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1538:46: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1543:16: throw: if ‘MessageQueue_Post’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/message.c:1543:16: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/6)
# 1541|   
# 1542|   	up = update_cast(context->update);
# 1543|-> 	return MessageQueue_Post(up->queue, (void*)context,
# 1544|   	                         MakeMessageId(WindowUpdate, MonitoredDesktop), (void*)wParam,
# 1545|   	                         (void*)lParam);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def609]
FreeRDP-3.20.0/libfreerdp/core/message.c:1543:16: warning[-Wanalyzer-malloc-leak]: leak of ‘lParam’
FreeRDP-3.20.0/libfreerdp/core/message.c:1521:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1524:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1525:44: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1527:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1533:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1536:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1542:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1543:16: throw: if ‘MessageQueue_Post’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/message.c:1543:16: danger: ‘lParam’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
# 1541|   
# 1542|   	up = update_cast(context->update);
# 1543|-> 	return MessageQueue_Post(up->queue, (void*)context,
# 1544|   	                         MakeMessageId(WindowUpdate, MonitoredDesktop), (void*)wParam,
# 1545|   	                         (void*)lParam);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def610]
FreeRDP-3.20.0/libfreerdp/core/message.c:1543:16: warning[-Wanalyzer-malloc-leak]: leak of ‘wParam’
FreeRDP-3.20.0/libfreerdp/core/message.c:1519:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1521:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1524:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1527:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1533:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1536:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1542:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1543:16: throw: if ‘MessageQueue_Post’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/message.c:1543:16: danger: ‘wParam’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
# 1541|   
# 1542|   	up = update_cast(context->update);
# 1543|-> 	return MessageQueue_Post(up->queue, (void*)context,
# 1544|   	                         MakeMessageId(WindowUpdate, MonitoredDesktop), (void*)wParam,
# 1545|   	                         (void*)lParam);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def611]
FreeRDP-3.20.0/libfreerdp/core/message.c:1585:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_position_update(context,  pointerPosition)’
FreeRDP-3.20.0/libfreerdp/core/message.c:1580:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1582:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1585:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1585:14: danger: ‘copy_pointer_position_update(context,  pointerPosition)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
# 1583|   		return FALSE;
# 1584|   
# 1585|-> 	up = update_cast(context->update);
# 1586|   	return MessageQueue_Post(up->queue, (void*)context,
# 1587|   	                         MakeMessageId(PointerUpdate, PointerPosition), (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def612]
FreeRDP-3.20.0/libfreerdp/core/message.c:1604:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_system_update(context,  pointerSystem)’
FreeRDP-3.20.0/libfreerdp/core/message.c:1599:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1601:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1604:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1604:14: danger: ‘copy_pointer_system_update(context,  pointerSystem)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
# 1602|   		return FALSE;
# 1603|   
# 1604|-> 	up = update_cast(context->update);
# 1605|   	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(PointerUpdate, PointerSystem),
# 1606|   	                         (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def613]
FreeRDP-3.20.0/libfreerdp/core/message.c:1623:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_color_update(context,  pointerColor)’
FreeRDP-3.20.0/libfreerdp/core/message.c:1618:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1620:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1623:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1623:14: danger: ‘copy_pointer_color_update(context,  pointerColor)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
# 1621|   		return FALSE;
# 1622|   
# 1623|-> 	up = update_cast(context->update);
# 1624|   	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(PointerUpdate, PointerColor),
# 1625|   	                         (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def614]
FreeRDP-3.20.0/libfreerdp/core/message.c:1641:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_large_update(context,  pointer)’
FreeRDP-3.20.0/libfreerdp/core/message.c:1636:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1638:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1641:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1641:14: danger: ‘copy_pointer_large_update(context,  pointer)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
# 1639|   		return FALSE;
# 1640|   
# 1641|-> 	up = update_cast(context->update);
# 1642|   	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(PointerUpdate, PointerLarge),
# 1643|   	                         (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def615]
FreeRDP-3.20.0/libfreerdp/core/message.c:1659:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_new_update(context,  pointerNew)’
FreeRDP-3.20.0/libfreerdp/core/message.c:1654:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1656:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1659:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1659:14: danger: ‘copy_pointer_new_update(context,  pointerNew)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
# 1657|   		return FALSE;
# 1658|   
# 1659|-> 	up = update_cast(context->update);
# 1660|   	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(PointerUpdate, PointerNew),
# 1661|   	                         (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def616]
FreeRDP-3.20.0/libfreerdp/core/message.c:1678:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_cached_update(context,  pointerCached)’
FreeRDP-3.20.0/libfreerdp/core/message.c:1673:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1675:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1678:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1678:14: danger: ‘copy_pointer_cached_update(context,  pointerCached)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
# 1676|   		return FALSE;
# 1677|   
# 1678|-> 	up = update_cast(context->update);
# 1679|   	return MessageQueue_Post(up->queue, (void*)context, MakeMessageId(PointerUpdate, PointerCached),
# 1680|   	                         (void*)wParam, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
FreeRDP-3.20.0/libfreerdp/core/message.c:2892:33: warning[-Wanalyzer-malloc-leak]: leak of ‘message’
FreeRDP-3.20.0/libfreerdp/core/message.c:2879:17: enter_function: entry to ‘update_message_proxy_new’
FreeRDP-3.20.0/libfreerdp/core/message.c:2883:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:12: branch_false: following ‘false’ branch (when ‘message’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:2889:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:2890:9: call_function: calling ‘update_message_register_interface’ from ‘update_message_proxy_new’
FreeRDP-3.20.0/libfreerdp/core/message.c:2890:9: return_function: returning to ‘update_message_proxy_new’ from ‘update_message_register_interface’
FreeRDP-3.20.0/libfreerdp/core/message.c:2892:33: throw: if ‘CreateThread’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/message.c:2892:33: danger: ‘message’ leaks here; was allocated at [(4)](sarif:/runs/0/results/36/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): [#def618]
FreeRDP-3.20.0/libfreerdp/core/nego.c:760:18: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
FreeRDP-3.20.0/libfreerdp/core/nego.c:752:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/nego.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nego.c:760:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nego.c:760:18: throw: if ‘transport_read_pdu’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/nego.c:760:18: danger: ‘Stream_New(0, 1024)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/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): [#def619]
FreeRDP-3.20.0/libfreerdp/core/nego.c:1709:21: warning[-Wanalyzer-malloc-leak]: leak of ‘nego’
FreeRDP-3.20.0/libfreerdp/core/nego.c:1704:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/nego.c:1706:12: branch_false: following ‘false’ branch (when ‘nego’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/nego.c:1709:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nego.c:1709:21: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/nego.c:1709:21: danger: ‘nego’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 1707|   		return NULL;
# 1708|   
# 1709|-> 	nego->log = WLog_Get(NEGO_TAG);
# 1710|   	WINPR_ASSERT(nego->log);
# 1711|   	nego->transport = transport;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def620]
FreeRDP-3.20.0/libfreerdp/core/nla.c:177:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/nla.c:2215:9: enter_function: entry to ‘nla_new’
FreeRDP-3.20.0/libfreerdp/core/nla.c:2225:12: branch_false: following ‘false’ branch (when ‘nla’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2228:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2236:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2237:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2240:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2241:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2245:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2245:14: call_function: inlined call to ‘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): [#def621]
FreeRDP-3.20.0/libfreerdp/core/nla.c:177:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nla’
FreeRDP-3.20.0/libfreerdp/core/nla.c:2215:9: enter_function: entry to ‘nla_new’
FreeRDP-3.20.0/libfreerdp/core/nla.c:2223:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2225:12: branch_false: following ‘false’ branch (when ‘nla’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2228:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2237:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2240:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2241:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2245:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2245:14: call_function: inlined call to ‘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): [#def622]
FreeRDP-3.20.0/libfreerdp/core/nla.c:433:33: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.20.0/libfreerdp/core/nla.c:897:5: enter_function: entry to ‘nla_authenticate’
FreeRDP-3.20.0/libfreerdp/core/nla.c:901:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:904:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:904:24: call_function: calling ‘nla_client_authenticate’ from ‘nla_authenticate’
#  431|   	WINPR_ASSERT(nla->rdpcontext);
#  432|   
#  433|-> 	rdpSettings* settings = nla->rdpcontext->settings;
#  434|   	WINPR_ASSERT(settings);
#  435|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def623]
FreeRDP-3.20.0/libfreerdp/core/nla.c:709:18: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
FreeRDP-3.20.0/libfreerdp/core/nla.c:2190:5: enter_function: entry to ‘nla_server_recv’
FreeRDP-3.20.0/libfreerdp/core/nla.c:2196:22: call_function: calling ‘nla_server_recv_stream’ from ‘nla_server_recv’
#  707|   		goto fail;
#  708|   
#  709|-> 	status = transport_read_pdu(nla->transport, s);
#  710|   
#  711|   fail:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def624]
FreeRDP-3.20.0/libfreerdp/core/nla.c:989:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/nla.c:978:33: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:982:14: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:982:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:986:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:986:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/nla.c:986:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:989:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:989:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/nla.c:989:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
#  987|   		goto out;
#  988|   
#  989|-> 	if (!winpr_Digest_Init(sha256, WINPR_MD_SHA256))
#  990|   		goto out;
#  991|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def625]
FreeRDP-3.20.0/libfreerdp/core/nla.c:1075:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/nla.c:1063:33: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1066:19: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1068:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1072:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1072:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1072:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1075:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1075:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1075:14: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
# 1073|   		goto fail;
# 1074|   
# 1075|-> 	if (!winpr_Digest_Init(sha256, WINPR_MD_SHA256))
# 1076|   		goto fail;
# 1077|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def626]
FreeRDP-3.20.0/libfreerdp/core/nla.c:1462:69: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 2000)’
FreeRDP-3.20.0/libfreerdp/core/nla.c:1491:13: enter_function: entry to ‘nla_write_TSRemoteGuardKerbCred’
FreeRDP-3.20.0/libfreerdp/core/nla.c:1505:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1509:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1509:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1512:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1512:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1513:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1516:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1516:14: call_function: calling ‘nla_write_KERB_TICKET_LOGON’ from ‘nla_write_TSRemoteGuardKerbCred’
# 1460|   	WINPR_ASSERT(ticket);
# 1461|   
# 1462|-> 	if (!Stream_EnsureRemainingCapacity(s, (4ULL * 4) + 16ULL + ticket->ServiceTicketLength +
# 1463|   	                                           ticket->TicketGrantingTicketLength))
# 1464|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def627]
FreeRDP-3.20.0/libfreerdp/core/nla.c:1983:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, length)’
FreeRDP-3.20.0/libfreerdp/core/nla.c:1900:6: enter_function: entry to ‘nla_send’
FreeRDP-3.20.0/libfreerdp/core/nla.c:1910:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1914:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1915:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1919:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1920:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1925:13: call_function: inlined call to ‘nla_get_state’ from ‘nla_send’
FreeRDP-3.20.0/libfreerdp/core/nla.c:1973:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1976:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1976:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1979:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1979:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1980:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1983:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:1983:14: throw: if ‘WinPrAsn1EncToStream’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/nla.c:1983:14: danger: ‘Stream_New(0, length)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
# 1981|   		goto fail;
# 1982|   
# 1983|-> 	if (!WinPrAsn1EncToStream(enc, s))
# 1984|   		goto fail;
# 1985|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def628]
FreeRDP-3.20.0/libfreerdp/core/nla.c:2240:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/nla.c:2225:12: branch_false: following ‘false’ branch (when ‘nla’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2228:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2236:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2237:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2240:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2240:21: throw: if ‘credssp_auth_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2240:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
# 2238|   		goto cleanup;
# 2239|   
# 2240|-> 	nla->auth = credssp_auth_new(context);
# 2241|   	if (!nla->auth)
# 2242|   		goto cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def629]
FreeRDP-3.20.0/libfreerdp/core/nla.c:2240:21: warning[-Wanalyzer-malloc-leak]: leak of ‘nla’
FreeRDP-3.20.0/libfreerdp/core/nla.c:2223:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2225:12: branch_false: following ‘false’ branch (when ‘nla’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2228:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2237:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2240:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nla.c:2240:21: throw: if ‘credssp_auth_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/nla.c:2240:21: danger: ‘nla’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 2238|   		goto cleanup;
# 2239|   
# 2240|-> 	nla->auth = credssp_auth_new(context);
# 2241|   	if (!nla->auth)
# 2242|   		goto cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def630]
FreeRDP-3.20.0/libfreerdp/core/peer.c:1453:23: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
FreeRDP-3.20.0/libfreerdp/core/peer.c:1446:47: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/peer.c:1448:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/peer.c:1451:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/peer.c:1451:12: branch_true: following ‘true’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/peer.c:1453:23: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/peer.c:1453:23: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/peer.c:1453:23: danger: ‘client’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1451|   	if (sockfd >= 0)
# 1452|   	{
# 1453|-> 		(void)freerdp_tcp_set_nodelay(WLog_Get(TAG), WLOG_DEBUG, sockfd);
# 1454|   	}
# 1455|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def631]
FreeRDP-3.20.0/libfreerdp/core/peer.c:1557:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rdp_new(context)’
FreeRDP-3.20.0/libfreerdp/core/peer.c:1531:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/peer.c:1534:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/peer.c:1538:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/peer.c:1541:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/peer.c:1549:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/peer.c:1551:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/peer.c:1551:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/peer.c:1554:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/peer.c:1554:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/peer.c:1554:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/peer.c:1557:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/peer.c:1557:9: throw: if ‘rdp_log_build_warnings’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/peer.c:1557:9: danger: ‘rdp_new(context)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
# 1555|   		goto fail;
# 1556|   
# 1557|-> 	rdp_log_build_warnings(rdp);
# 1558|   
# 1559|   #if defined(WITH_FREERDP_DEPRECATED)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def632]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:301:25: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(no_proxy)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:324:6: enter_function: entry to ‘proxy_read_environment’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:331:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:333:12: branch_false: following ‘false’ branch (when ‘env’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:339:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:339:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:341:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:341:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:343:29: branch_true: ...to here
FreeRDP-3.20.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): [#def633]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:339:13: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:328:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:331:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:331:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:333:12: branch_false: following ‘false’ branch (when ‘env’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:339:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:339:13: throw: if ‘GetEnvironmentVariableA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:339:13: danger: ‘env’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/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): [#def634]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:385:21: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:385:21: throw: if ‘_stricmp’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:385:21: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/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): [#def635]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:387:30: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:385:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:387:30: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:387:30: throw: if ‘freerdp_settings_set_uint32’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:387:30: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/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): [#def636]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:390:21: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:390:21: throw: if ‘_stricmp’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:390:21: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/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): [#def637]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:392:30: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:390:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:392:30: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:392:30: throw: if ‘freerdp_settings_set_uint32’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:392:30: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/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): [#def638]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:396:26: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:390:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:396:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:396:26: throw: if ‘_stricmp’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:396:26: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/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): [#def639]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:398:30: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:390:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:396:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:396:25: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:398:30: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:398:30: throw: if ‘freerdp_settings_set_uint32’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:398:30: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/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): [#def640]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: throw: if ‘freerdp_settings_set_uint32’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/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): [#def641]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:432:21: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:392:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:408:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:421:12: branch_true: following ‘true’ branch (when ‘atPtr’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:430:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:432:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:438:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:439:22: throw: if ‘freerdp_settings_set_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:432:21: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  430|   		char* colonPtr = strchr(uri, ':');
#  431|   
#  432|-> 		if (!colonPtr || (colonPtr > atPtr))
#  433|   		{
#  434|   			WLog_ERR(TAG, "invalid syntax for proxy (contains no password)");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def642]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:439:22: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:421:12: branch_true: following ‘true’ branch (when ‘atPtr’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:430:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:432:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:438:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:439:22: throw: if ‘freerdp_settings_set_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:439:22: danger: ‘uri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/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): [#def643]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:447:22: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:421:12: branch_true: following ‘true’ branch (when ‘atPtr’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:430:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:432:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:438:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:439:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:445:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:447:22: throw: if ‘freerdp_settings_set_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:447:22: danger: ‘uri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/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): [#def644]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:462:35: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:392:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:408:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:458:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:460:26: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:462:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:464:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:464:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  460|   		LONGLONG val = 0;
#  461|   
#  462|-> 		if (!value_to_int(&p[1], &val, 0, UINT16_MAX))
#  463|   		{
#  464|   			WLog_ERR(TAG, "invalid syntax for proxy (invalid port)");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def645]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:479:21: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:392:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:408:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:479:21: throw: if ‘_stricmp’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:479:21: danger: ‘_strdup(uri_in)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/41/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): [#def646]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:479:21: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:421:12: branch_false: following ‘false’ branch (when ‘atPtr’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:456:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:479:21: throw: if ‘_stricmp’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:479:21: danger: ‘uri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/40/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): [#def647]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:489:17: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:392:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:408:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:458:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:479:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:489:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  487|   		}
#  488|   
#  489|-> 		WLog_DBG(TAG, "setting default proxy port: %" PRIu16, port);
#  490|   	}
#  491|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def648]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:492:14: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:421:12: branch_false: following ‘false’ branch (when ‘atPtr’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:456:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:458:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:460:26: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:462:22: call_function: calling ‘value_to_int’ from ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:462:22: return_function: returning to ‘proxy_parse_uri’ from ‘value_to_int’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:462:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:468:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:468:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:474:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:492:14: throw: if ‘freerdp_settings_set_uint16’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:492:14: danger: ‘uri’ leaks here; was allocated at [(2)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/1)
#  490|   	}
#  491|   
#  492|-> 	if (!freerdp_settings_set_uint16(settings, FreeRDP_ProxyPort, port))
#  493|   		goto fail;
#  494|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def649]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:498:14: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:421:12: branch_false: following ‘false’ branch (when ‘atPtr’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:456:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:458:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:460:26: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:462:22: call_function: calling ‘value_to_int’ from ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:462:22: return_function: returning to ‘proxy_parse_uri’ from ‘value_to_int’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:462:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:468:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:468:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:474:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:492:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:495:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:496:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:498:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:498:14: throw: if ‘freerdp_settings_set_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:498:14: danger: ‘uri’ leaks here; was allocated at [(2)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/1)
#  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): [#def650]
FreeRDP-3.20.0/libfreerdp/core/proxy.c:501:13: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:419:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:421:12: branch_false: following ‘false’ branch (when ‘atPtr’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:456:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:458:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:460:26: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:462:22: call_function: calling ‘value_to_int’ from ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:462:22: return_function: returning to ‘proxy_parse_uri’ from ‘value_to_int’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:462:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:468:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:468:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:474:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:492:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:495:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:496:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:498:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:498:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:501:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:501:13: throw: if ‘_stricmp’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:501:13: danger: ‘uri’ leaks here; was allocated at [(2)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/1)
#  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): [#def651]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: warning[-Wanalyzer-malloc-leak]: leak of ‘monitorDefArray’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1105:13: enter_function: entry to ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1112:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1115:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1117:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1120:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1120:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1122:12: branch_false: following ‘false’ branch (when ‘monitorDefArray’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1122:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1125:32: branch_false: following ‘false’ branch (when ‘index >= v’)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: throw: if the called function throws an exception...
FreeRDP-3.20.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): [#def652]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2359:20: warning[-Wanalyzer-malloc-leak]: leak of ‘rdp’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2354:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2356:12: branch_false: following ‘false’ branch (when ‘rdp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2359:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2359:20: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.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-401): [#def653]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2811:16: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3122:6: enter_function: entry to ‘rdp_log_build_warnings’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3130:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3132:9: branch_false: ...to here
FreeRDP-3.20.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): [#def654]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2935:24: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2934:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2935:24: throw: if ‘_strdup’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2935:24: danger: ‘list’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/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): [#def655]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2938:13: 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.20.0/libfreerdp/core/rdp.c:2935:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2938:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2940:23: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2941:29: throw: if ‘strtok_s’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2938:13: 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 [...]
# 2936|   	WINPR_PRAGMA_DIAG_POP
# 2937|   
# 2938|-> 	if (config && list)
# 2939|   	{
# 2940|   		char* saveptr = NULL;
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2938:13: note: trimmed 2 message(s) with length over 512

Error: GCC_ANALYZER_WARNING (CWE-401): [#def656]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2941:29: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2934:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2938:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2940:23: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2941:29: throw: if ‘strtok_s’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2941:29: danger: ‘list’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/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): [#def657]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2944:29: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2934:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2938:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2940:23: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2942:24: branch_true: following ‘true’ branch (when ‘tok’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2944:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2944:29: throw: if the called function throws an exception...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2944:29: danger: ‘list’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/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): [#def658]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2945:33: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2934:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2938:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2940:23: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2942:24: branch_true: following ‘true’ branch (when ‘tok’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2944:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2945:33: throw: if ‘winpr_str_append’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2945:33: danger: ‘list’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/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): [#def659]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2947:31: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2934:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2938:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2940:23: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2942:24: branch_true: following ‘true’ branch (when ‘tok’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2944:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2944:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2947:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2947:31: throw: if ‘strtok_s’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:2947:31: danger: ‘list’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/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): [#def660]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3022:30: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_RC4_New(&key, 64)’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3019:12: branch_true: following ‘true’ branch (when ‘md == 42’)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3021:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3021:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3022:30: danger: ‘winpr_RC4_New(&key, 64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
# 3020|   	{
# 3021|   		WINPR_RC4_CTX* enc = winpr_RC4_New(key, sizeof(key));
# 3022|-> 		haveCipher = enc != NULL;
# 3023|   		winpr_RC4_Free(enc);
# 3024|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def661]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3030:21: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Cipher_NewEx(md, 0, & key, 64, & iv, 16)’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3019:12: branch_false: following ‘false’ branch (when ‘md != 42’)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3028:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3028:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3030:21: throw: if ‘winpr_Cipher_NewEx’ throws an exception...
FreeRDP-3.20.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/18/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): [#def662]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3031:21: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Cipher_NewEx(md, 0, & key, 64, & iv, 16)’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3019:12: branch_false: following ‘false’ branch (when ‘md != 42’)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3028:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3028:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3031:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3034:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3031:21: danger: ‘winpr_Cipher_NewEx(md, 0, & key, 64, & iv, 16)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
# 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;
# 3033|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def663]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3031:21: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Cipher_NewEx(md, 1, & key, 64, & iv, 16)’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3019:12: branch_false: following ‘false’ branch (when ‘md != 42’)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3028:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3030:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3031:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3034:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3034:17: throw: if ‘winpr_Cipher_Free’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3031:21: 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)
# 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;
# 3033|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def664]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3056:29: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_HMAC_New()’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3049:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3050:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3055:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3056:29: throw: if ‘winpr_HMAC_Init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3056:29: danger: ‘winpr_HMAC_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/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): [#def665]
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3074:31: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3072:36: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3073:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3074:31: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3074:31: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:3074:31: danger: ‘winpr_Digest_New()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/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): [#def666]
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:783:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:919:12: enter_function: entry to ‘rdstls_server_authenticate’
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:923:14: call_function: calling ‘rdstls_set_state’ from ‘rdstls_server_authenticate’
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:923:14: return_function: returning to ‘rdstls_server_authenticate’ from ‘rdstls_set_state’
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:923:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:926:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:926:14: call_function: calling ‘rdstls_send_capabilities’ from ‘rdstls_server_authenticate’
#  781|   
#  782|   	WINPR_ASSERT(rdstls);
#  783|-> 	if (!rdstls_send(rdstls->transport, s, rdstls))
#  784|   		goto fail;
#  785|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:853:25: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:941:12: enter_function: entry to ‘rdstls_client_authenticate’
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:943:14: call_function: calling ‘rdstls_set_state’ from ‘rdstls_client_authenticate’
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:943:14: return_function: returning to ‘rdstls_client_authenticate’ from ‘rdstls_set_state’
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:943:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:946:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdstls.c:946:14: call_function: calling ‘rdstls_recv_capabilities’ from ‘rdstls_client_authenticate’
#  851|   
#  852|   	WINPR_ASSERT(rdstls);
#  853|-> 	const int res = transport_read_pdu(rdstls->transport, s);
#  854|   
#  855|   	if (res < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def668]
FreeRDP-3.20.0/libfreerdp/core/redirection.c:71:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1262:6: enter_function: entry to ‘redirection_set_array_option’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1266:9: branch_true: following ‘true’ branch (when ‘flag == 2048’)...
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1268:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1269:32: call_function: calling ‘redirection_copy_array’ from ‘redirection_set_array_option’
#   69|   		for (UINT32 x = 0; x < *count; x++)
#   70|   			free((*what)[x]);
#   71|-> 		free((void*)*what);
#   72|   	}
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def669]
FreeRDP-3.20.0/libfreerdp/core/redirection.c:412:21: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 2048)’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:965:6: enter_function: entry to ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:972:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/redirection.c:975:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1051:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1053:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1053: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): [#def670]
FreeRDP-3.20.0/libfreerdp/core/redirection.c:413:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 2048)’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:965:6: enter_function: entry to ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:972:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/redirection.c:975:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1051:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1053:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1053:22: call_function: calling ‘rdp_redireciton_write_target_cert_stream’ from ‘rdp_write_enhanced_security_redirection_packet’
#  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))
#  415|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def671]
FreeRDP-3.20.0/libfreerdp/core/redirection.c:413:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_der(cert, & derlen)’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:965:6: enter_function: entry to ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:972:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/redirection.c:975:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1051:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1053:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1053:22: call_function: calling ‘rdp_redireciton_write_target_cert_stream’ from ‘rdp_write_enhanced_security_redirection_packet’
#  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))
#  415|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def672]
FreeRDP-3.20.0/libfreerdp/core/redirection.c:438:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 2048)’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:965:6: enter_function: entry to ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:972:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/redirection.c:975:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1051:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1053:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1053:22: call_function: calling ‘rdp_redireciton_write_target_cert_stream’ from ‘rdp_write_enhanced_security_redirection_packet’
#  436|   
#  437|   fail:
#  438|-> 	Stream_Free(serialized, TRUE);
#  439|   	return rc;
#  440|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def673]
FreeRDP-3.20.0/libfreerdp/core/security.c:104:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:101:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:101:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:104:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:104:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.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): [#def674]
FreeRDP-3.20.0/libfreerdp/core/security.c:134:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:101:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:104:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:104:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:107:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:107:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:111:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:111:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:115:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:115:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:119:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:119:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:122:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:122:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:126:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:126:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:126:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:134:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:134:14: throw: if ‘winpr_Digest_Init_Allow_FIPS’ throws an exception...
FreeRDP-3.20.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): [#def675]
FreeRDP-3.20.0/libfreerdp/core/security.c:228:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:225:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:225:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:228:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:228:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.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): [#def676]
FreeRDP-3.20.0/libfreerdp/core/security.c:259:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:257:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:257:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:259:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:259:14: throw: if ‘winpr_Digest_Init_Allow_FIPS’ throws an exception...
FreeRDP-3.20.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): [#def677]
FreeRDP-3.20.0/libfreerdp/core/security.c:326:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:323:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:326:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:326:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.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): [#def678]
FreeRDP-3.20.0/libfreerdp/core/security.c:354:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:323:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:326:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:326:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:329:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:329:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:332:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:332:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:335:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:335:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:338:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:338:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:341:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:341:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:345:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:345:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:345:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:354:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:354:14: throw: if ‘winpr_Digest_Init_Allow_FIPS’ throws an exception...
FreeRDP-3.20.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): [#def679]
FreeRDP-3.20.0/libfreerdp/core/security.c:401:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:378:6: enter_function: entry to ‘security_mac_signature’
FreeRDP-3.20.0/libfreerdp/core/security.c:392:12: branch_false: following ‘false’ branch (when ‘out_len > 7’)...
FreeRDP-3.20.0/libfreerdp/core/security.c:395:9: call_function: inlined call to ‘security_UINT32_le’ from ‘security_mac_signature’
FreeRDP-3.20.0/libfreerdp/core/security.c:398:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:398:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:401:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:401:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.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): [#def680]
FreeRDP-3.20.0/libfreerdp/core/security.c:423:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:378:6: enter_function: entry to ‘security_mac_signature’
FreeRDP-3.20.0/libfreerdp/core/security.c:392:12: branch_false: following ‘false’ branch (when ‘out_len > 7’)...
FreeRDP-3.20.0/libfreerdp/core/security.c:395:9: call_function: inlined call to ‘security_UINT32_le’ from ‘security_mac_signature’
FreeRDP-3.20.0/libfreerdp/core/security.c:398:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:401:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:401:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:404:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:404:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:407:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:407:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:410:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:410:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:413:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:413:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:416:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:416:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:420:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:420:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:420:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:423:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:423:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.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): [#def681]
FreeRDP-3.20.0/libfreerdp/core/security.c:486:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:448:6: enter_function: entry to ‘security_salted_mac_signature’
FreeRDP-3.20.0/libfreerdp/core/security.c:463:12: branch_false: following ‘false’ branch (when ‘out_len > 7’)...
FreeRDP-3.20.0/libfreerdp/core/security.c:466:9: call_function: inlined call to ‘security_UINT32_le’ from ‘security_salted_mac_signature’
FreeRDP-3.20.0/libfreerdp/core/security.c:483:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:486:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:486:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.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): [#def682]
FreeRDP-3.20.0/libfreerdp/core/security.c:511:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:448:6: enter_function: entry to ‘security_salted_mac_signature’
FreeRDP-3.20.0/libfreerdp/core/security.c:463:12: branch_false: following ‘false’ branch (when ‘out_len > 7’)...
FreeRDP-3.20.0/libfreerdp/core/security.c:466:9: call_function: inlined call to ‘security_UINT32_le’ from ‘security_salted_mac_signature’
FreeRDP-3.20.0/libfreerdp/core/security.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:486:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:486:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:489:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:489:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:492:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:492:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:495:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:495:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:498:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:498:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:501:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:501:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:504:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:504:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:508:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:508:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:508:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:511:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:511:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.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): [#def683]
FreeRDP-3.20.0/libfreerdp/core/security.c:646:22: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:638:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:640:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:642:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:643:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:646:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:646:22: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.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): [#def684]
FreeRDP-3.20.0/libfreerdp/core/security.c:777:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:774:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:774:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:777:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:777:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.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): [#def685]
FreeRDP-3.20.0/libfreerdp/core/security.c:795:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:774:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:777:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:777:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:780:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:780:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:783:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:783:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:786:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:786:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:789:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:789:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:792:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:792:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:792:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:795:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:795:14: throw: if ‘winpr_Digest_Init’ throws an exception...
FreeRDP-3.20.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): [#def686]
FreeRDP-3.20.0/libfreerdp/core/security.c:813:14: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_RC4_New(key,  key_len)’
FreeRDP-3.20.0/libfreerdp/core/security.c:774:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:777:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:777:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:780:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:780:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:783:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:783:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:786:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:786:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:789:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:789:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:792:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:792:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:795:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:795:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:798:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:798:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:801:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:801:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:804:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:804:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:807:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:807:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:810:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:810:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:810:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:813:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:813:14: throw: if ‘winpr_RC4_Update’ throws an exception...
FreeRDP-3.20.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): [#def687]
FreeRDP-3.20.0/libfreerdp/core/security.c:911:51: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_HMAC_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:903:12: branch_false: following ‘false’ branch (when ‘out_len > 7’)...
FreeRDP-3.20.0/libfreerdp/core/security.c:906:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:908:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:911:51: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:911:14: throw: if ‘winpr_HMAC_Init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/security.c:911:51: 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): [#def688]
FreeRDP-3.20.0/libfreerdp/core/security.c:973:51: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_HMAC_New()’
FreeRDP-3.20.0/libfreerdp/core/security.c:970:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/security.c:970:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/security.c:973:51: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/security.c:973:14: throw: if ‘winpr_HMAC_Init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/security.c:973:51: 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): [#def689]
FreeRDP-3.20.0/libfreerdp/core/server.c:94:16: warning[-Wanalyzer-malloc-leak]: leak of ‘messageCtx’
FreeRDP-3.20.0/libfreerdp/core/server.c:233:13: enter_function: entry to ‘wts_read_drdynvc_data’
FreeRDP-3.20.0/libfreerdp/core/server.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:261:55: call_function: inlined call to ‘Stream_ConstPointer’ from ‘wts_read_drdynvc_data’
FreeRDP-3.20.0/libfreerdp/core/server.c:261:23: call_function: calling ‘wts_queue_receive_data’ from ‘wts_read_drdynvc_data’
#   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): [#def690]
FreeRDP-3.20.0/libfreerdp/core/server.c:109:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/libfreerdp/core/server.c:1641:13: enter_function: entry to ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.20.0/libfreerdp/core/server.c:1653:12: branch_false: following ‘false’ branch (when ‘hChannelHandle’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1656:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1658:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1660:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1660:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1662:20: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1668:17: branch_false: ...to here
FreeRDP-3.20.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): [#def691]
FreeRDP-3.20.0/libfreerdp/core/server.c:271:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dvc’
FreeRDP-3.20.0/libfreerdp/core/server.c:275:13: enter_function: entry to ‘wts_read_drdynvc_pdu’
FreeRDP-3.20.0/libfreerdp/core/server.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:291:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:298:12: branch_false: following ‘false’ branch (when ‘Cmd != 5’)...
FreeRDP-3.20.0/libfreerdp/core/server.c:301:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:301:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:301:12: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:304:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:333:17: branch_true: ...to here
FreeRDP-3.20.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): [#def692]
FreeRDP-3.20.0/libfreerdp/core/server.c:339:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dvc’
FreeRDP-3.20.0/libfreerdp/core/server.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:291:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:298:12: branch_false: following ‘false’ branch (when ‘Cmd != 5’)...
FreeRDP-3.20.0/libfreerdp/core/server.c:301:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:301:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:301:12: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:304:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:333:17: branch_true: ...to here
FreeRDP-3.20.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): [#def693]
FreeRDP-3.20.0/libfreerdp/core/server.c:351:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dvc’
FreeRDP-3.20.0/libfreerdp/core/server.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:291:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:298:12: branch_false: following ‘false’ branch (when ‘Cmd != 5’)...
FreeRDP-3.20.0/libfreerdp/core/server.c:301:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:301:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:301:12: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:304:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:333:17: branch_true: ...to here
FreeRDP-3.20.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): [#def694]
FreeRDP-3.20.0/libfreerdp/core/server.c:578:38: warning[-Wanalyzer-malloc-leak]: leak of ‘WTSVirtualChannelOpen(hServer, 4294967295, "drdynvc")’
FreeRDP-3.20.0/libfreerdp/core/server.c:571:44: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:574:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:576:30: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:578:38: throw: if ‘Stream_StaticInit’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:578:38: danger: ‘WTSVirtualChannelOpen(hServer, 4294967295, "drdynvc")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  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-401): [#def695]
FreeRDP-3.20.0/libfreerdp/core/server.c:1038:35: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1036:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1038:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1038:35: throw: if ‘HashTable_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1038:35: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/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): [#def696]
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:14: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1036:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:65: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:14: throw: if ‘HashTable_Insert’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:14: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/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): [#def697]
FreeRDP-3.20.0/libfreerdp/core/server.c:1048:22: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1048:22: throw: if ‘MessageQueue_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1048:22: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/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): [#def698]
FreeRDP-3.20.0/libfreerdp/core/server.c:1054:39: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1048:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1054:39: throw: if ‘HashTable_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1054:39: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/16/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): [#def699]
FreeRDP-3.20.0/libfreerdp/core/server.c:1054:39: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1054:39: throw: if ‘HashTable_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1054:39: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/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): [#def700]
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1054:39: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: throw: if ‘HashTable_SetHashFunction’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/18/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): [#def701]
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: throw: if ‘HashTable_SetHashFunction’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/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): [#def702]
FreeRDP-3.20.0/libfreerdp/core/server.c:1063:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1048:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1063:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1063:32: throw: if ‘HashTable_ValueObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1063:32: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/21/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): [#def703]
FreeRDP-3.20.0/libfreerdp/core/server.c:1063:32: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1063:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1063:32: throw: if ‘HashTable_ValueObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1063:32: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/20/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): [#def704]
FreeRDP-3.20.0/libfreerdp/core/server.c:1067:23: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1063:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1067:23: throw: if ‘HashTable_KeyObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1067:23: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/22/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): [#def705]
FreeRDP-3.20.0/libfreerdp/core/server.c:1075:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1048:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1060:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1075:9: throw: if ‘HashTable_Free’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1075:9: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/24/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): [#def706]
FreeRDP-3.20.0/libfreerdp/core/server.c:1075:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1056:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1059:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1060:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1075:9: throw: if ‘HashTable_Free’ throws an exception...
FreeRDP-3.20.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): [#def707]
FreeRDP-3.20.0/libfreerdp/core/server.c:1077:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1048:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1056:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1057:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1077:9: throw: if ‘MessageQueue_Free’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1077:9: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/25/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): [#def708]
FreeRDP-3.20.0/libfreerdp/core/server.c:1077:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1053:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1056:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1057:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1077:9: throw: if ‘MessageQueue_Free’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1077:9: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/26/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): [#def709]
FreeRDP-3.20.0/libfreerdp/core/server.c:1079:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vcm’
FreeRDP-3.20.0/libfreerdp/core/server.c:1016:12: branch_false: following ‘false’ branch (when ‘pServerName’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1019:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1021:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1027:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1029:12: branch_false: following ‘false’ branch (when ‘vcm’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1032:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1047:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1050:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1051:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1079:9: throw: if ‘HashTable_Remove’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1079:9: danger: ‘vcm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/27/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): [#def710]
FreeRDP-3.20.0/libfreerdp/core/server.c:1580:41: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 8)’
FreeRDP-3.20.0/libfreerdp/core/server.c:1546:12: branch_true: following ‘true’ branch (when ‘hChannelHandle’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1548:43: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1556:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1568:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1568:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1570:39: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1571:37: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1573:36: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1580:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1584:47: throw: if ‘WTSVirtualChannelWrite’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1580:41: danger: ‘Stream_New(0, 8)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/6)
# 1578|   				else
# 1579|   				{
# 1580|-> 					wts_write_drdynvc_header(s, CLOSE_REQUEST_PDU, channel->channelId);
# 1581|   
# 1582|   					const size_t pos = Stream_GetPosition(s);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def711]
FreeRDP-3.20.0/libfreerdp/core/server.c:2107:9: warning[-Wanalyzer-malloc-leak]: leak of ‘channel’
FreeRDP-3.20.0/libfreerdp/core/server.c:2103:52: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:2104:12: branch_false: following ‘false’ branch (when ‘channel’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:2107:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:2107:9: throw: if ‘InitializeCriticalSection’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:2107:9: danger: ‘channel’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/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): [#def712]
FreeRDP-3.20.0/libfreerdp/core/server.c:2120:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/server.c:2104:12: branch_false: following ‘false’ branch (when ‘channel’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:2107:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:2110:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:2113:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:2113:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:2114:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:2117:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:2120:9: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/30/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-401): [#def713]
FreeRDP-3.20.0/libfreerdp/core/settings.c:427:57: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array((long unsigned int)freerdp_settings_get_uint32(settings, 384))’
FreeRDP-3.20.0/libfreerdp/core/settings.c:537:13: enter_function: entry to ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.20.0/libfreerdp/core/settings.c:541:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:544:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:544:26: call_function: calling ‘alloc_array’ from ‘freerdp_settings_client_monitors_have_gaps’
FreeRDP-3.20.0/libfreerdp/core/settings.c:544:26: return_function: returning to ‘freerdp_settings_client_monitors_have_gaps’ from ‘alloc_array’
FreeRDP-3.20.0/libfreerdp/core/settings.c:547:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:550:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:550:21: throw: if ‘freerdp_settings_get_pointer_array’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/settings.c:427:57: danger: ‘alloc_array((long unsigned int)freerdp_settings_get_uint32(settings, 384))’ leaks here; was allocated at [(6)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/5)
#  425|   {
#  426|   	// NOLINTNEXTLINE(clang-analyzer-unix.MallocSizeof)
#  427|-> 	BYTE* array = calloc(count * sizeof(uintptr_t), count * sizeof(UINT32));
#  428|   	UINT32** dst = (UINT32**)array;
#  429|   	UINT32* val = (UINT32*)(array + count * sizeof(uintptr_t));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def714]
FreeRDP-3.20.0/libfreerdp/core/settings.c:427:57: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array(count)’
FreeRDP-3.20.0/libfreerdp/core/settings.c:444:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:446:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:465:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:467:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:474:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:476:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:517:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:37: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  425|   {
#  426|   	// NOLINTNEXTLINE(clang-analyzer-unix.MallocSizeof)
#  427|-> 	BYTE* array = calloc(count * sizeof(uintptr_t), count * sizeof(UINT32));
#  428|   	UINT32** dst = (UINT32**)array;
#  429|   	UINT32* val = (UINT32*)(array + count * sizeof(uintptr_t));

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
FreeRDP-3.20.0/libfreerdp/core/settings.c:774:22: warning[-Wanalyzer-malloc-leak]: leak of ‘settings’
FreeRDP-3.20.0/libfreerdp/core/settings.c:767:47: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:772:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:774:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:774:22: throw: if ‘freerdp_settings_set_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/settings.c:774:22: danger: ‘settings’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  772|   	if (!server && !remote)
#  773|   	{
#  774|-> 		if (!freerdp_settings_set_string(settings, FreeRDP_GatewayHttpUserAgent,
#  775|   		                                 FREERDP_USER_AGENT))
#  776|   			goto out_fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def722]
FreeRDP-3.20.0/libfreerdp/core/settings.c:816:14: warning[-Wanalyzer-malloc-leak]: leak of ‘settings’
FreeRDP-3.20.0/libfreerdp/core/settings.c:767:47: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:772:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:816:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:816:14: throw: if ‘freerdp_settings_set_uint32’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/settings.c:816:14: danger: ‘settings’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  814|   			goto out_fail;
#  815|   	}
#  816|-> 	if (!freerdp_settings_set_uint32(settings, FreeRDP_SurfaceCommandsSupported,
#  817|   	                                 SURFCMDS_SET_SURFACE_BITS | SURFCMDS_STREAM_SURFACE_BITS |
#  818|   	                                     SURFCMDS_FRAME_MARKER))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def723]
FreeRDP-3.20.0/libfreerdp/core/settings.c:1193:22: warning[-Wanalyzer-malloc-leak]: leak of ‘GetKnownPath(1)’
FreeRDP-3.20.0/libfreerdp/core/settings.c:762:14: enter_function: entry to ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:816:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:821:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:821:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:824:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:824:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:828:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:828:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:831:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:831:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:833:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:833:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:836:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:838:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:838:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:841:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:841:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:847:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:848:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:849:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:850:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:851:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:852:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:859:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:860:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:863:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:864:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:865:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:866:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:867:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:868:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:869:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:870:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:871:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:872:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:873:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:880:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:882:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:883:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:884:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:885:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:887:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:889:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:890:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:891:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:892:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:893:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:895:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:896:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:897:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:898:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:899:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:900:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:901:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:902:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:903:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:904:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:905:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:906:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:907:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:908:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:909:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:910:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:911:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:912:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:914:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:915:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:916:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:917:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:918:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:919:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:920:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:921:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:922:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:923:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:924:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:925:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:926:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:927:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:928:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:929:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:932:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:932:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:936:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:936:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:939:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:939:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:942:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:942:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:945:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:945:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:948:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:948:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:951:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:951:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:954:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:954:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:957:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:957:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: call_function: calling ‘settings_init_computer_name’ from ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: return_function: returning to ‘freerdp_settings_new’ from ‘settings_init_computer_name’
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:963:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:963:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:966:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:966:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:970:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:971:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:987:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:988:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:987:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1000:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1001:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1002:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1003:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1004:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1005:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1006:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1007:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1008:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1011:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1013:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1017:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1019:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1021:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1019:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1023:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1024:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1026:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1024:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1028:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1029:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1033:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1034:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1035:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1037:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1039:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1042:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1044:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1047:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1049:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1083:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1047:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1049:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1083:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1090:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1094:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1095:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1096:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1097:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1098:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1099:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1100:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1102:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1103:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1109:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1111:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1112:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1113:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1114:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1115:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1116:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1117:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1118:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1119:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1120:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1121:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1122:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1123:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1124:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1125:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1126:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1127:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1128:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1129:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1130:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1131:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1132:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1133:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1134:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1135:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1136:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1137:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1140:39: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1141:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1147:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1154:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1157:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1178:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1179:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1180:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1181:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1182:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1185:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1185:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1189:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1189:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1192:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1192:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1193:22: throw: if ‘freerdp_settings_set_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1193:22: danger: ‘GetKnownPath(1)’ leaks here; was allocated at [(361)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/360)
# 1191|   		/* these values are used only by the client part */
# 1192|   		path = GetKnownPath(KNOWN_PATH_HOME);
# 1193|-> 		rc = freerdp_settings_set_string(settings, FreeRDP_HomePath, path);
# 1194|   		free(path);
# 1195|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def724]
FreeRDP-3.20.0/libfreerdp/core/settings.c:1200:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_get_config_path()’
FreeRDP-3.20.0/libfreerdp/core/settings.c:762:14: enter_function: entry to ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:816:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:821:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:821:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:824:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:824:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:828:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:828:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:831:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:831:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:833:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:833:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:836:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:838:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:838:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:841:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:841:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:847:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:848:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:849:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:850:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:851:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:852:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:859:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:860:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:863:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:864:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:865:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:866:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:867:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:868:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:869:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:870:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:871:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:872:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:873:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:880:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:882:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:883:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:884:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:885:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:887:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:889:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:890:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:891:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:892:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:893:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:895:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:896:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:897:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:898:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:899:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:900:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:901:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:902:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:903:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:904:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:905:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:906:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:907:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:908:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:909:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:910:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:911:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:912:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:914:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:915:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:916:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:917:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:918:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:919:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:920:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:921:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:922:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:923:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:924:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:925:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:926:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:927:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:928:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:929:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:932:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:932:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:936:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:936:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:939:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:939:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:942:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:942:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:945:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:945:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:948:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:948:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:951:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:951:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:954:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:954:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:957:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:957:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: call_function: calling ‘settings_init_computer_name’ from ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: return_function: returning to ‘freerdp_settings_new’ from ‘settings_init_computer_name’
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:963:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:963:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:966:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:966:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:970:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:971:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:987:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:988:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:987:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1000:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1001:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1002:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1003:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1004:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1005:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1006:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1007:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1008:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1011:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1013:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1017:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1019:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1021:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1019:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1023:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1024:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1026:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1024:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1028:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1029:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1033:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1034:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1035:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1037:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1039:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1042:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1044:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1047:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1049:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1083:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1047:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1049:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1083:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1090:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1094:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1095:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1096:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1097:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1098:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1099:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1100:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1102:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1103:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1109:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1111:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1112:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1113:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1114:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1115:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1116:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1117:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1118:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1119:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1120:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1121:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1122:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1123:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1124:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1125:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1126:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1127:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1128:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1129:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1130:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1131:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1132:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1133:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1134:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1135:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1136:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1137:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1140:39: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1141:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1147:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1154:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1157:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1178:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1179:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1180:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1181:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1182:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1185:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1185:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1189:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1189:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1192:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1196:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1199:32: call_function: calling ‘freerdp_settings_get_config_path’ from ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:1199:32: return_function: returning to ‘freerdp_settings_new’ from ‘freerdp_settings_get_config_path’
FreeRDP-3.20.0/libfreerdp/core/settings.c:1200:22: throw: if ‘freerdp_settings_set_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1200:22: danger: ‘freerdp_settings_get_config_path()’ leaks here; was allocated at [(365)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/364)
# 1198|   
# 1199|   		char* config = freerdp_settings_get_config_path();
# 1200|-> 		rc = freerdp_settings_set_string(settings, FreeRDP_ConfigPath, config);
# 1201|   		if (rc)
# 1202|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def725]
FreeRDP-3.20.0/libfreerdp/core/settings.c:1203:40: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_get_config_path()’
FreeRDP-3.20.0/libfreerdp/core/settings.c:762:14: enter_function: entry to ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:816:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:821:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:821:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:824:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:824:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:828:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:828:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:831:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:831:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:833:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:833:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:836:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:838:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:838:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:841:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:841:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:847:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:848:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:849:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:850:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:851:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:852:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:859:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:860:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:863:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:864:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:865:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:866:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:867:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:868:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:869:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:870:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:871:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:872:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:873:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:880:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:882:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:883:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:884:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:885:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:887:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:889:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:890:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:891:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:892:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:893:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:895:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:896:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:897:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:898:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:899:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:900:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:901:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:902:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:903:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:904:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:905:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:906:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:907:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:908:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:909:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:910:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:911:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:912:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:914:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:915:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:916:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:917:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:918:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:919:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:920:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:921:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:922:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:923:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:924:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:925:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:926:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:927:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:928:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:929:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:932:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:932:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:936:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:936:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:939:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:939:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:942:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:942:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:945:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:945:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:948:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:948:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:951:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:951:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:954:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:954:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:957:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:957:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: call_function: calling ‘settings_init_computer_name’ from ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: return_function: returning to ‘freerdp_settings_new’ from ‘settings_init_computer_name’
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:963:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:963:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:966:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:966:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:970:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:971:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:987:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:988:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:987:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1000:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1001:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1002:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1003:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1004:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1005:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1006:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1007:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1008:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1011:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1013:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1017:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1019:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1021:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1019:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1023:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1024:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1026:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1024:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1028:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1029:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1033:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1034:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1035:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1037:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1039:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1042:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1044:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1047:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1049:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1083:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1047:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1049:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1083:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1090:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1094:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1095:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1096:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1097:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1098:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1099:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1100:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1102:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1103:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1109:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1111:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1112:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1113:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1114:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1115:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1116:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1117:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1118:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1119:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1120:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1121:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1122:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1123:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1124:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1125:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1126:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1127:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1128:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1129:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1130:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1131:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1132:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1133:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1134:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1135:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1136:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1137:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1140:39: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1141:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1147:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1154:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1157:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1178:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1179:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1180:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1181:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1182:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1185:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1185:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1189:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1189:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1192:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1196:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1199:32: call_function: calling ‘freerdp_settings_get_config_path’ from ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:1199:32: return_function: returning to ‘freerdp_settings_new’ from ‘freerdp_settings_get_config_path’
FreeRDP-3.20.0/libfreerdp/core/settings.c:1201:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1203:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1203:40: throw: if ‘GetCombinedPath’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1203:40: danger: ‘freerdp_settings_get_config_path()’ leaks here; was allocated at [(365)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/364)
# 1201|   		if (rc)
# 1202|   		{
# 1203|-> 			char* action = GetCombinedPath(config, "action.sh");
# 1204|   			rc = freerdp_settings_set_string(settings, FreeRDP_ActionScript, action);
# 1205|   			free(action);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def726]
FreeRDP-3.20.0/libfreerdp/core/settings.c:1204:30: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(freerdp_settings_get_config_path(), "action.sh")’
FreeRDP-3.20.0/libfreerdp/core/settings.c:762:14: enter_function: entry to ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:816:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:821:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:821:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:824:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:824:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:828:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:828:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:831:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:831:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:833:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:833:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:836:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:838:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:838:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:841:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:841:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:847:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:848:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:849:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:850:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:851:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:852:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:859:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:860:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:863:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:864:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:865:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:866:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:867:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:868:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:869:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:870:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:871:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:872:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:873:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:880:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:882:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:883:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:884:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:885:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:887:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:889:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:890:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:891:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:892:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:893:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:895:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:896:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:897:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:898:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:899:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:900:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:901:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:902:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:903:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:904:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:905:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:906:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:907:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:908:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:909:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:910:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:911:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:912:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:914:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:915:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:916:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:917:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:918:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:919:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:920:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:921:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:922:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:923:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:924:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:925:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:926:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:927:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:928:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:929:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:932:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:932:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:936:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:936:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:939:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:939:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:942:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:942:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:945:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:945:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:948:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:948:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:951:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:951:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:954:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:954:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:957:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:957:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: call_function: calling ‘settings_init_computer_name’ from ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: return_function: returning to ‘freerdp_settings_new’ from ‘settings_init_computer_name’
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:963:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:963:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:966:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:966:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:970:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:971:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:987:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:988:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:987:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1000:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1001:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1002:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1003:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1004:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1005:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1006:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1007:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1008:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1011:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1013:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1017:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1019:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1021:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1019:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1023:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1024:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1026:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1024:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1028:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1029:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1033:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1034:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1035:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1037:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1039:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1042:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1044:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1047:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1049:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1083:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1047:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1049:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1083:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1090:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1094:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1095:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1096:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1097:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1098:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1099:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1100:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1102:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1103:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1109:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1111:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1112:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1113:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1114:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1115:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1116:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1117:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1118:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1119:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1120:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1121:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1122:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1123:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1124:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1125:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1126:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1127:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1128:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1129:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1130:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1131:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1132:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1133:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1134:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1135:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1136:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1137:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1140:39: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1141:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1147:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1154:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1157:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1178:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1179:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1180:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1181:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1182:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1185:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1185:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1189:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1189:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1192:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1196:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1201:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1203:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1203:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1204:30: throw: if ‘freerdp_settings_set_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1204:30: danger: ‘GetCombinedPath(freerdp_settings_get_config_path(), "action.sh")’ leaks here; was allocated at [(365)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/364)
# 1202|   		{
# 1203|   			char* action = GetCombinedPath(config, "action.sh");
# 1204|-> 			rc = freerdp_settings_set_string(settings, FreeRDP_ActionScript, action);
# 1205|   			free(action);
# 1206|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def727]
FreeRDP-3.20.0/libfreerdp/core/settings.c:1204:30: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_get_config_path()’
FreeRDP-3.20.0/libfreerdp/core/settings.c:762:14: enter_function: entry to ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: following ‘false’ branch (when ‘settings’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:769:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:816:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:821:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:821:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:824:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:824:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:828:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:828:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:831:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:831:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:833:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:833:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:836:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:838:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:838:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:841:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:841:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:847:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:848:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:849:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:850:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:851:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:852:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:859:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:860:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:863:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:864:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:865:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:866:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:867:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:868:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:869:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:870:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:871:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:872:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:873:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:874:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:875:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:876:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:877:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:878:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:879:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:880:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:881:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:882:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:883:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:884:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:885:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:887:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:889:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:890:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:891:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:892:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:893:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:895:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:896:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:897:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:898:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:899:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:900:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:901:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:902:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:903:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:904:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:905:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:906:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:907:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:908:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:909:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:910:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:911:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:912:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:914:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:915:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:916:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:917:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:918:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:919:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:920:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:921:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:922:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:923:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:924:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:925:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:926:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:927:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:928:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:929:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:846:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:932:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:932:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:936:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:936:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:939:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:939:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:942:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:942:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:945:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:945:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:948:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:948:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:951:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:951:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:954:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:954:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:957:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:957:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: call_function: calling ‘settings_init_computer_name’ from ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:14: return_function: returning to ‘freerdp_settings_new’ from ‘settings_init_computer_name’
FreeRDP-3.20.0/libfreerdp/core/settings.c:960:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:963:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:963:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:966:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:966:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:970:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:971:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:987:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:988:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:987:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1000:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1001:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1002:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1003:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1004:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1005:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1006:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1007:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1008:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:998:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1011:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1013:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1017:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1019:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1021:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1019:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1023:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1024:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1026:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1024:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1028:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1029:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1033:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1034:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1035:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1032:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1037:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1039:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1042:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1044:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1044:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1047:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1049:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1083:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1047:28: branch_true: following ‘true’ branch (when ‘x != 10’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1049:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1083:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1090:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1094:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1095:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1096:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1097:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1098:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1099:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1100:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1102:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1103:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1109:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1111:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1112:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1113:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1114:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1115:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1116:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1117:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1118:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1119:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1120:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1121:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1122:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1123:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1124:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1125:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1126:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1127:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1128:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1129:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1130:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1131:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1132:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1133:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1134:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1135:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1136:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1137:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1093:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1140:39: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1141:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1147:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1259:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1154:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1157:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1178:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1179:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1180:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1181:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1182:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1177:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1185:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1185:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1189:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1189:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1192:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1196:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1199:32: call_function: calling ‘freerdp_settings_get_config_path’ from ‘freerdp_settings_new’
FreeRDP-3.20.0/libfreerdp/core/settings.c:1199:32: return_function: returning to ‘freerdp_settings_new’ from ‘freerdp_settings_get_config_path’
FreeRDP-3.20.0/libfreerdp/core/settings.c:1201:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1203:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1204:30: throw: if ‘freerdp_settings_set_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1204:30: danger: ‘freerdp_settings_get_config_path()’ leaks here; was allocated at [(365)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/364)
# 1202|   		{
# 1203|   			char* action = GetCombinedPath(config, "action.sh");
# 1204|-> 			rc = freerdp_settings_set_string(settings, FreeRDP_ActionScript, action);
# 1205|   			free(action);
# 1206|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def728]
FreeRDP-3.20.0/libfreerdp/core/settings.c:1263:9: warning[-Wanalyzer-malloc-leak]: leak of ‘_settings’
FreeRDP-3.20.0/libfreerdp/core/settings.c:1520:14: enter_function: entry to ‘freerdp_settings_clone’
FreeRDP-3.20.0/libfreerdp/core/settings.c:1522:48: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1524:14: call_function: calling ‘freerdp_settings_copy’ from ‘freerdp_settings_clone’
# 1261|   static void freerdp_settings_free_internal(rdpSettings* settings)
# 1262|   {
# 1263|-> 	freerdp_server_license_issuers_free(settings);
# 1264|   	freerdp_target_net_addresses_free(settings);
# 1265|   	freerdp_device_collection_free(settings);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def729]
FreeRDP-3.20.0/libfreerdp/core/settings.c:1339:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_clone(*settings.RdpServerCertificate)’
FreeRDP-3.20.0/libfreerdp/core/settings.c:1296:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1305:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1320:28: branch_true: following ‘true’ branch (when ‘i != 11’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1323:66: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1326:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1320:56: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1326:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1320:56: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1330:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1334:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1334:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1336:40: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1336:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1337:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:1339:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:1339:22: danger: ‘freerdp_certificate_clone(*settings.RdpServerCertificate)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/12)
# 1337|   		if (!cert)
# 1338|   			goto out_fail;
# 1339|-> 		if (!freerdp_settings_set_pointer_len(_settings, FreeRDP_RdpServerCertificate, cert, 1))
# 1340|   			goto out_fail;
# 1341|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def730]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def731]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def732]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:162:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def733]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:162:23: warning[-Wanalyzer-malloc-leak]: leak of ‘cert_list’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def734]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:162:23: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def735]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:162:51: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def736]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:166:31: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def737]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:166:31: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def738]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:410:33: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def739]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:417:21: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def740]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:420:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def741]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:428:29: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def742]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:433:26: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def743]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:509:26: warning[-Wanalyzer-malloc-leak]: leak of ‘certBytes’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def744]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:531:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def745]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:533:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def746]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:736:29: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def747]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:736:29: warning[-Wanalyzer-malloc-leak]: leak of ‘cert_list’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def748]
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:736:29: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.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): [#def749]
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:175:13: warning[-Wanalyzer-malloc-leak]: leak of ‘stream_dump_get_file(*context.settings, "ab")’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:193:9: enter_function: entry to ‘stream_dump_append’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:201:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:207:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:210:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:210:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:213:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:213:14: call_function: calling ‘stream_dump_get_file’ from ‘stream_dump_append’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:213:14: return_function: returning to ‘stream_dump_append’ from ‘stream_dump_get_file’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:214:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:217:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:217:13: call_function: inlined call to ‘_fseeki64’ from ‘stream_dump_append’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:175:13: danger: ‘stream_dump_get_file(*context.settings, "ab")’ leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
#  173|   	FILE* fp = NULL;
#  174|   
#  175|-> 	if (!settings || !mode)
#  176|   		return NULL;
#  177|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def750]
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:175:13: warning[-Wanalyzer-malloc-leak]: leak of ‘stream_dump_get_file(*context.settings, "rb")’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:240:9: enter_function: entry to ‘stream_dump_get’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:247:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:249:14: call_function: calling ‘stream_dump_get_file’ from ‘stream_dump_get’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:249:14: return_function: returning to ‘stream_dump_get’ from ‘stream_dump_get_file’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:250:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:252:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:252:13: call_function: inlined call to ‘_fseeki64’ from ‘stream_dump_get’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:175:13: danger: ‘stream_dump_get_file(*context.settings, "rb")’ leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
#  173|   	FILE* fp = NULL;
#  174|   
#  175|-> 	if (!settings || !mode)
#  176|   		return NULL;
#  177|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def751]
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:187:14: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:175:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:178:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:179:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:182:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:182:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:184:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:187:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:187:14: throw: if ‘winpr_fopen’ throws an exception...
FreeRDP-3.20.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): [#def752]
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:481:21: warning[-Wanalyzer-malloc-leak]: leak of ‘dump’
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:478:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:479:12: branch_false: following ‘false’ branch (when ‘dump’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:481:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/streamdump.c:481:21: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.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): [#def753]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:362:13: warning[-Wanalyzer-malloc-leak]: leak of ‘WSACreateEvent()’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:356:23: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:358:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:362:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:362:13: danger: ‘WSACreateEvent()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/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): [#def754]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:405:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:400:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:402:12: branch_false: following ‘false’ branch (when ‘ptr’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:405:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:405:9: throw: if ‘BIO_set_data’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:405:9: danger: ‘ptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/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): [#def755]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:620:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:615:43: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:617:12: branch_false: following ‘false’ branch (when ‘ptr’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:620:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:620:9: throw: if ‘BIO_set_data’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:620:9: danger: ‘ptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/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-401): [#def756]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:675:17: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_tcp_address_to_string(*addr.ai_addr, 0)’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1114:5: enter_function: entry to ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1121:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1128:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1135:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1195:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1216:34: call_function: calling ‘freerdp_tcp_resolve_host’ from ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1216:34: return_function: returning to ‘freerdp_tcp_default_connect’ from ‘freerdp_tcp_resolve_host’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1218:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1224:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1232:29: call_function: calling ‘get_next_addrinfo’ from ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1232:29: return_function: returning to ‘freerdp_tcp_default_connect’ from ‘get_next_addrinfo’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1233:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1233:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1239:36: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1246:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1246:34: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1249:70: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1248:44: call_function: calling ‘freerdp_tcp_address_to_string’ from ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1248:44: return_function: returning to ‘freerdp_tcp_default_connect’ from ‘freerdp_tcp_address_to_string’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1248:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1251:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1251:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_tcp_default_connect’
#  673|   	}
#  674|   
#  675|-> 	switch (sockaddr_ipv4->sin_family)
#  676|   	{
#  677|   		case AF_INET:

Error: GCC_ANALYZER_WARNING (CWE-775): [#def757]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:704:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1114:5: enter_function: entry to ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1121:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1128:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1135:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1195:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1216:34: call_function: calling ‘freerdp_tcp_resolve_host’ from ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1216:34: return_function: returning to ‘freerdp_tcp_default_connect’ from ‘freerdp_tcp_resolve_host’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1218:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1224:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1232:29: call_function: calling ‘get_next_addrinfo’ from ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1232:29: return_function: returning to ‘freerdp_tcp_default_connect’ from ‘get_next_addrinfo’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1233:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1233:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1238:42: acquire_resource: socket created here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1239:36: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1246:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1246:34: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1249:70: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1248:44: call_function: calling ‘freerdp_tcp_address_to_string’ from ‘freerdp_tcp_default_connect’
#  702|   	}
#  703|   
#  704|-> 	return _strdup(ipAddress);
#  705|   }
#  706|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def758]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:781:18: warning[-Wanalyzer-malloc-leak]: leak of ‘events’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:893:12: enter_function: entry to ‘freerdp_tcp_connect_multi’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:901:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:911:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:913:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:915:20: branch_true: following ‘true’ branch (when ‘ports’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:916:35: branch_true: ...to here
FreeRDP-3.20.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): [#def759]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:781:18: warning[-Wanalyzer-malloc-leak]: leak of ‘peers’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:893:12: enter_function: entry to ‘freerdp_tcp_connect_multi’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:902:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:911:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:913:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:915:20: branch_true: following ‘true’ branch (when ‘ports’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:916:35: branch_true: ...to here
FreeRDP-3.20.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-775): [#def760]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:814:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1114:5: enter_function: entry to ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1121:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1128:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1135:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1195:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1216:34: call_function: calling ‘freerdp_tcp_resolve_host’ from ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1216:34: return_function: returning to ‘freerdp_tcp_default_connect’ from ‘freerdp_tcp_resolve_host’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1218:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1224:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1232:29: call_function: calling ‘get_next_addrinfo’ from ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1232:29: return_function: returning to ‘freerdp_tcp_default_connect’ from ‘get_next_addrinfo’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1233:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1233:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1238:42: acquire_resource: socket created here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1239:36: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1246:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1246:34: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1249:70: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1248:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1255:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1255:30: call_function: calling ‘freerdp_tcp_connect_timeout’ from ‘freerdp_tcp_default_connect’
#  812|   	DWORD tout = (timeout > 0) ? timeout : INFINITE;
#  813|   
#  814|-> 	handles[count] = CreateEvent(NULL, TRUE, FALSE, NULL);
#  815|   
#  816|   	if (!handles[count])

Error: GCC_ANALYZER_WARNING (CWE-775): [#def761]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:819:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1114:5: enter_function: entry to ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1121:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1128:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1135:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1195:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1216:34: call_function: calling ‘freerdp_tcp_resolve_host’ from ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1216:34: return_function: returning to ‘freerdp_tcp_default_connect’ from ‘freerdp_tcp_resolve_host’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1218:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1224:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1232:29: call_function: calling ‘get_next_addrinfo’ from ‘freerdp_tcp_default_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1232:29: return_function: returning to ‘freerdp_tcp_default_connect’ from ‘get_next_addrinfo’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1233:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1233:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1238:42: acquire_resource: socket created here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1239:36: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1246:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1246:34: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1249:70: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1248:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1255:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1255:30: call_function: calling ‘freerdp_tcp_connect_timeout’ from ‘freerdp_tcp_default_connect’
#  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): [#def762]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:819:31: warning[-Wanalyzer-malloc-leak]: leak of ‘handles[0]’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:814:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:816:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:819:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:819:31: throw: if ‘WSAEventSelect’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:819:31: danger: ‘handles[0]’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/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): [#def763]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:937:34: warning[-Wanalyzer-malloc-leak]: leak of ‘events’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:893:12: enter_function: entry to ‘freerdp_tcp_connect_multi’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:901:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:911:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:913:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:915:20: branch_true: following ‘true’ branch (when ‘ports’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:916:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:918:26: call_function: calling ‘freerdp_tcp_resolve_host’ from ‘freerdp_tcp_connect_multi’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:918:26: return_function: returning to ‘freerdp_tcp_connect_multi’ from ‘freerdp_tcp_resolve_host’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:920:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:925:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:937:34: throw: if ‘_socket’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:937:34: danger: ‘events’ leaks here; was allocated at [(2)](sarif:/runs/0/results/24/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): [#def764]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:937:34: warning[-Wanalyzer-malloc-leak]: leak of ‘peers’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:893:12: enter_function: entry to ‘freerdp_tcp_connect_multi’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:902:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:911:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:913:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:915:20: branch_true: following ‘true’ branch (when ‘ports’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:916:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:918:26: call_function: calling ‘freerdp_tcp_resolve_host’ from ‘freerdp_tcp_connect_multi’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:918:26: return_function: returning to ‘freerdp_tcp_connect_multi’ from ‘freerdp_tcp_resolve_host’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:920:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:925:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:937:34: throw: if ‘_socket’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:937:34: danger: ‘peers’ leaks here; was allocated at [(2)](sarif:/runs/0/results/25/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): [#def765]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:959:21: warning[-Wanalyzer-malloc-leak]: leak of ‘events’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:901:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:915:20: branch_true: following ‘true’ branch (when ‘ports’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:916:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:920:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:920:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:911:32: branch_false: following ‘false’ branch (when ‘index >= count’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:911:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:949:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:951:31: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:959:21: throw: if ‘_connect’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:959:21: danger: ‘events’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/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): [#def766]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:959:21: warning[-Wanalyzer-malloc-leak]: leak of ‘peers’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:902:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:915:20: branch_true: following ‘true’ branch (when ‘ports’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:916:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:920:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:920:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:911:32: branch_false: following ‘false’ branch (when ‘index >= count’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:911:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:949:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:951:31: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:959:21: throw: if ‘_connect’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:959:21: danger: ‘peers’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/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): [#def767]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:975:17: warning[-Wanalyzer-malloc-leak]: leak of ‘events’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:901:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:969:12: branch_false: following ‘false’ branch (when ‘sindex >= count’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:975:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:975:17: throw: if ‘freerdp_set_last_error_ex’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:975:17: danger: ‘events’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/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): [#def768]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:975:17: warning[-Wanalyzer-malloc-leak]: leak of ‘peers’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:902:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:904:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:969:12: branch_false: following ‘false’ branch (when ‘sindex >= count’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:975:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:975:17: throw: if ‘freerdp_set_last_error_ex’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:975:17: danger: ‘peers’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/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): [#def769]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1172:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1121:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1128:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1135:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1151:26: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1151:26: acquire_resource: stream socket created here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1152:20: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1161:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1172:25: throw: if ‘winpr_strerror’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1172:25: danger: ‘sockfd’ leaks here
# 1170|   		{
# 1171|   			char ebuffer[256] = { 0 };
# 1172|-> 			WLog_ERR(TAG, "could not extract port from '%s', value=%ul, error=%s", hostname, val,
# 1173|   			         winpr_strerror(errno, ebuffer, sizeof(ebuffer)));
# 1174|   			return -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def770]
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1290:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1121:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1128:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1135:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1151:26: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1151:26: acquire_resource: stream socket created here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1152:20: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1161:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1169:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1181:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1335:1: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1271:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1288:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1288:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1290:23: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1290:23: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1290:23: danger: ‘sockfd’ leaks here
# 1288|   	if (!ipcSocket && !useExternalDefinedSocket)
# 1289|   	{
# 1290|-> 		(void)freerdp_tcp_set_nodelay(WLog_Get(TAG), WLOG_ERROR, sockfd);
# 1291|   	}
# 1292|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def771]
FreeRDP-3.20.0/libfreerdp/core/test/TestSettings.c:1584:9: warning[-Wanalyzer-double-free]: double-‘freerdp_settings_free’ of ‘dst’
FreeRDP-3.20.0/libfreerdp/core/test/TestSettings.c:1566:12: branch_true: following ‘true’ branch (when ‘src’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/test/TestSettings.c:1567:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/test/TestSettings.c:1584:9: danger: second ‘freerdp_settings_free’ here
# 1582|   fail:
# 1583|   	freerdp_settings_free(src);
# 1584|-> 	freerdp_settings_free(dst);
# 1585|   	free(str);
# 1586|   

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def775]
FreeRDP-3.20.0/libfreerdp/core/timer.c:283:24: warning[-Wanalyzer-malloc-leak]: leak of ‘timer’
FreeRDP-3.20.0/libfreerdp/core/timer.c:270:31: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/timer.c:271:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/timer.c:273:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:276:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/timer.c:278:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:283:24: throw: if ‘CreateEventA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/timer.c:283:24: danger: ‘timer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  281|   	obj->fnObjectFree = free;
#  282|   
#  283|-> 	timer->event = CreateEventA(NULL, TRUE, FALSE, NULL);
#  284|   	if (!timer->event)
#  285|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def776]
FreeRDP-3.20.0/libfreerdp/core/timer.c:287:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/timer.c:271:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/timer.c:273:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:276:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/timer.c:278:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:283:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/timer.c:284:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/timer.c:287:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:287:28: throw: if ‘CreateEventA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/timer.c:287:28: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  285|   		goto fail;
#  286|   
#  287|-> 	timer->mainevent = CreateEventA(NULL, TRUE, FALSE, NULL);
#  288|   	if (!timer->mainevent)
#  289|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def777]
FreeRDP-3.20.0/libfreerdp/core/timer.c:287:28: warning[-Wanalyzer-malloc-leak]: leak of ‘timer’
FreeRDP-3.20.0/libfreerdp/core/timer.c:270:31: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/timer.c:271:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/timer.c:273:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:276:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/timer.c:278:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:284:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/timer.c:287:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:287:28: throw: if ‘CreateEventA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/timer.c:287:28: danger: ‘timer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  285|   		goto fail;
#  286|   
#  287|-> 	timer->mainevent = CreateEventA(NULL, TRUE, FALSE, NULL);
#  288|   	if (!timer->mainevent)
#  289|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def778]
FreeRDP-3.20.0/libfreerdp/core/timer.c:293:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/timer.c:271:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/timer.c:273:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:276:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/timer.c:278:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:283:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/timer.c:284:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/timer.c:287:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/timer.c:292:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:293:25: throw: if ‘CreateThread’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/timer.c:293:25: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  291|   #if defined(FREERDP_TIMER_SUPPORTED)
#  292|   	timer->running = true;
#  293|-> 	timer->thread = CreateThread(NULL, 0, timer_thread, timer, 0, NULL);
#  294|   	if (!timer->thread)
#  295|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def779]
FreeRDP-3.20.0/libfreerdp/core/timer.c:293:25: warning[-Wanalyzer-malloc-leak]: leak of ‘timer’
FreeRDP-3.20.0/libfreerdp/core/timer.c:270:31: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/timer.c:271:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/timer.c:273:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:276:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/timer.c:278:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:284:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/timer.c:287:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/timer.c:292:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/timer.c:293:25: throw: if ‘CreateThread’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/timer.c:293:25: danger: ‘timer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  291|   #if defined(FREERDP_TIMER_SUPPORTED)
#  292|   	timer->running = true;
#  293|-> 	timer->thread = CreateThread(NULL, 0, timer_thread, timer, 0, NULL);
#  294|   	if (!timer->thread)
#  295|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def780]
FreeRDP-3.20.0/libfreerdp/core/transport.c:468:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rdstls_new(transport_get_context(transport), transport)’
FreeRDP-3.20.0/libfreerdp/core/transport.c:448:6: enter_function: entry to ‘transport_connect_rdstls’
FreeRDP-3.20.0/libfreerdp/core/transport.c:459:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:462:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:462:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:463:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:466:9: call_function: inlined call to ‘transport_set_rdstls_mode’ from ‘transport_connect_rdstls’
FreeRDP-3.20.0/libfreerdp/core/transport.c:468:13: throw: if ‘rdstls_authenticate’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:468:13: danger: ‘rdstls_new(transport_get_context(transport), transport)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/3)
#  466|   	transport_set_rdstls_mode(transport, TRUE);
#  467|   
#  468|-> 	if (rdstls_authenticate(rdstls) < 0)
#  469|   	{
#  470|   		WLog_Print(transport->log, WLOG_ERROR, "RDSTLS authentication failed");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def781]
FreeRDP-3.20.0/libfreerdp/core/transport.c:773:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rdstls_new(transport_get_context(transport), transport)’
FreeRDP-3.20.0/libfreerdp/core/transport.c:753:6: enter_function: entry to ‘transport_accept_rdstls’
FreeRDP-3.20.0/libfreerdp/core/transport.c:764:14: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:764:14: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:764:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:767:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:767:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:768:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:771:9: call_function: inlined call to ‘transport_set_rdstls_mode’ from ‘transport_accept_rdstls’
FreeRDP-3.20.0/libfreerdp/core/transport.c:773:13: throw: if ‘rdstls_authenticate’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:773:13: danger: ‘rdstls_new(transport_get_context(transport), transport)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/5)
#  771|   	transport_set_rdstls_mode(transport, TRUE);
#  772|   
#  773|-> 	if (rdstls_authenticate(rdstls) < 0)
#  774|   	{
#  775|   		WLog_Print(transport->log, WLOG_ERROR, "client authentication failure");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def782]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1700:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1704|   		return NULL;
# 1705|   
# 1706|-> 	transport->log = WLog_Get(TAG);
# 1707|   
# 1708|   	if (!transport->log)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def783]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1712:34: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1700:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1711:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1712:34: throw: if ‘StreamPool_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1712:34: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 1710|   
# 1711|   	transport->context = context;
# 1712|-> 	transport->ReceivePool = StreamPool_New(TRUE, BUFFER_SIZE);
# 1713|   
# 1714|   	if (!transport->ReceivePool)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def784]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1711:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1712:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1714:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: throw: if ‘StreamPool_Take’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
# 1716|   
# 1717|   	/* receive buffer for non-blocking read. */
# 1718|-> 	transport->ReceiveBuffer = StreamPool_Take(transport->ReceivePool, 0);
# 1719|   
# 1720|   	if (!transport->ReceiveBuffer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def785]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1700:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1711:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1714:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: throw: if ‘StreamPool_Take’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 1716|   
# 1717|   	/* receive buffer for non-blocking read. */
# 1718|-> 	transport->ReceiveBuffer = StreamPool_Take(transport->ReceivePool, 0);
# 1719|   
# 1720|   	if (!transport->ReceiveBuffer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def786]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1711:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1714:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1720:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: throw: if ‘CreateEventA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
# 1721|   		goto fail;
# 1722|   
# 1723|-> 	transport->connectedEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1724|   
# 1725|   	if (!transport->connectedEvent || transport->connectedEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def787]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1700:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1711:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1714:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1720:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: throw: if ‘CreateEventA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1721|   		goto fail;
# 1722|   
# 1723|-> 	transport->connectedEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1724|   
# 1725|   	if (!transport->connectedEvent || transport->connectedEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def788]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1711:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1714:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1720:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1725:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: throw: if ‘CreateEventA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
# 1726|   		goto fail;
# 1727|   
# 1728|-> 	transport->rereadEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1729|   
# 1730|   	if (!transport->rereadEvent || transport->rereadEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def789]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1700:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1711:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1714:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1720:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1725:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: throw: if ‘CreateEventA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1726|   		goto fail;
# 1727|   
# 1728|-> 	transport->rereadEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1729|   
# 1730|   	if (!transport->rereadEvent || transport->rereadEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def790]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1733:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1711:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1714:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1720:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1725:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1730:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1733:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1733:30: throw: if ‘CreateEventA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1733:30: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
# 1731|   		goto fail;
# 1732|   
# 1733|-> 	transport->ioEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1734|   
# 1735|   	if (!transport->ioEvent || transport->ioEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def791]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1733:30: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1700:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1711:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1714:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1720:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1725:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1730:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1733:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1733:30: throw: if ‘CreateEventA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1733:30: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 1731|   		goto fail;
# 1732|   
# 1733|-> 	transport->ioEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1734|   
# 1735|   	if (!transport->ioEvent || transport->ioEvent == INVALID_HANDLE_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def792]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1743:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1711:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1714:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1720:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1725:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1730:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1733:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1735:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1738:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1743:14: throw: if ‘InitializeCriticalSectionAndSpinCount’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1743:14: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
# 1741|   	transport->layer = TRANSPORT_LAYER_TCP;
# 1742|   
# 1743|-> 	if (!InitializeCriticalSectionAndSpinCount(&(transport->ReadLock), 4000))
# 1744|   		goto fail;
# 1745|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def793]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1743:14: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1700:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1711:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1714:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1718:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1720:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1723:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1725:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1728:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1730:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1733:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1735:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1738:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1743:14: throw: if ‘InitializeCriticalSectionAndSpinCount’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1743:14: danger: ‘transport’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 1741|   	transport->layer = TRANSPORT_LAYER_TCP;
# 1742|   
# 1743|-> 	if (!InitializeCriticalSectionAndSpinCount(&(transport->ReadLock), 4000))
# 1744|   		goto fail;
# 1745|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def794]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1779:9: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1698:15: enter_function: entry to ‘transport_new’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1700:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1709:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1767:9: call_function: calling ‘transport_free’ from ‘transport_new’
# 1777|   	transport_disconnect(transport);
# 1778|   
# 1779|-> 	EnterCriticalSection(&(transport->ReadLock));
# 1780|   	if (transport->ReceiveBuffer)
# 1781|   		Stream_Release(transport->ReceiveBuffer);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def795]
FreeRDP-3.20.0/libfreerdp/core/transport.c:1991:16: warning[-Wanalyzer-malloc-leak]: leak of ‘layer’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1976:62: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1977:12: branch_false: following ‘false’ branch (when ‘layer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1980:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1980:12: branch_false: following ‘false’ branch (when ‘contextSize == 0’)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1989:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1991:16: danger: ‘layer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
# 1989|   	layer->pub.userContext = layer->userContextShadowPtr;
# 1990|   
# 1991|-> 	return &layer->pub;
# 1992|   }
# 1993|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def796]
FreeRDP-3.20.0/libfreerdp/core/update.c:240:14: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapUpdate’
FreeRDP-3.20.0/libfreerdp/core/update.c:839:6: enter_function: entry to ‘update_recv’
FreeRDP-3.20.0/libfreerdp/core/update.c:848:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:851:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv’
FreeRDP-3.20.0/libfreerdp/core/update.c:854:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:857:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:865:56: call_function: calling ‘update_read_bitmap_update’ from ‘update_recv’
#  238|   		goto fail;
#  239|   
#  240|-> 	if (!Stream_CheckAndLogRequiredLength(TAG, s, 2))
#  241|   		goto fail;
#  242|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def797]
FreeRDP-3.20.0/libfreerdp/core/update.c:262:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmapUpdate’
FreeRDP-3.20.0/libfreerdp/core/update.c:839:6: enter_function: entry to ‘update_recv’
FreeRDP-3.20.0/libfreerdp/core/update.c:848:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:851:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv’
FreeRDP-3.20.0/libfreerdp/core/update.c:854:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:857:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:865:56: call_function: calling ‘update_read_bitmap_update’ from ‘update_recv’
#  260|   	WINPR_PRAGMA_DIAG_PUSH
#  261|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  262|-> 	free_bitmap_update(update->context, bitmapUpdate);
#  263|   	WINPR_PRAGMA_DIAG_POP
#  264|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def798]
FreeRDP-3.20.0/libfreerdp/core/update.c:262:9: warning[-Wanalyzer-mismatching-deallocation]: ‘bitmapUpdate’ should have been deallocated with ‘free’ but was deallocated with ‘free_bitmap_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:839:6: enter_function: entry to ‘update_recv’
FreeRDP-3.20.0/libfreerdp/core/update.c:848:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:851:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv’
FreeRDP-3.20.0/libfreerdp/core/update.c:854:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:857:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:865:56: call_function: calling ‘update_read_bitmap_update’ from ‘update_recv’
#  260|   	WINPR_PRAGMA_DIAG_PUSH
#  261|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  262|-> 	free_bitmap_update(update->context, bitmapUpdate);
#  263|   	WINPR_PRAGMA_DIAG_POP
#  264|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def799]
FreeRDP-3.20.0/libfreerdp/core/update.c:297:14: warning[-Wanalyzer-malloc-leak]: leak of ‘palette_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:292:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:294:12: branch_false: following ‘false’ branch (when ‘palette_update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:297:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:297:14: throw: if ‘Stream_CheckAndLogRequiredLengthEx’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:297:14: danger: ‘palette_update’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#  295|   		goto fail;
#  296|   
#  297|-> 	if (!Stream_CheckAndLogRequiredLength(TAG, s, 6))
#  298|   		goto fail;
#  299|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def800]
FreeRDP-3.20.0/libfreerdp/core/update.c:306:14: warning[-Wanalyzer-malloc-leak]: leak of ‘palette_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:290:17: enter_function: entry to ‘update_read_palette’
FreeRDP-3.20.0/libfreerdp/core/update.c:292:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:294:12: branch_false: following ‘false’ branch (when ‘palette_update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:297:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:297:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:300:9: call_function: inlined call to ‘Stream_Seek_UINT16’ from ‘update_read_palette’
FreeRDP-3.20.0/libfreerdp/core/update.c:301:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘update_read_palette’
FreeRDP-3.20.0/libfreerdp/core/update.c:306:14: throw: if ‘Stream_CheckAndLogRequiredLengthEx’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:306:14: danger: ‘palette_update’ leaks here; was allocated at [(2)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/1)
#  304|   		palette_update->number = 256;
#  305|   
#  306|-> 	if (!Stream_CheckAndLogRequiredLengthOfSize(TAG, s, palette_update->number, 3ull))
#  307|   		goto fail;
#  308|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def801]
FreeRDP-3.20.0/libfreerdp/core/update.c:322:9: warning[-Wanalyzer-malloc-leak]: leak of ‘palette_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:292:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:294:12: branch_false: following ‘false’ branch (when ‘palette_update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:297:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:297:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:298:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:322:9: throw: if ‘free_palette_update’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:322:9: danger: ‘palette_update’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  320|   	WINPR_PRAGMA_DIAG_PUSH
#  321|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  322|-> 	free_palette_update(update->context, palette_update);
#  323|   	WINPR_PRAGMA_DIAG_POP
#  324|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def802]
FreeRDP-3.20.0/libfreerdp/core/update.c:322:9: warning[-Wanalyzer-mismatching-deallocation]: ‘palette_update’ should have been deallocated with ‘free’ but was deallocated with ‘free_palette_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:292:42: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.20.0/libfreerdp/core/update.c:294:12: branch_false: following ‘false’ branch (when ‘palette_update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:297:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:297:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:298:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:322:9: danger: deallocated with ‘free_palette_update’ here; allocation at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  320|   	WINPR_PRAGMA_DIAG_PUSH
#  321|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  322|-> 	free_palette_update(update->context, palette_update);
#  323|   	WINPR_PRAGMA_DIAG_POP
#  324|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def803]
FreeRDP-3.20.0/libfreerdp/core/update.c:370:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_position’
FreeRDP-3.20.0/libfreerdp/core/update.c:363:53: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:367:12: branch_false: following ‘false’ branch (when ‘pointer_position’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:370:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:370:14: throw: if ‘Stream_CheckAndLogRequiredLengthEx’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:370:14: danger: ‘pointer_position’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  368|   		goto fail;
#  369|   
#  370|-> 	if (!Stream_CheckAndLogRequiredLength(TAG, s, 4))
#  371|   		goto fail;
#  372|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def804]
FreeRDP-3.20.0/libfreerdp/core/update.c:379:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_position’
FreeRDP-3.20.0/libfreerdp/core/update.c:363:53: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:367:12: branch_false: following ‘false’ branch (when ‘pointer_position’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:370:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:370:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:371:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:379:9: throw: if ‘free_pointer_position_update’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:379:9: danger: ‘pointer_position’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
#  377|   	WINPR_PRAGMA_DIAG_PUSH
#  378|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  379|-> 	free_pointer_position_update(update->context, pointer_position);
#  380|   	WINPR_PRAGMA_DIAG_POP
#  381|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def805]
FreeRDP-3.20.0/libfreerdp/core/update.c:379:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pointer_position’ should have been deallocated with ‘free’ but was deallocated with ‘free_pointer_position_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:363:53: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.20.0/libfreerdp/core/update.c:367:12: branch_false: following ‘false’ branch (when ‘pointer_position’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:370:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:370:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:371:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:379:9: danger: deallocated with ‘free_pointer_position_update’ here; allocation at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  377|   	WINPR_PRAGMA_DIAG_PUSH
#  378|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  379|-> 	free_pointer_position_update(update->context, pointer_position);
#  380|   	WINPR_PRAGMA_DIAG_POP
#  381|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def806]
FreeRDP-3.20.0/libfreerdp/core/update.c:393:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_system’
FreeRDP-3.20.0/libfreerdp/core/update.c:386:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:390:12: branch_false: following ‘false’ branch (when ‘pointer_system’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:393:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:393:14: throw: if ‘Stream_CheckAndLogRequiredLengthEx’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:393:14: danger: ‘pointer_system’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  391|   		goto fail;
#  392|   
#  393|-> 	if (!Stream_CheckAndLogRequiredLength(TAG, s, 4))
#  394|   		goto fail;
#  395|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def807]
FreeRDP-3.20.0/libfreerdp/core/update.c:401:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_system’
FreeRDP-3.20.0/libfreerdp/core/update.c:386:49: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:390:12: branch_false: following ‘false’ branch (when ‘pointer_system’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:393:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:393:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:394:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:401:9: throw: if ‘free_pointer_system_update’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:401:9: danger: ‘pointer_system’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
#  399|   	WINPR_PRAGMA_DIAG_PUSH
#  400|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  401|-> 	free_pointer_system_update(update->context, pointer_system);
#  402|   	WINPR_PRAGMA_DIAG_POP
#  403|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def808]
FreeRDP-3.20.0/libfreerdp/core/update.c:401:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pointer_system’ should have been deallocated with ‘free’ but was deallocated with ‘free_pointer_system_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:386:49: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.20.0/libfreerdp/core/update.c:390:12: branch_false: following ‘false’ branch (when ‘pointer_system’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:393:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:393:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:394:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:401:9: danger: deallocated with ‘free_pointer_system_update’ here; allocation at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  399|   	WINPR_PRAGMA_DIAG_PUSH
#  400|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  401|-> 	free_pointer_system_update(update->context, pointer_system);
#  402|   	WINPR_PRAGMA_DIAG_POP
#  403|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
FreeRDP-3.20.0/libfreerdp/core/update.c:421:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_color’
FreeRDP-3.20.0/libfreerdp/core/update.c:534:23: enter_function: entry to ‘update_read_pointer_color’
FreeRDP-3.20.0/libfreerdp/core/update.c:536:47: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:540:12: branch_false: following ‘false’ branch (when ‘pointer_color’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:544:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:543:14: call_function: calling ‘s_update_read_pointer_color’ from ‘update_read_pointer_color’
#  419|   		goto fail;
#  420|   
#  421|-> 	if (!Stream_CheckAndLogRequiredLength(TAG, s, 14))
#  422|   		goto fail;
#  423|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def810]
FreeRDP-3.20.0/libfreerdp/core/update.c:421:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:685:21: enter_function: entry to ‘update_read_pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:687:43: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:691:12: branch_false: following ‘false’ branch (when ‘pointer_new’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:694:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:694:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:697:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_read_pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:699:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:708:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:706:14: call_function: calling ‘s_update_read_pointer_color’ from ‘update_read_pointer_new’
#  419|   		goto fail;
#  420|   
#  421|-> 	if (!Stream_CheckAndLogRequiredLength(TAG, s, 14))
#  422|   		goto fail;
#  423|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def811]
FreeRDP-3.20.0/libfreerdp/core/update.c:564:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:664:23: enter_function: entry to ‘update_read_pointer_large’
FreeRDP-3.20.0/libfreerdp/core/update.c:666:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:670:12: branch_false: following ‘false’ branch (when ‘pointer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:673:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:673:14: call_function: calling ‘s_update_read_pointer_large’ from ‘update_read_pointer_large’
#  562|   		goto fail;
#  563|   
#  564|-> 	if (!Stream_CheckAndLogRequiredLength(TAG, s, 20))
#  565|   		goto fail;
#  566|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def812]
FreeRDP-3.20.0/libfreerdp/core/update.c:694:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:687:43: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:691:12: branch_false: following ‘false’ branch (when ‘pointer_new’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:694:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:694:14: throw: if ‘Stream_CheckAndLogRequiredLengthEx’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:694:14: danger: ‘pointer_new’ leaks here; was allocated at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
#  692|   		goto fail;
#  693|   
#  694|-> 	if (!Stream_CheckAndLogRequiredLength(TAG, s, 2))
#  695|   		goto fail;
#  696|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def813]
FreeRDP-3.20.0/libfreerdp/core/update.c:715:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:687:43: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:691:12: branch_false: following ‘false’ branch (when ‘pointer_new’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:694:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:694:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:695:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:715:9: throw: if ‘free_pointer_new_update’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:715:9: danger: ‘pointer_new’ leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
#  713|   	WINPR_PRAGMA_DIAG_PUSH
#  714|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  715|-> 	free_pointer_new_update(update->context, pointer_new);
#  716|   	WINPR_PRAGMA_DIAG_POP
#  717|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def814]
FreeRDP-3.20.0/libfreerdp/core/update.c:715:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pointer_new’ should have been deallocated with ‘free’ but was deallocated with ‘free_pointer_new_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:687:43: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.20.0/libfreerdp/core/update.c:691:12: branch_false: following ‘false’ branch (when ‘pointer_new’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:694:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:694:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:695:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:715:9: danger: deallocated with ‘free_pointer_new_update’ here; allocation at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  713|   	WINPR_PRAGMA_DIAG_PUSH
#  714|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  715|-> 	free_pointer_new_update(update->context, pointer_new);
#  716|   	WINPR_PRAGMA_DIAG_POP
#  717|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def815]
FreeRDP-3.20.0/libfreerdp/core/update.c:729:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:722:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:726:12: branch_false: following ‘false’ branch (when ‘pointer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:729:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:729:14: throw: if ‘Stream_CheckAndLogRequiredLengthEx’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:729:14: danger: ‘pointer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
#  727|   		goto fail;
#  728|   
#  729|-> 	if (!Stream_CheckAndLogRequiredLength(TAG, s, 2))
#  730|   		goto fail;
#  731|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def816]
FreeRDP-3.20.0/libfreerdp/core/update.c:737:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:722:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:726:12: branch_false: following ‘false’ branch (when ‘pointer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:729:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:729:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:730:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:737:9: throw: if ‘free_pointer_cached_update’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:737:9: danger: ‘pointer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
#  735|   	WINPR_PRAGMA_DIAG_PUSH
#  736|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  737|-> 	free_pointer_cached_update(update->context, pointer);
#  738|   	WINPR_PRAGMA_DIAG_POP
#  739|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def817]
FreeRDP-3.20.0/libfreerdp/core/update.c:737:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pointer’ should have been deallocated with ‘free’ but was deallocated with ‘free_pointer_cached_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:722:42: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.20.0/libfreerdp/core/update.c:726:12: branch_false: following ‘false’ branch (when ‘pointer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:729:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:729:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:730:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:737:9: danger: deallocated with ‘free_pointer_cached_update’ here; allocation at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0) expects deallocation with ‘free’
#  735|   	WINPR_PRAGMA_DIAG_PUSH
#  736|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  737|-> 	free_pointer_cached_update(update->context, pointer);
#  738|   	WINPR_PRAGMA_DIAG_POP
#  739|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def818]
FreeRDP-3.20.0/libfreerdp/core/update.c:767:33: warning[-Wanalyzer-mismatching-deallocation]: ‘update_read_pointer_position(update,  s)’ should have been deallocated with ‘free’ but was deallocated with ‘free_pointer_position_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:742:6: enter_function: entry to ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:752:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:755:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:762:69: call_function: calling ‘update_read_pointer_position’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:762:69: return_function: returning to ‘update_recv_pointer’ from ‘update_read_pointer_position’
FreeRDP-3.20.0/libfreerdp/core/update.c:764:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:766:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:766:38: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:766:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:766:38: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:767:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:767:33: danger: deallocated with ‘free_pointer_position_update’ here; allocation at [(12)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/11) expects deallocation with ‘free’
#  765|   			{
#  766|   				rc = IFCALLRESULT(FALSE, pointer->PointerPosition, context, pointer_position);
#  767|-> 				free_pointer_position_update(context, pointer_position);
#  768|   			}
#  769|   		}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def819]
FreeRDP-3.20.0/libfreerdp/core/update.c:779:33: warning[-Wanalyzer-mismatching-deallocation]: ‘update_read_pointer_system(update,  s)’ should have been deallocated with ‘free’ but was deallocated with ‘free_pointer_system_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:742:6: enter_function: entry to ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:752:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:755:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:774:65: call_function: calling ‘update_read_pointer_system’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:774:65: return_function: returning to ‘update_recv_pointer’ from ‘update_read_pointer_system’
FreeRDP-3.20.0/libfreerdp/core/update.c:776:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:778:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:778:38: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:778:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:778:38: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:779:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:779:33: danger: deallocated with ‘free_pointer_system_update’ here; allocation at [(12)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/11) expects deallocation with ‘free’
#  777|   			{
#  778|   				rc = IFCALLRESULT(FALSE, pointer->PointerSystem, context, pointer_system);
#  779|-> 				free_pointer_system_update(context, pointer_system);
#  780|   			}
#  781|   		}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def820]
FreeRDP-3.20.0/libfreerdp/core/update.c:827:33: warning[-Wanalyzer-mismatching-deallocation]: ‘update_read_pointer_cached(update,  s)’ should have been deallocated with ‘free’ but was deallocated with ‘free_pointer_cached_update’
FreeRDP-3.20.0/libfreerdp/core/update.c:742:6: enter_function: entry to ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:752:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:755:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:822:65: call_function: calling ‘update_read_pointer_cached’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:822:65: return_function: returning to ‘update_recv_pointer’ from ‘update_read_pointer_cached’
FreeRDP-3.20.0/libfreerdp/core/update.c:824:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:826:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:826:38: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:826:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:826:38: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:827:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:827:33: danger: deallocated with ‘free_pointer_cached_update’ here; allocation at [(12)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/11) expects deallocation with ‘free’
#  825|   			{
#  826|   				rc = IFCALLRESULT(FALSE, pointer->PointerCached, context, pointer_cached);
#  827|-> 				free_pointer_cached_update(context, pointer_cached);
#  828|   			}
#  829|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def821]
FreeRDP-3.20.0/libfreerdp/core/update.c:1033:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init_new(*context_10(D)->rdp.fastpath)’
FreeRDP-3.20.0/libfreerdp/core/update.c:1021:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:1028:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:1028:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:1030:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:1033:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:1033:9: throw: if ‘Stream_SealLength’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:1033:9: danger: ‘fastpath_update_pdu_init_new(*context_10(D)->rdp.fastpath)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/2)
# 1031|   		return FALSE;
# 1032|   
# 1033|-> 	Stream_SealLength(s);
# 1034|   	Stream_GetLength(s, update->offsetOrders);
# 1035|   	Stream_Seek(s, 2); /* numberOrders (2 bytes) */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def822]
FreeRDP-3.20.0/libfreerdp/core/update.c:2210:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.20.0/libfreerdp/core/update.c:2205:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:2207:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:2210:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:2215:15: throw: if ‘fastpath_send_update_pdu’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:2210:13: danger: ‘fastpath_update_pdu_init(*rdp.fastpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
# 2208|   		return FALSE;
# 2209|   
# 2210|-> 	if (pointer_system->type == SYSPTR_NULL)
# 2211|   		updateCode = FASTPATH_UPDATETYPE_PTR_NULL;
# 2212|   	else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def823]
FreeRDP-3.20.0/libfreerdp/core/update.c:2234:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.20.0/libfreerdp/core/update.c:2229:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:2231:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:2234:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:2234:14: throw: if ‘Stream_EnsureRemainingCapacity’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:2234:14: danger: ‘fastpath_update_pdu_init(*rdp.fastpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
# 2232|   		return FALSE;
# 2233|   
# 2234|-> 	if (!Stream_EnsureRemainingCapacity(s, 16))
# 2235|   		goto out_fail;
# 2236|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def824]
FreeRDP-3.20.0/libfreerdp/core/update.c:2250:53: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.20.0/libfreerdp/core/update.c:2272:13: enter_function: entry to ‘update_send_pointer_color’
FreeRDP-3.20.0/libfreerdp/core/update.c:2283:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:2285:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:2288:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:2288:14: call_function: calling ‘update_write_pointer_color’ from ‘update_send_pointer_color’
# 2248|   {
# 2249|   	WINPR_ASSERT(pointer_color);
# 2250|-> 	if (!Stream_EnsureRemainingCapacity(s, 32 + pointer_color->lengthAndMask +
# 2251|   	                                           pointer_color->lengthXorMask))
# 2252|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def825]
FreeRDP-3.20.0/libfreerdp/core/update.c:2301:53: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.20.0/libfreerdp/core/update.c:2318:13: enter_function: entry to ‘update_send_pointer_large’
FreeRDP-3.20.0/libfreerdp/core/update.c:2327:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:2329:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:2332:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:2332:14: call_function: calling ‘update_write_pointer_large’ from ‘update_send_pointer_large’
# 2299|   	WINPR_ASSERT(pointer);
# 2300|   
# 2301|-> 	if (!Stream_EnsureRemainingCapacity(s, 32 + pointer->lengthAndMask + pointer->lengthXorMask))
# 2302|   		return FALSE;
# 2303|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def826]
FreeRDP-3.20.0/libfreerdp/core/update.c:2356:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.20.0/libfreerdp/core/update.c:2351:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:2353:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:2356:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:2356:14: throw: if ‘Stream_EnsureRemainingCapacity’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:2356:14: danger: ‘fastpath_update_pdu_init(*rdp.fastpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
# 2354|   		return FALSE;
# 2355|   
# 2356|-> 	if (!Stream_EnsureRemainingCapacity(s, 16))
# 2357|   		goto out_fail;
# 2358|   

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def829]
FreeRDP-3.20.0/libfreerdp/core/update.c:3326:9: warning[-Wanalyzer-malloc-leak]: leak of ‘update’
FreeRDP-3.20.0/libfreerdp/core/update.c:3319:61: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:3321:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3324:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3326:9: throw: if ‘InitializeCriticalSection’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:3326:9: danger: ‘update’ leaks here; was allocated at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
# 3324|   	update->common.context = rdp->context;
# 3325|   	update->log = WLog_Get("com.freerdp.core.update");
# 3326|-> 	InitializeCriticalSection(&(update->mux));
# 3327|   	update->common.pointer = (rdpPointerUpdate*)calloc(1, sizeof(rdpPointerUpdate));
# 3328|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def830]
FreeRDP-3.20.0/libfreerdp/core/update.c:3369:25: warning[-Wanalyzer-malloc-leak]: leak of ‘altsec’
FreeRDP-3.20.0/libfreerdp/core/update.c:3321:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3324:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3329:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:3333:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3335:12: branch_false: following ‘false’ branch (when ‘primary’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3337:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3342:12: branch_false: following ‘false’ branch (when ‘secondary’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3344:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3347:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:3349:12: branch_false: following ‘false’ branch (when ‘altsec’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3352:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3355:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:3359:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3362:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:3365:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3369:25: throw: if ‘MessageQueue_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:3369:25: danger: ‘altsec’ leaks here; was allocated at [(9)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/8)
# 3367|   	update->initialState = TRUE;
# 3368|   	update->common.autoCalculateBitmapData = TRUE;
# 3369|-> 	update->queue = MessageQueue_New(&cb);
# 3370|   
# 3371|   	if (!update->queue)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def831]
FreeRDP-3.20.0/libfreerdp/core/update.c:3369:25: warning[-Wanalyzer-malloc-leak]: leak of ‘primary’
FreeRDP-3.20.0/libfreerdp/core/update.c:3321:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3324:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3329:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:3333:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3333:43: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:3335:12: branch_false: following ‘false’ branch (when ‘primary’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3337:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3342:12: branch_false: following ‘false’ branch (when ‘secondary’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3344:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3349:12: branch_false: following ‘false’ branch (when ‘altsec’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3352:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3355:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:3359:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3362:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:3365:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3369:25: throw: if ‘MessageQueue_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:3369:25: danger: ‘primary’ leaks here; was allocated at [(5)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/4)
# 3367|   	update->initialState = TRUE;
# 3368|   	update->common.autoCalculateBitmapData = TRUE;
# 3369|-> 	update->queue = MessageQueue_New(&cb);
# 3370|   
# 3371|   	if (!update->queue)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def832]
FreeRDP-3.20.0/libfreerdp/core/update.c:3369:25: warning[-Wanalyzer-malloc-leak]: leak of ‘secondary’
FreeRDP-3.20.0/libfreerdp/core/update.c:3321:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3324:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3329:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:3333:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3335:12: branch_false: following ‘false’ branch (when ‘primary’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3337:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3340:45: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:3342:12: branch_false: following ‘false’ branch (when ‘secondary’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3344:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3349:12: branch_false: following ‘false’ branch (when ‘altsec’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:3352:33: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3355:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:3359:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3362:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:3365:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:3369:25: throw: if ‘MessageQueue_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:3369:25: danger: ‘secondary’ leaks here; was allocated at [(7)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/6)
# 3367|   	update->initialState = TRUE;
# 3368|   	update->common.autoCalculateBitmapData = TRUE;
# 3369|-> 	update->queue = MessageQueue_New(&cb);
# 3370|   
# 3371|   	if (!update->queue)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def833]
FreeRDP-3.20.0/libfreerdp/core/utils.c:48:16: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(value)’
FreeRDP-3.20.0/libfreerdp/core/utils.c:230:6: enter_function: entry to ‘utils_sync_credentials’
FreeRDP-3.20.0/libfreerdp/core/utils.c:236:12: branch_true: following ‘true’ branch (when ‘toGateway != 0’)...
FreeRDP-3.20.0/libfreerdp/core/utils.c:238:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/utils.c:238:22: call_function: calling ‘utils_str_copy’ from ‘utils_sync_credentials’
FreeRDP-3.20.0/libfreerdp/core/utils.c:238:22: return_function: returning to ‘utils_sync_credentials’ from ‘utils_str_copy’
FreeRDP-3.20.0/libfreerdp/core/utils.c:238:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/utils.c:240:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/utils.c:240:22: call_function: calling ‘utils_str_copy’ from ‘utils_sync_credentials’
#   46|   
#   47|   	(*dst) = _strdup(value);
#   48|-> 	return (*dst) != NULL;
#   49|   }
#   50|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def834]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1140:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cert’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1123:13: enter_function: entry to ‘cert_x509_chain_copy’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1127:9: call_function: calling ‘certificate_free_x509_certificate_chain’ from ‘cert_x509_chain_copy’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1127:9: return_function: returning to ‘cert_x509_chain_copy’ from ‘certificate_free_x509_certificate_chain’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1128:12: branch_false: following ‘false’ branch (when ‘src’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1131:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1131:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1133:31: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1134:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1138:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1140:36: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1142:55: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1145:30: call_function: calling ‘cert_blob_copy’ from ‘cert_x509_chain_copy’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1145:30: return_function: returning to ‘cert_x509_chain_copy’ from ‘cert_blob_copy’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1145:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1140:53: branch_false: ...to here
FreeRDP-3.20.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): [#def835]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1161:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1191:17: enter_function: entry to ‘freerdp_certificate_clone’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1193:12: branch_false: following ‘false’ branch (when ‘certificate’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1196:40: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1196:40: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_clone’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1196:40: return_function: returning to ‘freerdp_certificate_clone’ from ‘freerdp_certificate_new’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1198:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1201:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1201: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): [#def836]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1225:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1320:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1324:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1324:32: return_function: returning to ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1329:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1330:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1331:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1341:9: call_function: calling ‘freerdp_certificate_free’ from ‘freerdp_certificate_new_from_x509’
# 1223|   	WINPR_ASSERT(cert);
# 1224|   
# 1225|-> 	if (cert->x509)
# 1226|   		X509_free(cert->x509);
# 1227|   	if (cert->chain)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def837]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1306:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1302:17: enter_function: entry to ‘freerdp_certificate_new_from_der’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1304:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_der’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1304:32: return_function: returning to ‘freerdp_certificate_new_from_der’ from ‘freerdp_certificate_new’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1306:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1309:22: throw: if ‘d2i_X509’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1306:13: danger: ‘freerdp_certificate_new()’ leaks here; was allocated at [(4)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/3)
# 1304|   	rdpCertificate* cert = freerdp_certificate_new();
# 1305|   
# 1306|-> 	if (!cert || !data || (length == 0) || (length > INT_MAX))
# 1307|   		goto fail;
# 1308|   	const BYTE* ptr = data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def838]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1329:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1320:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1324:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1324:32: return_function: returning to ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1329:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1329:22: throw: if ‘X509_dup’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1329:22: danger: ‘freerdp_certificate_new()’ leaks here; was allocated at [(4)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/3)
# 1327|   
# 1328|   	X509* wcert = WINPR_CAST_CONST_PTR_AWAY(xcert, X509*);
# 1329|-> 	cert->x509 = X509_dup(wcert);
# 1330|   	if (!cert->x509)
# 1331|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def839]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1513:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1503:12: branch_false: following ‘false’ branch (when ‘plength’ is NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1503:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1506:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1508:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1509:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1513:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1513:17: throw: if ‘ERR_clear_error’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1513:17: danger: ‘tmp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
# 1511|   		pem = tmp;
# 1512|   
# 1513|-> 		ERR_clear_error();
# 1514|   
# 1515|   		const int status = BIO_read(bio, &pem[offset], (int)(length - offset));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def840]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1515:36: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1503:12: branch_false: following ‘false’ branch (when ‘plength’ is NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1503:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1506:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1508:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1509:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1513:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1515:36: throw: if ‘BIO_read’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1515:36: danger: ‘tmp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 1513|   		ERR_clear_error();
# 1514|   
# 1515|-> 		const int status = BIO_read(bio, &pem[offset], (int)(length - offset));
# 1516|   		if (status < 0)
# 1517|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def841]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1751:13: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1738:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1741:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1742:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1745:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1746:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1747:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1749:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1751:13: throw: if ‘EVP_PKEY_encrypt_init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1751:13: danger: ‘output’ leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
# 1749|   	*pcbOutput = outputSize;
# 1750|   
# 1751|-> 	if (EVP_PKEY_encrypt_init(ctx) != 1 ||
# 1752|   	    EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PADDING) != 1 ||
# 1753|   	    EVP_PKEY_encrypt(ctx, output, pcbOutput, input, cbInput) != 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def842]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1752:13: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1738:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1741:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1742:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1745:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1746:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1747:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1749:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1751:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1752:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1752:13: throw: if ‘EVP_PKEY_CTX_set_rsa_padding’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1752:13: danger: ‘output’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
# 1750|   
# 1751|   	if (EVP_PKEY_encrypt_init(ctx) != 1 ||
# 1752|-> 	    EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PADDING) != 1 ||
# 1753|   	    EVP_PKEY_encrypt(ctx, output, pcbOutput, input, cbInput) != 1)
# 1754|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def843]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1753:13: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1738:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1741:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1742:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1745:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1746:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1747:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1749:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1751:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1752:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1751:13: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1753:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1753:13: throw: if ‘EVP_PKEY_encrypt’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1753:13: danger: ‘output’ leaks here; was allocated at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
# 1751|   	if (EVP_PKEY_encrypt_init(ctx) != 1 ||
# 1752|   	    EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PADDING) != 1 ||
# 1753|-> 	    EVP_PKEY_encrypt(ctx, output, pcbOutput, input, cbInput) != 1)
# 1754|   	{
# 1755|   		WLog_ERR(TAG, "error when setting up public key");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def844]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1800:25: warning[-Wanalyzer-malloc-leak]: leak of ‘i2d_ptr’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1792:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1795:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1795:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1796:12: branch_false: following ‘false’ branch (when ‘ptr’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1798:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1800:25: throw: if ‘i2d_X509’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1800:25: danger: ‘i2d_ptr’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
# 1798|   	BYTE* i2d_ptr = ptr;
# 1799|   
# 1800|-> 	const int rc2 = i2d_X509(cert->x509, &i2d_ptr);
# 1801|   	if (rc2 <= 0)
# 1802|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def845]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1815:27: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1320:17: enter_function: entry to ‘freerdp_certificate_new_from_x509’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1324:32: call_function: calling ‘freerdp_certificate_new’ from ‘freerdp_certificate_new_from_x509’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1324:32: return_function: returning to ‘freerdp_certificate_new_from_x509’ from ‘freerdp_certificate_new’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1325:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1329:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1330:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1333:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1333:14: call_function: calling ‘freerdp_rsa_from_x509’ from ‘freerdp_certificate_new_from_x509’
# 1813|   {
# 1814|   	WINPR_ASSERT(cert);
# 1815|-> 	return is_rsa_key(cert->x509);
# 1816|   }
# 1817|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def846]
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1878:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rc’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1855:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1858:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1862:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1874:31: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1875:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1876:12: branch_false: following ‘false’ branch (when ‘rc’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1878:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1878:9: throw: if ‘BN_bn2bin’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1878:9: danger: ‘rc’ leaks here; was allocated at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
# 1876|   	if (!rc)
# 1877|   		goto fail;
# 1878|-> 	BN_bn2bin(bn, (BYTE*)rc);
# 1879|   	*psize = bnsize;
# 1880|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def847]
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:137:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_clone(xcert)’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:169:21: enter_function: entry to ‘freerdp_certificate_data_new’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:172:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:173:36: call_function: calling ‘freerdp_certificate_data_new_nocopy’ from ‘freerdp_certificate_data_new’
#  135|   	rdpCertificateData* certdata = NULL;
#  136|   
#  137|-> 	if (!hostname || !xcert)
#  138|   		goto fail;
#  139|   	if (strnlen(hostname, MAX_PATH) >= MAX_PATH)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def848]
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:137:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_file(file)’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:192:21: enter_function: entry to ‘freerdp_certificate_data_new_from_file’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:195:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:198:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:198:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:199:36: call_function: calling ‘freerdp_certificate_data_new_nocopy’ from ‘freerdp_certificate_data_new_from_file’
#  135|   	rdpCertificateData* certdata = NULL;
#  136|   
#  137|-> 	if (!hostname || !xcert)
#  138|   		goto fail;
#  139|   	if (strnlen(hostname, MAX_PATH) >= MAX_PATH)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def849]
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:137:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_pem(pem)’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:179:21: enter_function: entry to ‘freerdp_certificate_data_new_from_pem’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:182:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:185:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:185:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:186:36: call_function: calling ‘freerdp_certificate_data_new_nocopy’ from ‘freerdp_certificate_data_new_from_pem’
#  135|   	rdpCertificateData* certdata = NULL;
#  136|   
#  137|-> 	if (!hostname || !xcert)
#  138|   		goto fail;
#  139|   	if (strnlen(hostname, MAX_PATH) >= MAX_PATH)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def850]
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:151:30: warning[-Wanalyzer-malloc-leak]: leak of ‘certdata’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:169:21: enter_function: entry to ‘freerdp_certificate_data_new’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:173:36: call_function: calling ‘freerdp_certificate_data_new_nocopy’ from ‘freerdp_certificate_data_new’
#  149|   
#  150|   	certdata->port = port;
#  151|-> 	certdata->hostname = _strdup(hostname);
#  152|   	if (!certdata->hostname)
#  153|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def851]
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:211:9: warning[-Wanalyzer-malloc-leak]: leak of ‘certdata’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:192:21: enter_function: entry to ‘freerdp_certificate_data_new_from_file’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:195:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:198:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_data.c:199:36: call_function: calling ‘freerdp_certificate_data_new_nocopy’ from ‘freerdp_certificate_data_new_from_file’
#  209|   
#  210|   	free(data->hostname);
#  211|-> 	freerdp_certificate_free(data->cert);
#  212|   	free(data->cached_subject);
#  213|   	free(data->cached_issuer);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def852]
FreeRDP-3.20.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.20.0/libfreerdp/crypto/certificate_store.c:100:6: enter_function: entry to ‘freerdp_certificate_store_save_data’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:105:22: call_function: calling ‘freerdp_certificate_store_file_path’ from ‘freerdp_certificate_store_save_data’
FreeRDP-3.20.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.20.0/libfreerdp/crypto/certificate_store.c:114:14: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:115:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:118:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:118:15: throw: if ‘freerdp_certificate_data_get_pem_ex’ throws an exception...
FreeRDP-3.20.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/0/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): [#def853]
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:154:28: warning[-Wanalyzer-malloc-leak]: leak of ‘store’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:149:60: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:151:12: branch_false: following ‘false’ branch (when ‘store’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:154:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:154:28: throw: if ‘freerdp_settings_get_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:154:28: danger: ‘store’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/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): [#def854]
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:158:29: warning[-Wanalyzer-malloc-leak]: leak of ‘store’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:149:60: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:151:12: branch_false: following ‘false’ branch (when ‘store’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:154:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:155:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:158:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:158:29: throw: if ‘GetCombinedPath’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:158:29: danger: ‘store’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/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): [#def855]
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:159:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:151:12: branch_false: following ‘false’ branch (when ‘store’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:154:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:155:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:158:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:158:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:159:30: throw: if ‘GetCombinedPath’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:159:30: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/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): [#def856]
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:159:30: warning[-Wanalyzer-malloc-leak]: leak of ‘store’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:149:60: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:151:12: branch_false: following ‘false’ branch (when ‘store’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:154:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:155:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:158:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:159:30: throw: if ‘GetCombinedPath’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:159:30: danger: ‘store’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/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): [#def857]
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:192:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:79:6: enter_function: entry to ‘freerdp_certificate_store_remove_data’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:87:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:89:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:89:22: call_function: calling ‘freerdp_certificate_store_file_path’ from ‘freerdp_certificate_store_remove_data’
FreeRDP-3.20.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.20.0/libfreerdp/crypto/certificate_store.c:91:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:94:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:94:13: throw: if ‘winpr_PathFileExists’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:192:16: danger: ‘freerdp_certificate_store_file_path(store,  freerdp_certificate_data_get_hash(data))’ leaks here; was allocated at [(8)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/7)
#  190|   {
#  191|   	WINPR_ASSERT(store);
#  192|-> 	return store->server_path;
#  193|   }
#  194|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def858]
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:192:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_get_cert_path(store,  host,  port)’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:128:21: enter_function: entry to ‘freerdp_certificate_store_load_data’
FreeRDP-3.20.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.20.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.20.0/libfreerdp/crypto/certificate_store.c:137:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:140:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:140:16: throw: if ‘freerdp_certificate_data_new_from_file’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:192:16: danger: ‘freerdp_certificate_store_get_cert_path(store,  host,  port)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
#  190|   {
#  191|   	WINPR_ASSERT(store);
#  192|-> 	return store->server_path;
#  193|   }
#  194|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def859]
FreeRDP-3.20.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.20.0/libfreerdp/crypto/certificate_store.c:62:1: enter_function: entry to ‘freerdp_certificate_store_contains_data’
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:68:38: call_function: calling ‘freerdp_certificate_store_load_data’ from ‘freerdp_certificate_store_contains_data’
FreeRDP-3.20.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.20.0/libfreerdp/crypto/certificate_store.c:69:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:72:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:72:14: throw: if ‘freerdp_certificate_data_equal’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/certificate_store.c:192: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/12/codeFlows/0/threadFlows/0/locations/15)
#  190|   {
#  191|   	WINPR_ASSERT(store);
#  192|-> 	return store->server_path;
#  193|   }
#  194|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def860]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:82:21: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def861]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:85:21: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def862]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:88:21: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def863]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:91:19: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def864]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:94:19: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def865]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:97:14: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def866]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:100:14: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def867]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:102:14: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def868]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:104:13: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def869]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:106:25: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def870]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:122:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def871]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:123:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def872]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:124:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def873]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:125:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def874]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:126:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_reverse’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:170:9: enter_function: entry to ‘crypto_rsa_private_decrypt’
FreeRDP-3.20.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): [#def875]
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:228:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:189:7: enter_function: entry to ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:202:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:203:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:205:30: call_function: inlined call to ‘_ftelli64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:208:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:209:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:212:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:212:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:213:12: branch_false: following ‘false’ branch (when ‘pem’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:216:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:217:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:218:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:228:9: throw: if ‘winpr_strerror’ throws an exception...
FreeRDP-3.20.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): [#def876]
FreeRDP-3.20.0/libfreerdp/crypto/per.c:400:36: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_BinToHexString(got,  length, 1)’
FreeRDP-3.20.0/libfreerdp/crypto/per.c:399:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/per.c:400:36: throw: if ‘winpr_BinToHexString’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/per.c:400:36: danger: ‘winpr_BinToHexString(got,  length, 1)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  398|   	{
#  399|   		char* got_str = winpr_BinToHexString(got, length, TRUE);
#  400|-> 		char* expect_str = winpr_BinToHexString(expect, length, TRUE);
#  401|   
#  402|   		WLog_WARN(TAG, "PER OID mismatch, got %s, expected %s", got_str, expect_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def877]
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:238:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:235:16: enter_function: entry to ‘freerdp_key_new_from_pem_enc’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:237:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_pem_enc’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:237:30: return_function: returning to ‘freerdp_key_new_from_pem_enc’ from ‘freerdp_key_new’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:238:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:240:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:240:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_pem_enc’
#  236|   {
#  237|   	rdpPrivateKey* key = freerdp_key_new();
#  238|-> 	if (!key || !pem)
#  239|   		goto fail;
#  240|   	key->evp = evp_pkey_utils_from_pem(pem, strlen(pem), FALSE, password);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def878]
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:259:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:256:16: enter_function: entry to ‘freerdp_key_new_from_file_enc’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:258:30: call_function: calling ‘freerdp_key_new’ from ‘freerdp_key_new_from_file_enc’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:258:30: return_function: returning to ‘freerdp_key_new_from_file_enc’ from ‘freerdp_key_new’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:259:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:262:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:262:20: call_function: calling ‘evp_pkey_utils_from_pem’ from ‘freerdp_key_new_from_file_enc’
#  257|   {
#  258|   	rdpPrivateKey* key = freerdp_key_new();
#  259|-> 	if (!key || !keyfile)
#  260|   		goto fail;
#  261|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def879]
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:293:17: warning[-Wanalyzer-malloc-leak]: leak of ‘_key’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:280:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:283:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:283:47: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:285:12: branch_false: following ‘false’ branch (when ‘_key’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:288:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:288:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:290:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:293:17: throw: if ‘EVP_PKEY_up_ref’ throws an exception...
FreeRDP-3.20.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): [#def880]
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:307:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:280:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:283:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:285:12: branch_false: following ‘false’ branch (when ‘_key’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:288:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:296:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:296:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:298:55: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:298:48: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:300:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:303:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:307:14: throw: if ‘cert_info_clone’ throws an exception...
FreeRDP-3.20.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): [#def881]
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:307:14: warning[-Wanalyzer-malloc-leak]: leak of ‘_key’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:280:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:283:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:283:47: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:285:12: branch_false: following ‘false’ branch (when ‘_key’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:288:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:296:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:296:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:307:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:307:14: throw: if ‘cert_info_clone’ throws an exception...
FreeRDP-3.20.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-401): [#def882]
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:324:9: warning[-Wanalyzer-malloc-leak]: leak of ‘_key’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:278:16: enter_function: entry to ‘freerdp_key_clone’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:280:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:283:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:283:47: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:285:12: branch_false: following ‘false’ branch (when ‘_key’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:288:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:296:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:296:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:298:55: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:300:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:301:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:314:9: call_function: calling ‘freerdp_key_free’ from ‘freerdp_key_clone’
#  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): [#def883]
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:328:9: warning[-Wanalyzer-malloc-leak]: leak of ‘_key’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:278:16: enter_function: entry to ‘freerdp_key_clone’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:280:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:283:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:283:47: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:285:12: branch_false: following ‘false’ branch (when ‘_key’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:288:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:296:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:296:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:298:55: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:300:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:301:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:314:9: call_function: calling ‘freerdp_key_free’ from ‘freerdp_key_clone’
#  326|   		memset(key->PrivateExponent, 0, key->PrivateExponentLength);
#  327|   	free(key->PrivateExponent);
#  328|-> 	cert_info_free(&key->cert);
#  329|   	free(key);
#  330|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def884]
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:554:27: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:508:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:545:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:546:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:549:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:550:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:551:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:554:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:554:27: throw: if ‘BN_bn2bin’ throws an exception...
FreeRDP-3.20.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): [#def885]
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:574:52: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:570:36: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:571:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:574:52: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:574:14: throw: if ‘winpr_DigestSign_Init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:574:52: 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): [#def886]
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:605:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:595:12: branch_false: following ‘false’ branch (when ‘plength’ is NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:595:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:598:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:600:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:601:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:605:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:605:17: throw: if ‘ERR_clear_error’ throws an exception...
FreeRDP-3.20.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): [#def887]
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:607:36: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:595:12: branch_false: following ‘false’ branch (when ‘plength’ is NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:595:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:598:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:600:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:601:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:605:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:607:36: throw: if ‘BIO_read’ throws an exception...
FreeRDP-3.20.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): [#def888]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:498:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tls’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:495:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:495:12: branch_false: following ‘false’ branch (when ‘tls’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:498:47: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:498:9: throw: if ‘InitializeCriticalSectionAndSpinCount’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:498:9: danger: ‘tls’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  496|   		return 0;
#  497|   
#  498|-> 	InitializeCriticalSectionAndSpinCount(&tls->lock, 4000);
#  499|   	BIO_set_data(bio, (void*)tls);
#  500|   	return 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def889]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:638:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(remote_cert,  SSL_get_peer_cert_chain(*tls.ssl))’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:629:12: branch_false: following ‘false’ branch (when ‘remote_cert’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:636:57: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:637:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:638:9: throw: if ‘X509_free’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:638: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/8/codeFlows/0/threadFlows/0/locations/2)
#  636|   	STACK_OF(X509)* chain = SSL_get_peer_cert_chain(tls->ssl);
#  637|   	rdpCertificate* cert = freerdp_certificate_new_from_x509(remote_cert, chain);
#  638|-> 	X509_free(remote_cert);
#  639|   
#  640|   	return cert;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def890]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1377:35: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: call_function: calling ‘is_accepted’ from ‘tls_verify_certificate’
# 1375|   	}
# 1376|   
# 1377|-> 	const char* AcceptedKey = freerdp_settings_get_string(settings, keyAccepted);
# 1378|   	const UINT32 AcceptedKeyLength = freerdp_settings_get_uint32(settings, keyLength);
# 1379|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def891]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1378:42: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: call_function: calling ‘is_accepted’ from ‘tls_verify_certificate’
# 1376|   
# 1377|   	const char* AcceptedKey = freerdp_settings_get_string(settings, keyAccepted);
# 1378|-> 	const UINT32 AcceptedKeyLength = freerdp_settings_get_uint32(settings, keyLength);
# 1379|   
# 1380|   	if ((AcceptedKeyLength > 0) && AcceptedKey)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def892]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1384:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: call_function: calling ‘is_accepted’ from ‘tls_verify_certificate’
# 1382|   		BOOL accepted = FALSE;
# 1383|   		size_t pemLength = 0;
# 1384|-> 		char* pem = freerdp_certificate_get_pem_ex(cert, &pemLength, FALSE);
# 1385|   		if (pem && (AcceptedKeyLength == pemLength))
# 1386|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def893]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1395:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: call_function: calling ‘is_accepted’ from ‘tls_verify_certificate’
# 1393|   	}
# 1394|   
# 1395|-> 	(void)freerdp_settings_set_string(settings, keyAccepted, NULL);
# 1396|   	(void)freerdp_settings_set_uint32(settings, keyLength, 0);
# 1397|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def894]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1396:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: call_function: calling ‘is_accepted’ from ‘tls_verify_certificate’
# 1394|   
# 1395|   	(void)freerdp_settings_set_string(settings, keyAccepted, NULL);
# 1396|-> 	(void)freerdp_settings_set_uint32(settings, keyLength, 0);
# 1397|   
# 1398|   	return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def895]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1411:19: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1409|   	WINPR_ASSERT(cert);
# 1410|   
# 1411|-> 	strhash = freerdp_certificate_get_fingerprint_by_hash_ex(cert, hash, separator);
# 1412|   	if (!strhash)
# 1413|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def896]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1415:18: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  hash,  separator)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1411:19: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1412:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1415:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1415:18: throw: if ‘_stricmp’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1415:18: danger: ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  hash,  separator)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 1413|   		return FALSE;
# 1414|   
# 1415|-> 	equal = (_stricmp(strhash, fp) == 0);
# 1416|   	free(strhash);
# 1417|   	return equal;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def897]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1415:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1413|   		return FALSE;
# 1414|   
# 1415|-> 	equal = (_stricmp(strhash, fp) == 0);
# 1416|   	free(strhash);
# 1417|   	return equal;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def898]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1441:30: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1439|   	{
# 1440|   		char* context = NULL;
# 1441|-> 		char* copy = _strdup(CertificateAcceptedFingerprints);
# 1442|   		char* cur = strtok_s(copy, ",", &context);
# 1443|   		while (cur)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def899]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1442:29: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(CertificateAcceptedFingerprints)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1438:12: branch_true: following ‘true’ branch (when ‘CertificateAcceptedFingerprints’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1440:23: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1441:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1442:29: throw: if ‘strtok_s’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1442:29: danger: ‘_strdup(CertificateAcceptedFingerprints)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
# 1440|   		char* context = NULL;
# 1441|   		char* copy = _strdup(CertificateAcceptedFingerprints);
# 1442|-> 		char* cur = strtok_s(copy, ",", &context);
# 1443|   		while (cur)
# 1444|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def900]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1442:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1440|   		char* context = NULL;
# 1441|   		char* copy = _strdup(CertificateAcceptedFingerprints);
# 1442|-> 		char* cur = strtok_s(copy, ",", &context);
# 1443|   		while (cur)
# 1444|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def901]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1446:41: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1444|   		{
# 1445|   			char* subcontext = NULL;
# 1446|-> 			const char* h = strtok_s(cur, ":", &subcontext);
# 1447|   
# 1448|   			if (!h)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def902]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1458:31: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:43: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1676:13: call_function: calling ‘is_accepted_fingerprint’ from ‘tls_verify_certificate’
# 1456|   			}
# 1457|   		next:
# 1458|-> 			cur = strtok_s(NULL, ",", &context);
# 1459|   		}
# 1460|   		free(copy);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def903]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1492:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_pem_ex(cert, & pemLength, 0)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1490:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1492:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1494:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1494:21: throw: if ‘freerdp_settings_set_string_len’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1492:13: danger: ‘freerdp_certificate_get_pem_ex(cert, & pemLength, 0)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
# 1490|   	char* pem = freerdp_certificate_get_pem_ex(cert, &pemLength, FALSE);
# 1491|   	BOOL rc = FALSE;
# 1492|-> 	if (pemLength <= UINT32_MAX)
# 1493|   	{
# 1494|   		if (freerdp_settings_set_string_len(settings, id, pem, pemLength))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def904]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1512:27: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1585:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1592:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1594:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:13: call_function: calling ‘tls_config_parse_bool’ from ‘tls_config_check_certificate’
# 1510|   static int tls_config_parse_bool(WINPR_JSON* json, const char* opt)
# 1511|   {
# 1512|-> 	WINPR_JSON* val = WINPR_JSON_GetObjectItemCaseSensitive(json, opt);
# 1513|   	if (!val || !WINPR_JSON_IsBool(val))
# 1514|   		return -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def905]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1513:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1585:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1592:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1594:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:13: call_function: calling ‘tls_config_parse_bool’ from ‘tls_config_check_certificate’
# 1511|   {
# 1512|   	WINPR_JSON* val = WINPR_JSON_GetObjectItemCaseSensitive(json, opt);
# 1513|-> 	if (!val || !WINPR_JSON_IsBool(val))
# 1514|   		return -1;
# 1515|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def906]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1516:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1585:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1592:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1594:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:13: call_function: calling ‘tls_config_parse_bool’ from ‘tls_config_check_certificate’
# 1514|   		return -1;
# 1515|   
# 1516|-> 	if (WINPR_JSON_IsTrue(val))
# 1517|   		return 1;
# 1518|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def907]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1528:26: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1585:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1592:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1594:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1607:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1607:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1614:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1614:13: call_function: calling ‘tls_config_check_allowed_hashed’ from ‘tls_config_check_certificate’
# 1526|   	WINPR_ASSERT(json);
# 1527|   
# 1528|-> 	WINPR_JSON* db = WINPR_JSON_GetObjectItemCaseSensitive(json, "certificate-db");
# 1529|   	if (!db || !WINPR_JSON_IsArray(db))
# 1530|   		return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def908]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1529:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1585:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1592:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1594:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1607:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1607:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1614:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1614:13: call_function: calling ‘tls_config_check_allowed_hashed’ from ‘tls_config_check_certificate’
# 1527|   
# 1528|   	WINPR_JSON* db = WINPR_JSON_GetObjectItemCaseSensitive(json, "certificate-db");
# 1529|-> 	if (!db || !WINPR_JSON_IsArray(db))
# 1530|   		return 0;
# 1531|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def909]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1532:32: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1585:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1592:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1594:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1607:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1607:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1614:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1614:13: call_function: calling ‘tls_config_check_allowed_hashed’ from ‘tls_config_check_certificate’
# 1530|   		return 0;
# 1531|   
# 1532|-> 	for (size_t x = 0; x < WINPR_JSON_GetArraySize(db); x++)
# 1533|   	{
# 1534|   		WINPR_JSON* cur = WINPR_JSON_GetArrayItem(db, x);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def910]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1534:35: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1585:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1592:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1594:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1607:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1607:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1614:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1614:13: call_function: calling ‘tls_config_check_allowed_hashed’ from ‘tls_config_check_certificate’
# 1532|   	for (size_t x = 0; x < WINPR_JSON_GetArraySize(db); x++)
# 1533|   	{
# 1534|-> 		WINPR_JSON* cur = WINPR_JSON_GetArrayItem(db, x);
# 1535|   		if (!cur || !WINPR_JSON_IsObject(cur))
# 1536|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def911]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1575:33: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  WINPR_JSON_GetStringValue(WINPR_JSON_GetObjectItemCaseSensitive(WINPR_JSON_GetArrayItem(WINPR_JSON_GetObjectItemCaseSensitive(json, "certificate-db"), x), "type")), 0)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1529:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1532:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1534:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1535:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1543:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1565:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1575:33: throw: if ‘_stricmp’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1575:33: danger: ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  WINPR_JSON_GetStringValue(WINPR_JSON_GetObjectItemCaseSensitive(WINPR_JSON_GetArrayItem(WINPR_JSON_GetObjectItemCaseSensitive(json, "certificate-db"), x), "type")), 0)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/6)
# 1573|   		}
# 1574|   
# 1575|-> 		const int cmp = _stricmp(hash, sval);
# 1576|   		free(hash);
# 1577|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def912]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1985:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1673:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1985:9: throw: if ‘freerdp_certificate_data_free’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1985:9: danger: ‘pemCert’ leaks here; was allocated at [(8)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/7)
# 1983|   
# 1984|   end:
# 1985|-> 	freerdp_certificate_data_free(certificate_data);
# 1986|   	free(common_name);
# 1987|   	freerdp_certificate_free_dns_names(dns_names_count, dns_names_lengths, dns_names);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def913]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1987:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pemCert’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1635:5: enter_function: entry to ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1663:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: call_function: calling ‘tls_extract_full_pem’ from ‘tls_verify_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:14: return_function: returning to ‘tls_verify_certificate’ from ‘tls_extract_full_pem’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1666:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1670:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1673:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1987:9: throw: if ‘freerdp_certificate_free_dns_names’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1987:9: danger: ‘pemCert’ leaks here; was allocated at [(8)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/7)
# 1985|   	freerdp_certificate_data_free(certificate_data);
# 1986|   	free(common_name);
# 1987|-> 	freerdp_certificate_free_dns_names(dns_names_count, dns_names_lengths, dns_names);
# 1988|   	free(pemCert);
# 1989|   	return verification_status;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def914]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2071:14: warning[-Wanalyzer-malloc-leak]: leak of ‘tls’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2064:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2066:12: branch_false: following ‘false’ branch (when ‘tls’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2069:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2071:14: throw: if ‘freerdp_settings_get_bool’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2071:14: danger: ‘tls’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
# 2069|   	tls->context = context;
# 2070|   
# 2071|-> 	if (!freerdp_settings_get_bool(tls->context->settings, FreeRDP_ServerMode))
# 2072|   	{
# 2073|   		tls->certificate_store = freerdp_certificate_store_new(tls->context->settings);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def915]
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2073:42: warning[-Wanalyzer-malloc-leak]: leak of ‘tls’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2064:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2066:12: branch_false: following ‘false’ branch (when ‘tls’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2069:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2071:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2073:72: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2073:42: throw: if ‘freerdp_certificate_store_new’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:2073:42: danger: ‘tls’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
# 2071|   	if (!freerdp_settings_get_bool(tls->context->settings, FreeRDP_ServerMode))
# 2072|   	{
# 2073|-> 		tls->certificate_store = freerdp_certificate_store_new(tls->context->settings);
# 2074|   
# 2075|   		if (!tls->certificate_store)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def916]
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:63:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:45:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:50:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:50:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:56:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:56:14: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:57:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:63:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:63:13: throw: if ‘X509_digest’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:63:13: danger: ‘fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   61|   	}
#   62|   
#   63|-> 	if (X509_digest(xcert, md, fp, &fp_len) != 1)
#   64|   	{
#   65|   		free(fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def917]
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:89:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:79:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:81:31: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:82:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:84:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:84:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:86:20: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:89:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:89:17: throw: if ‘ERR_clear_error’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:89:17: danger: ‘buffer’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   87|   			goto fail;
#   88|   
#   89|-> 		ERR_clear_error();
#   90|   		const int rc = BIO_read(outBIO, buffer, (int)size);
#   91|   		if (rc <= 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def918]
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:90:32: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:79:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:81:31: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:82:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:84:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:84:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:86:20: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:89:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:90:32: throw: if ‘BIO_read’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:90:32: danger: ‘buffer’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#   88|   
#   89|   		ERR_clear_error();
#   90|-> 		const int rc = BIO_read(outBIO, buffer, (int)size);
#   91|   		if (rc <= 0)
#   92|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def919]
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:376:28: warning[-Wanalyzer-malloc-leak]: leak of ‘list.strings’
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:454:7: enter_function: entry to ‘x509_utils_get_upn’
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:461:9: call_function: calling ‘map_subject_alt_name’ from ‘x509_utils_get_upn’
#  374|   
#  375|   	/* TODO: check that object.type is a string type. */
#  376|-> 	const int length = ASN1_STRING_to_UTF8(&utf8String, object->value.asn1_string);
#  377|   
#  378|   	if (length < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def920]
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:497:9: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:479:12: branch_false: following ‘false’ branch (when ‘date’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:482:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:487:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:487:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:489:26: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:492:23: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:497:9: throw: if ‘BIO_free_all’ throws an exception...
FreeRDP-3.20.0/libfreerdp/crypto/x509_utils.c:497:9: danger: ‘str’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  495|   	{ // Log error
#  496|   	}
#  497|-> 	BIO_free_all(bmem);
#  498|   	return str;
#  499|   }

Error: CPPCHECK_WARNING (CWE-476): [#def921]
FreeRDP-3.20.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-688): [#def922]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_emulate.c:185:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tmp’ where non-null expected
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_emulate.c:182:12: branch_true: following ‘true’ branch (when ‘dstSize == 4294967295’)...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_emulate.c:184:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_emulate.c:184:29: acquire_memory: this call could return NULL
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_emulate.c:185:17: danger: argument 1 (‘tmp’) from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
#  183|   	{
#  184|   		void* tmp = malloc(srcSize);
#  185|-> 		memcpy(tmp, src, srcSize);
#  186|   		ArrayList_Append(ctx->strings, tmp);
#  187|   		*((void**)dst) = tmp;

Error: CPPCHECK_WARNING (CWE-476): [#def923]
FreeRDP-3.20.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): [#def924]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:275:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ef’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.20.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): [#def925]
FreeRDP-3.20.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): [#def926]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:276:20: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.20.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): [#def927]
FreeRDP-3.20.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): [#def928]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:282:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.20.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): [#def929]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:282:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.20.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): [#def930]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:284:14: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.20.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): [#def931]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:419:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.20.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): [#def932]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:816:49: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 1, & nSize)’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:815:19: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:816:19: throw: if ‘freerdp_certificate_get_param’ throws an exception...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:816:49: danger: ‘freerdp_certificate_get_param(*context.certificate, 1, & nSize)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  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): [#def933]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:818:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_param(*context.certificate, 0, & eSize)’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:816:19: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:818:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:821:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:821:18: throw: if ‘Stream_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:818:13: danger: ‘freerdp_certificate_get_param(*context.certificate, 0, & eSize)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  816|   	char* e = freerdp_certificate_get_param(context->certificate, FREERDP_CERT_RSA_E, &eSize);
#  817|   
#  818|-> 	if (!n || !e)
#  819|   		goto handle_error;
#  820|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def934]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:836:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, *<unknown>.capacity + 16)’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:803:13: enter_function: entry to ‘vgids_get_public_key’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:818:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:821:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:822:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:828:37: call_function: inlined call to ‘Stream_Capacity’ from ‘vgids_get_public_key’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:828:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:836:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:836:14: call_function: calling ‘vgids_write_tlv’ from ‘vgids_get_public_key’
#  834|   
#  835|   	/* write modulus and exponent DOs */
#  836|-> 	if (!vgids_write_tlv(pubKey, 0x81, n, nSize))
#  837|   		goto handle_error;
#  838|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def935]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:855:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pubKey’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:860:13: enter_function: entry to ‘vgids_ins_getdata’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:14: call_function: calling ‘vgids_parse_apdu_header’ from ‘vgids_ins_getdata’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:14: return_function: returning to ‘vgids_ins_getdata’ from ‘vgids_parse_apdu_header’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.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.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:921:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:928:25: call_function: inlined call to ‘stream_read_u8’ from ‘vgids_ins_getdata’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:931:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:940:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:940:28: branch_false: ...to here
FreeRDP-3.20.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.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:948:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:954:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:954:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:961:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:961:25: call_function: calling ‘vgids_get_public_key’ from ‘vgids_ins_getdata’
#  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): [#def936]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:856:9: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:860:13: enter_function: entry to ‘vgids_ins_getdata’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:14: call_function: calling ‘vgids_parse_apdu_header’ from ‘vgids_ins_getdata’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:14: return_function: returning to ‘vgids_ins_getdata’ from ‘vgids_parse_apdu_header’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:876:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.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.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:921:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:928:25: call_function: inlined call to ‘stream_read_u8’ from ‘vgids_ins_getdata’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:931:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:940:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:940:28: branch_false: ...to here
FreeRDP-3.20.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.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:948:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:954:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:954:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:961:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:961:25: call_function: calling ‘vgids_get_public_key’ from ‘vgids_ins_getdata’
#  854|   	free(e);
#  855|   	Stream_Free(pubKey, TRUE);
#  856|-> 	Stream_Free(response, TRUE);
#  857|   	return rc;
#  858|   }

Error: CPPCHECK_WARNING (CWE-476): [#def937]
FreeRDP-3.20.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): [#def938]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ctx’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: this call could return NULL
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443:9: danger: ‘ctx’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/40/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): [#def939]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443:22: throw: if ‘ArrayList_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443:22: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/41/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): [#def940]
FreeRDP-3.20.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): [#def941]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1443:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: throw: if ‘ArrayList_Object’ throws an exception...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/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): [#def942]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: throw: if ‘ArrayList_Object’ throws an exception...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1450:15: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/42/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): [#def943]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1630:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.20.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): [#def944]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1631:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.20.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): [#def945]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1632:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.20.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): [#def946]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1633:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.20.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): [#def947]
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1635:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.20.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): [#def948]
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:52:21: warning[-Wanalyzer-malloc-leak]: leak of ‘hDC’
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:45:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:47:12: branch_false: following ‘false’ branch (when ‘hDC’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:50:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:52:21: throw: if ‘gdi_CreateRectRgn’ throws an exception...
FreeRDP-3.20.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): [#def949]
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:81:27: warning[-Wanalyzer-malloc-leak]: leak of ‘hDC’
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:76:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:76:12: branch_false: following ‘false’ branch (when ‘hDC’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:79:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:81:27: throw: if ‘gdi_CreateRectRgn’ throws an exception...
FreeRDP-3.20.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): [#def950]
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:91:36: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:76:12: branch_false: following ‘false’ branch (when ‘hDC’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:79:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:81:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:84:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:88:37: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:91:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:91:36: throw: if ‘gdi_CreateRectRgn’ throws an exception...
FreeRDP-3.20.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): [#def951]
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:91:36: warning[-Wanalyzer-malloc-leak]: leak of ‘hDC’
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:76:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:76:12: branch_false: following ‘false’ branch (when ‘hDC’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:79:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:81:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:84:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:91:36: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:91:36: throw: if ‘gdi_CreateRectRgn’ throws an exception...
FreeRDP-3.20.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): [#def952]
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:121:27: warning[-Wanalyzer-malloc-leak]: leak of ‘hDC’
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:116:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:118:12: branch_false: following ‘false’ branch (when ‘hDC’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:121:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/dc.c:121:27: throw: if ‘gdi_CreateRectRgn’ throws an exception...
FreeRDP-3.20.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): [#def953]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:29: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:439:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:441:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:29: throw: if ‘gdi_CreateCompatibleDC’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:29: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  442|   		goto fail_bitmap;
#  443|   
#  444|-> 	if (!(bitmap->hdc = gdi_CreateCompatibleDC(gdi->hdc)))
#  445|   		goto fail_hdc;
#  446|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def954]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:447:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:439:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:441:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:447:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:447:9: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:447:9: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  445|   		goto fail_hdc;
#  446|   
#  447|-> 	WLog_Print(gdi->log, WLOG_DEBUG, "gdi_bitmap_new: width:%d height:%d bpp:%d", width, height,
#  448|   	           bpp);
#  449|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def955]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:452:21: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:439:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:441:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:447:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:450:12: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:453:48: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:452:21: throw: if ‘gdi_CreateCompatibleBitmap’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:452:21: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  450|   	if (!data)
#  451|   		bitmap->bitmap =
#  452|-> 		    gdi_CreateCompatibleBitmap(gdi->hdc, WINPR_ASSERTING_INT_CAST(uint32_t, width),
#  453|   		                               WINPR_ASSERTING_INT_CAST(uint32_t, height));
#  454|   	else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def956]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:455:34: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:439:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:441:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:447:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:450:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:457:52: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:455:34: throw: if ‘gdi_create_bitmap’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:455:34: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  453|   		                               WINPR_ASSERTING_INT_CAST(uint32_t, height));
#  454|   	else
#  455|-> 		bitmap->bitmap = gdi_create_bitmap(gdi, WINPR_ASSERTING_INT_CAST(uint32_t, width),
#  456|   		                                   WINPR_ASSERTING_INT_CAST(uint32_t, height),
#  457|   		                                   WINPR_ASSERTING_INT_CAST(uint32_t, bpp), data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def957]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:462:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:439:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:441:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:447:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:459:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:462:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:462:9: throw: if ‘gdi_SelectObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:462:9: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  460|   		goto fail_bitmap_bitmap;
#  461|   
#  462|-> 	gdi_SelectObject(bitmap->hdc, (HGDIOBJECT)bitmap->bitmap);
#  463|   	bitmap->org_bitmap = NULL;
#  464|   	return bitmap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def958]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:466:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:439:30: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:441:12: branch_false: following ‘false’ branch (when ‘bitmap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:444:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:447:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:459:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:460:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:466:9: throw: if ‘gdi_DeleteDC’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:466:9: danger: ‘bitmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  464|   	return bitmap;
#  465|   fail_bitmap_bitmap:
#  466|-> 	gdi_DeleteDC(bitmap->hdc);
#  467|   fail_hdc:
#  468|   	free(bitmap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def959]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:477:17: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1371:6: enter_function: entry to ‘gdi_init_ex’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1386:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1388:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1391:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1394:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1395:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1432:9: call_function: calling ‘gdi_free’ from ‘gdi_init_ex’
#  475|   	if (bitmap)
#  476|   	{
#  477|-> 		gdi_SelectObject(bitmap->hdc, (HGDIOBJECT)bitmap->org_bitmap);
#  478|   		gdi_DeleteObject((HGDIOBJECT)bitmap->bitmap);
#  479|   		gdi_DeleteDC(bitmap->hdc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def960]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:478:17: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1371:6: enter_function: entry to ‘gdi_init_ex’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1386:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1388:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1391:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1394:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1395:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1432:9: call_function: calling ‘gdi_free’ from ‘gdi_init_ex’
#  476|   	{
#  477|   		gdi_SelectObject(bitmap->hdc, (HGDIOBJECT)bitmap->org_bitmap);
#  478|-> 		gdi_DeleteObject((HGDIOBJECT)bitmap->bitmap);
#  479|   		gdi_DeleteDC(bitmap->hdc);
#  480|   		free(bitmap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def961]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1392:20: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1386:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1388:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1391:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1392:20: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1392:20: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1390|   
# 1391|   	context->gdi = gdi;
# 1392|-> 	gdi->log = WLog_Get(TAG);
# 1393|   
# 1394|   	if (!gdi->log)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def962]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1398:22: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1386:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1388:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1391:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1394:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1397:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1398:22: throw: if ‘freerdp_settings_get_uint32’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1398:22: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1396|   
# 1397|   	gdi->context = context;
# 1398|-> 	gdi->width = WINPR_ASSERTING_INT_CAST(
# 1399|   	    int32_t, freerdp_settings_get_uint32(context->settings, FreeRDP_DesktopWidth));
# 1400|   	gdi->height = WINPR_ASSERTING_INT_CAST(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def963]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1400:23: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1386:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1388:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1391:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1394:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1397:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1400:23: throw: if ‘freerdp_settings_get_uint32’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1400:23: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1398|   	gdi->width = WINPR_ASSERTING_INT_CAST(
# 1399|   	    int32_t, freerdp_settings_get_uint32(context->settings, FreeRDP_DesktopWidth));
# 1400|-> 	gdi->height = WINPR_ASSERTING_INT_CAST(
# 1401|   	    int32_t, freerdp_settings_get_uint32(context->settings, FreeRDP_DesktopHeight));
# 1402|   	gdi->dstFormat = format;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def964]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1404:9: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1386:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1388:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1391:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1394:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1397:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1404:9: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1404:9: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1402|   	gdi->dstFormat = format;
# 1403|   	/* default internal buffer format */
# 1404|-> 	WLog_Print(gdi->log, WLOG_INFO, "Local framebuffer format  %s",
# 1405|   	           FreeRDPGetColorFormatName(gdi->dstFormat));
# 1406|   	WLog_Print(gdi->log, WLOG_INFO, "Remote framebuffer format %s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def965]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1406:9: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1386:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1388:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1391:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1394:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1397:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1406:9: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1406:9: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1404|   	WLog_Print(gdi->log, WLOG_INFO, "Local framebuffer format  %s",
# 1405|   	           FreeRDPGetColorFormatName(gdi->dstFormat));
# 1406|-> 	WLog_Print(gdi->log, WLOG_INFO, "Remote framebuffer format %s",
# 1407|   	           FreeRDPGetColorFormatName(SrcFormat));
# 1408|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def966]
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1409:26: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi’
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1386:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1388:12: branch_false: following ‘false’ branch (when ‘gdi’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1391:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1394:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1397:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1409:26: throw: if ‘gdi_GetDC’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gdi.c:1409:26: danger: ‘gdi’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 1407|   	           FreeRDPGetColorFormatName(SrcFormat));
# 1408|   
# 1409|-> 	if (!(gdi->hdc = gdi_GetDC()))
# 1410|   		goto fail;
# 1411|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def967]
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:604:22: warning[-Wanalyzer-malloc-leak]: leak of ‘h264_context_new(0)’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1032:13: enter_function: entry to ‘gdi_SurfaceCommand’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1075:34: call_function: calling ‘gdi_SurfaceCommand_AVC420’ from ‘gdi_SurfaceCommand’
#  602|   		}
#  603|   
#  604|-> 		if (!h264_context_reset(surface->h264, surface->width, surface->height))
#  605|   			return ERROR_INTERNAL_ERROR;
#  606|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def968]
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:689:22: warning[-Wanalyzer-malloc-leak]: leak of ‘h264_context_new(0)’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1032:13: enter_function: entry to ‘gdi_SurfaceCommand’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1080:34: call_function: calling ‘gdi_SurfaceCommand_AVC444’ from ‘gdi_SurfaceCommand’
#  687|   		}
#  688|   
#  689|-> 		if (!h264_context_reset(surface->h264, surface->width, surface->height))
#  690|   			return ERROR_INTERNAL_ERROR;
#  691|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def969]
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1144:14: warning[-Wanalyzer-malloc-leak]: leak of ‘surface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1139:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1141:12: branch_false: following ‘false’ branch (when ‘surface’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1144:40: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1144:14: throw: if ‘freerdp_settings_get_bool’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1144:14: danger: ‘surface’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1142|   		goto fail;
# 1143|   
# 1144|-> 	if (!freerdp_settings_get_bool(gdi->context->settings, FreeRDP_DeactivateClientDecoding))
# 1145|   	{
# 1146|   		WINPR_ASSERT(context->codecs);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def970]
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1180:32: warning[-Wanalyzer-malloc-leak]: leak of ‘surface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1127:13: enter_function: entry to ‘gdi_CreateSurface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1139:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1141:12: branch_false: following ‘false’ branch (when ‘surface’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1144:40: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1144:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1156:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1157:26: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1157:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1158:27: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1158:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1180:32: throw: if ‘winpr_aligned_malloc’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1180:32: danger: ‘surface’ leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
# 1178|   
# 1179|   	surface->scanline = gfx_align_scanline(surface->width * 4UL, 16);
# 1180|-> 	surface->data = (BYTE*)winpr_aligned_malloc(1ull * surface->scanline * surface->height, 16);
# 1181|   
# 1182|   	if (!surface->data)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def971]
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1189:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1127:13: enter_function: entry to ‘gdi_CreateSurface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1141:12: branch_false: following ‘false’ branch (when ‘surface’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1144:40: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1144:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1156:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1157:26: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1157:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1158:27: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1158:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1180:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1182:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1188:45: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1189:9: throw: if ‘region16_init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1189:9: danger: ‘<unknown>’ leaks here; was allocated at [(12)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/11)
# 1187|   
# 1188|   	memset(surface->data, 0xFF, (size_t)surface->scanline * surface->height);
# 1189|-> 	region16_init(&surface->invalidRegion);
# 1190|   
# 1191|   	WINPR_ASSERT(context->SetSurfaceData);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def972]
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1189:9: warning[-Wanalyzer-malloc-leak]: leak of ‘surface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1127:13: enter_function: entry to ‘gdi_CreateSurface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1139:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1141:12: branch_false: following ‘false’ branch (when ‘surface’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1144:40: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1144:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1156:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1157:26: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1157:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1158:27: call_function: inlined call to ‘gfx_align_scanline’ from ‘gdi_CreateSurface’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1158:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1182:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1188:45: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1189:9: throw: if ‘region16_init’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1189:9: danger: ‘surface’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
# 1187|   
# 1188|   	memset(surface->data, 0xFF, (size_t)surface->scanline * surface->height);
# 1189|-> 	region16_init(&surface->invalidRegion);
# 1190|   
# 1191|   	WINPR_ASSERT(context->SetSurfaceData);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def973]
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1419:51: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew((long unsigned int)cacheSlot, 0, 0, 537135240)’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1553:13: enter_function: entry to ‘gdi_CacheImportReply’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1563:32: branch_true: following ‘true’ branch (when ‘index < count’)...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1565:41: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1567:20: branch_false: following ‘false’ branch (when ‘cacheSlot != 0’)...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1572:40: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1574:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1577:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1577:30: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_CacheImportReply’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1577:30: return_function: returning to ‘gdi_CacheImportReply’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1579:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1583:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1583:25: throw: if the called function throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1419:51: danger: ‘gdi_GfxCacheEntryNew((long unsigned int)cacheSlot, 0, 0, 537135240)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
# 1417|   	cacheEntry->height = height;
# 1418|   	cacheEntry->format = format;
# 1419|-> 	cacheEntry->scanline = gfx_align_scanline(cacheEntry->width * 4, 16);
# 1420|   
# 1421|   	if ((cacheEntry->width > 0) && (cacheEntry->height > 0))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def974]
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1419:51: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew(*importCacheEntry.key64, (unsigned int)*importCacheEntry.width, (unsigned int)*importCacheEntry.height, 537135240)’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1597:13: enter_function: entry to ‘gdi_ImportCacheEntry’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1606:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_ImportCacheEntry’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1606:22: return_function: returning to ‘gdi_ImportCacheEntry’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1609:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1614:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1612:14: throw: if ‘freerdp_image_copy_no_overlap’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1419:51: danger: ‘gdi_GfxCacheEntryNew(*importCacheEntry.key64, (unsigned int)*importCacheEntry.width, (unsigned int)*importCacheEntry.height, 537135240)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
# 1417|   	cacheEntry->height = height;
# 1418|   	cacheEntry->format = format;
# 1419|-> 	cacheEntry->scanline = gfx_align_scanline(cacheEntry->width * 4, 16);
# 1420|   
# 1421|   	if ((cacheEntry->width > 0) && (cacheEntry->height > 0))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def975]
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1419:51: 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.20.0/libfreerdp/gdi/gfx.c:1439:13: enter_function: entry to ‘gdi_SurfaceToCache’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1452:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1455:50: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1455:14: call_function: calling ‘is_rect_valid’ from ‘gdi_SurfaceToCache’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1455:14: return_function: returning to ‘gdi_SurfaceToCache’ from ‘is_rect_valid’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1455:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1458:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1458:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_SurfaceToCache’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1458:22: return_function: returning to ‘gdi_SurfaceToCache’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1461:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1464:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1464:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1469:92: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1467:14: throw: if ‘freerdp_image_copy_no_overlap’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1419:51: 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/12/codeFlows/0/threadFlows/0/locations/12)
# 1417|   	cacheEntry->height = height;
# 1418|   	cacheEntry->format = format;
# 1419|-> 	cacheEntry->scanline = gfx_align_scanline(cacheEntry->width * 4, 16);
# 1420|   
# 1421|   	if ((cacheEntry->width > 0) && (cacheEntry->height > 0))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def976]
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1467:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1439:13: enter_function: entry to ‘gdi_SurfaceToCache’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1452:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1455:50: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1455:14: call_function: calling ‘is_rect_valid’ from ‘gdi_SurfaceToCache’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1455:14: return_function: returning to ‘gdi_SurfaceToCache’ from ‘is_rect_valid’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1455:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1458:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1458:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_SurfaceToCache’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1458:22: return_function: returning to ‘gdi_SurfaceToCache’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1461:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1464:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1464:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1469:92: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1467:14: throw: if ‘freerdp_image_copy_no_overlap’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1467:14: danger: ‘<unknown>’ leaks here; was allocated at [(17)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/16)
# 1465|   		goto fail;
# 1466|   
# 1467|-> 	if (!freerdp_image_copy_no_overlap(cacheEntry->data, cacheEntry->format, cacheEntry->scanline,
# 1468|   	                                   0, 0, cacheEntry->width, cacheEntry->height, surface->data,
# 1469|   	                                   surface->format, surface->scanline, rect->left, rect->top,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def977]
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1612:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1597:13: enter_function: entry to ‘gdi_ImportCacheEntry’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1606:22: call_function: calling ‘gdi_GfxCacheEntryNew’ from ‘gdi_ImportCacheEntry’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1606:22: return_function: returning to ‘gdi_ImportCacheEntry’ from ‘gdi_GfxCacheEntryNew’
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1609:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1614:44: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1612:14: throw: if ‘freerdp_image_copy_no_overlap’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/gfx.c:1612:14: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/7)
# 1610|   		goto fail;
# 1611|   
# 1612|-> 	if (!freerdp_image_copy_no_overlap(cacheEntry->data, cacheEntry->format, cacheEntry->scanline,
# 1613|   	                                   0, 0, cacheEntry->width, cacheEntry->height,
# 1614|   	                                   importCacheEntry->data, PIXEL_FORMAT_BGRX32, 0, 0, 0, NULL,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def978]
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:294:29: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_glyph_convert(*glyph.cx, *glyph.cy, *glyph.aj)’
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:282:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:285:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:286:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:288:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:294:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:294:29: throw: if ‘gdi_CreateBitmap’ throws an exception...
FreeRDP-3.20.0/libfreerdp/gdi/graphics.c:294:29: danger: ‘freerdp_glyph_convert(*glyph.cx, *glyph.cy, *glyph.aj)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  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 (CWE-688): [#def979]
FreeRDP-3.20.0/libfreerdp/gdi/shape.c:178:33: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
FreeRDP-3.20.0/libfreerdp/gdi/shape.c:140:6: enter_function: entry to ‘gdi_FillRect’
FreeRDP-3.20.0/libfreerdp/gdi/shape.c:153:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/shape.c:156:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/shape.c:156:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/shape.c:159:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/shape.c:175:43: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/shape.c:177:46: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/shape.c:177:46: call_function: calling ‘gdi_get_bitmap_pointer’ from ‘gdi_FillRect’
FreeRDP-3.20.0/libfreerdp/gdi/shape.c:177:46: return_function: returning to ‘gdi_FillRect’ from ‘gdi_get_bitmap_pointer’
FreeRDP-3.20.0/libfreerdp/gdi/shape.c:178:33: danger: argument 2 (‘gdi_get_bitmap_pointer(hdc,  nXDest,  nYDest)’) NULL where non-null expected
#  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): [#def980]
FreeRDP-3.20.0/libfreerdp/gdi/video.c:180:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/libfreerdp/gdi/video.c:167:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/video.c:168:12: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/video.c:171:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/video.c:180:21: throw: if ‘winpr_aligned_malloc’ throws an exception...
FreeRDP-3.20.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): [#def981]
FreeRDP-3.20.0/libfreerdp/gdi/video.c:193:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/libfreerdp/gdi/video.c:161:15: enter_function: entry to ‘VideoClient_CreateCommonContext’
FreeRDP-3.20.0/libfreerdp/gdi/video.c:167:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/gdi/video.c:168:12: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/gdi/video.c:171:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/gdi/video.c:181:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/gdi/video.c:182:17: branch_true: ...to here
FreeRDP-3.20.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): [#def982]
FreeRDP-3.20.0/libfreerdp/locale/keyboard.c: scope_hint: In function ‘freerdp_keyboard_init_ex’
FreeRDP-3.20.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.20.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): [#def983]
FreeRDP-3.20.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): [#def984]
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:978:28: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1252:35: throw: if ‘WINPR_JSON_GetObjectItemCaseSensitive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:978:28: danger: ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’ leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
#  976|   static void clear_layout_tables(void)
#  977|   {
#  978|-> 	for (size_t x = 0; x < sRDP_KEYBOARD_LAYOUT_TABLE_len; x++)
#  979|   	{
#  980|   		RDP_KEYBOARD_LAYOUT* layout = &sRDP_KEYBOARD_LAYOUT_TABLE[x];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def985]
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:978:28: warning[-Wanalyzer-malloc-leak]: leak of ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1250:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1252:35: throw: if ‘WINPR_JSON_GetObjectItemCaseSensitive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:978:28: danger: ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’ leaks here; was allocated at [(6)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/5)
#  976|   static void clear_layout_tables(void)
#  977|   {
#  978|-> 	for (size_t x = 0; x < sRDP_KEYBOARD_LAYOUT_TABLE_len; x++)
#  979|   	{
#  980|   		RDP_KEYBOARD_LAYOUT* layout = &sRDP_KEYBOARD_LAYOUT_TABLE[x];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def986]
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1009:28: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.20.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): [#def987]
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:14: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:14: throw: if ‘WINPR_JSON_IsObject’ throws an exception...
FreeRDP-3.20.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/24/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): [#def988]
FreeRDP-3.20.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.20.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:14: throw: if ‘WINPR_JSON_IsObject’ throws an exception...
FreeRDP-3.20.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/25/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): [#def989]
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1269:9: warning[-Wanalyzer-malloc-leak]: leak of ‘json’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1246:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1269:9: throw: if ‘WINPR_JSON_Delete’ throws an exception...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1269:9: danger: ‘json’ leaks here; was allocated at [(6)](sarif:/runs/0/results/26/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): [#def990]
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1390:40: warning[-Wanalyzer-malloc-leak]: leak of ‘layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1465:22: enter_function: entry to ‘freerdp_keyboard_get_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1477:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1479:22: branch_true: ...to here
FreeRDP-3.20.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): [#def991]
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1392:22: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(*ime.name)’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1465:22: enter_function: entry to ‘freerdp_keyboard_get_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1477:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1479:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1479:22: call_function: calling ‘rdp_keyboard_layout_clone_append’ from ‘freerdp_keyboard_get_layouts’
# 1390|   			layout->name = _strdup(ime->name);
# 1391|   
# 1392|-> 		if (!layout->name)
# 1393|   			return FALSE;
# 1394|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def992]
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1416:40: warning[-Wanalyzer-malloc-leak]: leak of ‘layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1465:22: enter_function: entry to ‘freerdp_keyboard_get_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1477:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1483:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1483:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1485:22: branch_true: ...to here
FreeRDP-3.20.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): [#def993]
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1418:22: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(*ime.name)’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1465:22: enter_function: entry to ‘freerdp_keyboard_get_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1477:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1483:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1483:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1485:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1485:22: call_function: calling ‘rdp_keyboard_variant_clone_append’ from ‘freerdp_keyboard_get_layouts’
# 1416|   			layout->name = _strdup(ime->name);
# 1417|   
# 1418|-> 		if (!layout->name)
# 1419|   			return FALSE;
# 1420|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def994]
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1442:40: warning[-Wanalyzer-malloc-leak]: leak of ‘layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1465:22: enter_function: entry to ‘freerdp_keyboard_get_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1477:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1483:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1483:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1489:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1489:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1491:22: branch_true: ...to here
FreeRDP-3.20.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-401): [#def995]
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1444:22: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(*ime.name)’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1465:22: enter_function: entry to ‘freerdp_keyboard_get_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1477:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1483:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1483:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1489:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1489:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1491:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1491:22: call_function: calling ‘rdp_keyboard_ime_clone_append’ from ‘freerdp_keyboard_get_layouts’
# 1442|   			layout->name = _strdup(ime->name);
# 1443|   
# 1444|-> 		if (!layout->name)
# 1445|   			return FALSE;
# 1446|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def996]
FreeRDP-3.20.0/libfreerdp/locale/locale.c:692:21: warning[-Wanalyzer-malloc-leak]: leak of ‘env_lang’
FreeRDP-3.20.0/libfreerdp/locale/locale.c:684:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/locale.c:687:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/locale.c:687:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/locale/locale.c:689:20: branch_false: following ‘false’ branch (when ‘env_lang’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/locale/locale.c:692:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/locale.c:692:21: throw: if ‘GetEnvironmentVariableA’ throws an exception...
FreeRDP-3.20.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: [#def997]
FreeRDP-3.20.0/libfreerdp/primitives/sse/prim_avxsse.h:65:16: note[note]: called from here
#   63|   {
#   64|   	const __m128i* mptr = WINPR_CXX_COMPAT_CAST(const __m128i*, ptr);
#   65|-> 	return _mm_lddqu_si128(mptr);
#   66|   }
#   67|   

Error: COMPILER_WARNING: [#def998]
FreeRDP-3.20.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: [#def999]
FreeRDP-3.20.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): [#def1000]
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:72:22: warning[-Wanalyzer-malloc-leak]: leak of ‘GetKnownPath(id)’
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:61:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:63:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:72:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:72:22: throw: if ‘GetCombinedPath’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:72:22: danger: ‘GetKnownPath(id)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   70|   #endif
#   71|   
#   72|-> 	char* base = GetCombinedPath(vendor, verstr);
#   73|   	free(vendor);
#   74|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1001]
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:81:22: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(GetKnownPath(id), "FreeRDP")’
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:63:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:72:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:72:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:75:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:78:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:78:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:81:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:81:22: throw: if ‘GetCombinedPath’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:81:22: danger: ‘GetCombinedPath(GetKnownPath(id), "FreeRDP")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   79|   		return base;
#   80|   
#   81|-> 	char* path = GetCombinedPath(base, filename);
#   82|   	free(base);
#   83|   	return path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1002]
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:92:28: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetConfigFilePath(system,  filename)’
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:86:13: enter_function: entry to ‘freerdp_GetJSONConfigFile’
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:88:22: call_function: calling ‘freerdp_GetConfigFilePath’ from ‘freerdp_GetJSONConfigFile’
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:88:22: return_function: returning to ‘freerdp_GetJSONConfigFile’ from ‘freerdp_GetConfigFilePath’
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:89:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:92:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:92:28: throw: if ‘WINPR_JSON_ParseFromFile’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/helpers.c:92:28: danger: ‘freerdp_GetConfigFilePath(system,  filename)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
#   90|   		return NULL;
#   91|   
#   92|-> 	WINPR_JSON* json = WINPR_JSON_ParseFromFile(path);
#   93|   	free(path);
#   94|   	return json;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1003]
FreeRDP-3.20.0/libfreerdp/utils/http.c:129:21: warning[-Wanalyzer-malloc-leak]: leak of ‘hostname’
FreeRDP-3.20.0/libfreerdp/utils/http.c:113:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/http.c:113:13: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/http.c:120:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/http.c:121:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/http.c:122:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/http.c:126:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/http.c:126:12: branch_true: following ‘true’ branch (when ‘body’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/http.c:128:24: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/http.c:129:21: throw: if ‘winpr_asprintf’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/http.c:129:21: danger: ‘hostname’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#  127|   	{
#  128|   		blen = strlen(body);
#  129|-> 		if (winpr_asprintf(&headers, &size, post_header_fmt, path, hostname, blen) < 0)
#  130|   		{
#  131|   			free(hostname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1004]
FreeRDP-3.20.0/libfreerdp/utils/http.c:137:21: warning[-Wanalyzer-malloc-leak]: leak of ‘hostname’
FreeRDP-3.20.0/libfreerdp/utils/http.c:113:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/http.c:113:13: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/http.c:120:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/http.c:121:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/http.c:122:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/http.c:126:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/http.c:126:12: branch_false: following ‘false’ branch (when ‘body’ is NULL)...
FreeRDP-3.20.0/libfreerdp/utils/http.c:137:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/http.c:137:21: throw: if ‘winpr_asprintf’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/http.c:137:21: danger: ‘hostname’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#  135|   	else
#  136|   	{
#  137|-> 		if (winpr_asprintf(&headers, &size, get_header_fmt, path, hostname) < 0)
#  138|   		{
#  139|   			free(hostname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1005]
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:190:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:151:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:159:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:166:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:166:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:167:28: branch_false: following ‘false’ branch (when ‘fout’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:176:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_true: following ‘true’ branch (when ‘fp’ is NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:190:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:190:17: danger: ‘fout’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
#  188|   	FILE* fp = fdopen(terminal_fildes, "r");
#  189|   	if (!fp)
#  190|-> 		goto error;
#  191|   
#  192|   	(void)fprintf(fout, "%s", prompt);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1006]
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:193:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:151:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:159:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:166:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:166:32: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:167:28: branch_false: following ‘false’ branch (when ‘fout’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:176:24: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:193:15: throw: if ‘fflush’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:193:15: danger: ‘fout’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
#  191|   
#  192|   	(void)fprintf(fout, "%s", prompt);
#  193|-> 	(void)fflush(fout);
#  194|   
#  195|   	char* ptr = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1007]
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:193:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:188:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:193:15: throw: if ‘fflush’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:193:15: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  191|   
#  192|   	(void)fprintf(fout, "%s", prompt);
#  193|-> 	(void)fflush(fout);
#  194|   
#  195|   	char* ptr = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1008]
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:247:13: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&command, "r")’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:243:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:244:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:247:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:247:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:251:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:247:13: danger: ‘popen(&command, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  245|   		return NULL;
#  246|   	WINPR_ASSERT(bufsiz <= INT32_MAX);
#  247|-> 	if (fgets(buf, (int)bufsiz, askproc) != NULL)
#  248|   		buf[strcspn(buf, "\r\n")] = '\0';
#  249|   	else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1009]
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:298:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:188:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  296|   		}
#  297|   
#  298|-> 		const int rc1 = fcntl(fd, F_SETFL, orig | O_NONBLOCK);
#  299|   		if (rc1 != 0)
#  300|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1010]
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:298:33: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  296|   		}
#  297|   
#  298|-> 		const int rc1 = fcntl(fd, F_SETFL, orig | O_NONBLOCK);
#  299|   		if (rc1 != 0)
#  300|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1011]
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:302:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:188:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  300|   		{
#  301|   			char buffer[128] = { 0 };
#  302|-> 			WLog_ERR(TAG, "fcntl(F_SETFL) failed with %s",
#  303|   			         winpr_strerror(errno, buffer, sizeof(buffer)));
#  304|   			return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1012]
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:302:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  300|   		{
#  301|   			char buffer[128] = { 0 };
#  302|-> 			WLog_ERR(TAG, "fcntl(F_SETFL) failed with %s",
#  303|   			         winpr_strerror(errno, buffer, sizeof(buffer)));
#  304|   			return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1013]
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:310:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:188:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  308|   		{
#  309|   			char buffer[128] = { 0 };
#  310|-> 			WLog_ERR(TAG, "tcgetattr() failed with %s",
#  311|   			         winpr_strerror(errno, buffer, sizeof(buffer)));
#  312|   			return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1014]
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:310:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  308|   		{
#  309|   			char buffer[128] = { 0 };
#  310|-> 			WLog_ERR(TAG, "tcgetattr() failed with %s",
#  311|   			         winpr_strerror(errno, buffer, sizeof(buffer)));
#  312|   			return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1015]
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:55:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: following ‘false’ branch (when ‘write == 0’)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:223:23: call_function: inlined call to ‘_fseeki64’ from ‘pcap_open’
FreeRDP-3.20.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): [#def1016]
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:128:27: warning[-Wanalyzer-malloc-leak]: leak of ‘record’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:119:45: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:120:12: branch_false: following ‘false’ branch (when ‘record’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:123:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:128:27: throw: if ‘winpr_GetUnixTimeNS’ throws an exception...
FreeRDP-3.20.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): [#def1017]
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pcap’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:197:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: throw: if ‘_strdup’ throws an exception...
FreeRDP-3.20.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): [#def1018]
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:204:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:204:20: throw: if ‘winpr_fopen’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:204:20: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/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): [#def1019]
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:204:20: warning[-Wanalyzer-malloc-leak]: leak of ‘pcap’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:197:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:204:20: throw: if ‘winpr_fopen’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:204:20: danger: ‘pcap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/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): [#def1020]
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:248:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_true: following ‘true’ branch (when ‘write != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:211:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:218:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:219:25: branch_true: ...to here
FreeRDP-3.20.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): [#def1021]
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:248:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pcap’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:197:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: following ‘false’ branch (when ‘write == 0’)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:223:23: call_function: inlined call to ‘_fseeki64’ from ‘pcap_open’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:226:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:227:25: branch_true: ...to here
FreeRDP-3.20.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): [#def1022]
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:43:26: warning[-Wanalyzer-malloc-leak]: leak of ‘profiler’
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:38:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:40:12: branch_false: following ‘false’ branch (when ‘profiler’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:43:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:43:26: throw: if ‘_strdup’ throws an exception...
FreeRDP-3.20.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): [#def1023]
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:44:31: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:40:12: branch_false: following ‘false’ branch (when ‘profiler’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:43:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:43:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:44:31: throw: if ‘stopwatch_create’ throws an exception...
FreeRDP-3.20.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): [#def1024]
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:44:31: warning[-Wanalyzer-malloc-leak]: leak of ‘profiler’
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:38:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:40:12: branch_false: following ‘false’ branch (when ‘profiler’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:43:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:44:31: throw: if ‘stopwatch_create’ throws an exception...
FreeRDP-3.20.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): [#def1025]
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:60:17: warning[-Wanalyzer-malloc-leak]: leak of ‘profiler’
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:36:11: enter_function: entry to ‘profiler_create’
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:38:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:40:12: branch_false: following ‘false’ branch (when ‘profiler’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:43:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:46:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/profiler.c:47:17: branch_true: ...to here
FreeRDP-3.20.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): [#def1026]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:113:45: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:111:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:113:45: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:113:45: throw: if the called function throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:113:45: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/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): [#def1027]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:22: throw: if ‘HashTable_Insert’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:22: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/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): [#def1028]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:123:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:123:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:123:25: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:123:25: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/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): [#def1029]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:134:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:134:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:134:9: throw: if ‘smartcard_scard_context_native_to_redir’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:134:9: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/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): [#def1030]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:136:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:134:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:136:18: throw: if ‘smartcard_pack_establish_context_return’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:136:18: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/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): [#def1031]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:139:24: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:134:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:137:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:139:24: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:139:24: throw: if ‘scard_log_status_error_wlog’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:139:24: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/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): [#def1032]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:143:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:134:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:143:16: danger: ‘pContext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  141|   	}
#  142|   
#  143|-> 	return ret.ReturnCode;
#  144|   }
#  145|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1033]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:659:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:642:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:644:59: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:644:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:646:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:650:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:650:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:659:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:659:18: throw: if ‘smartcard_pack_locate_cards_return’ throws an exception...
FreeRDP-3.20.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): [#def1034]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:702:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:685:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:687:59: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:687:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:689:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:693:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:693:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:702:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:702:18: throw: if ‘smartcard_pack_locate_cards_return’ throws an exception...
FreeRDP-3.20.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): [#def1035]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:742:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.pbData’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:725:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:727:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:728:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:730:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:730:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:731:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:736:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:736:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:742:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:742:21: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:742:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:742:21: throw: if ‘Emulate_SCardReadCacheA’ throws an exception...
FreeRDP-3.20.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-688): [#def1036]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:952:25: warning[-Wanalyzer-null-argument]: use of NULL ‘rgReaderStates’ where non-null expected
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:940:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:956:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:958:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:958:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:960:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:960:20: branch_false: following ‘false’ branch (when ‘dwTimeOut == 4294967295’)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:960:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:952:25: danger: argument 1 (‘rgReaderStates’) NULL where non-null expected
#  950|   	{
#  951|   		if (call->cReaders > 0)
#  952|-> 			memcpy(rgReaderStates, call->rgReaderStates,
#  953|   			       call->cReaders * sizeof(SCARD_READERSTATEA));
#  954|   		ret.ReturnCode = wrap(smartcard, SCardGetStatusChangeA, operation->hContext,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1037]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:944:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: throw: if ‘Emulate_SCardGetStatusChangeA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: danger: ‘ret.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): [#def1038]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:943:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: throw: if ‘Emulate_SCardGetStatusChangeA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: danger: ‘rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/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): [#def1039]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:958:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:944:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:956:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:958:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:958:21: throw: if ‘WaitForSingleObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:958:21: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/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): [#def1040]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:963:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:944:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:963:9: throw: if ‘scard_log_status_error_wlog’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:963:9: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/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-401): [#def1041]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:976:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:944:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:956:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:958:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:965:32: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:976:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:976:18: throw: if ‘smartcard_pack_get_status_change_return’ throws an exception...
FreeRDP-3.20.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): [#def1042]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:976:18: warning[-Wanalyzer-malloc-leak]: leak of ‘rout’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:942:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:944:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:945:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:949:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:951:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:953:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:954:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:956:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:958:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:965:32: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:967:64: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:965:32: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:976:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:976:18: throw: if ‘smartcard_pack_get_status_change_return’ throws an exception...
FreeRDP-3.20.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-688): [#def1043]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1013:25: warning[-Wanalyzer-null-argument]: use of NULL ‘rgReaderStates’ where non-null expected
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1019:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1021:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1021:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1023:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1023:20: branch_false: following ‘false’ branch (when ‘dwTimeOut == 4294967295’)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1023:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1013:25: danger: argument 1 (‘rgReaderStates’) NULL where non-null expected
# 1011|   	{
# 1012|   		if (call->cReaders > 0)
# 1013|-> 			memcpy(rgReaderStates, call->rgReaderStates,
# 1014|   			       call->cReaders * sizeof(SCARD_READERSTATEW));
# 1015|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1044]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1005:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: throw: if ‘Emulate_SCardGetStatusChangeW’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: danger: ‘ret.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): [#def1045]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1004:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: throw: if ‘Emulate_SCardGetStatusChangeW’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: danger: ‘rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/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): [#def1046]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1021:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1005:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1019:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1021:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1021:21: throw: if ‘WaitForSingleObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1021:21: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/27/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): [#def1047]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1026:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1005:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1026:9: throw: if ‘scard_log_status_error_wlog’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1026:9: danger: ‘ret.rgReaderStates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/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-401): [#def1048]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1039:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1005:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1019:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1021:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1028:32: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1039:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1039:18: throw: if ‘smartcard_pack_get_status_change_return’ throws an exception...
FreeRDP-3.20.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): [#def1049]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1039:18: warning[-Wanalyzer-malloc-leak]: leak of ‘rout’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1001:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1003:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1005:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:20: branch_false: following ‘false’ branch (when ‘rgReaderStates’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1006:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1010:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1012:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1014:32: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1016:42: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1019:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1021:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1028:32: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1030:64: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1028:32: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1039:18: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1039:18: throw: if ‘smartcard_pack_get_status_change_return’ throws an exception...
FreeRDP-3.20.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): [#def1050]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1379:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.pbRecvBuffer’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1365:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1371:43: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1373:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1377:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1379:13: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1379:13: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1379:13: throw: if ‘Emulate_SCardTransmit’ throws an exception...
FreeRDP-3.20.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): [#def1051]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1411:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.pvOutBuffer’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1405:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1407:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1411:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1411:13: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1411:13: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1411:13: throw: if ‘Emulate_SCardControl’ throws an exception...
FreeRDP-3.20.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): [#def1052]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1453:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pbAttr’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1437:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1439:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1441:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1443:45: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1443:45: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1445:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1449:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1449:26: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1449:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1453:13: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1453:13: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1453:13: throw: if ‘Emulate_SCardGetAttrib’ throws an exception...
FreeRDP-3.20.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): [#def1053]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1535:35: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1520:40: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1522:12: branch_false: following ‘false’ branch (when ‘states’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1522:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1525:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1535:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1535:35: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1535:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1535:35: throw: if ‘Emulate_SCardGetStatusChangeA’ throws an exception...
FreeRDP-3.20.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): [#def1054]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1580:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ret.rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1522:12: branch_false: following ‘false’ branch (when ‘states’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1522:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1559:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1560:59: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1560:59: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1562:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1562:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1568:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1578:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1580:18: throw: if ‘smartcard_pack_get_status_change_return’ throws an exception...
FreeRDP-3.20.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): [#def1055]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1900:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:91:13: enter_function: entry to ‘smartcard_EstablishContext_Call’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:101:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:103:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:105:21: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:106:20: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:109:37: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:111:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:121:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:123:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:124:25: call_function: calling ‘context_free’ from ‘smartcard_EstablishContext_Call’
# 1898|   
# 1899|   	if (element->fn_free)
# 1900|-> 		element->fn_free(element->context);
# 1901|   	free(element);
# 1902|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1056]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: throw: if ‘WLog_Get’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
# 1912|   		goto fail;
# 1913|   
# 1914|-> 	ctx->log = WLog_Get(SCARD_TAG);
# 1915|   	WINPR_ASSERT(ctx->log);
# 1916|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1057]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: throw: if ‘CreateEventA’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
# 1915|   	WINPR_ASSERT(ctx->log);
# 1916|   
# 1917|-> 	ctx->stopEvent = CreateEventA(NULL, TRUE, FALSE, NULL);
# 1918|   	if (!ctx->stopEvent)
# 1919|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1058]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: throw: if ‘LinkedList_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/2)
# 1919|   		goto fail;
# 1920|   
# 1921|-> 	ctx->names = LinkedList_New();
# 1922|   	if (!ctx->names)
# 1923|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1059]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: throw: if ‘LinkedList_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
# 1919|   		goto fail;
# 1920|   
# 1921|-> 	ctx->names = LinkedList_New();
# 1922|   	if (!ctx->names)
# 1923|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1060]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: throw: if ‘freerdp_settings_get_bool’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
# 1924|   
# 1925|   #if defined(WITH_SMARTCARD_EMULATE)
# 1926|-> 	ctx->useEmulatedCard = freerdp_settings_get_bool(settings, FreeRDP_SmartcardEmulation);
# 1927|   #endif
# 1928|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1061]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: throw: if ‘freerdp_settings_get_bool’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
# 1924|   
# 1925|   #if defined(WITH_SMARTCARD_EMULATE)
# 1926|-> 	ctx->useEmulatedCard = freerdp_settings_get_bool(settings, FreeRDP_SmartcardEmulation);
# 1927|   #endif
# 1928|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1062]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: throw: if ‘Emulate_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
# 1930|   	{
# 1931|   #if defined(WITH_SMARTCARD_EMULATE)
# 1932|-> 		ctx->emulation = Emulate_New(settings);
# 1933|   		if (!ctx->emulation)
# 1934|   			goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1063]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: throw: if ‘Emulate_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
# 1930|   	{
# 1931|   #if defined(WITH_SMARTCARD_EMULATE)
# 1932|-> 		ctx->emulation = Emulate_New(settings);
# 1933|   		if (!ctx->emulation)
# 1934|   			goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1064]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: throw: if ‘freerdp_settings_get_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/2)
# 1940|   	else
# 1941|   	{
# 1942|-> 		const char* WinSCardModule = freerdp_settings_get_string(settings, FreeRDP_WinSCardModule);
# 1943|   		if (WinSCardModule)
# 1944|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1065]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: throw: if ‘freerdp_settings_get_string’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
# 1940|   	else
# 1941|   	{
# 1942|-> 		const char* WinSCardModule = freerdp_settings_get_string(settings, FreeRDP_WinSCardModule);
# 1943|   		if (WinSCardModule)
# 1944|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1066]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1943:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: throw: if ‘LoadLibraryX’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/2)
# 1943|   		if (WinSCardModule)
# 1944|   		{
# 1945|-> 			ctx->hWinSCardLibrary = LoadLibraryX(WinSCardModule);
# 1946|   
# 1947|   			if (!ctx->hWinSCardLibrary)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1067]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1943:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: throw: if ‘LoadLibraryX’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/0)
# 1943|   		if (WinSCardModule)
# 1944|   		{
# 1945|-> 			ctx->hWinSCardLibrary = LoadLibraryX(WinSCardModule);
# 1946|   
# 1947|   			if (!ctx->hWinSCardLibrary)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1068]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1949:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1943:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1947:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1949:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1949:33: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1949:33: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/2)
# 1947|   			if (!ctx->hWinSCardLibrary)
# 1948|   			{
# 1949|-> 				WLog_Print(ctx->log, WLOG_ERROR, "Failed to load WinSCard library: '%s'",
# 1950|   				           WinSCardModule);
# 1951|   				goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1069]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1949:33: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1943:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1947:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1949:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1949:33: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1949:33: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/0)
# 1947|   			if (!ctx->hWinSCardLibrary)
# 1948|   			{
# 1949|-> 				WLog_Print(ctx->log, WLOG_ERROR, "Failed to load WinSCard library: '%s'",
# 1950|   				           WinSCardModule);
# 1951|   				goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1070]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1954:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1943:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1947:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1954:61: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1954:30: throw: if ‘WinSCard_LoadApiTableFunctions’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1954:30: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/2)
# 1952|   			}
# 1953|   
# 1954|-> 			if (!WinSCard_LoadApiTableFunctions(&ctx->WinSCardApi, ctx->hWinSCardLibrary))
# 1955|   				goto fail;
# 1956|   			ctx->pWinSCardApi = &ctx->WinSCardApi;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1071]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1954:30: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1943:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1945:49: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1947:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1954:61: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1954:30: throw: if ‘WinSCard_LoadApiTableFunctions’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1954:30: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/0)
# 1952|   			}
# 1953|   
# 1954|-> 			if (!WinSCard_LoadApiTableFunctions(&ctx->WinSCardApi, ctx->hWinSCardLibrary))
# 1955|   				goto fail;
# 1956|   			ctx->pWinSCardApi = &ctx->WinSCardApi;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1072]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1960:45: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1943:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1960:45: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1960:45: throw: if ‘WinPR_GetSCardApiFunctionTable’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1960:45: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/2)
# 1958|   		else
# 1959|   		{
# 1960|-> 			ctx->pWinSCardApi = WinPR_GetSCardApiFunctionTable();
# 1961|   		}
# 1962|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1073]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1960:45: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1943:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1960:45: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1960:45: throw: if ‘WinPR_GetSCardApiFunctionTable’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1960:45: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/0)
# 1958|   		else
# 1959|   		{
# 1960|-> 			ctx->pWinSCardApi = WinPR_GetSCardApiFunctionTable();
# 1961|   		}
# 1962|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1074]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1965:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1917:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1943:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1960:45: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1963:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1965:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1965:25: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1965:25: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/2)
# 1963|   		if (!ctx->pWinSCardApi)
# 1964|   		{
# 1965|-> 			WLog_Print(ctx->log, WLOG_ERROR, "Failed to load WinSCard API!");
# 1966|   			goto fail;
# 1967|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1075]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1965:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1942:46: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1943:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1960:45: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1963:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1965:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1965:25: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1965:25: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/0)
# 1963|   		if (!ctx->pWinSCardApi)
# 1964|   		{
# 1965|-> 			WLog_Print(ctx->log, WLOG_ERROR, "Failed to load WinSCard API!");
# 1966|   			goto fail;
# 1967|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1076]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1970:35: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1933:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1970:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1970:35: throw: if ‘HashTable_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1970:35: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/8)
# 1968|   	}
# 1969|   
# 1970|-> 	ctx->rgSCardContextList = HashTable_New(FALSE);
# 1971|   	if (!ctx->rgSCardContextList)
# 1972|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1077]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1970:35: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1933:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1970:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1970:35: throw: if ‘HashTable_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1970:35: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/0)
# 1968|   	}
# 1969|   
# 1970|-> 	ctx->rgSCardContextList = HashTable_New(FALSE);
# 1971|   	if (!ctx->rgSCardContextList)
# 1972|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1078]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1974:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1933:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1970:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1971:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1974:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1974:15: throw: if ‘HashTable_ValueObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1974:15: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/8)
# 1972|   		goto fail;
# 1973|   
# 1974|-> 	obj = HashTable_ValueObject(ctx->rgSCardContextList);
# 1975|   	WINPR_ASSERT(obj);
# 1976|   	obj->fnObjectFree = context_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1079]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1974:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1910:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1911:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1914:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1918:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1921:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1922:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1926:32: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1929:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1932:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1933:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1970:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1971:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1974:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1974:15: throw: if ‘HashTable_ValueObject’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_call.c:1974:15: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/0)
# 1972|   		goto fail;
# 1973|   
# 1974|-> 	obj = HashTable_ValueObject(ctx->rgSCardContextList);
# 1975|   	WINPR_ASSERT(obj);
# 1976|   	obj->fnObjectFree = context_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1080]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:93:14: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2489:13: enter_function: entry to ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2495:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘Stream_Get_UINT32’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2506:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2506:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2513:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2515:24: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2518:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2521:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2521: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): [#def1081]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:93:14: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2489:13: enter_function: entry to ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2495:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘Stream_Get_UINT32’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2506:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2507:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2513:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2515:24: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2518:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2521:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2521: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): [#def1082]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:104:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2489:13: enter_function: entry to ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2495:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘Stream_Get_UINT32’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2506:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2506:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2513:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2515:24: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2518:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2521:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2521: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): [#def1083]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:104:17: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2489:13: enter_function: entry to ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2495:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘Stream_Get_UINT32’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2506:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2507:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2513:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2515:24: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2518:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2521:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2521: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): [#def1084]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:388:17: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*call.mszGroups, (long unsigned int)*call.cBytes,  unicode)’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:673:13: enter_function: entry to ‘smartcard_trace_list_readers_call’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:677:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:680:75: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:680:28: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_list_readers_call’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:680:28: return_function: returning to ‘smartcard_trace_list_readers_call’ from ‘smartcard_convert_string_list’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:682:9: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:388:17: danger: ‘smartcard_convert_string_list(*call.mszGroups, (long unsigned int)*call.cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/11)
#  386|   		if (!mszA)
#  387|   			return NULL;
#  388|-> 		CopyMemory(mszA, string.sz, bytes - 1);
#  389|   		length = bytes;
#  390|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1085]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:388:17: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:654:13: enter_function: entry to ‘smartcard_trace_list_reader_groups_return’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:659:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:662:62: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:662:22: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_list_reader_groups_return’
FreeRDP-3.20.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.20.0/libfreerdp/utils/smartcard_pack.c:664:9: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:388:17: danger: ‘smartcard_convert_string_list(*ret.msz, (long unsigned int)*ret.cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/11)
#  386|   		if (!mszA)
#  387|   			return NULL;
#  388|-> 		CopyMemory(mszA, string.sz, bytes - 1);
#  389|   		length = bytes;
#  390|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1086]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:388:17: warning[-Wanalyzer-malloc-leak]: leak of ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:1320:13: enter_function: entry to ‘smartcard_trace_status_return’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:1327:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:1329:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:1334:27: call_function: calling ‘smartcard_convert_string_list’ from ‘smartcard_trace_status_return’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:1334:27: return_function: returning to ‘smartcard_trace_status_return’ from ‘smartcard_convert_string_list’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:1336:9: throw: if ‘WLog_IsLevelActive’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:388:17: danger: ‘smartcard_convert_string_list(*ret.mszReaderNames, (long unsigned int)cBytes,  unicode)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/11)
#  386|   		if (!mszA)
#  387|   			return NULL;
#  388|-> 		CopyMemory(mszA, string.sz, bytes - 1);
#  389|   		length = bytes;
#  390|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1087]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2444:22: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2416:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2422:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2425:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2425:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2425:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2426:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2433:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2433:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2435:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2435:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2439:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2441:24: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2444:22: throw: if ‘Stream_CheckAndLogRequiredLengthWLogEx’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2444:22: danger: ‘rgReaderStates’ leaks here; was allocated at [(13)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/12)
# 2442|   		LPSCARD_READERSTATEA readerState = &rgReaderStates[index];
# 2443|   
# 2444|-> 		if (!Stream_CheckAndLogRequiredLengthWLog(log, s, 52))
# 2445|   			goto fail;
# 2446|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1088]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2444:22: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2416:13: enter_function: entry to ‘smartcard_unpack_reader_state_a’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2422:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2425:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2425:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_a’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2425:28: return_function: returning to ‘smartcard_unpack_reader_state_a’ from ‘Stream_Get_UINT32’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2426:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2433:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2434:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2435:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2435:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2439:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2441:24: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2444:22: throw: if ‘Stream_CheckAndLogRequiredLengthWLogEx’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2444:22: danger: ‘states’ leaks here; was allocated at [(13)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/12)
# 2442|   		LPSCARD_READERSTATEA readerState = &rgReaderStates[index];
# 2443|   
# 2444|-> 		if (!Stream_CheckAndLogRequiredLengthWLog(log, s, 52))
# 2445|   			goto fail;
# 2446|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1089]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2518:22: warning[-Wanalyzer-malloc-leak]: leak of ‘rgReaderStates’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2489:13: enter_function: entry to ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2495:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘Stream_Get_UINT32’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2506:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2506:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2513:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2515:24: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2518:22: throw: if ‘Stream_CheckAndLogRequiredLengthWLogEx’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2518:22: danger: ‘rgReaderStates’ leaks here; was allocated at [(13)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/12)
# 2516|   		LPSCARD_READERSTATEW readerState = &rgReaderStates[index];
# 2517|   
# 2518|-> 		if (!Stream_CheckAndLogRequiredLengthWLog(log, s, 52))
# 2519|   			goto fail;
# 2520|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1090]
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2518:22: warning[-Wanalyzer-malloc-leak]: leak of ‘states’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2489:13: enter_function: entry to ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2495:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: call_function: calling ‘Stream_Get_UINT32’ from ‘smartcard_unpack_reader_state_w’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2498:28: return_function: returning to ‘smartcard_unpack_reader_state_w’ from ‘Stream_Get_UINT32’
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2506:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2507:24: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2509:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2513:32: branch_true: following ‘true’ branch (when ‘index < cReaders’)...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2515:24: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2518:22: throw: if ‘Stream_CheckAndLogRequiredLengthWLogEx’ throws an exception...
FreeRDP-3.20.0/libfreerdp/utils/smartcard_pack.c:2518:22: danger: ‘states’ leaks here; was allocated at [(13)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/12)
# 2516|   		LPSCARD_READERSTATEW readerState = &rgReaderStates[index];
# 2517|   
# 2518|-> 		if (!Stream_CheckAndLogRequiredLengthWLog(log, s, 52))
# 2519|   			goto fail;
# 2520|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1091]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_engine.c:37:13: warning[-Wanalyzer-malloc-leak]: leak of ‘engine’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_engine.c:32:43: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_engine.c:34:12: branch_false: following ‘false’ branch (when ‘engine’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_engine.c:37:13: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_engine.c:37:13: throw: if ‘rdtk_font_engine_init’ throws an exception...
FreeRDP-3.20.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): [#def1092]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:161:20: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:606:11: enter_function: entry to ‘rdtk_font_new’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:635:27: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:643:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:646:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:647:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:650:29: branch_false: ...to here
FreeRDP-3.20.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): [#def1093]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:168:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rdtk_font_load_descriptor_file(filename, & size)’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:593:12: enter_function: entry to ‘rdtk_font_load_descriptor’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:598:24: call_function: calling ‘rdtk_font_load_descriptor_file’ from ‘rdtk_font_load_descriptor’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:598:24: return_function: returning to ‘rdtk_font_load_descriptor’ from ‘rdtk_font_load_descriptor_file’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:603:16: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:603:16: call_function: calling ‘rdtk_font_parse_descriptor_buffer’ 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): [#def1094]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:313:24: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:667:18: enter_function: entry to ‘rdtk_embedded_font_new’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:690:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:698:31: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:698:31: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:700:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:703:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1095]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:313:24: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:667:18: enter_function: entry to ‘rdtk_embedded_font_new’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:675:37: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:690:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:698:31: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:700:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:703:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1096]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:361:23: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:667:18: enter_function: entry to ‘rdtk_embedded_font_new’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:690:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:698:31: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:698:31: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:700:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:703:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1097]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:361:23: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:667:18: enter_function: entry to ‘rdtk_embedded_font_new’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:675:37: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:690:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:698:31: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:700:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:703:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1098]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:621:9: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(path,  file)’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:617:30: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:621:9: throw: if ‘winpr_asprintf’ throws an exception...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:621:9: danger: ‘GetCombinedPath(path,  file)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/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): [#def1099]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:641:23: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:635:27: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:641:23: throw: if ‘winpr_image_new’ throws an exception...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:641:23: danger: ‘font’ leaks here; was allocated at [(11)](sarif:/runs/0/results/14/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): [#def1100]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:646:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:641:23: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:643:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:646:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:646:28: throw: if ‘winpr_image_read’ throws an exception...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:646:28: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/16/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): [#def1101]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:646:28: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:635:27: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:643:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:646:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:646:28: throw: if ‘winpr_image_read’ throws an exception...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:646:28: danger: ‘font’ leaks here; was allocated at [(11)](sarif:/runs/0/results/15/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): [#def1102]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:681:23: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:675:37: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:681:23: throw: if ‘winpr_image_new’ throws an exception...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:681:23: danger: ‘font’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/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): [#def1103]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:681:23: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: throw: if ‘winpr_image_read_buffer’ throws an exception...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/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): [#def1104]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:675:37: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: throw: if ‘winpr_image_read_buffer’ throws an exception...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: danger: ‘font’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/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): [#def1105]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:692:17: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:675:37: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:690:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:692:17: branch_true: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:692:17: throw: if ‘winpr_image_free’ throws an exception...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:692:17: danger: ‘font’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/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): [#def1106]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:722:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:667:18: enter_function: entry to ‘rdtk_embedded_font_new’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:690:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:698:31: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:700:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:703:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:704:29: call_function: calling ‘rdtk_font_parse_descriptor_buffer’ from ‘rdtk_embedded_font_new’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:704:29: return_function: returning to ‘rdtk_embedded_font_new’ from ‘rdtk_font_parse_descriptor_buffer’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:706:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:707:17: branch_true: ...to here
FreeRDP-3.20.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): [#def1107]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:722:17: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:667:18: enter_function: entry to ‘rdtk_embedded_font_new’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:675:37: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:677:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:680:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:683:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:689:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:690:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:698:31: branch_false: ...to here
FreeRDP-3.20.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): [#def1108]
FreeRDP-3.20.0/rdtk/librdtk/rdtk_nine_patch.c:460:42: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_image_new()’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_nine_patch.c:448:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_nine_patch.c:451:32: branch_true: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_nine_patch.c:455:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_nine_patch.c:457:33: branch_true: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_nine_patch.c:457:33: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_nine_patch.c:459:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_nine_patch.c:460:42: branch_true: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_nine_patch.c:460:42: throw: if ‘winpr_image_read_buffer’ throws an exception...
FreeRDP-3.20.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): [#def1109]
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:31:25: warning[-Wanalyzer-malloc-leak]: leak of ‘rdtk_engine_new()’
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:20:24: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:20:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:31:25: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:31:25: throw: if ‘rdtk_surface_new’ throws an exception...
FreeRDP-3.20.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): [#def1110]
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:47:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:20:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:31:25: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:31:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:37:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:41:22: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:41:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:47:25: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/test/TestRdTkNinePatch.c:47:25: throw: if ‘rdtk_surface_new’ throws an exception...
FreeRDP-3.20.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): [#def1111]
FreeRDP-3.20.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-3VmgI3/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): [#def1112]
FreeRDP-3.20.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.20.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1113]
FreeRDP-3.20.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.20.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1114]
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1115]
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1116]
FreeRDP-3.20.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.20.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1117]
FreeRDP-3.20.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.20.0/redhat-linux-build/client/common/test/TestClient.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/client/common/test/TestClient.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1118]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1119]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1120]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.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): [#def1121]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.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): [#def1122]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:219:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:219:38: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.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): [#def1123]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:219:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:215:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.c:219:38: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/codec/test/TestFreeRDPCodec.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): [#def1124]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1125]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1126]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1127]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1128]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:179:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1129]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/common/test/TestCommon.c:179:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1130]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1131]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1132]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1133]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1134]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:179:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1135]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/core/test/TestCore.c:179:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1136]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1137]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1138]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1139]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1140]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:179:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1141]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/crypto/test/TestFreeRDPCrypto.c:179:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1142]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1143]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1144]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1145]
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1146]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1147]
FreeRDP-3.20.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.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/libfreerdp/utils/test/TestFreeRDPUtils.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1148]
FreeRDP-3.20.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.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1149]
FreeRDP-3.20.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.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1150]
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1151]
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1152]
FreeRDP-3.20.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.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1153]
FreeRDP-3.20.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.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/rdtk/librdtk/test/TestRdTk.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1154]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1155]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1156]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1157]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1158]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1159]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/bcrypt/test/TestBCrypt.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1160]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1161]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1162]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1163]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1164]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1165]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/clipboard/test/TestClipboard.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1166]
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1167]
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1168]
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.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): [#def1169]
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.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): [#def1170]
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:174:38: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.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): [#def1171]
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:174:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.c:174:38: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/credentials/test/TestCredentials.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): [#def1172]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1173]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1174]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1175]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1176]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:194:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1177]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crt/test/TestCrt.c:194:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1178]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1179]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1180]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1181]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1182]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:199:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1183]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/crypto/test/TestCrypto.c:199:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1184]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1185]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1186]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1187]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1188]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1189]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/dsparse/test/TestDsParse.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1190]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1191]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1192]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1193]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1194]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:189:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1195]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:107:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:144:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:145:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:148:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:152:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:180:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:181:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:183:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:184:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:185:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/environment/test/TestEnvironment.c:189:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1196]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1197]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1198]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1199]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1200]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1201]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/error/test/TestError.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1202]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1203]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1204]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1205]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1206]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:219:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1207]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:137:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:174:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:175:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:178:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:182:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:210:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:211:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:213:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:214:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:215:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/file/test/TestFile.c:219:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1208]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1209]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1210]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1211]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1212]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1213]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/interlocked/test/TestInterlocked.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1214]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1215]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1216]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1217]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1218]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1219]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/io/test/TestIo.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1220]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1221]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1222]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1223]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1224]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1225]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/library/test/TestLibrary.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1226]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1227]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1228]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1229]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1230]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1231]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/memory/test/TestMemory.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1232]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1233]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1234]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1235]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1236]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:179:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1237]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/ncrypt/test/TestNCrypt.c:179:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1238]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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.20.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.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1240]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1241]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1242]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1243]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/nt/test/TestNt.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1244]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1245]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1246]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1247]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1248]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:289:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1249]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:207:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:244:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:245:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:248:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:252:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:280:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:281:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:283:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:284:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:285:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/path/test/TestPath.c:289:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1250]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1251]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1252]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1253]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1254]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1255]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pipe/test/TestPipe.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1256]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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.20.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.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1258]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1259]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1260]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:194:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1261]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/pool/test/TestPool.c:194:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1262]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1263]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1264]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1265]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1266]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1267]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/security/test/TestSecurity.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1268]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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.20.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.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1270]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1271]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1272]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1273]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:92:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:129:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:130:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:133:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:137:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:165:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:166:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:168:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:169:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:170:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/smartcard/test/TestSmartCard.c:174:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1274]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1275]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1276]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1277]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1278]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:199:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1279]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sspi/test/TestSspi.c:199:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1280]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1281]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1282]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1283]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1284]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:224:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1285]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:142:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:179:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:180:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:183:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:187:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:215:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:216:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:218:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:219:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:220:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/synch/test/TestSynch.c:224:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1286]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1287]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1288]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1289]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1290]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:194:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1291]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:112:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:149:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:150:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:153:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:157:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:185:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:186:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:188:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:189:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:190:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/sysinfo/test/TestSysInfo.c:194:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1292]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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.20.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.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1294]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1295]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1296]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1297]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:102:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:139:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:140:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:143:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:147:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:175:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:176:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:178:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:179:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:180:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/thread/test/TestThread.c:184:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1298]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:192:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:229:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:230:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:233:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:268:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1299]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:192:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:229:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:230:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:233:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:268:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1300]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:192:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:208:17: branch_true: following ‘true’ branch (when ‘i != 21’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:209:30: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:213:8: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:217:9: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:217:8: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:222:5: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:229:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:233:7: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:233:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:268:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:274:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1301]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:192:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:229:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:230:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:233:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:237:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:265:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:266:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:268:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:269:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:270:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/utils/test/TestWinPRUtils.c:274:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1302]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1303]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1304]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1305]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1306]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:199:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1307]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:117:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:154:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:155:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:158:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:162:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:190:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:191:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:193:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:194:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:195:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/libwinpr/wtsapi/test/TestWtsApi.c:199:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1308]
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: danger: argument 2 (‘arg’) NULL where non-null expected
#  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): [#def1309]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: danger: argument 1 (‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’) NULL where non-null expected
#  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): [#def1310]
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1311]
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_true: following ‘true’ branch (when ‘partial_match != 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:31: branch_true: ...to here
FreeRDP-3.20.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): [#def1312]
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:179:38: branch_false: ...to here
FreeRDP-3.20.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): [#def1313]
FreeRDP-3.20.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.20.0/redhat-linux-build/winpr/test/TestWinPR.c:97:5: enter_function: entry to ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:134:6: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:135:22: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:138:6: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:142:6: branch_false: following ‘false’ branch (when ‘run_all != 1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_false: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:170:6: branch_true: following ‘true’ branch (when ‘testToRun == -1’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:24: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:171:11: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:173:15: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:33: branch_true: ...to here
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: call_function: calling ‘lowercase’ from ‘main’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:174:23: return_function: returning to ‘main’ from ‘lowercase’
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:175:8: branch_false: following ‘false’ branch (when ‘partial_match == 0’)...
FreeRDP-3.20.0/redhat-linux-build/winpr/test/TestWinPR.c:179:38: branch_false: ...to here
FreeRDP-3.20.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-404): [#def1314]
FreeRDP-3.20.0/server/proxy/channels/pf_channel_drdynvc.c:140:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/server/proxy/channels/pf_channel_drdynvc.c:687:24: enter_function: entry to ‘DynvcTrackerPeekFn’
FreeRDP-3.20.0/server/proxy/channels/pf_channel_drdynvc.c:716:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/server/proxy/channels/pf_channel_drdynvc.c:719:28: call_function: inlined call to ‘Stream_Get_UINT8’ from ‘DynvcTrackerPeekFn’
FreeRDP-3.20.0/server/proxy/channels/pf_channel_drdynvc.c:754:33: call_function: calling ‘dyn_log_’ from ‘DynvcTrackerPeekFn’
#  138|   	va_list ap;
#  139|   	va_start(ap, fmt);
#  140|-> 	(void)winpr_vasprintf(&msg, &msglen, fmt, ap);
#  141|   	va_end(ap);
#  142|   

Error: CPPCHECK_WARNING (CWE-415): [#def1315]
FreeRDP-3.20.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-476): [#def1316]
FreeRDP-3.20.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.20.0/server/shadow/shadow_encomsp.c:107:37: acquire_memory: this call could return NULL
FreeRDP-3.20.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): [#def1317]
FreeRDP-3.20.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.20.0/server/shadow/shadow_remdesk.c:31:37: acquire_memory: this call could return NULL
FreeRDP-3.20.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-775): [#def1318]
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:243:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:243:9: throw: if ‘close’ throws an exception...
FreeRDP-3.20.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): [#def1319]
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:244:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:244:9: throw: if ‘wl_display_roundtrip’ throws an exception...
FreeRDP-3.20.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): [#def1320]
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:245:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:245:9: throw: if ‘wl_display_flush’ throws an exception...
FreeRDP-3.20.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): [#def1321]
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:253:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:249:20: branch_false: following ‘false’ branch (when ‘alloc <= 18446744073709550590’)...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:252:17: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:253:29: throw: if ‘xrealloc’ throws an exception...
FreeRDP-3.20.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): [#def1322]
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:269:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:249:20: branch_false: following ‘false’ branch (when ‘alloc <= 18446744073709550590’)...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:252:17: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:254:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:259:20: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:259:20: branch_false: following ‘false’ branch (when ‘pos < alloc’)...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:262:21: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:265:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:267:18: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:269:9: throw: if ‘close’ throws an exception...
FreeRDP-3.20.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): [#def1323]
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:280:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:235:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:242:50: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:249:20: branch_false: following ‘false’ branch (when ‘alloc <= 18446744073709550590’)...
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:252:17: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-clipboard.c:280:9: throw: if ‘close’ throws an exception...
FreeRDP-3.20.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: GCC_ANALYZER_WARNING (CWE-775): [#def1324]
FreeRDP-3.20.0/uwac/libuwac/uwac-os.c:76:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
FreeRDP-3.20.0/uwac/libuwac/uwac-os.c:90:5: enter_function: entry to ‘uwac_os_socket_cloexec’
FreeRDP-3.20.0/uwac/libuwac/uwac-os.c:95:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
FreeRDP-3.20.0/uwac/libuwac/uwac-os.c:98:13: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-os.c:98:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/uwac/libuwac/uwac-os.c:101:14: branch_false: ...to here
FreeRDP-3.20.0/uwac/libuwac/uwac-os.c:101:14: acquire_resource: socket created here
FreeRDP-3.20.0/uwac/libuwac/uwac-os.c:102:16: call_function: calling ‘set_cloexec_or_close’ from ‘uwac_os_socket_cloexec’
#   74|   		return -1;
#   75|   
#   76|-> 	flags = fcntl(fd, F_GETFD);
#   77|   
#   78|   	if (flags == -1)

Error: COMPILER_WARNING (CWE-252): [#def1325]
FreeRDP-3.20.0/winpr/libwinpr/utils/debug.c:36: included_from: Included from here.
FreeRDP-3.20.0/winpr/libwinpr/utils/debug.c: scope_hint: In function ‘winpr_backtrace_symbols_fd’
FreeRDP-3.20.0/winpr/include/winpr/crt.h:43:16: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#   43 | #define _write write
FreeRDP-3.20.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));
#      |                               ^~~~~~
#   41|   
#   42|   #ifndef _write
#   43|-> #define _write write
#   44|   #endif
#   45|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1326]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:127:17: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(&buf, 32)’
FreeRDP-3.20.0/channels/video/client/video_main.c:621:13: enter_function: entry to ‘video_control_send_client_notification’
FreeRDP-3.20.0/channels/video/client/video_main.c:637:13: acquire_memory: allocated here
FreeRDP-3.20.0/channels/video/client/video_main.c:638:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.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.20.0/channels/video/client/video_main.c:663:9: throw: if ‘Stream_SealLength’ throws an exception...
FreeRDP-3.20.0/channels/video/client/video_main.c:642:9: call_function: inlined call to ‘Stream_Seek_UINT32’ from ‘video_control_send_client_notification’
#  125|   		WINPR_ASSERT(s);
#  126|   		WINPR_ASSERT(Stream_GetRemainingCapacity(s) >= _offset);
#  127|-> 		s->pointer += (_offset);
#  128|   	}
#  129|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1327]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:168:56: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_cached(update,  s)’
FreeRDP-3.20.0/libfreerdp/core/update.c:742:6: enter_function: entry to ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:752:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:755:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:822:65: call_function: calling ‘update_read_pointer_cached’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:822:65: return_function: returning to ‘update_recv_pointer’ from ‘update_read_pointer_cached’
FreeRDP-3.20.0/libfreerdp/core/update.c:824:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:826:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:826:38: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:826:38: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:826:38: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:826:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:826:38: throw: if the called function throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:732:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_read_pointer_cached’
#  166|   		WINPR_ASSERT(Stream_GetRemainingLength(_s) >= typesize);
#  167|   
#  168|-> 		const UINT16 v = winpr_Data_Get_UINT16(_s->pointer);
#  169|   		if (seek)
#  170|   			Stream_Seek(_s, typesize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1328]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:168:56: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_position(update,  s)’
FreeRDP-3.20.0/libfreerdp/core/update.c:742:6: enter_function: entry to ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:752:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:755:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:762:69: call_function: calling ‘update_read_pointer_position’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:762:69: return_function: returning to ‘update_recv_pointer’ from ‘update_read_pointer_position’
FreeRDP-3.20.0/libfreerdp/core/update.c:764:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:766:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:766:38: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:766:38: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:766:38: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:766:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:766:38: throw: if the called function throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:373:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_read_pointer_position’
#  166|   		WINPR_ASSERT(Stream_GetRemainingLength(_s) >= typesize);
#  167|   
#  168|-> 		const UINT16 v = winpr_Data_Get_UINT16(_s->pointer);
#  169|   		if (seek)
#  170|   			Stream_Seek(_s, typesize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1329]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:216:56: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_pointer_system(update,  s)’
FreeRDP-3.20.0/libfreerdp/core/update.c:742:6: enter_function: entry to ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:752:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:755:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:774:65: call_function: calling ‘update_read_pointer_system’ from ‘update_recv_pointer’
FreeRDP-3.20.0/libfreerdp/core/update.c:774:65: return_function: returning to ‘update_recv_pointer’ from ‘update_read_pointer_system’
FreeRDP-3.20.0/libfreerdp/core/update.c:776:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:778:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:778:38: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:778:38: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:778:38: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:778:38: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:778:38: throw: if the called function throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:396:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘update_read_pointer_system’
#  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-476): [#def1330]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:216:56: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1786:13: enter_function: entry to ‘rdg_process_control_packet’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1793:12: branch_false: following ‘false’ branch (when ‘packetLength > 7’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1799:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1799:12: branch_false: following ‘false’ branch (when ‘payloadSize == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1840:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1844: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-688): [#def1331]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:703:17: warning[-Wanalyzer-null-argument]: use of NULL ‘*info.Modulus’ where non-null expected
FreeRDP-3.20.0/libfreerdp/crypto/cert_common.c:155:6: enter_function: entry to ‘cert_info_read_modulus’
FreeRDP-3.20.0/libfreerdp/crypto/cert_common.c:157:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/cert_common.c:159:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/cert_common.c:159:12: branch_false: following ‘false’ branch (when ‘size <= 4294967295’)...
FreeRDP-3.20.0/libfreerdp/crypto/cert_common.c:164:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/cert_common.c:164:14: call_function: calling ‘cert_info_allocate’ from ‘cert_info_read_modulus’
FreeRDP-3.20.0/libfreerdp/crypto/cert_common.c:164:14: return_function: returning to ‘cert_info_read_modulus’ from ‘cert_info_allocate’
FreeRDP-3.20.0/libfreerdp/crypto/cert_common.c:164:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/cert_common.c:166:39: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/cert_common.c:166:9: call_function: inlined call to ‘Stream_Read’ from ‘cert_info_read_modulus’
#  701|   		WINPR_ASSERT(_b || (_n == 0));
#  702|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= _n);
#  703|-> 		memcpy(_b, (_s->pointer), (_n));
#  704|   		Stream_Seek(_s, _n);
#  705|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1332]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:897:41: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)((int)*license_25(D)->PlatformChallenge.length + 8))’
FreeRDP-3.20.0/libfreerdp/core/license.c:2529:6: enter_function: entry to ‘license_send_platform_challenge_response’
FreeRDP-3.20.0/libfreerdp/core/license.c:2546:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/license.c:2547:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/license.c:2549:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘license_send_platform_challenge_response’
FreeRDP-3.20.0/libfreerdp/core/license.c:2555:9: throw: if ‘Stream_SealLength’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/license.c:2549:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘license_send_platform_challenge_response’
#  895|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 2);
#  896|   
#  897|-> 		winpr_Data_Write_UINT16(_s->pointer, _v);
#  898|   		_s->pointer += 2;
#  899|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1333]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:897:41: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)packetSize)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:985:13: enter_function: entry to ‘rdg_process_extauth_sspi’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:994:9: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdg_process_extauth_sspi’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:995:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘rdg_process_extauth_sspi’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:997:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1004:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1004:12: branch_true: following ‘true’ branch (when ‘v == 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1006:46: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1006:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1008:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1010:32: call_function: calling ‘rdg_send_tunnel_request’ from ‘rdg_process_extauth_sspi’
#  895|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 2);
#  896|   
#  897|-> 		winpr_Data_Write_UINT16(_s->pointer, _v);
#  898|   		_s->pointer += 2;
#  899|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1334]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:897:41: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 12)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1707:13: enter_function: entry to ‘rdg_process_close_packet’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1715:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1717:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdg_process_close_packet’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1722:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1723:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1726:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdg_process_close_packet’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1730:9: throw: if ‘Stream_SealLength’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1726:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdg_process_close_packet’
#  895|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 2);
#  896|   
#  897|-> 		winpr_Data_Write_UINT16(_s->pointer, _v);
#  898|   		_s->pointer += 2;
#  899|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1335]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:897:41: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 14)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1528:13: enter_function: entry to ‘rdg_tunnel_connect’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1532:9: call_function: calling ‘rdg_send_handshake’ from ‘rdg_tunnel_connect’
#  895|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 2);
#  896|   
#  897|-> 		winpr_Data_Write_UINT16(_s->pointer, _v);
#  898|   		_s->pointer += 2;
#  899|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1336]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:897:41: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 8)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1737:13: enter_function: entry to ‘rdg_process_keep_alive_packet’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1743:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1745:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1748:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdg_process_keep_alive_packet’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1751:9: throw: if ‘Stream_SealLength’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1748:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdg_process_keep_alive_packet’
#  895|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 2);
#  896|   
#  897|-> 		winpr_Data_Write_UINT16(_s->pointer, _v);
#  898|   		_s->pointer += 2;
#  899|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1337]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:897:41: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, packetSize)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:550:13: enter_function: entry to ‘rdg_send_tunnel_authorization’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:562:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:568:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:570:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:576:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdg_send_tunnel_authorization’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:581:9: throw: if ‘Stream_Write_UTF16_String’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:576:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdg_send_tunnel_authorization’
#  895|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 2);
#  896|   
#  897|-> 		winpr_Data_Write_UINT16(_s->pointer, _v);
#  898|   		_s->pointer += 2;
#  899|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1338]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:897:41: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, strnlen(&chunkSize, 11) + packetSize + 2)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1664:12: branch_false: following ‘false’ branch (when ‘isize <= 65535’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1667:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1668:12: branch_false: following ‘false’ branch (when ‘size != 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1671:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1674:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1676:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1679:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1686:9: throw: if ‘Stream_SealLength’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1680:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdg_write_chunked_data_packet’
#  895|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 2);
#  896|   
#  897|-> 		winpr_Data_Write_UINT16(_s->pointer, _v);
#  898|   		_s->pointer += 2;
#  899|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1339]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1059:41: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(file_descriptor_count * 592 + 4))’
FreeRDP-3.20.0/libfreerdp/utils/cliprdr_utils.c:204:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/cliprdr_utils.c:210:34: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/cliprdr_utils.c:210:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/cliprdr_utils.c:211:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/cliprdr_utils.c:214:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/cliprdr_utils.c:216:28: branch_false: following ‘false’ branch (when ‘file_descriptor_count <= i’)...
FreeRDP-3.20.0/libfreerdp/utils/cliprdr_utils.c:241:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/cliprdr_utils.c:241:9: throw: if ‘Stream_SealLength’ throws an exception...
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1059:41: danger: ‘Stream_New(0, (long unsigned int)(file_descriptor_count * 592 + 4))’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 1057|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 4);
# 1058|   
# 1059|-> 		winpr_Data_Write_UINT32(_s->pointer, _v);
# 1060|   		_s->pointer += 4;
# 1061|   	}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1340]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1160:25: warning[-Wanalyzer-null-argument]: use of NULL ‘_b’ where non-null expected
FreeRDP-3.20.0/channels/serial/client/serial_main.c:242:13: enter_function: entry to ‘serial_process_irp_read’
FreeRDP-3.20.0/channels/serial/client/serial_main.c:252:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/serial/client/serial_main.c:255:9: branch_false: ...to here
FreeRDP-3.20.0/channels/serial/client/serial_main.c:255:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘serial_process_irp_read’
FreeRDP-3.20.0/channels/serial/client/serial_main.c:260:25: acquire_memory: allocated here
FreeRDP-3.20.0/channels/serial/client/serial_main.c:262:12: release_memory: assuming ‘buffer’ is NULL
FreeRDP-3.20.0/channels/serial/client/serial_main.c:262:12: branch_true: following ‘true’ branch (when ‘buffer’ is NULL)...
FreeRDP-3.20.0/channels/serial/client/serial_main.c:264:17: branch_true: ...to here
FreeRDP-3.20.0/channels/serial/client/serial_main.c:292:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/serial/client/serial_main.c:294:22: branch_true: ...to here
FreeRDP-3.20.0/channels/serial/client/serial_main.c:294:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/serial/client/serial_main.c:301:17: branch_false: ...to here
FreeRDP-3.20.0/channels/serial/client/serial_main.c:301:17: call_function: inlined call to ‘Stream_Write’ from ‘serial_process_irp_read’
# 1158|   			WINPR_ASSERT(_b);
# 1159|   			WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= _n);
# 1160|-> 			memcpy(_s->pointer, (_b), (_n));
# 1161|   			Stream_Seek(_s, _n);
# 1162|   		}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1341]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1160:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘_b’ where non-null expected
FreeRDP-3.20.0/libfreerdp/core/redirection.c:965:6: enter_function: entry to ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:972:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/redirection.c:975:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdp_write_enhanced_security_redirection_packet’
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1051:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1053:22: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/redirection.c:1053:22: call_function: calling ‘rdp_redireciton_write_target_cert_stream’ from ‘rdp_write_enhanced_security_redirection_packet’
# 1158|   			WINPR_ASSERT(_b);
# 1159|   			WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= _n);
# 1160|-> 			memcpy(_s->pointer, (_b), (_n));
# 1161|   			Stream_Seek(_s, _n);
# 1162|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1342]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1160:32: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, reserveSize)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:568:13: enter_function: entry to ‘http_proxy_connect’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:595:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:596:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:599:9: call_function: inlined call to ‘Stream_Write’ from ‘http_proxy_connect’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:608:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:641:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:641:14: throw: if ‘Stream_EnsureRemainingCapacity’ throws an exception...
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1160:32: danger: ‘Stream_New(0, reserveSize)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
# 1158|   			WINPR_ASSERT(_b);
# 1159|   			WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= _n);
# 1160|-> 			memcpy(_s->pointer, (_b), (_n));
# 1161|   			Stream_Seek(_s, _n);
# 1162|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1343]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1160:32: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, strnlen(&chunkSize, 11) + *sPacket.length + 2)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:985:13: enter_function: entry to ‘rdg_process_extauth_sspi’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:994:9: call_function: inlined call to ‘stream_read_i32_le’ from ‘rdg_process_extauth_sspi’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:995:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘rdg_process_extauth_sspi’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:997:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1004:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1004:12: branch_false: following ‘false’ branch (when ‘v != 0’)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1015:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1016:12: branch_false: following ‘false’ branch (when ‘authTokenData’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1018:9: call_function: inlined call to ‘Stream_Read’ from ‘rdg_process_extauth_sspi’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1025:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1028:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1028:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1029:24: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1029:24: call_function: calling ‘rdg_send_extauth_sspi’ from ‘rdg_process_extauth_sspi’
# 1158|   			WINPR_ASSERT(_b);
# 1159|   			WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= _n);
# 1160|-> 			memcpy(_s->pointer, (_b), (_n));
# 1161|   			Stream_Seek(_s, _n);
# 1162|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1344]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1203:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.20.0/libfreerdp/core/update.c:1500:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:1502:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:1505:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:1506:15: throw: if ‘fastpath_send_update_pdu’ throws an exception...
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1209:17: call_function: inlined call to ‘Stream_Fill’ from ‘Stream_Zero’
# 1201|   		WINPR_ASSERT(_s);
# 1202|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= (_n));
# 1203|-> 		memset(_s->pointer, _v, (_n));
# 1204|   		Stream_Seek(_s, _n);
# 1205|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1345]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1219:39: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, Stream_GetRemainingLength(s))’
FreeRDP-3.20.0/libfreerdp/core/message.c:253:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:255:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:258:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:259:9: throw: if ‘Stream_SetPosition’ throws an exception...
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1219:39: danger: ‘Stream_New(0, Stream_GetRemainingLength(s))’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1217|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_dst) >= (_n));
# 1218|   
# 1219|-> 		memcpy(_dst->pointer, _src->pointer, _n);
# 1220|   		Stream_Seek(_dst, _n);
# 1221|   		Stream_Seek(_src, _n);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1346]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1233:24: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1600)’
FreeRDP-3.20.0/libfreerdp/core/server.c:1641:13: enter_function: entry to ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.20.0/libfreerdp/core/server.c:1653:12: branch_false: following ‘false’ branch (when ‘hChannelHandle’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1656:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1658:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1673:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1673:17: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1683:24: branch_true: following ‘true’ branch (when ‘Length != 0’)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1685:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1685:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/server.c:1687:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/server.c:1694:34: call_function: inlined call to ‘Stream_Buffer’ from ‘FreeRDP_WTSVirtualChannelWrite’
FreeRDP-3.20.0/libfreerdp/core/server.c:1698:28: branch_true: following ‘true’ branch (when ‘first != 0’)...
FreeRDP-3.20.0/libfreerdp/core/server.c:1698:48: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/server.c:1698:48: throw: if ‘Stream_GetRemainingLength’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/server.c:1694:34: call_function: inlined call to ‘Stream_Buffer’ from ‘FreeRDP_WTSVirtualChannelWrite’
# 1231|   	{
# 1232|   		WINPR_ASSERT(_s);
# 1233|-> 		return _s->buffer;
# 1234|   	}
# 1235|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1347]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1289:24: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, strnlen(&chunkSize, 11) + *sPacket.length + 2)’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1737:13: enter_function: entry to ‘rdg_process_keep_alive_packet’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1745:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1748:9: call_function: inlined call to ‘Stream_Write_UINT16_unchecked’ from ‘rdg_process_keep_alive_packet’
FreeRDP-3.20.0/libfreerdp/core/gateway/rdg.c:1752:18: call_function: calling ‘rdg_write_packet’ from ‘rdg_process_keep_alive_packet’
# 1287|   	{
# 1288|   		WINPR_ASSERT(_s);
# 1289|-> 		return _s->length;
# 1290|   	}
# 1291|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1348]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1298:24: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, nSize + eSize + 16)’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:803:13: enter_function: entry to ‘vgids_get_public_key’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:818:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:821:35: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:821:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:822:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:828:37: call_function: inlined call to ‘Stream_Capacity’ from ‘vgids_get_public_key’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:828:20: throw: if ‘Stream_New’ throws an exception...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:828:37: call_function: inlined call to ‘Stream_Capacity’ from ‘vgids_get_public_key’
# 1296|   	{
# 1297|   		WINPR_ASSERT(_s);
# 1298|-> 		return _s->capacity;
# 1299|   	}
# 1300|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1349]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1307:24: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, (long unsigned int)(*<unknown>.pointer - *<unknown>.buffer) + 1031)’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:941:6: enter_function: entry to ‘mcs_send_connect_response’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:951:12: branch_false: following ‘false’ branch (when ‘mcs’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:954:23: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:956:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:962:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:962:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:965:44: call_function: inlined call to ‘Stream_Capacity’ from ‘mcs_send_connect_response’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:967:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:973:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:973:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:975:18: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:976:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/mcs.c:978:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/mcs.c:984:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘mcs_send_connect_response’
FreeRDP-3.20.0/libfreerdp/core/mcs.c:987:14: call_function: calling ‘mcs_write_connect_response’ from ‘mcs_send_connect_response’
# 1305|   		WINPR_ASSERT(_s);
# 1306|   		WINPR_ASSERT(_s->buffer <= _s->pointer);
# 1307|-> 		return WINPR_STREAM_CAST(size_t, (_s->pointer - _s->buffer));
# 1308|   	}
# 1309|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1350]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1307:24: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
FreeRDP-3.20.0/libfreerdp/core/nego.c:1493:6: enter_function: entry to ‘nego_send_negotiation_response’
FreeRDP-3.20.0/libfreerdp/core/nego.c:1511:13: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/nego.c:1513:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nego.c:1520:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_response’
FreeRDP-3.20.0/libfreerdp/core/nego.c:1523:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/nego.c:1537:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/nego.c:1537:21: throw: if ‘freerdp_settings_get_bool’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/nego.c:1520:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘nego_send_negotiation_response’
# 1305|   		WINPR_ASSERT(_s);
# 1306|   		WINPR_ASSERT(_s->buffer <= _s->pointer);
# 1307|-> 		return WINPR_STREAM_CAST(size_t, (_s->pointer - _s->buffer));
# 1308|   	}
# 1309|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1351]
FreeRDP-3.20.0/winpr/include/winpr/stream.h:1307:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fastpath_update_pdu_init(*rdp.fastpath)’
FreeRDP-3.20.0/libfreerdp/core/update.c:1338:13: enter_function: entry to ‘update_send_surface_command’
FreeRDP-3.20.0/libfreerdp/core/update.c:1346:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:1348:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:1351:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘update_send_surface_command’
FreeRDP-3.20.0/libfreerdp/core/update.c:1351:14: throw: if ‘Stream_EnsureRemainingCapacity’ throws an exception...
FreeRDP-3.20.0/libfreerdp/core/update.c:1351:14: call_function: inlined call to ‘Stream_GetPosition’ from ‘update_send_surface_command’
# 1305|   		WINPR_ASSERT(_s);
# 1306|   		WINPR_ASSERT(_s->buffer <= _s->pointer);
# 1307|-> 		return WINPR_STREAM_CAST(size_t, (_s->pointer - _s->buffer));
# 1308|   	}
# 1309|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1352]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:268:21: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json")’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1233:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
#  266|   	{
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|-> 		if (!log_cached_ptr)
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1353]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:268:21: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:736:13: enter_function: entry to ‘arm_treat_azureInstanceNetworkMetadata’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:743:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:746:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:747:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:753:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:754:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:760:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:766:30: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:767:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:769:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:769:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘arm_treat_azureInstanceNetworkMetadata’
#  266|   	{
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|-> 		if (!log_cached_ptr)
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1354]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:268:21: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_ParseWithLength(http_response_get_body(response), http_response_get_body_length(response))’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:1056:13: enter_function: entry to ‘arm_handle_bad_request’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:1078:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:1079:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:1088:48: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:1090:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:1096:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:1096:20: branch_true: following ‘true’ branch (when the strings are equal)...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:1098:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:1101:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:1102:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:1102:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘arm_handle_bad_request’
#  266|   	{
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|-> 		if (!log_cached_ptr)
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1355]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:268:21: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(uri_in)’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:383:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:390:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:396:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:396:25: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:404:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:404:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  266|   	{
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|-> 		if (!log_cached_ptr)
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1356]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:268:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_GetJSONConfigFile(1, &configfile)’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1585:12: enter_function: entry to ‘tls_config_check_certificate’
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1592:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1594:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1600:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1602:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/tls.c:1602:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘tls_config_check_certificate’
#  266|   	{
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|-> 		if (!log_cached_ptr)
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1357]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:268:21: warning[-Wanalyzer-malloc-leak]: leak of ‘load_layouts_from_file(GetCombinedPath("/usr/share/FreeRDP", "KeyboardLayoutMap.json"))’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1226:22: enter_function: entry to ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1234:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: call_function: calling ‘load_layouts_from_file’ from ‘load_layouts’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1240:16: return_function: returning to ‘load_layouts’ from ‘load_layouts_from_file’
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1241:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1244:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1246:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/locale/keyboard_layout.c:1246:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘load_layouts’
#  266|   	{
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|-> 		if (!log_cached_ptr)
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1358]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:268:21: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_BinToHexString(expect,  length, 1)’
FreeRDP-3.20.0/libfreerdp/crypto/per.c:391:13: enter_function: entry to ‘per_check_oid_and_log_mismatch’
FreeRDP-3.20.0/libfreerdp/crypto/per.c:400:36: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/per.c:402:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘per_check_oid_and_log_mismatch’
#  266|   	{
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|-> 		if (!log_cached_ptr)
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1359]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:268:21: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_BinToHexString(got,  length, 1)’
FreeRDP-3.20.0/libfreerdp/crypto/per.c:391:13: enter_function: entry to ‘per_check_oid_and_log_mismatch’
FreeRDP-3.20.0/libfreerdp/crypto/per.c:399:33: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/per.c:402:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘per_check_oid_and_log_mismatch’
#  266|   	{
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|-> 		if (!log_cached_ptr)
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1360]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:563:8: enter_function: entry to ‘CreateNamedPipeA’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:668:30: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:669:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘CreateNamedPipeA’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1361]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:733:12: enter_function: entry to ‘freerdp_uds_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:739:18: acquire_resource: stream socket created here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:741:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:747:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:751:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:753:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:753:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_uds_connect’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1362]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1023:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1026:30: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1031:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘FileCreateFileA’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1363]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1364]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘abuffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1184:5: enter_function: entry to ‘freerdp_assistance_parse_file_buffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1193:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1199:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1199:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1201:12: branch_true: following ‘true’ branch (when ‘size == len’)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1202:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1202:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file_buffer’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1365]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1212:5: enter_function: entry to ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:14: call_function: calling ‘update_name’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:14: return_function: returning to ‘freerdp_assistance_parse_file’ from ‘update_name’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1227:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1229:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1235:15: call_function: inlined call to ‘_fseeki64’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1246:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1246:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1248:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1254:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1258:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1262:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1264:12: branch_true: following ‘true’ branch (when ‘readSize == 0’)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1266:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1266:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1366]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘cert_list’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1367]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1368]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘colorTable’
FreeRDP-3.20.0/libfreerdp/cache/palette.c:35:13: enter_function: entry to ‘update_gdi_cache_color_table’
FreeRDP-3.20.0/libfreerdp/cache/palette.c:40:31: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/palette.c:42:12: branch_false: following ‘false’ branch (when ‘colorTable’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/palette.c:45:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/palette.c:46:9: call_function: calling ‘palette_cache_put’ from ‘update_gdi_cache_color_table’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1369]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:319:23: enter_function: entry to ‘encomsp_server_context_new’
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:322:42: acquire_memory: allocated here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:324:12: branch_true: following ‘true’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:326:17: branch_true: ...to here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:331:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:333:25: branch_true: ...to here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:333:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘encomsp_server_context_new’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1370]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘vgids_new’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1371]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
FreeRDP-3.20.0/libfreerdp/cache/brush.c:121:13: enter_function: entry to ‘update_gdi_cache_brush’
FreeRDP-3.20.0/libfreerdp/cache/brush.c:134:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/brush.c:136:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/brush.c:139:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/brush.c:140:9: call_function: calling ‘brush_cache_put’ from ‘update_gdi_cache_brush’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1372]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘distance’
FreeRDP-3.20.0/libfreerdp/core/settings.c:444:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:446:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.20.0/libfreerdp/core/settings.c:454:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:465:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:467:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:474:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:476:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:517:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:37: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1373]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘domain’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:838:13: enter_function: entry to ‘arm_fill_rdstls’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:867:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:872:23: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:876:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:877:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:877:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:878:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: call_function: calling ‘WLog_Print_dbg_tag’ from ‘arm_fill_rdstls’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1374]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1375]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:188:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1376]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:932:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:934:33: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:934:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_VideoData’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1377]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘lParam’
FreeRDP-3.20.0/libfreerdp/core/message.c:1293:13: enter_function: entry to ‘update_message_WindowIcon’
FreeRDP-3.20.0/libfreerdp/core/message.c:1305:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1308:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1309:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1311:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1314:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1316:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1319:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1320:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_WindowIcon’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1378]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘message’
FreeRDP-3.20.0/libfreerdp/core/message.c:2879:17: enter_function: entry to ‘update_message_proxy_new’
FreeRDP-3.20.0/libfreerdp/core/message.c:2883:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:12: branch_false: following ‘false’ branch (when ‘message’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:2889:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:2890:9: call_function: calling ‘update_message_register_interface’ from ‘update_message_proxy_new’
FreeRDP-3.20.0/libfreerdp/core/message.c:2890:9: return_function: returning to ‘update_message_proxy_new’ from ‘update_message_register_interface’
FreeRDP-3.20.0/libfreerdp/core/message.c:2892:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:2894:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:2894:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_proxy_new’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1379]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘monitorDefArray’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1105:13: enter_function: entry to ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1112:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1115:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1117:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1120:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1120:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1122:12: branch_false: following ‘false’ branch (when ‘monitorDefArray’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1122:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1125:32: branch_false: following ‘false’ branch (when ‘index >= v’)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘rdp_recv_monitor_layout_pdu’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1380]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1727:6: enter_function: entry to ‘freerdp_certificate_publickey_encrypt’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1738:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1741:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1742:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1745:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1746:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1747:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1749:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1755:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_certificate_publickey_encrypt’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1381]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘parent’
FreeRDP-3.20.0/libfreerdp/core/settings.c:444:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:446:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.20.0/libfreerdp/core/settings.c:460:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:465:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:467:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:474:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:476:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:517:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:37: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1382]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:189:7: enter_function: entry to ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:202:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:203:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:205:30: call_function: inlined call to ‘_ftelli64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:208:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:209:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:212:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:212:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:213:12: branch_false: following ‘false’ branch (when ‘pem’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:216:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:217:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:218:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:228:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘crypto_read_pem’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1383]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:685:21: enter_function: entry to ‘update_read_pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:687:43: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:691:12: branch_false: following ‘false’ branch (when ‘pointer_new’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:694:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:694:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:697:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_read_pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:699:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:701:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:701:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_read_pointer_new’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1384]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1385]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1386]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:582:13: enter_function: entry to ‘bio_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:595:12: branch_true: following ‘true’ branch (when ‘plength’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:596:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:598:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:600:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:601:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:605:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:608:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:614:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:614:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:617:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:618:20: branch_false: following ‘false’ branch (when ‘length == offset’)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:620:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:598:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:600:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:601:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:605:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:608:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:610:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:610:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘bio_read_pem’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1387]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1698:15: enter_function: entry to ‘transport_new’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1700:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1709:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1767:9: call_function: calling ‘transport_free’ from ‘transport_new’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1388]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:524:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1389]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘videoContext’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1237:53: acquire_memory: allocated here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1390]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘videoPlugin’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: acquire_memory: allocated here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_true: following ‘true’ branch (when ‘videoContext’ is NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1240:25: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1240:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_DVCPluginEntry’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1391]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘visited’
FreeRDP-3.20.0/libfreerdp/core/settings.c:444:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:446:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.20.0/libfreerdp/core/settings.c:457:27: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:465:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:467:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:474:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:476:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:517:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:37: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1392]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-malloc-leak]: leak of ‘wParam’
FreeRDP-3.20.0/libfreerdp/core/message.c:1293:13: enter_function: entry to ‘update_message_WindowIcon’
FreeRDP-3.20.0/libfreerdp/core/message.c:1303:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1305:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1308:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1311:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1314:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1316:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1319:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1320:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_WindowIcon’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1393]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:269:42: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.20.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/channels/location/client/location_main.c:379:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/location/client/location_main.c:383:66: branch_false: ...to here
FreeRDP-3.20.0/channels/location/client/location_main.c:397:39: call_function: calling ‘location_send_location2d_delta’ from ‘location_send’
#  267|   		static wLog* log_cached_ptr = NULL;
#  268|   		if (!log_cached_ptr)
#  269|-> 			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|   		if (WLog_IsLevelActive(log_cached_ptr, log_level))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1394]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:563:8: enter_function: entry to ‘CreateNamedPipeA’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:668:30: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:669:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘CreateNamedPipeA’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1395]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:733:12: enter_function: entry to ‘freerdp_uds_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:739:18: acquire_resource: stream socket created here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:741:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:747:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:751:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:753:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:753:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_uds_connect’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1396]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1023:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1026:30: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1031:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘FileCreateFileA’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1397]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1398]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘abuffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1184:5: enter_function: entry to ‘freerdp_assistance_parse_file_buffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1193:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1199:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1199:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1201:12: branch_true: following ‘true’ branch (when ‘size == len’)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1202:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1202:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file_buffer’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1399]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1212:5: enter_function: entry to ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:14: call_function: calling ‘update_name’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:14: return_function: returning to ‘freerdp_assistance_parse_file’ from ‘update_name’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1227:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1229:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1235:15: call_function: inlined call to ‘_fseeki64’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1246:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1246:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1248:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1254:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1258:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1262:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1264:12: branch_true: following ‘true’ branch (when ‘readSize == 0’)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1266:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1266:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1400]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘cert_list’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1401]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1402]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘colorTable’
FreeRDP-3.20.0/libfreerdp/cache/palette.c:35:13: enter_function: entry to ‘update_gdi_cache_color_table’
FreeRDP-3.20.0/libfreerdp/cache/palette.c:40:31: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/palette.c:42:12: branch_false: following ‘false’ branch (when ‘colorTable’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/palette.c:45:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/palette.c:46:9: call_function: calling ‘palette_cache_put’ from ‘update_gdi_cache_color_table’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1403]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:319:23: enter_function: entry to ‘encomsp_server_context_new’
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:322:42: acquire_memory: allocated here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:324:12: branch_true: following ‘true’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:326:17: branch_true: ...to here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:331:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:333:25: branch_true: ...to here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:333:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘encomsp_server_context_new’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1404]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘vgids_new’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1405]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
FreeRDP-3.20.0/libfreerdp/cache/brush.c:121:13: enter_function: entry to ‘update_gdi_cache_brush’
FreeRDP-3.20.0/libfreerdp/cache/brush.c:134:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/brush.c:136:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/brush.c:139:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/brush.c:140:9: call_function: calling ‘brush_cache_put’ from ‘update_gdi_cache_brush’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1406]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘distance’
FreeRDP-3.20.0/libfreerdp/core/settings.c:444:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:446:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.20.0/libfreerdp/core/settings.c:454:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:465:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:467:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:474:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:476:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:517:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:37: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1407]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘domain’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:838:13: enter_function: entry to ‘arm_fill_rdstls’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:867:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:872:23: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:876:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:877:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:877:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:878:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: call_function: calling ‘WLog_Print_dbg_tag’ from ‘arm_fill_rdstls’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1408]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1409]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:188:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1410]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:932:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:934:33: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:934:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_VideoData’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1411]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘lParam’
FreeRDP-3.20.0/libfreerdp/core/message.c:1293:13: enter_function: entry to ‘update_message_WindowIcon’
FreeRDP-3.20.0/libfreerdp/core/message.c:1305:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1308:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1309:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1311:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1314:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1316:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1319:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1320:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_WindowIcon’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1412]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘message’
FreeRDP-3.20.0/libfreerdp/core/message.c:2879:17: enter_function: entry to ‘update_message_proxy_new’
FreeRDP-3.20.0/libfreerdp/core/message.c:2883:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:12: branch_false: following ‘false’ branch (when ‘message’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:2889:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:2890:9: call_function: calling ‘update_message_register_interface’ from ‘update_message_proxy_new’
FreeRDP-3.20.0/libfreerdp/core/message.c:2890:9: return_function: returning to ‘update_message_proxy_new’ from ‘update_message_register_interface’
FreeRDP-3.20.0/libfreerdp/core/message.c:2892:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:2894:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:2894:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_proxy_new’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1413]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘monitorDefArray’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1105:13: enter_function: entry to ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1112:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1115:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1117:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1120:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1120:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1122:12: branch_false: following ‘false’ branch (when ‘monitorDefArray’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1122:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1125:32: branch_false: following ‘false’ branch (when ‘index >= v’)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘rdp_recv_monitor_layout_pdu’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1414]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1727:6: enter_function: entry to ‘freerdp_certificate_publickey_encrypt’
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1738:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1741:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1742:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1745:29: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1746:18: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1747:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1749:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/certificate.c:1755:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_certificate_publickey_encrypt’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1415]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘parent’
FreeRDP-3.20.0/libfreerdp/core/settings.c:444:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:446:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.20.0/libfreerdp/core/settings.c:460:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:465:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:467:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:474:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:476:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:517:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:37: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1416]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:189:7: enter_function: entry to ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:202:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:203:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:205:30: call_function: inlined call to ‘_ftelli64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:208:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:209:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:212:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:212:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:213:12: branch_false: following ‘false’ branch (when ‘pem’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:216:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:217:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:218:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:228:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘crypto_read_pem’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1417]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:685:21: enter_function: entry to ‘update_read_pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:687:43: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:691:12: branch_false: following ‘false’ branch (when ‘pointer_new’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:694:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:694:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:697:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_read_pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:699:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:701:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:701:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_read_pointer_new’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1418]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1419]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1420]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:582:13: enter_function: entry to ‘bio_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:595:12: branch_true: following ‘true’ branch (when ‘plength’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:596:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:598:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:600:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:601:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:605:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:608:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:614:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:614:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:617:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:618:20: branch_false: following ‘false’ branch (when ‘length == offset’)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:620:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:598:16: branch_true: following ‘true’ branch (when ‘offset < length’)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:600:29: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:601:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:605:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:608:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:610:25: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/privatekey.c:610:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘bio_read_pem’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1421]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1698:15: enter_function: entry to ‘transport_new’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1700:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1709:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1767:9: call_function: calling ‘transport_free’ from ‘transport_new’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1422]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:524:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1423]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘videoContext’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1237:53: acquire_memory: allocated here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1424]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘videoPlugin’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: acquire_memory: allocated here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_true: following ‘true’ branch (when ‘videoContext’ is NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1240:25: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1240:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_DVCPluginEntry’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1425]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘visited’
FreeRDP-3.20.0/libfreerdp/core/settings.c:444:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:446:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.20.0/libfreerdp/core/settings.c:457:27: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:465:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:467:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:474:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:476:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:517:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:37: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1426]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-malloc-leak]: leak of ‘wParam’
FreeRDP-3.20.0/libfreerdp/core/message.c:1293:13: enter_function: entry to ‘update_message_WindowIcon’
FreeRDP-3.20.0/libfreerdp/core/message.c:1303:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1305:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1308:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1311:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1314:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1316:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1319:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1320:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_WindowIcon’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1427]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:271:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/location/client/location_main.c:329:13: enter_function: entry to ‘location_send’
FreeRDP-3.20.0/channels/location/client/location_main.c:348:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/channels/location/client/location_main.c:379:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/location/client/location_main.c:383:66: branch_false: ...to here
FreeRDP-3.20.0/channels/location/client/location_main.c:397:39: call_function: calling ‘location_send_location2d_delta’ from ‘location_send’
#  269|   			log_cached_ptr = WLog_Get(tag);
#  270|   
#  271|-> 		if (WLog_IsLevelActive(log_cached_ptr, log_level))
#  272|   		{
#  273|   			va_list ap;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1428]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:563:8: enter_function: entry to ‘CreateNamedPipeA’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:668:30: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:669:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘CreateNamedPipeA’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1429]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:733:12: enter_function: entry to ‘freerdp_uds_connect’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:739:18: acquire_resource: stream socket created here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:741:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:747:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:751:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:753:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:753:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_uds_connect’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1430]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1023:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1026:30: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1031:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘FileCreateFileA’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1431]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1432]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘abuffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1184:5: enter_function: entry to ‘freerdp_assistance_parse_file_buffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1193:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1199:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1199:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1201:12: branch_true: following ‘true’ branch (when ‘size == len’)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1202:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1202:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file_buffer’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1433]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1212:5: enter_function: entry to ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:14: call_function: calling ‘update_name’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:14: return_function: returning to ‘freerdp_assistance_parse_file’ from ‘update_name’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1227:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1229:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1235:15: call_function: inlined call to ‘_fseeki64’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1246:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1246:25: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1248:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1254:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1258:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1262:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1264:12: branch_true: following ‘true’ branch (when ‘readSize == 0’)...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1266:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1266:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘freerdp_assistance_parse_file’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1434]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cert_list’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1435]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:881:6: enter_function: entry to ‘smartcard_getCert’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:893:14: call_function: calling ‘smartcard_enumerateCerts’ from ‘smartcard_getCert’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1436]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘colorTable’
FreeRDP-3.20.0/libfreerdp/cache/palette.c:35:13: enter_function: entry to ‘update_gdi_cache_color_table’
FreeRDP-3.20.0/libfreerdp/cache/palette.c:40:31: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/palette.c:42:12: branch_false: following ‘false’ branch (when ‘colorTable’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/palette.c:45:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/palette.c:46:9: call_function: calling ‘palette_cache_put’ from ‘update_gdi_cache_color_table’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1437]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:319:23: enter_function: entry to ‘encomsp_server_context_new’
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:322:42: acquire_memory: allocated here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:324:12: branch_true: following ‘true’ branch (when ‘context’ is non-NULL)...
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:326:17: branch_true: ...to here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:331:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:333:25: branch_true: ...to here
FreeRDP-3.20.0/channels/encomsp/server/encomsp_main.c:333:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘encomsp_server_context_new’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1438]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1438:15: enter_function: entry to ‘vgids_new’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1441:29: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1444:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1446:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘vgids_new’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1439]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
FreeRDP-3.20.0/libfreerdp/cache/brush.c:121:13: enter_function: entry to ‘update_gdi_cache_brush’
FreeRDP-3.20.0/libfreerdp/cache/brush.c:134:16: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/cache/brush.c:136:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/cache/brush.c:139:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/cache/brush.c:140:9: call_function: calling ‘brush_cache_put’ from ‘update_gdi_cache_brush’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1440]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘distance’
FreeRDP-3.20.0/libfreerdp/core/settings.c:444:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:446:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.20.0/libfreerdp/core/settings.c:454:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:465:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:467:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:474:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:476:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:517:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:37: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1441]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘domain’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:838:13: enter_function: entry to ‘arm_fill_rdstls’
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:867:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:872:23: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:876:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:877:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:877:34: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:878:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/gateway/arm.c:882:21: call_function: calling ‘WLog_Print_dbg_tag’ from ‘arm_fill_rdstls’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1442]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ef’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1460:6: enter_function: entry to ‘vgids_init’
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1490:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1499:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1502:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1503:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:1508:20: call_function: calling ‘vgids_ef_new’ from ‘vgids_init’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1443]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:188:20: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1444]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
FreeRDP-3.20.0/channels/video/client/video_main.c:810:13: enter_function: entry to ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:823:12: branch_false: following ‘false’ branch (when ‘presentation’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:829:13: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:829:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:836:74: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:836:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:842:66: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:844:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:846:31: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:864:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:906:58: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:907:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: call_function: calling ‘VideoFrame_new’ from ‘video_VideoData’
FreeRDP-3.20.0/channels/video/client/video_main.c:911:45: return_function: returning to ‘video_VideoData’ from ‘VideoFrame_new’
FreeRDP-3.20.0/channels/video/client/video_main.c:912:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:919:29: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:922:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:928:46: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:932:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:934:33: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:934:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_VideoData’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1445]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘lParam’
FreeRDP-3.20.0/libfreerdp/core/message.c:1293:13: enter_function: entry to ‘update_message_WindowIcon’
FreeRDP-3.20.0/libfreerdp/core/message.c:1305:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1308:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1309:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1311:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1314:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1316:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1319:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1320:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_WindowIcon’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1446]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘message’
FreeRDP-3.20.0/libfreerdp/core/message.c:2879:17: enter_function: entry to ‘update_message_proxy_new’
FreeRDP-3.20.0/libfreerdp/core/message.c:2883:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:42: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:42: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:2886:12: branch_false: following ‘false’ branch (when ‘message’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:2889:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:2890:9: call_function: calling ‘update_message_register_interface’ from ‘update_message_proxy_new’
FreeRDP-3.20.0/libfreerdp/core/message.c:2890:9: return_function: returning to ‘update_message_proxy_new’ from ‘update_message_register_interface’
FreeRDP-3.20.0/libfreerdp/core/message.c:2892:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:2894:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:2894:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_proxy_new’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1447]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘monitorDefArray’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1105:13: enter_function: entry to ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1112:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1115:9: call_function: inlined call to ‘stream_read_u32_le’ from ‘rdp_recv_monitor_layout_pdu’
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1117:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1120:41: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1120:41: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1122:12: branch_false: following ‘false’ branch (when ‘monitorDefArray’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1122:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1125:32: branch_false: following ‘false’ branch (when ‘index >= v’)...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/rdp.c:1135:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘rdp_recv_monitor_layout_pdu’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1448]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘parent’
FreeRDP-3.20.0/libfreerdp/core/settings.c:444:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:446:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.20.0/libfreerdp/core/settings.c:460:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:465:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:467:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:474:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:476:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:517:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:37: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1449]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:189:7: enter_function: entry to ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:200:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:202:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:203:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:205:30: call_function: inlined call to ‘_ftelli64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:208:24: call_function: inlined call to ‘_fseeki64’ from ‘crypto_read_pem’
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:209:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:212:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:212:15: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:213:12: branch_false: following ‘false’ branch (when ‘pem’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:216:27: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:217:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:218:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/crypto/crypto.c:228:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘crypto_read_pem’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1450]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:685:21: enter_function: entry to ‘update_read_pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:687:43: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/update.c:691:12: branch_false: following ‘false’ branch (when ‘pointer_new’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/update.c:694:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:694:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:697:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘update_read_pointer_new’
FreeRDP-3.20.0/libfreerdp/core/update.c:699:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/update.c:701:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/update.c:701:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_read_pointer_new’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1451]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:135:20: enter_function: entry to ‘freerdp_passphrase_read_tty’
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:143:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:149:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:189:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:192:15: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/passphrase.c:198:29: call_function: calling ‘freerdp_interruptible_get_line’ from ‘freerdp_passphrase_read_tty’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1452]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1453]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘transport’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1698:15: enter_function: entry to ‘transport_new’
FreeRDP-3.20.0/libfreerdp/core/transport.c:1700:50: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1703:12: branch_false: following ‘false’ branch (when ‘transport’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1706:26: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1708:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/transport.c:1709:17: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/transport.c:1767:9: call_function: calling ‘transport_free’ from ‘transport_new’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1454]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:365:6: enter_function: entry to ‘proxy_parse_uri’
FreeRDP-3.20.0/libfreerdp/core/proxy.c:374:26: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:376:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:379:19: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:381:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/libfreerdp/core/proxy.c:413:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/proxy.c:524:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘proxy_parse_uri’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1455]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘videoContext’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1237:53: acquire_memory: allocated here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_false: following ‘false’ branch (when ‘videoContext’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1245:24: call_function: calling ‘VideoClientContextPriv_new’ from ‘video_DVCPluginEntry’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1456]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘videoPlugin’
FreeRDP-3.20.0/channels/video/client/video_main.c:1215:1: enter_function: entry to ‘video_DVCPluginEntry’
FreeRDP-3.20.0/channels/video/client/video_main.c:1223:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1225:46: acquire_memory: allocated here
FreeRDP-3.20.0/channels/video/client/video_main.c:1226:20: branch_false: following ‘false’ branch (when ‘videoPlugin’ is non-NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1232:17: branch_false: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1238:20: branch_true: following ‘true’ branch (when ‘videoContext’ is NULL)...
FreeRDP-3.20.0/channels/video/client/video_main.c:1240:25: branch_true: ...to here
FreeRDP-3.20.0/channels/video/client/video_main.c:1240:25: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_DVCPluginEntry’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1457]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘visited’
FreeRDP-3.20.0/libfreerdp/core/settings.c:444:13: enter_function: entry to ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:446:12: branch_false: following ‘false’ branch (when ‘count != 0’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: call_function: calling ‘alloc_array’ from ‘find_path_exists_with_dijkstra’
FreeRDP-3.20.0/libfreerdp/core/settings.c:451:25: return_function: returning to ‘find_path_exists_with_dijkstra’ from ‘alloc_array’
FreeRDP-3.20.0/libfreerdp/core/settings.c:457:27: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:463:28: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:465:36: branch_true: following ‘true’ branch (when ‘y < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:467:34: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:474:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:476:35: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:517:28: branch_true: following ‘true’ branch (when ‘x < count’)...
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:519:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:37: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:521:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/settings.c:523:33: call_function: calling ‘WLog_Print_dbg_tag’ from ‘find_path_exists_with_dijkstra’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1458]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-malloc-leak]: leak of ‘wParam’
FreeRDP-3.20.0/libfreerdp/core/message.c:1293:13: enter_function: entry to ‘update_message_WindowIcon’
FreeRDP-3.20.0/libfreerdp/core/message.c:1303:38: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/message.c:1305:12: branch_false: following ‘false’ branch (when ‘wParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1308:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1311:12: branch_false: following ‘false’ branch (when ‘lParam’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/message.c:1314:28: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1316:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/core/message.c:1319:9: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/message.c:1320:9: call_function: calling ‘WLog_Print_dbg_tag’ from ‘update_message_WindowIcon’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1459]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:275:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/channels/video/client/video_main.c:1030:13: enter_function: entry to ‘video_control_on_new_channel_connection’
FreeRDP-3.20.0/channels/video/client/video_main.c:1045:17: call_function: calling ‘WLog_Print_dbg_tag’ from ‘video_control_on_new_channel_connection’
#  273|   			va_list ap;
#  274|   			va_start(ap, fkt);
#  275|-> 			WLog_PrintMessageVA(log_cached_ptr, WLOG_MESSAGE_TEXT, log_level, line, file, fkt, ap);
#  276|   			va_end(ap);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1460]
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:278:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1121:12: branch_false: following ‘false’ branch (when ‘hostname’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1128:13: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1135:12: branch_false: following ‘false’ branch (when ‘ipcSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1145:17: branch_false: following ‘false’ branch (when ‘useExternalDefinedSocket == 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1147:17: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1151:26: branch_true: ...to here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1151:26: acquire_resource: stream socket created here
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1152:20: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
FreeRDP-3.20.0/libfreerdp/core/tcp.c:1161:36: branch_false: ...to here
FreeRDP-3.20.0/winpr/include/winpr/wlog.h:278:9: danger: ‘sockfd’ leaks here
#  276|   			va_end(ap);
#  277|   		}
#  278|-> 	}
#  279|   
#  280|   #define WLog_LVL(tag, lvl, ...) \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1461]
FreeRDP-3.20.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: following ‘false’ branch (when ‘write == 0’)...
FreeRDP-3.20.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): [#def1462]
FreeRDP-3.20.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:606:11: enter_function: entry to ‘rdtk_font_new’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:635:27: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:643:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:646:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:647:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:650:29: branch_false: ...to here
FreeRDP-3.20.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): [#def1463]
FreeRDP-3.20.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pcap’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:197:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: following ‘false’ branch (when ‘write == 0’)...
FreeRDP-3.20.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): [#def1464]
FreeRDP-3.20.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_fopen(filename, "r")’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:593:12: enter_function: entry to ‘rdtk_font_load_descriptor’
FreeRDP-3.20.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): [#def1465]
FreeRDP-3.20.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_fopen(name, "r")’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1212:5: enter_function: entry to ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:14: call_function: calling ‘update_name’ from ‘freerdp_assistance_parse_file’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:14: return_function: returning to ‘freerdp_assistance_parse_file’ from ‘update_name’
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1224:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1227:14: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1227:14: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/common/assistance.c:1229:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.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): [#def1466]
FreeRDP-3.20.0/winpr/include/winpr/wtypes.h:489:16: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_fopen(path, "r+")’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:45:13: enter_function: entry to ‘delete_file’
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:52:28: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:53:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/libfreerdp/core/smartcardlogon.c:55:36: branch_true: ...to here
FreeRDP-3.20.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): [#def1467]
FreeRDP-3.20.0/winpr/include/winpr/wtypes.h:495:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: following ‘false’ branch (when ‘write == 0’)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:223:23: call_function: inlined call to ‘_fseeki64’ from ‘pcap_open’
FreeRDP-3.20.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): [#def1468]
FreeRDP-3.20.0/winpr/include/winpr/wtypes.h:495:16: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:606:11: enter_function: entry to ‘rdtk_font_new’
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:618:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:621:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:622:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:625:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:626:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:629:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:14: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:632:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:635:27: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:635:27: acquire_memory: allocated here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:637:12: branch_false: following ‘false’ branch (when ‘font’ is non-NULL)...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:640:9: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:643:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:646:28: branch_false: ...to here
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:647:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/rdtk/librdtk/rdtk_font.c:650:29: branch_false: ...to here
FreeRDP-3.20.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): [#def1469]
FreeRDP-3.20.0/winpr/include/winpr/wtypes.h:495:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pcap’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:193:10: enter_function: entry to ‘pcap_open’
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:197:35: acquire_memory: allocated here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:198:12: branch_false: following ‘false’ branch (when ‘pcap’ is non-NULL)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:201:22: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: ...to here
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:209:12: branch_false: following ‘false’ branch (when ‘write == 0’)...
FreeRDP-3.20.0/libfreerdp/utils/pcap.c:223:23: call_function: inlined call to ‘_fseeki64’ from ‘pcap_open’
FreeRDP-3.20.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: CPPCHECK_WARNING (CWE-664): [#def1470]
FreeRDP-3.20.0/winpr/libwinpr/comm/comm.c:208: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  206|   	if (!WLog_IsLevelActive(sLog, level))
#  207|   		return;
#  208|-> 	va_list ap = { 0 };
#  209|   	va_start(ap, fmt);
#  210|   	WLog_PrintTextMessageVA(sLog, level, line, file, fkt, fmt, ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1471]
FreeRDP-3.20.0/winpr/libwinpr/comm/comm.c:210:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/winpr/libwinpr/comm/comm.c:203:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/comm/comm.c:206:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/comm/comm.c:206:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/comm/comm.c:208:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/comm/comm.c:209:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/winpr/libwinpr/comm/comm.c:210:9: throw: if ‘WLog_PrintTextMessageVA’ throws an exception...
FreeRDP-3.20.0/winpr/libwinpr/comm/comm.c:210:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  208|   	va_list ap = { 0 };
#  209|   	va_start(ap, fmt);
#  210|-> 	WLog_PrintTextMessageVA(sLog, level, line, file, fkt, fmt, ap);
#  211|   	va_end(ap);
#  212|   }

Error: CPPCHECK_WARNING (CWE-664): [#def1472]
FreeRDP-3.20.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): [#def1473]
FreeRDP-3.20.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): [#def1474]
FreeRDP-3.20.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.20.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:1160:5: enter_function: entry to ‘TestUnicodeConversion’
FreeRDP-3.20.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): [#def1475]
FreeRDP-3.20.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.20.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:1160:5: enter_function: entry to ‘TestUnicodeConversion’
FreeRDP-3.20.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): [#def1476]
FreeRDP-3.20.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.20.0/winpr/libwinpr/crt/test/TestUnicodeConversion.c:1160:5: enter_function: entry to ‘TestUnicodeConversion’
FreeRDP-3.20.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: COMPILER_WARNING (CWE-477): [#def1477]
FreeRDP-3.20.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): [#def1478]
FreeRDP-3.20.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): [#def1479]
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:126:37: warning[-Wanalyzer-null-argument]: use of NULL ‘ServiceClass’ where non-null expected
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:47:7: enter_function: entry to ‘DsMakeSpnW’
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:63:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:66:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:66:12: branch_false: following ‘false’ branch (when ‘ServiceClass’ is NULL)...
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:72:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:72:12: branch_false: following ‘false’ branch (when ‘ServiceName’ is NULL)...
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:78:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:78:12: branch_false: following ‘false’ branch (when ‘InstanceName’ is NULL)...
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:84:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:84:12: branch_false: following ‘false’ branch (when ‘Referrer’ is NULL)...
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:90:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:90:15: call_function: calling ‘DsMakeSpnA’ from ‘DsMakeSpnW’
#  124|   		return ERROR_INVALID_PARAMETER;
#  125|   
#  126|-> 	ServiceClassLength = (DWORD)strlen(ServiceClass);
#  127|   	ServiceNameLength = (DWORD)strlen(ServiceName);
#  128|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1480]
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:127:36: warning[-Wanalyzer-null-argument]: use of NULL ‘ServiceName’ where non-null expected
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:47:7: enter_function: entry to ‘DsMakeSpnW’
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:63:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:66:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:66:12: branch_true: following ‘true’ branch (when ‘ServiceClass’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:68:33: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:69:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:72:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:72:12: branch_false: following ‘false’ branch (when ‘ServiceName’ is NULL)...
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:78:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:78:12: branch_false: following ‘false’ branch (when ‘InstanceName’ is NULL)...
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:84:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:84:12: branch_false: following ‘false’ branch (when ‘Referrer’ is NULL)...
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:90:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/dsparse/dsparse.c:90:15: call_function: calling ‘DsMakeSpnA’ from ‘DsMakeSpnW’
#  125|   
#  126|   	ServiceClassLength = (DWORD)strlen(ServiceClass);
#  127|-> 	ServiceNameLength = (DWORD)strlen(ServiceName);
#  128|   
#  129|   	SpnLength = ServiceClassLength + 1 + ServiceNameLength + 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1481]
FreeRDP-3.20.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:23:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
FreeRDP-3.20.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:20:38: acquire_memory: this call could return NULL
FreeRDP-3.20.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): [#def1482]
FreeRDP-3.20.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.20.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:20:38: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.20.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:23:16: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:30:9: danger: deallocated with ‘FreeEnvironmentStringsA’ here; allocation at [(1)](sarif:/runs/0/results/6/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): [#def1483]
FreeRDP-3.20.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.20.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:20:38: acquire_memory: allocated here (expects deallocation with ‘free’)
FreeRDP-3.20.0/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:30:9: danger: deallocated with ‘FreeEnvironmentStringsA’ here; allocation at [(1)](sarif:/runs/0/results/4/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): [#def1484]
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:962:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘winpr_fopen(_strdup(lpFileName), "ab")’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:940:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:942:20: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:953:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:953:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:954:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:962:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:962:22: danger: ‘winpr_fopen(_strdup(lpFileName), "ab")’ leaks here; was opened at [(13)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/12)
#  960|   		}
#  961|   
#  962|-> 		fp = freopen(pFile->lpFileName, mode, fp);
#  963|   	}
#  964|   	else

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1485]
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1031:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1023:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1026:30: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1031:25: throw: if ‘winpr_strerror’ throws an exception...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1031:25: danger: ‘fp’ leaks here; was opened at [(15)](sarif:/runs/0/results/37/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): [#def1486]
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1054:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:892:15: enter_function: entry to ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:908:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:915:30: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:916:12: branch_false: following ‘false’ branch (when ‘pFile’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:922:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:926:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:933:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:966:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:977:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:977:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: call_function: calling ‘winpr_fopen’ from ‘FileCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:987:22: return_function: returning to ‘FileCreateFileA’ from ‘winpr_fopen’
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:990:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1000:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1014:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1018:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1018:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1043:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/file.c:1054:9: throw: if ‘SetLastError’ throws an exception...
FreeRDP-3.20.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-775): [#def1487]
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:203:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:120:1: enter_function: entry to ‘NamedPipeClientCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:129:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:136:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:136:12: branch_false: following ‘false’ branch (when ‘lpFileName’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:139:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:139:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:142:59: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:144:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:151:9: call_function: inlined call to ‘WINPR_HANDLE_SET_TYPE_AND_MODE’ from ‘NamedPipeClientCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:154:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:160:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:167:34: call_function: calling ‘GetNamedPipeNameWithoutPrefixA’ from ‘NamedPipeClientCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:167:34: return_function: returning to ‘NamedPipeClientCreateFileA’ from ‘GetNamedPipeNameWithoutPrefixA’
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:169:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:172:34: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:172:34: call_function: calling ‘GetNamedPipeUnixDomainSocketFilePathA’ from ‘NamedPipeClientCreateFileA’
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:172:34: return_function: returning to ‘NamedPipeClientCreateFileA’ from ‘GetNamedPipeUnixDomainSocketFilePathA’
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:174:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:177:32: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:177:32: acquire_resource: stream socket created here
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:178:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:181:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:188:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:189:17: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:202:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:203:25: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:203:25: throw: if ‘close’ throws an exception...
FreeRDP-3.20.0/winpr/libwinpr/file/namedPipeClient.c:203:25: danger: 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): [#def1488]
FreeRDP-3.20.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): [#def1489]
FreeRDP-3.20.0/winpr/libwinpr/file/test/TestFileFindFirstFile.c:16:13: warning[-Wdeprecated-declarations]: ‘CreateFileA’ is deprecated: since 3.16.0, Use winpr_CreateFile
#   14|   {
#   15|   	HANDLE hdl =
#   16|-> 	    CreateFileA(FilePath, GENERIC_ALL, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
#   17|   	if (hdl == INVALID_HANDLE_VALUE)
#   18|   		return FALSE;

Error: COMPILER_WARNING (CWE-477): [#def1490]
FreeRDP-3.20.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): [#def1491]
FreeRDP-3.20.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): [#def1492]
FreeRDP-3.20.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): [#def1493]
FreeRDP-3.20.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): [#def1494]
FreeRDP-3.20.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): [#def1495]
FreeRDP-3.20.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.20.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:24:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:30:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:32:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:40:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:42:25: branch_true: following ‘true’ branch (when ‘Count != 11’)...
FreeRDP-3.20.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:45:33: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/interlocked/test/TestInterlockedDList.c:45:33: acquire_memory: this call could return NULL
FreeRDP-3.20.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-122): [#def1496]
FreeRDP-3.20.0/winpr/libwinpr/library/library.c:292:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
FreeRDP-3.20.0/winpr/libwinpr/library/library.c:233:7: enter_function: entry to ‘GetModuleFileNameW’
FreeRDP-3.20.0/winpr/libwinpr/library/library.c:236:12: branch_false: following ‘false’ branch (when ‘lpFilename’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/library/library.c:242:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/library/library.c:243:12: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/library/library.c:248:18: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/library/library.c:248:18: call_function: calling ‘GetModuleFileNameA’ from ‘GetModuleFileNameW’
#  290|   
#  291|   	CopyMemory(lpFilename, buffer, nSize - 1);
#  292|-> 	lpFilename[nSize - 1] = '\0';
#  293|   	SetLastError(ERROR_INSUFFICIENT_BUFFER);
#  294|   	return nSize;

Error: COMPILER_WARNING: [#def1497]
FreeRDP-3.20.0/winpr/libwinpr/path/path.c:1143:36: note[note]: length computed here
# 1141|   		return FALSE;
# 1142|   
# 1143|-> 	const size_t pathnamelen = strlen(lpPathName);
# 1144|   	const size_t path_slash_len = pathnamelen + 3;
# 1145|   	char* path_slash = calloc(pathnamelen + 4, sizeof(char));

Error: COMPILER_WARNING: [#def1498]
FreeRDP-3.20.0/winpr/libwinpr/path/path.c:1148:9: warning[-Wstringop-overflow=]: ‘strncat’ specified bound depends on the length of the source argument
# 1146|   	if (!path_slash)
# 1147|   		return FALSE;
# 1148|-> 	strncat(path_slash, lpPathName, pathnamelen);
# 1149|   
# 1150|   	const char star[] = "*";

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1499]
FreeRDP-3.20.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): [#def1500]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:45:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:31:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:37:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:37:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:45:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1501]
FreeRDP-3.20.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): [#def1502]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:47:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:33:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:39:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:39:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:47:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1503]
FreeRDP-3.20.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): [#def1504]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:41:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:27:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:41:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1505]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:59:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:27:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:41:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:45:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:51:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:59:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1506]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:77:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:27:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:33:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:41:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:45:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:51:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:51:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:59:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:63:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:69:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:69:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAddExtension.c:77:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1507]
FreeRDP-3.20.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): [#def1508]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1509]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1510]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:78:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:78:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1511]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:105:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:78:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:82:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:95:18: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:96:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:105:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1512]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:116:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:78:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:82:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:95:18: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:96:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:105:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:107:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:116:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1513]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:125:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:28:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:34:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:42:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:46:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:52:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:60:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:70:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:78:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:82:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:88:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:95:18: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:96:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:105:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:107:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:116:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:118:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchAppend.c:125:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1514]
FreeRDP-3.20.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): [#def1515]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:54:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:39:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:54:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1516]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:85:17: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:39:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:54:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:58:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:64:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:72:18: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:73:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:73:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:83:25: branch_true: following ‘true’ branch (when ‘i <= 4’)...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:85:17: branch_true: ...to here
FreeRDP-3.20.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): [#def1517]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:99:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:39:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:45:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:54:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:58:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:64:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:64:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:72:18: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:73:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:73:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:83:25: branch_true: following ‘true’ branch (when ‘i <= 4’)...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:85:17: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:86:20: branch_false: following ‘false’ branch (when ‘i != 4’)...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:88:26: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:89:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:83:32: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:89:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:83:32: branch_false: ...to here
FreeRDP-3.20.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): [#def1518]
FreeRDP-3.20.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): [#def1519]
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:41:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:27:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:33:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:33:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/path/test/TestPathIsUNCEx.c:41:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1520]
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:500:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:494:34: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:497:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:499:21: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:499:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:500:25: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:500:25: throw: if ‘close’ throws an exception...
FreeRDP-3.20.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): [#def1521]
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:500:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[1]’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:494:34: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:497:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:499:21: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:499:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:500:25: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:500:25: throw: if ‘close’ throws an exception...
FreeRDP-3.20.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): [#def1522]
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:502:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:494:34: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:497:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:499:21: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:499:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:501:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:501:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:502:25: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:502:25: throw: if ‘close’ throws an exception...
FreeRDP-3.20.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): [#def1523]
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:502:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[1]’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:483:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:494:34: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:497:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:499:21: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:499:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:501:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:501:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:502:25: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:502:25: throw: if ‘close’ throws an exception...
FreeRDP-3.20.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): [#def1524]
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:669:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:668:30: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:669:25: throw: if ‘winpr_strerror’ throws an exception...
FreeRDP-3.20.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): [#def1525]
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:677:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:674:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:674:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:676:30: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:677:25: throw: if ‘winpr_strerror’ throws an exception...
FreeRDP-3.20.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): [#def1526]
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:682:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:674:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:674:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:682:36: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:682:17: throw: if ‘UnixChangeFileMode’ throws an exception...
FreeRDP-3.20.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): [#def1527]
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:687:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:674:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:674:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:682:36: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:684:20: branch_false: following ‘false’ branch (when ‘baseSocket’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:687:42: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:687:42: throw: if ‘_strdup’ throws an exception...
FreeRDP-3.20.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): [#def1528]
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:696:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘serverfd’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:33: acquire_resource: stream socket created here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:674:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:674:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:682:36: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:684:20: branch_false: following ‘false’ branch (when ‘baseSocket’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:687:42: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:687:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:693:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:696:22: throw: if ‘ArrayList_Append’ throws an exception...
FreeRDP-3.20.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): [#def1529]
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:720:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:574:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:581:12: branch_false: following ‘false’ branch (when ‘lpName’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:584:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:587:41: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:589:12: branch_false: following ‘false’ branch (when ‘pNamedPipe’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:592:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:597:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:600:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:40: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:603:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:606:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:632:12: branch_true: following ‘true’ branch (when ‘serverfd == -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:634:36: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:636:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:639:22: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:655:20: branch_false: following ‘false’ branch (when ‘serverfd != -1’)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:663:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:666:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:674:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:674:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:682:36: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:684:20: branch_false: following ‘false’ branch (when ‘baseSocket’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:687:42: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:687:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:693:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:696:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:730:1: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:707:32: acquire_resource: opened here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:720:9: throw: if ‘ArrayList_Unlock’ throws an exception...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:720:9: danger: leaks here; was opened at [(34)](sarif:/runs/0/results/70/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): [#def1530]
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:766:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘((WINPR_NAMED_PIPE)*(void *)hNamedPipe).serverfd’
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:750:12: branch_false: following ‘false’ branch (when ‘lpOverlapped’ is NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:757:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:757:12: branch_false: following ‘false’ branch (when ‘hNamedPipe’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:762:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:762:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:764:36: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/pipe/pipe.c:766:26: danger: ‘((WINPR_NAMED_PIPE)*(void *)hNamedPipe).serverfd’ leaks here
#  764|   		struct sockaddr_un s = { 0 };
#  765|   		length = sizeof(struct sockaddr_un);
#  766|-> 		status = accept(pNamedPipe->serverfd, (struct sockaddr*)&s, &length);
#  767|   
#  768|   		if (status < 0)

Error: COMPILER_WARNING (CWE-477): [#def1531]
FreeRDP-3.20.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): [#def1532]
FreeRDP-3.20.0/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c: scope_hint: In function ‘named_pipe_client_thread’
FreeRDP-3.20.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): [#def1533]
FreeRDP-3.20.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): [#def1534]
FreeRDP-3.20.0/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c: scope_hint: In function ‘named_pipe_server_thread’
FreeRDP-3.20.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): [#def1535]
FreeRDP-3.20.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): [#def1536]
FreeRDP-3.20.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): [#def1537]
FreeRDP-3.20.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-415): [#def1538]
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:278:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘value’
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:488:6: enter_function: entry to ‘reg_open’
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:492:12: branch_false: following ‘false’ branch (when ‘reg’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:495:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:497:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:500:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:500:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:501:27: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:510:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:513:34: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:515:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:518:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/registry/registry_reg.c:521:9: call_function: calling ‘reg_load’ from ‘reg_open’
#  276|   
#  277|   fail:
#  278|-> 	free(value);
#  279|   	free(name);
#  280|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1539]
FreeRDP-3.20.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:1742:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
FreeRDP-3.20.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:1715:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:1718:18: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:1738:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:1740:25: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:1742:17: danger: dereference of NULL ‘PCSC_ConnectCardHandle(hContext, *phCard)’
# 1740|   		pCard = PCSC_ConnectCardHandle(hContext, *phCard);
# 1741|   		*pdwActiveProtocol = PCSC_ConvertProtocolsToWinSCard((DWORD)pcsc_dwActiveProtocol);
# 1742|-> 		pCard->shared = shared;
# 1743|   
# 1744|   		// NOLINTNEXTLINE(clang-analyzer-unix.Malloc): ListDictionary_Add takes ownership of pCard

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1540]
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1441:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘kerberos_ContextNew(sspi_SecureHandleGetLowerPointer(phCredential))’
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1398:34: enter_function: entry to ‘kerberos_AcceptSecurityContext’
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1426:12: branch_true: following ‘true’ branch (when ‘pInput’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1427:32: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1428:12: branch_false: following ‘false’ branch (when ‘pOutput’ is NULL)...
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1431:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1431:12: branch_false: following ‘false’ branch (when ‘input_buffer’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1434:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1434:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1437:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1437:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1440:27: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1440:27: call_function: calling ‘kerberos_ContextNew’ from ‘kerberos_AcceptSecurityContext’
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1440:27: return_function: returning to ‘kerberos_AcceptSecurityContext’ from ‘kerberos_ContextNew’
FreeRDP-3.20.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1441:17: danger: dereference of NULL ‘kerberos_ContextNew(sspi_SecureHandleGetLowerPointer(phCredential))’
# 1439|   		isNewContext = TRUE;
# 1440|   		context = kerberos_ContextNew(credentials);
# 1441|-> 		context->acceptor = TRUE;
# 1442|   
# 1443|   		if (sspi_gss_oid_compare(&oid, &kerberos_u2u_OID))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1541]
FreeRDP-3.20.0/winpr/libwinpr/sspi/Schannel/schannel.c:139:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘credentials’
FreeRDP-3.20.0/winpr/libwinpr/sspi/Schannel/schannel.c:127:34: enter_function: entry to ‘schannel_AcquireCredentialsHandleW’
FreeRDP-3.20.0/winpr/libwinpr/sspi/Schannel/schannel.c:138:31: call_function: inlined call to ‘schannel_CredentialsNew’ from ‘schannel_AcquireCredentialsHandleW’
FreeRDP-3.20.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): [#def1542]
FreeRDP-3.20.0/winpr/libwinpr/sspi/Schannel/schannel.c:154:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘credentials’
FreeRDP-3.20.0/winpr/libwinpr/sspi/Schannel/schannel.c:127:34: enter_function: entry to ‘schannel_AcquireCredentialsHandleW’
FreeRDP-3.20.0/winpr/libwinpr/sspi/Schannel/schannel.c:135:12: branch_false: following ‘false’ branch (when ‘fCredentialUse != 2’)...
FreeRDP-3.20.0/winpr/libwinpr/sspi/Schannel/schannel.c:151:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/sspi/Schannel/schannel.c:151:17: branch_true: following ‘true’ branch (when ‘fCredentialUse == 1’)...
FreeRDP-3.20.0/winpr/libwinpr/sspi/Schannel/schannel.c:153:31: call_function: inlined call to ‘schannel_CredentialsNew’ from ‘schannel_AcquireCredentialsHandleW’
FreeRDP-3.20.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): [#def1543]
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:155:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:137:12: branch_false: following ‘false’ branch (when ‘semaphore’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:140:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:146:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:146:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:153:16: branch_true: following ‘true’ branch (when ‘lInitialCount > 0’)...
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:155:21: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:155:21: throw: if ‘write’ throws an exception...
FreeRDP-3.20.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): [#def1544]
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:157:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:137:12: branch_false: following ‘false’ branch (when ‘semaphore’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:140:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:146:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:146:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:153:16: branch_true: following ‘true’ branch (when ‘lInitialCount > 0’)...
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:155:21: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:157:25: throw: if ‘close’ throws an exception...
FreeRDP-3.20.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): [#def1545]
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:158:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:137:12: branch_false: following ‘false’ branch (when ‘semaphore’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:140:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:146:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:146:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:153:16: branch_true: following ‘true’ branch (when ‘lInitialCount > 0’)...
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:155:21: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/synch/semaphore.c:158:25: throw: if ‘close’ throws an exception...
FreeRDP-3.20.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): [#def1546]
FreeRDP-3.20.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): [#def1547]
FreeRDP-3.20.0/winpr/libwinpr/timezone/timezone.c:602: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  600|   		return;
#  601|   
#  602|-> 	va_list ap = { 0 };
#  603|   	va_start(ap, fmt);
#  604|   	WLog_PrintTextMessageVA(log, level, line, file, fkt, fmt, ap);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1548]
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:808:9: warning[-Wanalyzer-null-argument]: use of NULL ‘unquoted’ where non-null expected
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:720:8: enter_function: entry to ‘CommandLineParseCommaSeparatedValuesEx’
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:734:12: branch_false: following ‘false’ branch (when ‘count’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:737:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:738:12: branch_false: following ‘false’ branch (when ‘list’ is NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:769:18: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:769:18: call_function: calling ‘get_element_count’ from ‘CommandLineParseCommaSeparatedValuesEx’
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:769:18: return_function: returning to ‘CommandLineParseCommaSeparatedValuesEx’ from ‘get_element_count’
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:770:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:773:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:773:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:775:20: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:775:20: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:779:39: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:782:28: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:797:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:800:12: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:801:27: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:804:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:807:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/cmdline.c:808:9: danger: argument 2 (‘unquoted’) NULL where non-null expected
#  806|   
#  807|   	str = &((char*)p)[prefix];
#  808|-> 	memcpy(str, unquoted, len);
#  809|   
#  810|   	if (name)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1549]
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:123:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:535:6: enter_function: entry to ‘ArrayList_ForEach’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:539:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.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): [#def1550]
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:140:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:535:6: enter_function: entry to ‘ArrayList_ForEach’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:539:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.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): [#def1551]
FreeRDP-3.20.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): [#def1552]
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:561:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:546:6: enter_function: entry to ‘ArrayList_ForEachAP’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:556:32: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:559:29: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:559:29: call_function: calling ‘ArrayList_GetItem’ from ‘ArrayList_ForEachAP’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:559:29: return_function: returning to ‘ArrayList_ForEachAP’ from ‘ArrayList_GetItem’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:560:17: acquire_resource: ‘va_copy’ called here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ArrayList.c:561:22: throw: if the called function throws an exception...
FreeRDP-3.20.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): [#def1553]
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:358:17: warning[-Wanalyzer-mismatching-deallocation]: ‘buffer’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_aligned_free’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:229:7: enter_function: entry to ‘BufferPool_Take’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:265:20: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:290:20: branch_false: following ‘false’ branch (when ‘found != 0’)...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:308:34: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:310:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:313:37: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:313:36: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:317:69: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:319:36: branch_false: following ‘false’ branch (when ‘newBuffer’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:325:30: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:325:30: call_function: calling ‘BufferPool_ShiftAvailable’ from ‘BufferPool_Take’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:325:30: return_function: returning to ‘BufferPool_Take’ from ‘BufferPool_ShiftAvailable’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:325:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:329:20: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:329:20: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:332:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:332:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:334:47: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:357:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:358:17: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:358:17: danger: deallocated with ‘winpr_aligned_free’ here
#  356|   out_error:
#  357|   	if (pool->alignment)
#  358|-> 		winpr_aligned_free(buffer);
#  359|   	else
#  360|   		free(buffer);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1554]
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:360:17: warning[-Wanalyzer-mismatching-deallocation]: ‘buffer’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘free’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:239:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:265:20: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:284:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:290:20: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:290:20: branch_true: following ‘true’ branch (when ‘found == 0’)...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:292:28: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:292:28: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:296:37: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:296:36: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:297:50: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:297:50: acquire_memory: allocated here (expects deallocation with ‘winpr_aligned_free’)
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:302:36: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:332:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:332:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:334:47: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:336:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:337:33: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:357:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:360:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/BufferPool.c:360:17: danger: deallocated with ‘free’ here; allocation at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10) expects deallocation with ‘winpr_aligned_free’
#  358|   		winpr_aligned_free(buffer);
#  359|   	else
#  360|-> 		free(buffer);
#  361|   out_error_no_free:
#  362|   	BufferPool_Unlock(pool);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1555]
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ListDictionary.c:174:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pKeys’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ListDictionary.c:134:12: branch_false: following ‘false’ branch (when ‘ppKeys’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ListDictionary.c:137:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ListDictionary.c:153:12: branch_false: following ‘false’ branch (when ‘count == 0’)...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ListDictionary.c:168:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ListDictionary.c:168:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ListDictionary.c:168:12: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ListDictionary.c:172:24: branch_true: following ‘true’ branch (when ‘item’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/ListDictionary.c:174:53: branch_true: ...to here
FreeRDP-3.20.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-404): [#def1556]
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:62:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:150:5: enter_function: entry to ‘PubSub_Unsubscribe’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:158:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:161:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:162:17: branch_true: ...to here
FreeRDP-3.20.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): [#def1557]
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:69:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:118:5: enter_function: entry to ‘PubSub_Subscribe’
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:125:9: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:133:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:143:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:143:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:144:17: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/collections/PubSub.c:144:17: call_function: calling ‘PubSub_Unlock’ from ‘PubSub_Subscribe’
#   67|   	WINPR_ASSERT(pubSub);
#   68|   	if (pubSub->synchronized)
#   69|-> 		LeaveCriticalSection(&pubSub->lock);
#   70|   }
#   71|   

Error: CPPCHECK_WARNING (CWE-664): [#def1558]
FreeRDP-3.20.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): [#def1559]
FreeRDP-3.20.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-688): [#def1560]
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:857:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:840:11: enter_function: entry to ‘IniFile_Clone’
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:842:12: branch_false: following ‘false’ branch (when ‘ini’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:845:26: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:845:26: call_function: calling ‘IniFile_New’ from ‘IniFile_Clone’
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:845:26: return_function: returning to ‘IniFile_Clone’ from ‘IniFile_New’
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:846:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:849:28: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:850:14: call_function: calling ‘IniFile_SetFilename’ from ‘IniFile_Clone’
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:850:14: return_function: returning to ‘IniFile_Clone’ from ‘IniFile_SetFilename’
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:850:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:853:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:853:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:855:22: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:855:22: call_function: calling ‘IniFile_BufferResize’ from ‘IniFile_Clone’
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:855:22: return_function: returning to ‘IniFile_Clone’ from ‘IniFile_BufferResize’
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:855:20: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:857:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:857:24: release_memory: using NULL here
FreeRDP-3.20.0/winpr/libwinpr/utils/ini.c:857:17: danger: argument 1 (‘*<unknown>.buffer’) NULL where non-null expected
#  855|   		if (!IniFile_BufferResize(copy, ini->buffersize))
#  856|   			goto fail;
#  857|-> 		memcpy(copy->buffer, ini->buffer, copy->buffersize);
#  858|   	}
#  859|   

Error: COMPILER_WARNING (CWE-704): [#def1561]
FreeRDP-3.20.0/winpr/libwinpr/utils/json/json-c.c: scope_hint: In function ‘WINPR_JSON_GetObjectItem’
FreeRDP-3.20.0/winpr/libwinpr/utils/json/json-c.c:79:65: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘json_object_iter_begin’ discards ‘const’ qualifier from pointer target type
#   79 |         struct json_object_iterator it = json_object_iter_begin((const json_object*)object);
#      |                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/json-c/json.h:28: included_from: Included from here.
FreeRDP-3.20.0/winpr/libwinpr/utils/json/json-c.c:30: included_from: Included from here.
/usr/include/json-c/json_object_iterator.h:107:84: note: expected ‘struct json_object *’ but argument is of type ‘const json_object *’
#  107 | JSON_EXPORT struct json_object_iterator json_object_iter_begin(struct json_object *obj);
#      |                                                                ~~~~~~~~~~~~~~~~~~~~^~~
#   77|   WINPR_JSON* WINPR_JSON_GetObjectItem(const WINPR_JSON* object, const char* string)
#   78|   {
#   79|-> 	struct json_object_iterator it = json_object_iter_begin((const json_object*)object);
#   80|   	struct json_object_iterator itEnd = json_object_iter_end((const json_object*)object);
#   81|   	while (!json_object_iter_equal(&it, &itEnd))

Error: COMPILER_WARNING (CWE-704): [#def1562]
FreeRDP-3.20.0/winpr/libwinpr/utils/json/json-c.c:79:65: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘json_object_iter_begin’ discards ‘const’ qualifier from pointer target type
#   77|   WINPR_JSON* WINPR_JSON_GetObjectItem(const WINPR_JSON* object, const char* string)
#   78|   {
#   79|-> 	struct json_object_iterator it = json_object_iter_begin((const json_object*)object);
#   80|   	struct json_object_iterator itEnd = json_object_iter_end((const json_object*)object);
#   81|   	while (!json_object_iter_equal(&it, &itEnd))

Error: CPPCHECK_WARNING (CWE-476): [#def1563]
FreeRDP-3.20.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): [#def1564]
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:261:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:371:6: enter_function: entry to ‘Stream_CheckAndLogRequiredCapacityWLogEx’
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:378:12: branch_true: following ‘true’ branch (when ‘actual < nmemb’)...
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:382:17: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:382:17: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:383:17: call_function: calling ‘Stream_CheckAndLogRequiredCapacityWLogExVa’ from ‘Stream_CheckAndLogRequiredCapacityWLogEx’
#  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): [#def1565]
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:278:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:423:6: enter_function: entry to ‘Stream_CheckAndLogRequiredLengthWLogEx’
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:429:12: branch_true: following ‘true’ branch (when ‘actual < nmemb’)...
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:433:17: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:433:17: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.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): [#def1566]
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:340:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:466:9: enter_function: entry to ‘Stream_Write_UTF16_String_From_UTF8’
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:472:12: branch_true: following ‘true’ branch (when ‘length != 0’)...
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:474:22: branch_true: ...to here
FreeRDP-3.20.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): [#def1567]
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:418:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:392:6: enter_function: entry to ‘Stream_CheckAndLogRequiredLengthEx’
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:398:12: branch_true: following ‘true’ branch (when ‘actual < nmemb’)...
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:402:17: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/stream.c:402:17: acquire_resource: ‘va_start’ called here
FreeRDP-3.20.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): [#def1568]
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:125:17: warning[-Wanalyzer-mismatching-deallocation]: ‘CommandLineParseCommaSeparatedValuesEx(&testListAppName,  list, & count)’ should have been deallocated with ‘CommandLineParserFree’ but was deallocated with ‘free’
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:108:13: enter_function: entry to ‘TestCommandLineParseCommaSeparatedValuesEx’
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:113:28: branch_true: following ‘true’ branch (when ‘x != 12’)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:121:29: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:123:26: acquire_memory: allocated here (expects deallocation with ‘CommandLineParserFree’)
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:124:30: call_function: calling ‘checkResult’ from ‘TestCommandLineParseCommaSeparatedValuesEx’
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:124:30: return_function: returning to ‘TestCommandLineParseCommaSeparatedValuesEx’ from ‘checkResult’
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:125:17: danger: deallocated with ‘free’ here; allocation at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3) expects deallocation with ‘CommandLineParserFree’
#  123|   		ptr.pp = CommandLineParseCommaSeparatedValuesEx(testListAppName, list, &count);
#  124|   		BOOL valid = checkResult(x, ptr.pp, count);
#  125|-> 		free(ptr.p);
#  126|   		if (!valid)
#  127|   			return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1569]
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:325:25: warning[-Wanalyzer-mismatching-deallocation]: ‘CommandLineParseCommaSeparatedValuesEx(*arg.Name, *arg.Value, & count)’ should have been deallocated with ‘CommandLineParserFree’ but was deallocated with ‘free’
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:209:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:215:18: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:217:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:223:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:225:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:231:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:233:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:239:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:241:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:247:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:249:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:255:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:257:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:263:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:265:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:271:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:273:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:279:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:281:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:287:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:289:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:296:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:304:45: branch_false: following ‘false’ branch (when the strings are non-equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:307:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:307:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:314:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:314:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:321:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:321:17: branch_true: following ‘true’ branch (when the strings are equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:323:32: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:324:36: acquire_memory: allocated here (expects deallocation with ‘CommandLineParserFree’)
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:325:25: danger: deallocated with ‘free’ here; allocation at [(31)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/30) expects deallocation with ‘CommandLineParserFree’
#  323|   			size_t count = 0;
#  324|   			char** p = CommandLineParseCommaSeparatedValuesEx(arg->Name, arg->Value, &count);
#  325|-> 			free((void*)p);
#  326|   
#  327|   			if (!p || count != 3)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1570]
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:339:25: warning[-Wanalyzer-mismatching-deallocation]: ‘CommandLineParseCommaSeparatedValuesEx(*arg.Name, *arg.Value, & count)’ should have been deallocated with ‘CommandLineParserFree’ but was deallocated with ‘free’
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:209:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:215:18: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:217:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:223:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:225:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:231:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:233:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:239:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:241:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:247:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:249:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:255:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:257:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:263:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:265:12: branch_false: following ‘false’ branch (when the strings are equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:271:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:273:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:279:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:281:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:287:15: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:289:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:296:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:304:45: branch_false: following ‘false’ branch (when the strings are non-equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:307:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:307:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:314:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:314:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:321:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:321:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:335:17: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:335:17: branch_true: following ‘true’ branch (when the strings are equal)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:337:32: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:338:36: acquire_memory: allocated here (expects deallocation with ‘CommandLineParserFree’)
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestCmdLine.c:339:25: danger: deallocated with ‘free’ here; allocation at [(33)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/32) expects deallocation with ‘CommandLineParserFree’
#  337|   			size_t count = 0;
#  338|   			char** p = CommandLineParseCommaSeparatedValuesEx(arg->Name, arg->Value, &count);
#  339|-> 			free((void*)p);
#  340|   
#  341|   			if (!p || count != 1)

Error: GCC_ANALYZER_WARNING (CWE-415): [#def1571]
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:156:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘keyNames’
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:55:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:58:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:58:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:62:24: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:66:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:68:17: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:71:20: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:71:34: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:71:21: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:71:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:73:36: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:66:43: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:66:28: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:68:17: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestIni.c:156:9: danger: second ‘free’ here
#  154|   	rc = 0;
#  155|   fail:
#  156|-> 	free((void*)keyNames);
#  157|   	free((void*)sectionNames);
#  158|   	IniFile_Free(ini);

Error: GCC_ANALYZER_WARNING (CWE-590): [#def1572]
FreeRDP-3.20.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.20.0/winpr/libwinpr/utils/test/TestStream.c:91:13: enter_function: entry to ‘TestStream_Static’
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:101:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘TestStream_Static’
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:103:12: branch_false: following ‘false’ branch (when ‘v == 51889’)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:106:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:109:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:113:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:113:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:118:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘TestStream_Static’
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:120:12: branch_false: following ‘false’ branch (when ‘v == 1’)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:120:12: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:123:9: call_function: inlined call to ‘stream_read_u16_le’ from ‘TestStream_Static’
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:125:12: branch_false: following ‘false’ branch (when ‘v == 2’)...
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStream.c:133:9: branch_false: ...to here
FreeRDP-3.20.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): [#def1573]
FreeRDP-3.20.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.20.0/winpr/libwinpr/utils/test/TestStream.c: scope_hint: In function ‘TestStream’
FreeRDP-3.20.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): [#def1574]
FreeRDP-3.20.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): [#def1575]
FreeRDP-3.20.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.20.0/winpr/libwinpr/utils/test/TestStreamPool.c:40:16: acquire_memory: allocated here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStreamPool.c:55:9: release_memory: first ‘Stream_Release’ here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStreamPool.c:56:9: danger: second ‘Stream_Release’ here; first ‘Stream_Release’ was at [(2)](sarif:/runs/0/results/21/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): [#def1576]
FreeRDP-3.20.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.20.0/winpr/libwinpr/utils/test/TestStreamPool.c:41:16: acquire_memory: allocated here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStreamPool.c:58:9: release_memory: first ‘Stream_Release’ here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStreamPool.c:59:9: danger: second ‘Stream_Release’ here; first ‘Stream_Release’ was at [(2)](sarif:/runs/0/results/22/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): [#def1577]
FreeRDP-3.20.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.20.0/winpr/libwinpr/utils/test/TestStreamPool.c:42:16: acquire_memory: allocated here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStreamPool.c:62:9: release_memory: first ‘Stream_Release’ here
FreeRDP-3.20.0/winpr/libwinpr/utils/test/TestStreamPool.c:63:9: danger: second ‘Stream_Release’ here; first ‘Stream_Release’ was at [(2)](sarif:/runs/0/results/23/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: CPPCHECK_WARNING (CWE-401): [#def1578]
FreeRDP-3.20.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-457): [#def1579]
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:946:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*log.Name’
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:855:7: enter_function: entry to ‘WLog_New’
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:863:12: branch_false: following ‘false’ branch (when ‘log’ is non-NULL)...
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:866:21: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:868:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:871:14: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:871:14: call_function: calling ‘WLog_ParseName’ from ‘WLog_New’
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:871:14: return_function: returning to ‘WLog_New’ from ‘WLog_ParseName’
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:871:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:874:9: branch_false: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:879:12: branch_true: following ‘true’ branch...
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:880:17: branch_true: ...to here
FreeRDP-3.20.0/winpr/libwinpr/utils/wlog/wlog.c:932:9: call_function: calling ‘WLog_Free’ from ‘WLog_New’
#  944|   		}
#  945|   
#  946|-> 		free(log->Name);
#  947|   
#  948|   		/* The first element in this array is allocated, the rest are indices into this variable */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1580]
FreeRDP-3.20.0/winpr/tools/makecert-cli/main.c:39:13: warning[-Wanalyzer-malloc-leak]: leak of ‘makecert_context_new()’
FreeRDP-3.20.0/winpr/tools/makecert-cli/main.c:35:19: acquire_memory: allocated here
FreeRDP-3.20.0/winpr/tools/makecert-cli/main.c:36:12: branch_false: following ‘false’ branch...
FreeRDP-3.20.0/winpr/tools/makecert-cli/main.c:39:13: branch_false: ...to here
FreeRDP-3.20.0/winpr/tools/makecert-cli/main.c:39:13: throw: if ‘makecert_context_process’ throws an exception...
FreeRDP-3.20.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.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
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-16.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-x86_64
project-namefreerdp-3.20.0-1.fc44
store-results-to/tmp/tmpucll2y_4/freerdp-3.20.0-1.fc44.tar.xz
time-created2026-01-08 16:17:53
time-finished2026-01-08 16:24:02
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpucll2y_4/freerdp-3.20.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpucll2y_4/freerdp-3.20.0-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9