freerdp-3.9.0-1.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/ainput/server/ainput_main.c: scope_hint: In function ‘ainput_server_close’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/ainput/server/ainput_main.c:352:20: warning[-Wanalyzer-use-after-free]: use after ‘ainput_server_context_free’ of ‘context’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/ainput/server/ainput_main.c:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/ainput/server/ainput_main.c:350:9: note: in expansion of macro ‘WINPR_ASSERT’
#  350|   	WINPR_ASSERT(ainput);
#  351|   
#  352|-> 	if (!ainput->externalThread && ainput->thread)
#  353|   	{
#  354|   		(void)SetEvent(ainput->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/ainput/server/ainput_main.c: scope_hint: In function ‘ainput_server_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/ainput/server/ainput_main.c:417:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ainput’
#  415|   	if (!ainput->buffer)
#  416|   		goto fail;
#  417|-> 	return &ainput->context;
#  418|   fail:
#  419|   	WINPR_PRAGMA_DIAG_PUSH

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/ainput/server/ainput_main.c:435:1: warning[-Wanalyzer-malloc-leak]: leak of ‘ainput’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/ainput/server/ainput_main.c:350:9: note: in expansion of macro ‘WINPR_ASSERT’
#  433|   	}
#  434|   	free(ainput);
#  435|-> }
#  436|   
#  437|   static UINT ainput_process_message(ainput_server* ainput)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:550:22: warning[-Wanalyzer-malloc-leak]: leak of ‘audin_server_packet_new(*(audin_server *)context.log, 26, 2)’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:614:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:615:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:615:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:547:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:795:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:797:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:568:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:569:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:569:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:573:24: note: in expansion of macro ‘ERROR_INVALID_PARAMETER’
#  548|   
#  549|   	/* Allocate what we need plus header bytes */
#  550|-> 	wStream* s = Stream_New(NULL, size + SNDIN_HEADER_SIZE);
#  551|   	if (!s)
#  552|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c: scope_hint: In function ‘audin_server_packet_send’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:550:22: warning[-Wanalyzer-malloc-leak]: leak of ‘audin_server_packet_new(*(audin_server *)context.log, 4, 1)’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:598:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:599:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:599:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:547:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:795:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:797:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:568:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:569:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:569:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/synch.h:32: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:573:24: note: in expansion of macro ‘ERROR_INVALID_PARAMETER’
#  548|   
#  549|   	/* Allocate what we need plus header bytes */
#  550|-> 	wStream* s = Stream_New(NULL, size + SNDIN_HEADER_SIZE);
#  551|   	if (!s)
#  552|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:550:22: warning[-Wanalyzer-malloc-leak]: leak of ‘audin_server_packet_new(*(audin_server *)context.log, 4, 7)’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:693:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:694:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:694:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:547:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:795:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:797:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:568:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:569:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:569:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:573:24: note: in expansion of macro ‘ERROR_INVALID_PARAMETER’
#  548|   
#  549|   	/* Allocate what we need plus header bytes */
#  550|-> 	wStream* s = Stream_New(NULL, size + SNDIN_HEADER_SIZE);
#  551|   	if (!s)
#  552|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c: scope_hint: In function ‘audin_server_send_open’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:550:22: warning[-Wanalyzer-malloc-leak]: leak of ‘audin_server_packet_new(*(audin_server *)context.log, 48, 3)’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:642:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:643:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:643:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:547:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:795:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:797:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
#  548|   
#  549|   	/* Allocate what we need plus header bytes */
#  550|-> 	wStream* s = Stream_New(NULL, size + SNDIN_HEADER_SIZE);
#  551|   	if (!s)
#  552|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c: scope_hint: In function ‘audin_server_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/server/audin.c:851:16: warning[-Wanalyzer-malloc-leak]: leak of ‘audin’
#  849|   	audin->context.OpenReply = audin_server_open_reply_default;
#  850|   
#  851|-> 	return &audin->context;
#  852|   }
#  853|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/client/addin.c: scope_hint: In function ‘freerdp_channels_list_dynamic_addins’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/client/addin.c:248:12: warning[-Wanalyzer-malloc-leak]: leak of ‘FindFirstFileUTF8(pszSearchPath, & FindData)’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/client/addin.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/client/addin.c:223:9: note: in expansion of macro ‘CopyMemory’
#  246|   	}
#  247|   
#  248|-> 	if (hFind == INVALID_HANDLE_VALUE)
#  249|   		return ppAddins;
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/client/cliprdr_format.c: scope_hint: In function ‘cliprdr_filter_format_list’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/client/cliprdr_format.c:59:39: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cur’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/client/cliprdr_format.c:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/client/cliprdr_format.c:45:9: note: in expansion of macro ‘WINPR_ASSERT’
#   57|   			const CLIPRDR_FORMAT* format = &list->formats[x];
#   58|   			CLIPRDR_FORMAT* cur = &filtered.formats[x];
#   59|-> 			cur->formatId = format->formatId;
#   60|   			if (format->formatName)
#   61|   				cur->formatName = _strdup(format->formatName);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/client/cliprdr_format.c:77:47: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cur’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/client/cliprdr_format.c:45:9: note: in expansion of macro ‘WINPR_ASSERT’
#   75|   			    strcmp(format->formatName, type_FileContents) == 0)
#   76|   			{
#   77|-> 				cur->formatId = format->formatId;
#   78|   				cur->formatName = _strdup(format->formatName);
#   79|   				wpos++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/client/cliprdr_format.c:94:47: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cur’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/client/cliprdr_format.c:45:9: note: in expansion of macro ‘WINPR_ASSERT’
#   92|   			     strcmp(format->formatName, type_FileContents) != 0))
#   93|   			{
#   94|-> 				cur->formatId = format->formatId;
#   95|   				if (format->formatName)
#   96|   					cur->formatName = _strdup(format->formatName);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/server/cliprdr_main.c: scope_hint: In function ‘cliprdr_server_start’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/server/cliprdr_main.c:1389:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateEventA(0, 1, 0, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/server/cliprdr_main.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/server/cliprdr_main.c:1375:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/server/cliprdr_main.c:1378:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/server/cliprdr_main.c:1389:36: note: in expansion of macro ‘CreateEvent’
# 1387|   	}
# 1388|   
# 1389|-> 	if (!(cliprdr->StopEvent = CreateEvent(NULL, TRUE, FALSE, NULL)))
# 1390|   	{
# 1391|   		WLog_ERR(TAG, "CreateEvent failed!");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/server/cliprdr_main.c:1395:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateThread(0, 0, &cliprdr_server_thread,  context, 0, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/server/cliprdr_main.c:1375:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/cliprdr/server/cliprdr_main.c:1378:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1393|   	}
# 1394|   
# 1395|-> 	if (!(cliprdr->Thread = CreateThread(NULL, 0, cliprdr_server_thread, (void*)context, 0, NULL)))
# 1396|   	{
# 1397|   		WLog_ERR(TAG, "CreateThread failed!");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/disp/server/disp_main.c:625:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/disp/server/disp_main.c:612:17: note: in expansion of macro ‘WLog_ERR’
#  623|   	WINPR_PRAGMA_DIAG_PUSH
#  624|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  625|-> 	disp_server_context_free(context);
#  626|   	WINPR_PRAGMA_DIAG_POP
#  627|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def16]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/disp/server/disp_main.c: scope_hint: In function ‘disp_server_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/disp/server/disp_main.c:625:9: warning[-Wanalyzer-mismatching-deallocation]: ‘context’ should have been deallocated with ‘free’ but was deallocated with ‘disp_server_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/channels/disp.h:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/server/disp.h:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/disp/server/disp_main.h:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/disp/server/disp_main.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/disp/server/disp_main.c:604:17: note: in expansion of macro ‘WLog_ERR’
#  623|   	WINPR_PRAGMA_DIAG_PUSH
#  624|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  625|-> 	disp_server_context_free(context);
#  626|   	WINPR_PRAGMA_DIAG_POP
#  627|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def17]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/disp/server/disp_main.c: scope_hint: In function ‘disp_server_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/disp/server/disp_main.c:635:20: warning[-Wanalyzer-use-after-free]: use after ‘disp_server_context_free’ of ‘context’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/disp/server/disp_main.c:604:17: note: in expansion of macro ‘WLog_ERR’
#  633|   		return;
#  634|   
#  635|-> 	if (context->priv)
#  636|   	{
#  637|   		disp_server_close(context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drdynvc/client/drdynvc_main.c: scope_hint: In function ‘dvcman_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drdynvc/client/drdynvc_main.c:341:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dvcman’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drdynvc/client/drdynvc_main.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drdynvc/client/drdynvc_main.c:307:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drdynvc/client/drdynvc_main.c:311:9: note: in expansion of macro ‘WINPR_ASSERT’
#  339|   	obj = ArrayList_Object(dvcman->plugins);
#  340|   	obj->fnObjectFree = dvcman_plugin_terminate;
#  341|-> 	return &dvcman->iface;
#  342|   fail:
#  343|   	dvcman_free(plugin, &dvcman->iface);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drdynvc/client/drdynvc_main.c:574:1: warning[-Wanalyzer-malloc-leak]: leak of ‘dvcman’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drdynvc/client/drdynvc_main.c:564:9: note: in expansion of macro ‘WINPR_ASSERT’
#  572|   	StreamPool_Free(dvcman->pool);
#  573|   	free(dvcman);
#  574|-> }
#  575|   
#  576|   /**

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drdynvc/server/drdynvc_main.c: scope_hint: In function ‘drdynvc_server_start’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drdynvc/server/drdynvc_main.c:125:21: warning[-Wanalyzer-malloc-leak]: leak of ‘**context.priv.ChannelHandle’
#  123|   	    WTSVirtualChannelOpen(context->vcm, WTS_CURRENT_SESSION, DRDYNVC_SVC_CHANNEL_NAME);
#  124|   
#  125|-> 	if (!context->priv->ChannelHandle)
#  126|   	{
#  127|   		WLog_ERR(TAG, "WTSVirtualChannelOpen failed!");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c: scope_hint: In function ‘drive_file_set_fullpath’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:129:28: warning[-Wanalyzer-malloc-leak]: leak of ‘drive_file_combine_fullpath(*file.basepath,  Stream_ConstPointer(input), (long unsigned int)(stream_read_u32_le(input, 1) >> 1))’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:41: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:776:25: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:776:25: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:776:25: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘drive_file_set_fullpath’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c: scope_hint: In function ‘drive_file_set_fullpath’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:778:25: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:778:25: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1001:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:37: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:139:9: note: in expansion of macro ‘CopyMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:67:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:36: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:177:24: note: in expansion of macro ‘TRUE’
#  127|   	WCHAR* fullpath = NULL;
#  128|   
#  129|-> 	if (!base_path || (!path && (PathWCharLength > 0)))
#  130|   		goto fail;
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c: scope_hint: In function ‘drive_file_query_information’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_file.c:585:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateFileW(*file.fullpath, 0, 4, 0, 3, 128, 0)’
#  583|   	hFile = CreateFileW(file->fullpath, 0, FILE_SHARE_DELETE, NULL, OPEN_EXISTING,
#  584|   	                    FILE_ATTRIBUTE_NORMAL, NULL);
#  585|-> 	if (hFile != INVALID_HANDLE_VALUE)
#  586|   	{
#  587|   		status = GetFileInformationByHandle(hFile, &fileInformation);

Error: COMPILER_WARNING (CWE-563): [#def23]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_main.c: scope_hint: In function ‘drive_process_irp_create’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_main.c:161:16: warning[-Wunused-but-set-variable]: variable ‘allocationSize’ set but not used
#  161 |         UINT64 allocationSize = 0;
#      |                ^~~~~~~~~~~~~~
#  159|   	UINT32 CreateOptions = 0;
#  160|   	UINT32 PathLength = 0;
#  161|-> 	UINT64 allocationSize = 0;
#  162|   	const WCHAR* path = NULL;
#  163|   

Error: COMPILER_WARNING (CWE-563): [#def24]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_main.c: scope_hint: In function ‘drive_process_irp_silent_ignore’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_main.c:589:16: warning[-Wunused-but-set-variable]: variable ‘FsInformationClass’ set but not used
#  589 |         UINT32 FsInformationClass = 0;
#      |                ^~~~~~~~~~~~~~~~~~
#  587|   static UINT drive_process_irp_silent_ignore(DRIVE_DEVICE* drive, IRP* irp)
#  588|   {
#  589|-> 	UINT32 FsInformationClass = 0;
#  590|   
#  591|   	if (!drive || !irp || !irp->output || !irp->Complete)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_main.c: scope_hint: In function ‘drive_DeviceServiceEntry’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_main.c:1054:20: warning[-Wanalyzer-malloc-leak]: leak of ‘GetKnownPath(1)’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_main.c:32: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_main.c:1031:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/drive/client/drive_main.c:1034:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1052|   		drive->Path = GetKnownPath(KNOWN_PATH_HOME);
# 1053|   
# 1054|-> 		if (!drive->Path)
# 1055|   		{
# 1056|   			WLog_ERR(TAG, "_strdup failed!");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/encomsp/server/encomsp_main.c: scope_hint: In function ‘encomsp_server_start’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/encomsp/server/encomsp_main.c:303:21: warning[-Wanalyzer-malloc-leak]: leak of ‘**context.priv.ChannelHandle’
#  301|   	    WTSVirtualChannelOpen(context->vcm, WTS_CURRENT_SESSION, ENCOMSP_SVC_CHANNEL_NAME);
#  302|   
#  303|-> 	if (!context->priv->ChannelHandle)
#  304|   		return CHANNEL_RC_BAD_CHANNEL;
#  305|   

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

Error: GCC_ANALYZER_WARNING (CWE-416): [#def28]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c: scope_hint: In function ‘location_server_close’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:476:22: warning[-Wanalyzer-use-after-free]: use after ‘location_server_context_free’ of ‘context’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:474:9: note: in expansion of macro ‘WINPR_ASSERT’
#  474|   	WINPR_ASSERT(location);
#  475|   
#  476|-> 	if (!location->externalThread && location->thread)
#  477|   	{
#  478|   		(void)SetEvent(location->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c: scope_hint: In function ‘location_server_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:617:16: warning[-Wanalyzer-malloc-leak]: leak of ‘location’
#  615|   		goto fail;
#  616|   
#  617|-> 	return &location->context;
#  618|   fail:
#  619|   	WINPR_PRAGMA_DIAG_PUSH

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:637:1: warning[-Wanalyzer-malloc-leak]: leak of ‘location’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:474:9: note: in expansion of macro ‘WINPR_ASSERT’
#  635|   
#  636|   	free(location);
#  637|-> }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/cups/printer_cups.c: scope_hint: In function ‘printer_cups_new_printer’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/cups/printer_cups.c:272:1: warning[-Wanalyzer-malloc-leak]: leak of ‘cups_printer’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/cups/printer_cups.c:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/cups/printer_cups.c:256:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/cups/printer_cups.c:266:17: note: in expansion of macro ‘WINPR_ASSERT’
#  270|   	free(printer->driver);
#  271|   	free(printer);
#  272|-> }
#  273|   
#  274|   static void printer_cups_add_ref_printer(rdpPrinter* printer)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/cups/printer_cups.c:331:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cups_printer’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/cups/printer_cups.c:330:9: note: in expansion of macro ‘WINPR_ASSERT’
#  329|   
#  330|   	WINPR_ASSERT(cups_printer->printer.backend->AddRef);
#  331|-> 	cups_printer->printer.backend->AddRef(cups_printer->printer.backend);
#  332|   
#  333|   	return &cups_printer->printer;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c: scope_hint: In function ‘printer_write_setting’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:120:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateFileA(GetCombinedPath(path,  name), 1073741824, 0, 0, 2, 128, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/channels/rdpdr.h:36: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:39: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:32:9: note: in definition of macro ‘FREERDP_ENTRY_POINT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:31: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:1128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:1138:17: note: in expansion of macro ‘WINPR_ASSERT’
#  118|   	free(abs);
#  119|   
#  120|-> 	if (file == INVALID_HANDLE_VALUE)
#  121|   		return FALSE;
#  122|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c: scope_hint: In function ‘printer_read_setting’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:175:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateFileA(GetCombinedPath(path,  name), 2147483648, 0, 0, 3, 128, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:959:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:960:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:960:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:31: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:975:15: note: in expansion of macro ‘sprintf_s’
#  173|   	free(abs);
#  174|   
#  175|-> 	if (file == INVALID_HANDLE_VALUE)
#  176|   		return FALSE;
#  177|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c: scope_hint: In function ‘printer_DeviceServiceEntry’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/printer/client/printer_main.c:1104:13: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(*(RDPDR_PRINTER *)pEntryPoints_58(D)->device.DriverName)’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:32:9: note: in definition of macro ‘FREERDP_ENTRY_POINT’
# 1102|   	}
# 1103|   
# 1104|-> 	if (!driver && default_backend)
# 1105|   	{
# 1106|   		const char* backend =

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rail/server/rail_main.c: scope_hint: In function ‘rail_server_start’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rail/server/rail_main.c:1446:21: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateEventA(0, 1, 0, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:32: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rail/server/rail_main.c:21: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rail/server/rail_main.c:1442:9: note: in expansion of macro ‘CopyMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rail/server/rail_main.c:1444:36: note: in expansion of macro ‘CreateEvent’
# 1444|   	context->priv->stopEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
# 1445|   
# 1446|-> 	if (!context->priv->stopEvent)
# 1447|   	{
# 1448|   		WLog_ERR(TAG, "CreateEvent failed!");

Error: COMPILER_WARNING (CWE-563): [#def37]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/client/rdpdr_main.c: scope_hint: In function ‘dummy_irp_response’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/client/rdpdr_main.c:1493:16: warning[-Wunused-but-set-variable]: variable ‘FileId’ set but not used
# 1493 |         UINT32 FileId = 0;
#      |                ^~~~~~
# 1491|   	wStream* output = NULL;
# 1492|   	UINT32 DeviceId = 0;
# 1493|-> 	UINT32 FileId = 0;
# 1494|   	UINT32 CompletionId = 0;
# 1495|   

Error: CPPCHECK_WARNING (CWE-664): [#def38]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/client/rdpdr_main.c:1649: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1647|                                 size_t count, ...)
# 1648|   {
# 1649|-> 	va_list ap = { 0 };
# 1650|   	WINPR_ASSERT(rdpdr);
# 1651|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_drive_close_file’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:236:39: warning[-Wanalyzer-malloc-leak]: leak of ‘irp’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_drive_close_file’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3191:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3192:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3193:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3193:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3193:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:189:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:190:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2302:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2303:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2305:9: note: in expansion of macro ‘WLog_Print’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:934:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:935:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:212:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:213:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:214:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:214:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:218:9: note: in expansion of macro ‘WINPR_ASSERT’
#  234|   	                                (ULONG)length, &written);
#  235|   	Stream_Free(s, TRUE);
#  236|-> 	return status ? CHANNEL_RC_OK : ERROR_INTERNAL_ERROR;
#  237|   }
#  238|   

Error: COMPILER_WARNING (CWE-563): [#def40]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:433:16: warning[-Wunused-but-set-variable]: variable ‘ioCode1’ set but not used
#  433 |         UINT32 ioCode1 = 0;
#      |                ^~~~~~~
#  431|                                                        const RDPDR_CAPABILITY_HEADER* header)
#  432|   {
#  433|-> 	UINT32 ioCode1 = 0;
#  434|   	UINT32 extraFlags1 = 0;
#  435|   	UINT32 extendedPdu = 0;

Error: COMPILER_WARNING (CWE-563): [#def41]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:434:16: warning[-Wunused-but-set-variable]: variable ‘extraFlags1’ set but not used
#  434 |         UINT32 extraFlags1 = 0;
#      |                ^~~~~~~~~~~
#  432|   {
#  433|   	UINT32 ioCode1 = 0;
#  434|-> 	UINT32 extraFlags1 = 0;
#  435|   	UINT32 extendedPdu = 0;
#  436|   	UINT16 VersionMajor = 0;

Error: COMPILER_WARNING (CWE-563): [#def42]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_read_general_capability_set’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:438:16: warning[-Wunused-but-set-variable]: variable ‘SpecialTypeDeviceCap’ set but not used
#  438 |         UINT32 SpecialTypeDeviceCap = 0;
#      |                ^~~~~~~~~~~~~~~~~~~~
#  436|   	UINT16 VersionMajor = 0;
#  437|   	UINT16 VersionMinor = 0;
#  438|-> 	UINT32 SpecialTypeDeviceCap = 0;
#  439|   	WINPR_ASSERT(context);
#  440|   	WINPR_ASSERT(context->priv);

Error: COMPILER_WARNING (CWE-563): [#def43]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1169:16: warning[-Wunused-but-set-variable]: variable ‘DesiredAccess’ set but not used
# 1169 |         UINT32 DesiredAccess = 0;
#      |                ^~~~~~~~~~~~~
# 1167|   {
# 1168|   	const WCHAR* path = NULL;
# 1169|-> 	UINT32 DesiredAccess = 0;
# 1170|   	UINT32 AllocationSize = 0;
# 1171|   	UINT32 FileAttributes = 0;

Error: COMPILER_WARNING (CWE-563): [#def44]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1170:16: warning[-Wunused-but-set-variable]: variable ‘AllocationSize’ set but not used
# 1170 |         UINT32 AllocationSize = 0;
#      |                ^~~~~~~~~~~~~~
# 1168|   	const WCHAR* path = NULL;
# 1169|   	UINT32 DesiredAccess = 0;
# 1170|-> 	UINT32 AllocationSize = 0;
# 1171|   	UINT32 FileAttributes = 0;
# 1172|   	UINT32 SharedAccess = 0;

Error: COMPILER_WARNING (CWE-563): [#def45]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1171:16: warning[-Wunused-but-set-variable]: variable ‘FileAttributes’ set but not used
# 1171 |         UINT32 FileAttributes = 0;
#      |                ^~~~~~~~~~~~~~
# 1169|   	UINT32 DesiredAccess = 0;
# 1170|   	UINT32 AllocationSize = 0;
# 1171|-> 	UINT32 FileAttributes = 0;
# 1172|   	UINT32 SharedAccess = 0;
# 1173|   	UINT32 CreateDisposition = 0;

Error: COMPILER_WARNING (CWE-563): [#def46]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1172:16: warning[-Wunused-but-set-variable]: variable ‘SharedAccess’ set but not used
# 1172 |         UINT32 SharedAccess = 0;
#      |                ^~~~~~~~~~~~
# 1170|   	UINT32 AllocationSize = 0;
# 1171|   	UINT32 FileAttributes = 0;
# 1172|-> 	UINT32 SharedAccess = 0;
# 1173|   	UINT32 CreateDisposition = 0;
# 1174|   	UINT32 CreateOptions = 0;

Error: COMPILER_WARNING (CWE-563): [#def47]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1173:16: warning[-Wunused-but-set-variable]: variable ‘CreateDisposition’ set but not used
# 1173 |         UINT32 CreateDisposition = 0;
#      |                ^~~~~~~~~~~~~~~~~
# 1171|   	UINT32 FileAttributes = 0;
# 1172|   	UINT32 SharedAccess = 0;
# 1173|-> 	UINT32 CreateDisposition = 0;
# 1174|   	UINT32 CreateOptions = 0;
# 1175|   	UINT32 PathLength = 0;

Error: COMPILER_WARNING (CWE-563): [#def48]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_create_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1174:16: warning[-Wunused-but-set-variable]: variable ‘CreateOptions’ set but not used
# 1174 |         UINT32 CreateOptions = 0;
#      |                ^~~~~~~~~~~~~
# 1172|   	UINT32 SharedAccess = 0;
# 1173|   	UINT32 CreateDisposition = 0;
# 1174|-> 	UINT32 CreateOptions = 0;
# 1175|   	UINT32 PathLength = 0;
# 1176|   

Error: COMPILER_WARNING (CWE-563): [#def49]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1223:16: warning[-Wunused-but-set-variable]: variable ‘Length’ set but not used
# 1223 |         UINT32 Length = 0;
#      |                ^~~~~~
# 1221|                                                    UINT32 CompletionId)
# 1222|   {
# 1223|-> 	UINT32 Length = 0;
# 1224|   	UINT64 Offset = 0;
# 1225|   

Error: COMPILER_WARNING (CWE-563): [#def50]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_read_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1224:16: warning[-Wunused-but-set-variable]: variable ‘Offset’ set but not used
# 1224 |         UINT64 Offset = 0;
#      |                ^~~~~~
# 1222|   {
# 1223|   	UINT32 Length = 0;
# 1224|-> 	UINT64 Offset = 0;
# 1225|   
# 1226|   	WINPR_ASSERT(context);

Error: COMPILER_WARNING (CWE-563): [#def51]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_write_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1247:16: warning[-Wunused-but-set-variable]: variable ‘Offset’ set but not used
# 1247 |         UINT64 Offset = 0;
#      |                ^~~~~~
# 1245|   {
# 1246|   	UINT32 Length = 0;
# 1247|-> 	UINT64 Offset = 0;
# 1248|   
# 1249|   	WINPR_ASSERT(context);

Error: COMPILER_WARNING (CWE-563): [#def52]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1275:16: warning[-Wunused-but-set-variable]: variable ‘OutputBufferLength’ set but not used
# 1275 |         UINT32 OutputBufferLength = 0;
#      |                ^~~~~~~~~~~~~~~~~~
# 1273|                                                              UINT32 CompletionId)
# 1274|   {
# 1275|-> 	UINT32 OutputBufferLength = 0;
# 1276|   	UINT32 InputBufferLength = 0;
# 1277|   	UINT32 IoControlCode = 0;

Error: COMPILER_WARNING (CWE-563): [#def53]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_device_control_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1277:16: warning[-Wunused-but-set-variable]: variable ‘IoControlCode’ set but not used
# 1277 |         UINT32 IoControlCode = 0;
#      |                ^~~~~~~~~~~~~
# 1275|   	UINT32 OutputBufferLength = 0;
# 1276|   	UINT32 InputBufferLength = 0;
# 1277|-> 	UINT32 IoControlCode = 0;
# 1278|   
# 1279|   	WINPR_ASSERT(context);

Error: COMPILER_WARNING (CWE-563): [#def54]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_query_volume_information_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1307:16: warning[-Wunused-but-set-variable]: variable ‘FsInformationClass’ set but not used
# 1307 |         UINT32 FsInformationClass = 0;
#      |                ^~~~~~~~~~~~~~~~~~
# 1305|                                                                        UINT32 CompletionId)
# 1306|   {
# 1307|-> 	UINT32 FsInformationClass = 0;
# 1308|   	UINT32 Length = 0;
# 1309|   

Error: COMPILER_WARNING (CWE-1164): [#def55]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: At top level
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1331:13: warning[-Wunused-function]: ‘rdpdr_server_receive_io_set_volume_information_request’ defined but not used
# 1331 | static UINT rdpdr_server_receive_io_set_volume_information_request(RdpdrServerContext* context,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1329|   }
# 1330|   
# 1331|-> static UINT rdpdr_server_receive_io_set_volume_information_request(RdpdrServerContext* context,
# 1332|                                                                      wStream* s, UINT32 DeviceId,
# 1333|                                                                      UINT32 FileId,

Error: COMPILER_WARNING (CWE-563): [#def56]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_set_volume_information_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1336:16: warning[-Wunused-but-set-variable]: variable ‘FsInformationClass’ set but not used
# 1336 |         UINT32 FsInformationClass = 0;
#      |                ^~~~~~~~~~~~~~~~~~
# 1334|                                                                      UINT32 CompletionId)
# 1335|   {
# 1336|-> 	UINT32 FsInformationClass = 0;
# 1337|   	UINT32 Length = 0;
# 1338|   

Error: COMPILER_WARNING (CWE-563): [#def57]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_query_information_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1366:16: warning[-Wunused-but-set-variable]: variable ‘FsInformationClass’ set but not used
# 1366 |         UINT32 FsInformationClass = 0;
#      |                ^~~~~~~~~~~~~~~~~~
# 1364|                                                                 UINT32 FileId, UINT32 CompletionId)
# 1365|   {
# 1366|-> 	UINT32 FsInformationClass = 0;
# 1367|   	UINT32 Length = 0;
# 1368|   

Error: COMPILER_WARNING (CWE-563): [#def58]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_set_information_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1396:16: warning[-Wunused-but-set-variable]: variable ‘FsInformationClass’ set but not used
# 1396 |         UINT32 FsInformationClass = 0;
#      |                ^~~~~~~~~~~~~~~~~~
# 1394|                                                               UINT32 CompletionId)
# 1395|   {
# 1396|-> 	UINT32 FsInformationClass = 0;
# 1397|   	UINT32 Length = 0;
# 1398|   

Error: COMPILER_WARNING (CWE-563): [#def59]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1426:14: warning[-Wunused-but-set-variable]: variable ‘InitialQuery’ set but not used
# 1426 |         BYTE InitialQuery = 0;
#      |              ^~~~~~~~~~~~
# 1424|                                                               UINT32 CompletionId)
# 1425|   {
# 1426|-> 	BYTE InitialQuery = 0;
# 1427|   	UINT32 FsInformationClass = 0;
# 1428|   	UINT32 PathLength = 0;

Error: COMPILER_WARNING (CWE-563): [#def60]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_query_directory_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1427:16: warning[-Wunused-but-set-variable]: variable ‘FsInformationClass’ set but not used
# 1427 |         UINT32 FsInformationClass = 0;
#      |                ^~~~~~~~~~~~~~~~~~
# 1425|   {
# 1426|   	BYTE InitialQuery = 0;
# 1427|-> 	UINT32 FsInformationClass = 0;
# 1428|   	UINT32 PathLength = 0;
# 1429|   	const WCHAR* Path = NULL;

Error: COMPILER_WARNING (CWE-563): [#def61]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1458:14: warning[-Wunused-but-set-variable]: variable ‘WatchTree’ set but not used
# 1458 |         BYTE WatchTree = 0;
#      |              ^~~~~~~~~
# 1456|                                                                UINT32 FileId, UINT32 CompletionId)
# 1457|   {
# 1458|-> 	BYTE WatchTree = 0;
# 1459|   	UINT32 CompletionFilter = 0;
# 1460|   

Error: COMPILER_WARNING (CWE-563): [#def62]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_change_directory_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1459:16: warning[-Wunused-but-set-variable]: variable ‘CompletionFilter’ set but not used
# 1459 |         UINT32 CompletionFilter = 0;
#      |                ^~~~~~~~~~~~~~~~
# 1457|   {
# 1458|   	BYTE WatchTree = 0;
# 1459|-> 	UINT32 CompletionFilter = 0;
# 1460|   
# 1461|   	WINPR_ASSERT(context);

Error: COMPILER_WARNING (CWE-563): [#def63]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1508:16: warning[-Wunused-but-set-variable]: variable ‘Operation’ set but not used
# 1508 |         UINT32 Operation = 0;
#      |                ^~~~~~~~~
# 1506|                                                            UINT32 CompletionId)
# 1507|   {
# 1508|-> 	UINT32 Operation = 0;
# 1509|   	UINT32 Lock = 0;
# 1510|   	UINT32 NumLocks = 0;

Error: COMPILER_WARNING (CWE-563): [#def64]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1527:24: warning[-Wunused-but-set-variable]: variable ‘Length’ set but not used
# 1527 |                 UINT64 Length = 0;
#      |                        ^~~~~~
# 1525|   	for (UINT32 x = 0; x < NumLocks; x++)
# 1526|   	{
# 1527|-> 		UINT64 Length = 0;
# 1528|   		UINT64 Offset = 0;
# 1529|   

Error: COMPILER_WARNING (CWE-563): [#def65]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_receive_io_lock_control_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:1528:24: warning[-Wunused-but-set-variable]: variable ‘Offset’ set but not used
# 1528 |                 UINT64 Offset = 0;
#      |                        ^~~~~~
# 1526|   	{
# 1527|   		UINT64 Length = 0;
# 1528|-> 		UINT64 Offset = 0;
# 1529|   
# 1530|   		if (!Stream_CheckAndLogRequiredLengthWLog(context->priv->log, s, 16))

Error: COMPILER_WARNING (CWE-563): [#def66]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_drive_create_directory_callback1’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2542:15: warning[-Wunused-but-set-variable]: variable ‘information’ set but not used
# 2542 |         UINT8 information = 0;
#      |               ^~~~~~~~~~~
# 2540|   {
# 2541|   	UINT32 fileId = 0;
# 2542|-> 	UINT8 information = 0;
# 2543|   	WINPR_ASSERT(context);
# 2544|   	WINPR_ASSERT(context->priv);

Error: COMPILER_WARNING (CWE-563): [#def67]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_drive_delete_directory_callback1’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2663:15: warning[-Wunused-but-set-variable]: variable ‘information’ set but not used
# 2663 |         UINT8 information = 0;
#      |               ^~~~~~~~~~~
# 2661|   {
# 2662|   	UINT32 fileId = 0;
# 2663|-> 	UINT8 information = 0;
# 2664|   	WINPR_ASSERT(context);
# 2665|   	WINPR_ASSERT(context->priv);

Error: COMPILER_WARNING (CWE-563): [#def68]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_drive_open_file_callback’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2925:15: warning[-Wunused-but-set-variable]: variable ‘information’ set but not used
# 2925 |         UINT8 information = 0;
#      |               ^~~~~~~~~~~
# 2923|   {
# 2924|   	UINT32 fileId = 0;
# 2925|-> 	UINT8 information = 0;
# 2926|   	WINPR_ASSERT(context);
# 2927|   	WINPR_ASSERT(context->priv);

Error: COMPILER_WARNING (CWE-563): [#def69]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_drive_delete_file_callback1’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3258:15: warning[-Wunused-but-set-variable]: variable ‘information’ set but not used
# 3258 |         UINT8 information = 0;
#      |               ^~~~~~~~~~~
# 3256|   {
# 3257|   	UINT32 fileId = 0;
# 3258|-> 	UINT8 information = 0;
# 3259|   	WINPR_ASSERT(context);
# 3260|   	WINPR_ASSERT(context->priv);

Error: COMPILER_WARNING (CWE-563): [#def70]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_drive_rename_file_callback2’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3374:16: warning[-Wunused-but-set-variable]: variable ‘length’ set but not used
# 3374 |         UINT32 length = 0;
#      |                ^~~~~~
# 3372|                                                        UINT32 completionId, UINT32 ioStatus)
# 3373|   {
# 3374|-> 	UINT32 length = 0;
# 3375|   	WINPR_ASSERT(context);
# 3376|   	WINPR_ASSERT(context->priv);

Error: COMPILER_WARNING (CWE-563): [#def71]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c: scope_hint: In function ‘rdpdr_server_drive_rename_file_callback1’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3417:15: warning[-Wunused-but-set-variable]: variable ‘information’ set but not used
# 3417 |         UINT8 information = 0;
#      |               ^~~~~~~~~~~
# 3415|   {
# 3416|   	UINT32 fileId = 0;
# 3417|-> 	UINT8 information = 0;
# 3418|   	WINPR_ASSERT(context);
# 3419|   	WINPR_ASSERT(context->priv);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def72]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_enumerator_main.c: scope_hint: In function ‘enumerator_server_close’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_enumerator_main.c:469:24: warning[-Wanalyzer-use-after-free]: use after ‘cam_dev_enum_server_context_free’ of ‘context’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/freerdp.h:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_enumerator_main.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_enumerator_main.c:467:9: note: in expansion of macro ‘WINPR_ASSERT’
#  467|   	WINPR_ASSERT(enumerator);
#  468|   
#  469|-> 	if (!enumerator->externalThread && enumerator->thread)
#  470|   	{
#  471|   		(void)SetEvent(enumerator->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_enumerator_main.c: scope_hint: In function ‘cam_dev_enum_server_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_enumerator_main.c:591:16: warning[-Wanalyzer-malloc-leak]: leak of ‘enumerator’
#  589|   		goto fail;
#  590|   
#  591|-> 	return &enumerator->context;
#  592|   fail:
#  593|   	WINPR_PRAGMA_DIAG_PUSH

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_enumerator_main.c:611:1: warning[-Wanalyzer-malloc-leak]: leak of ‘enumerator’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_enumerator_main.c:467:9: note: in expansion of macro ‘WINPR_ASSERT’
#  609|   
#  610|   	free(enumerator);
#  611|-> }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def75]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_main.c: scope_hint: In function ‘device_server_close’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_main.c:621:20: warning[-Wanalyzer-use-after-free]: use after ‘camera_device_server_context_free’ of ‘context’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/freerdp.h:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_main.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_main.c:619:9: note: in expansion of macro ‘WINPR_ASSERT’
#  619|   	WINPR_ASSERT(device);
#  620|   
#  621|-> 	if (!device->externalThread && device->thread)
#  622|   	{
#  623|   		(void)SetEvent(device->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_main.c: scope_hint: In function ‘camera_device_server_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_main.c:944:16: warning[-Wanalyzer-malloc-leak]: leak of ‘device’
#  942|   		goto fail;
#  943|   
#  944|-> 	return &device->context;
#  945|   fail:
#  946|   	WINPR_PRAGMA_DIAG_PUSH

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_main.c:966:1: warning[-Wanalyzer-malloc-leak]: leak of ‘device’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpecam/server/camera_device_main.c:619:9: note: in expansion of macro ‘WINPR_ASSERT’
#  964|   
#  965|   	free(device);
#  966|-> }

Error: CPPCHECK_WARNING (CWE-664): [#def78]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpei/client/rdpei_main.c:1122: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1120|   {
# 1121|   	UINT rc = 0;
# 1122|-> 	va_list ap = { 0 };
# 1123|   	rc = rdpei_touch_process(context, externalId,
# 1124|   	                         RDPINPUT_CONTACT_FLAG_DOWN | RDPINPUT_CONTACT_FLAG_INRANGE |

Error: CPPCHECK_WARNING (CWE-664): [#def79]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpei/client/rdpei_main.c:1126: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1124|   	                         RDPINPUT_CONTACT_FLAG_DOWN | RDPINPUT_CONTACT_FLAG_INRANGE |
# 1125|   	                             RDPINPUT_CONTACT_FLAG_INCONTACT,
# 1126|-> 	                         x, y, contactId, 0, ap);
# 1127|   	return rc;
# 1128|   }

Error: CPPCHECK_WARNING (CWE-664): [#def80]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpei/client/rdpei_main.c:1139: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1137|   {
# 1138|   	UINT rc = 0;
# 1139|-> 	va_list ap = { 0 };
# 1140|   	rc = rdpei_touch_process(context, externalId,
# 1141|   	                         RDPINPUT_CONTACT_FLAG_UPDATE | RDPINPUT_CONTACT_FLAG_INRANGE |

Error: CPPCHECK_WARNING (CWE-664): [#def81]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpei/client/rdpei_main.c:1143: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1141|   	                         RDPINPUT_CONTACT_FLAG_UPDATE | RDPINPUT_CONTACT_FLAG_INRANGE |
# 1142|   	                             RDPINPUT_CONTACT_FLAG_INCONTACT,
# 1143|-> 	                         x, y, contactId, 0, ap);
# 1144|   	return rc;
# 1145|   }

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

Error: CPPCHECK_WARNING (CWE-664): [#def83]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpei/client/rdpei_main.c:1160: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1158|   	                            RDPINPUT_CONTACT_FLAG_UPDATE | RDPINPUT_CONTACT_FLAG_INRANGE |
# 1159|   	                                RDPINPUT_CONTACT_FLAG_INCONTACT,
# 1160|-> 	                            x, y, contactId, 0, ap);
# 1161|   	if (error != CHANNEL_RC_OK)
# 1162|   		return error;

Error: CPPCHECK_WARNING (CWE-664): [#def84]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpei/client/rdpei_main.c:1177: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1175|   {
# 1176|   	UINT rc = 0;
# 1177|-> 	va_list ap = { 0 };
# 1178|   	rc = rdpei_touch_process(context, externalId,
# 1179|   	                         RDPINPUT_CONTACT_FLAG_UP | RDPINPUT_CONTACT_FLAG_CANCELED, x, y,

Error: CPPCHECK_WARNING (CWE-664): [#def85]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpei/client/rdpei_main.c:1180: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1178|   	rc = rdpei_touch_process(context, externalId,
# 1179|   	                         RDPINPUT_CONTACT_FLAG_UP | RDPINPUT_CONTACT_FLAG_CANCELED, x, y,
# 1180|-> 	                         contactId, 0, ap);
# 1181|   	return rc;
# 1182|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c: scope_hint: In function ‘read_cap_set’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:166:12: warning[-Wanalyzer-malloc-leak]: leak of ‘capsSetV1’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/freerdp.h:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:460:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:293:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:231:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:232:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:235:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1033:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:266:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:266:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:266:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:267:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:267:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:268:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:268:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:184:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:185:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:185:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:186:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:186:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:202:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:128:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:128:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:128:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:129:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:129:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:130:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:130:9: note: in expansion of macro ‘Stream_Read_UINT32’
#  164|   	capsSet->size = size;
#  165|   
#  166|-> 	if (!ArrayList_Append(capsSets, capsSet))
#  167|   	{
#  168|   		WLog_ERR(TAG, "Failed to append caps set to arraylist");

Error: GCC_ANALYZER_WARNING (CWE-416): [#def87]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c: scope_hint: In function ‘mouse_cursor_server_close’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:426:26: warning[-Wanalyzer-use-after-free]: use after ‘mouse_cursor_server_context_free’ of ‘context’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:424:9: note: in expansion of macro ‘WINPR_ASSERT’
#  424|   	WINPR_ASSERT(mouse_cursor);
#  425|   
#  426|-> 	if (!mouse_cursor->externalThread && mouse_cursor->thread)
#  427|   	{
#  428|   		(void)SetEvent(mouse_cursor->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:491:13: warning[-Wanalyzer-malloc-leak]: leak of ‘mouse_cursor_server_packet_new(12, 2, &*capsConfirm.header)’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:545:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:546:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:546:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:549:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:795:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:797:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:795:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:797:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:511:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:512:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:512:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:516:24: note: in expansion of macro ‘ERROR_OUTOFMEMORY’
#  489|   
#  490|   	/* Allocate what we need plus header bytes */
#  491|-> 	s = Stream_New(NULL, size + RDPEMSC_HEADER_SIZE);
#  492|   	if (!s)
#  493|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c: scope_hint: In function ‘mouse_cursor_server_send_sc_mouseptr_update’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:491:13: warning[-Wanalyzer-malloc-leak]: leak of ‘mouse_cursor_server_packet_new(update_size, 3, &*mouseptrUpdate.header)’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:602:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:603:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:603:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:795:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:797:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:795:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:797:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
#  489|   
#  490|   	/* Allocate what we need plus header bytes */
#  491|-> 	s = Stream_New(NULL, size + RDPEMSC_HEADER_SIZE);
#  492|   	if (!s)
#  493|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c: scope_hint: In function ‘mouse_cursor_server_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:710:16: warning[-Wanalyzer-malloc-leak]: leak of ‘mouse_cursor’
#  708|   		goto fail;
#  709|   
#  710|-> 	return &mouse_cursor->context;
#  711|   fail:
#  712|   	WINPR_PRAGMA_DIAG_PUSH

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:730:1: warning[-Wanalyzer-malloc-leak]: leak of ‘mouse_cursor’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpemsc/server/mouse_cursor_main.c:424:9: note: in expansion of macro ‘WINPR_ASSERT’
#  728|   
#  729|   	free(mouse_cursor);
#  730|-> }

Error: CPPCHECK_WARNING (CWE-562): [#def92]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/client/rdpgfx_codec.c:149: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  147|   	h264.length = (UINT32)Stream_GetRemainingLength(s);
#  148|   	Stream_Free(s, FALSE);
#  149|-> 	cmd->extra = (void*)&h264;
#  150|   
#  151|   	if (context)

Error: CPPCHECK_WARNING (CWE-562): [#def93]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/client/rdpgfx_codec.c:237: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  235|   		h264.bitstream[0].length = Stream_GetRemainingLength(s);
#  236|   
#  237|-> 	cmd->extra = (void*)&h264;
#  238|   
#  239|   	if (context)

Error: COMPILER_WARNING (CWE-1164): [#def94]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/client/rdpgfx_main.c:636:13: warning[-Wunused-function]: ‘rdpgfx_load_cache_import_offer’ defined but not used
#  636 | static UINT rdpgfx_load_cache_import_offer(RDPGFX_PLUGIN* gfx, RDPGFX_CACHE_IMPORT_OFFER_PDU* offer)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  634|    * @return 0 on success, otherwise a Win32 error code
#  635|    */
#  636|-> static UINT rdpgfx_load_cache_import_offer(RDPGFX_PLUGIN* gfx, RDPGFX_CACHE_IMPORT_OFFER_PDU* offer)
#  637|   {
#  638|   	int count = 0;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def95]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/client/rdpgfx_main.c: scope_hint: In function ‘rdpgfx_client_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/client/rdpgfx_main.c:2408:13: warning[-Wanalyzer-use-after-free]: use after ‘rdpgfx_client_context_free’ of ‘context’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/client/rdpgfx_main.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/client/rdpgfx_main.c:2216:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2406|   		return;
# 2407|   
# 2408|-> 	gfx = (RDPGFX_PLUGIN*)context->handle;
# 2409|   
# 2410|   	free_surfaces(context, gfx->SurfaceTable);

Error: COMPILER_WARNING (CWE-563): [#def96]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c: scope_hint: In function ‘rdpsnd_recv_wave2_pdu’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:699:16: warning[-Wunused-but-set-variable]: variable ‘dwAudioTimeStamp’ set but not used
#  699 |         UINT32 dwAudioTimeStamp = 0;
#      |                ^~~~~~~~~~~~~~~~
#  697|   	UINT16 wFormatNo = 0;
#  698|   	AUDIO_FORMAT* format = NULL;
#  699|-> 	UINT32 dwAudioTimeStamp = 0;
#  700|   
#  701|   	if (!Stream_CheckAndLogRequiredLength(TAG, s, 12))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1838:66: warning[-Wanalyzer-malloc-leak]: leak of ‘allocatePlugin()’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:32:9: note: in definition of macro ‘FREERDP_ENTRY_POINT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1806:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1807:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1835:17: note: in expansion of macro ‘WINPR_ASSERT’
# 1836|   		rdpsnd->rdpcontext = pEntryPoints->GetRdpContext(pEntryPoints);
# 1837|   
# 1838|-> 		if (!freerdp_settings_get_bool(rdpsnd->rdpcontext->settings,
# 1839|   		                               FreeRDP_SynchronousDynamicChannels))
# 1840|   			rdpsnd->async = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1847:37: warning[-Wanalyzer-malloc-leak]: leak of ‘allocatePlugin()’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:32:9: note: in definition of macro ‘FREERDP_ENTRY_POINT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1806:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1807:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1835:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1844:17: note: in expansion of macro ‘WINPR_ASSERT’
# 1845|   		rdpsnd->channelEntryPoints.pExtendedData = cnv.ev;
# 1846|   
# 1847|-> 		error = pEntryPoints->RegisterPlugin(pEntryPoints, RDPSND_CHANNEL_NAME, iface);
# 1848|   	}
# 1849|   	else

Error: COMPILER_WARNING (CWE-563): [#def99]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/server/rdpsnd_main.c:181:16: warning[-Wunused-but-set-variable]: variable ‘udpPort’ set but not used
#  181 |         UINT16 udpPort = 0;
#      |                ^~~~~~~
#  179|   {
#  180|   	UINT16 num_known_format = 0;
#  181|-> 	UINT16 udpPort = 0;
#  182|   	BYTE lastblock = 0;
#  183|   	UINT error = CHANNEL_RC_OK;

Error: COMPILER_WARNING (CWE-563): [#def100]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/server/rdpsnd_main.c: scope_hint: In function ‘rdpsnd_server_recv_formats’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/server/rdpsnd_main.c:182:14: warning[-Wunused-but-set-variable]: variable ‘lastblock’ set but not used
#  182 |         BYTE lastblock = 0;
#      |              ^~~~~~~~~
#  180|   	UINT16 num_known_format = 0;
#  181|   	UINT16 udpPort = 0;
#  182|-> 	BYTE lastblock = 0;
#  183|   	UINT error = CHANNEL_RC_OK;
#  184|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def101]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/server/rdpsnd_main.c: scope_hint: In function ‘rdpsnd_server_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/server/rdpsnd_main.c:1078:9: warning[-Wanalyzer-mismatching-deallocation]: ‘context’ should have been deallocated with ‘free’ but was deallocated with ‘rdpsnd_server_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/server/rdpsnd_main.c:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/server/rdpsnd_main.c:1051:17: note: in expansion of macro ‘WLog_ERR’
# 1076|   	WINPR_PRAGMA_DIAG_PUSH
# 1077|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1078|-> 	rdpsnd_server_context_free(context);
# 1079|   	WINPR_PRAGMA_DIAG_POP
# 1080|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def102]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/server/rdpsnd_main.c: scope_hint: In function ‘rdpsnd_server_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/server/rdpsnd_main.c:1098:20: warning[-Wanalyzer-use-after-free]: use after ‘rdpsnd_server_context_free’ of ‘context’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/server/rdpsnd_main.c:1051:17: note: in expansion of macro ‘WLog_ERR’
# 1096|   		return;
# 1097|   
# 1098|-> 	if (context->priv)
# 1099|   	{
# 1100|   		rdpsnd_server_stop(context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/remdesk/server/remdesk_main.c: scope_hint: In function ‘remdesk_server_thread’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/remdesk/server/remdesk_main.c:548:43: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 4096)’
#  546|   	}
#  547|   
#  548|-> 	if (WTSVirtualChannelQuery(context->priv->ChannelHandle, WTSVirtualEventHandle, &buffer,
#  549|   	                           &BytesReturned) == TRUE)
#  550|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/remdesk/server/remdesk_main.c: scope_hint: In function ‘remdesk_server_start’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/remdesk/server/remdesk_main.c:656:21: warning[-Wanalyzer-malloc-leak]: leak of ‘**context.priv.ChannelHandle’
#  654|   	    WTSVirtualChannelOpen(context->vcm, WTS_CURRENT_SESSION, REMDESK_SVC_CHANNEL_NAME);
#  655|   
#  656|-> 	if (!context->priv->ChannelHandle)
#  657|   	{
#  658|   		WLog_ERR(TAG, "WTSVirtualChannelOpen failed!");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c: scope_hint: In function ‘serial_process_irp_create’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:172:12: warning[-Wanalyzer-malloc-leak]: leak of ‘*serial.hComm’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:512:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:513:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:514:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:461:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:462:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:462:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:464:9: note: in expansion of macro ‘WLog_Print’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:124:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:125:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:125:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:116:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSizeWLog’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:127:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthWLog’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:130:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:130:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:130:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘serial_process_irp_create’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c: scope_hint: In function ‘serial_process_irp_create’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘serial_process_irp_create’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c: scope_hint: In function ‘serial_process_irp_create’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:133:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:133:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:134:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:134:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘serial_process_irp_create’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c: scope_hint: In function ‘serial_process_irp_create’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:136:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:136:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:141:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:141:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:158:9: note: in expansion of macro ‘WLog_Print’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/comm.h:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:31: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/serial/client/serial_main.c:168:13: note: in expansion of macro ‘CreateFile’
#  170|   	               NULL);                                                  /* TemplateFile */
#  171|   
#  172|-> 	if (!serial->hComm || (serial->hComm == INVALID_HANDLE_VALUE))
#  173|   	{
#  174|   		WLog_Print(serial->log, WLOG_WARN, "CreateFile failure: %s last-error: 0x%08" PRIX32 "",

Error: COMPILER_WARNING (CWE-563): [#def106]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/telemetry/server/telemetry_main.c: scope_hint: In function ‘telemetry_process_message’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/telemetry/server/telemetry_main.c:150:14: warning[-Wunused-but-set-variable]: variable ‘Length’ set but not used
#  150 |         BYTE Length = 0;
#      |              ^~~~~~
#  148|   	ULONG BytesReturned = 0;
#  149|   	BYTE MessageId = 0;
#  150|-> 	BYTE Length = 0;
#  151|   	wStream* s = NULL;
#  152|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def107]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/telemetry/server/telemetry_main.c: scope_hint: In function ‘telemetry_server_close’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/telemetry/server/telemetry_main.c:345:23: warning[-Wanalyzer-use-after-free]: use after ‘telemetry_server_context_free’ of ‘context’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/freerdp.h:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/telemetry/server/telemetry_main.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/telemetry/server/telemetry_main.c:343:9: note: in expansion of macro ‘WINPR_ASSERT’
#  343|   	WINPR_ASSERT(telemetry);
#  344|   
#  345|-> 	if (!telemetry->externalThread && telemetry->thread)
#  346|   	{
#  347|   		(void)SetEvent(telemetry->stopEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/telemetry/server/telemetry_main.c: scope_hint: In function ‘telemetry_server_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/telemetry/server/telemetry_main.c:422:16: warning[-Wanalyzer-malloc-leak]: leak of ‘telemetry’
#  420|   		goto fail;
#  421|   
#  422|-> 	return &telemetry->context;
#  423|   fail:
#  424|   	WINPR_PRAGMA_DIAG_PUSH

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/telemetry/server/telemetry_main.c:442:1: warning[-Wanalyzer-malloc-leak]: leak of ‘telemetry’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/telemetry/server/telemetry_main.c:343:9: note: in expansion of macro ‘WINPR_ASSERT’
#  440|   
#  441|   	free(telemetry);
#  442|-> }

Error: COMPILER_WARNING (CWE-563): [#def110]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c: scope_hint: In function ‘urbdrc_process_register_request_callback’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c:122:16: warning[-Wunused-but-set-variable]: variable ‘NumRequestCompletion’ set but not used
#  122 |         UINT32 NumRequestCompletion = 0;
#      |                ^~~~~~~~~~~~~~~~~~~~
#  120|                                                        IUDEVMAN* udevman)
#  121|   {
#  122|-> 	UINT32 NumRequestCompletion = 0;
#  123|   	UINT32 RequestCompletion = 0;
#  124|   

Error: COMPILER_WARNING (CWE-563): [#def111]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c:317:16: warning[-Wunused-but-set-variable]: variable ‘IoControlCode’ set but not used
#  317 |         UINT32 IoControlCode = 0;
#      |                ^~~~~~~~~~~~~
#  315|   {
#  316|   	wStream* out = NULL;
#  317|-> 	UINT32 IoControlCode = 0;
#  318|   	UINT32 InterfaceId = 0;
#  319|   	UINT32 InputBufferSize = 0;

Error: COMPILER_WARNING (CWE-563): [#def112]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c: scope_hint: In function ‘urbdrc_process_internal_io_control’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c:320:16: warning[-Wunused-but-set-variable]: variable ‘OutputBufferSize’ set but not used
#  320 |         UINT32 OutputBufferSize = 0;
#      |                ^~~~~~~~~~~~~~~~
#  318|   	UINT32 InterfaceId = 0;
#  319|   	UINT32 InputBufferSize = 0;
#  320|-> 	UINT32 OutputBufferSize = 0;
#  321|   	UINT32 RequestId = 0;
#  322|   	UINT32 frames = 0;

Error: COMPILER_WARNING (CWE-563): [#def113]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c:538:16: warning[-Wunused-but-set-variable]: variable ‘ConfigurationHandle’ set but not used
#  538 |         UINT32 ConfigurationHandle = 0;
#      |                ^~~~~~~~~~~~~~~~~~~
#  536|   	UINT32 out_size = 0;
#  537|   	UINT32 InterfaceId = 0;
#  538|-> 	UINT32 ConfigurationHandle = 0;
#  539|   	UINT32 OutputBufferSize = 0;
#  540|   	BYTE InterfaceNumber = 0;

Error: COMPILER_WARNING (CWE-563): [#def114]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c: scope_hint: In function ‘urb_select_interface’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c:539:16: warning[-Wunused-but-set-variable]: variable ‘OutputBufferSize’ set but not used
#  539 |         UINT32 OutputBufferSize = 0;
#      |                ^~~~~~~~~~~~~~~~
#  537|   	UINT32 InterfaceId = 0;
#  538|   	UINT32 ConfigurationHandle = 0;
#  539|-> 	UINT32 OutputBufferSize = 0;
#  540|   	BYTE InterfaceNumber = 0;
#  541|   	wStream* out = NULL;

Error: COMPILER_WARNING (CWE-563): [#def115]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c: scope_hint: In function ‘urb_pipe_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c:1208:16: warning[-Wunused-but-set-variable]: variable ‘OutputBufferSize’ set but not used
# 1208 |         UINT32 OutputBufferSize = 0;
#      |                ^~~~~~~~~~~~~~~~
# 1206|   	UINT32 PipeHandle = 0;
# 1207|   	UINT32 EndpointAddress = 0;
# 1208|-> 	UINT32 OutputBufferSize = 0;
# 1209|   	UINT32 usbd_status = 0;
# 1210|   	wStream* out = NULL;

Error: COMPILER_WARNING (CWE-563): [#def116]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c: scope_hint: In function ‘urb_get_current_frame_number’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c:1289:16: warning[-Wunused-but-set-variable]: variable ‘OutputBufferSize’ set but not used
# 1289 |         UINT32 OutputBufferSize = 0;
#      |                ^~~~~~~~~~~~~~~~
# 1287|   	UINT32 out_size = 0;
# 1288|   	UINT32 InterfaceId = 0;
# 1289|-> 	UINT32 OutputBufferSize = 0;
# 1290|   	UINT32 dummy_frames = 0;
# 1291|   	wStream* out = NULL;

Error: COMPILER_WARNING (CWE-563): [#def117]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c:1567:16: warning[-Wunused-but-set-variable]: variable ‘CbTsUrb’ set but not used
# 1567 |         UINT32 CbTsUrb = 0;
#      |                ^~~~~~~
# 1565|                                               int transferDir)
# 1566|   {
# 1567|-> 	UINT32 CbTsUrb = 0;
# 1568|   	UINT16 Size = 0;
# 1569|   	UINT16 URB_Function = 0;

Error: COMPILER_WARNING (CWE-563): [#def118]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c: scope_hint: In function ‘urbdrc_process_transfer_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/data_transfer.c:1568:16: warning[-Wunused-but-set-variable]: variable ‘Size’ set but not used
# 1568 |         UINT16 Size = 0;
#      |                ^~~~
# 1566|   {
# 1567|   	UINT32 CbTsUrb = 0;
# 1568|-> 	UINT16 Size = 0;
# 1569|   	UINT16 URB_Function = 0;
# 1570|   	UINT32 RequestId = 0;

Error: CPPCHECK_WARNING (CWE-664): [#def119]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:142: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  140|   	{
#  141|   		char buffer[8192] = { 0 };
#  142|-> 		va_list ap = { 0 };
#  143|   		va_start(ap, error);
#  144|   		(void)vsnprintf(buffer, sizeof(buffer), fmt, ap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c: scope_hint: In function ‘libusb_udev_isoch_transfer’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:218:51: warning[-Wanalyzer-malloc-leak]: leak of ‘async_transfer_user_data_new(idev,  MessageId, 48, (long unsigned int)BufferSize,  Buffer,  outSize + 1024, NoAck,  cb,  callback)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
#  216|   		return NULL;
#  217|   
#  218|-> 	user_data->data = Stream_New(NULL, offset + BufferSize + packetSize);
#  219|   
#  220|   	if (!user_data->data)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def121]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c: scope_hint: In function ‘func_iso_callback’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:284:49: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:995:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c: scope_hint: In function ‘func_iso_callback’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c: scope_hint: In function ‘func_iso_callback’
<built-in>: note: argument 2 of ‘__builtin_memmove’ must be non-null
#  282|   
#  283|   					if (data != packetBuffer)
#  284|-> 						memmove(data, packetBuffer, act_len);
#  285|   
#  286|   					index += act_len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c: scope_hint: In function ‘libusb_udev_complete_msconfig_setup’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:628:61: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t_MsPipe’
#  626|   			{
#  627|   				MsPipe = MsInterface->MsPipes[pnum];
#  628|-> 				t_MsPipe->MaximumPacketSize = MsPipe->MaximumPacketSize;
#  629|   				t_MsPipe->MaximumTransferSize = MsPipe->MaximumTransferSize;
#  630|   				t_MsPipe->PipeFlags = MsPipe->PipeFlags;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:635:63: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t_MsPipe’
#  633|   			{
#  634|   				t_MsPipe->MaximumPacketSize = 0;
#  635|-> 				t_MsPipe->MaximumTransferSize = 0xffffffff;
#  636|   				t_MsPipe->PipeFlags = 0;
#  637|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:644:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t_MsPipes’
#  642|   			t_MsPipe->PipeType = 0;
#  643|   			t_MsPipe->InitCompleted = 0;
#  644|-> 			t_MsPipes[pnum] = t_MsPipe;
#  645|   		}
#  646|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c: scope_hint: In function ‘udev_init’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:1524:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pdev’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:1685:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:1529:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:1533:9: note: in expansion of macro ‘BASIC_STATE_FUNC_REGISTER’
# 1522|   	libusb_close(udev->hub_handle);
# 1523|   	free(udev->devDescriptor);
# 1524|-> 	free(idev);
# 1525|   }
# 1526|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c: scope_hint: In function ‘udev_new_by_id’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:1818:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevice.c:1802:9: note: in expansion of macro ‘WLog_Print’
# 1816|   		LIBUSB_DEVICE_DESCRIPTOR* descriptor = udev_new_descript(urbdrc, dev);
# 1817|   
# 1818|-> 		if ((descriptor->idVendor == idVendor) && (descriptor->idProduct == idProduct))
# 1819|   		{
# 1820|   			array[num] = (PUDEVICE)udev_init(urbdrc, ctx, dev, libusb_get_bus_number(dev),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevman.c:695:34: warning[-Wanalyzer-malloc-leak]: leak of ‘idpair’
#  693|   		else
#  694|   		{
#  695|-> 			idpair = calloc(1, sizeof(VID_PID_PAIR));
#  696|   			if (!idpair)
#  697|   				return CHANNEL_RC_NO_MEMORY;

Error: COMPILER_WARNING (CWE-563): [#def128]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/urbdrc_main.c: scope_hint: In function ‘urbdrc_exchange_capabilities’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/urbdrc_main.c:386:16: warning[-Wunused-but-set-variable]: variable ‘InterfaceId’ set but not used
#  386 |         UINT32 InterfaceId = 0;
#      |                ^~~~~~~~~~~
#  384|   	UINT32 MessageId = 0;
#  385|   	UINT32 FunctionId = 0;
#  386|-> 	UINT32 InterfaceId = 0;
#  387|   	UINT error = CHANNEL_RC_OK;
#  388|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c: scope_hint: In function ‘msusb_mspipes_read’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c: scope_hint: In function ‘msusb_mspipes_read’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.h:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:155:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:155:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:155:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:156:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:156:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:157:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:157:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:158:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:158:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:160:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:160:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c: scope_hint: In function ‘msusb_mspipes_read’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:79:17: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:79:17: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:79:17: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:81:17: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:81:17: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:82:17: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:82:17: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c: scope_hint: In function ‘msusb_mspipes_read’
#   97|   		free(MsPipes[pnum]);
#   98|   
#   99|-> 	free(MsPipes);
#  100|   	return NULL;
#  101|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c: scope_hint: In function ‘msusb_msconfig_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/common/msusb.c:294:16: warning[-Wanalyzer-malloc-leak]: leak of ‘msusb_msconfig_new()’
#  292|   MSUSB_CONFIG_DESCRIPTOR* msusb_msconfig_new(void)
#  293|   {
#  294|-> 	return (MSUSB_CONFIG_DESCRIPTOR*)calloc(1, sizeof(MSUSB_CONFIG_DESCRIPTOR));
#  295|   }
#  296|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c: scope_hint: In function ‘video_VideoData’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:932:1: warning[-Wanalyzer-malloc-leak]: leak of ‘frame’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:812:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:813:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:813:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:816:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:294:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:295:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:295:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:296:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:296:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1024:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c: scope_hint: In function ‘video_VideoData’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:203:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/video/client/video_main.c:927:25: note: in expansion of macro ‘WLog_DBG’
#  930|   
#  931|   	return CHANNEL_RC_OK;
#  932|-> }
#  933|   
#  934|   static UINT video_data_on_data_received(IWTSVirtualChannelCallback* pChannelCallback, wStream* s)

Error: CPPCHECK_WARNING (CWE-664): [#def132]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_connection_dialog.cpp:61: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   59|   {
#   60|   	std::lock_guard lock(_mux);
#   61|-> 	va_list ap = {};
#   62|   	va_start(ap, fmt);
#   63|   	_title = print(fmt, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def133]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_connection_dialog.cpp:71: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   69|   bool SDLConnectionDialog::showInfo(const char* fmt, ...)
#   70|   {
#   71|-> 	va_list ap = {};
#   72|   	va_start(ap, fmt);
#   73|   	auto rc = show(MSG_INFO, fmt, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def134]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_connection_dialog.cpp:80: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   78|   bool SDLConnectionDialog::showWarn(const char* fmt, ...)
#   79|   {
#   80|-> 	va_list ap = {};
#   81|   	va_start(ap, fmt);
#   82|   	auto rc = show(MSG_WARN, fmt, ap);

Error: CPPCHECK_WARNING (CWE-664): [#def135]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_connection_dialog.cpp:89: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   87|   bool SDLConnectionDialog::showError(const char* fmt, ...)
#   88|   {
#   89|-> 	va_list ap = {};
#   90|   	va_start(ap, fmt);
#   91|   	auto rc = show(MSG_ERROR, fmt, ap);

Error: CPPCHECK_WARNING (CWE-480): [#def136]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_input_widgets.cpp:141: 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
#  139|   		{
#  140|   			if (!clear_window(_renderer))
#  141|-> 				throw;
#  142|   
#  143|   			if (!update(_renderer))

Error: CPPCHECK_WARNING (CWE-480): [#def137]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_input_widgets.cpp:144: 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
#  142|   
#  143|   			if (!update(_renderer))
#  144|-> 				throw;
#  145|   
#  146|   			if (!_buttons.update(_renderer))

Error: CPPCHECK_WARNING (CWE-480): [#def138]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_input_widgets.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|   
#  146|   			if (!_buttons.update(_renderer))
#  147|-> 				throw;
#  148|   
#  149|   			SDL_Event event = {};

Error: CPPCHECK_WARNING (CWE-480): [#def139]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_input_widgets.cpp:166: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
#  164|   							{
#  165|   								if (!cur->remove_str(_renderer, 1))
#  166|-> 									throw;
#  167|   							}
#  168|   						}

Error: CPPCHECK_WARNING (CWE-480): [#def140]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_input_widgets.cpp:211: 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
#  209|   					{
#  210|   						if (!cur->append_str(_renderer, event.text.text))
#  211|-> 							throw;
#  212|   					}
#  213|   				}

Error: CPPCHECK_WARNING (CWE-480): [#def141]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_input_widgets.cpp:221: 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
#  219|   					{
#  220|   						if (!cur.set_mouseover(_renderer, false))
#  221|-> 							throw;
#  222|   					}
#  223|   					if (TextInputIndex >= 0)

Error: CPPCHECK_WARNING (CWE-480): [#def142]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_input_widgets.cpp:227: 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
#  225|   						auto& cur = _list[static_cast<size_t>(TextInputIndex)];
#  226|   						if (!cur.set_mouseover(_renderer, true))
#  227|-> 							throw;
#  228|   					}
#  229|   

Error: CPPCHECK_WARNING (CWE-480): [#def143]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_input_widgets.cpp:270: 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
#  268|   			{
#  269|   				if (!cur.set_highlight(_renderer, false))
#  270|-> 					throw;
#  271|   			}
#  272|   			auto cur = get(CurrentActiveTextInput);

Error: CPPCHECK_WARNING (CWE-480): [#def144]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_input_widgets.cpp:276: 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
#  274|   			{
#  275|   				if (!cur->set_highlight(_renderer, true))
#  276|-> 					throw;
#  277|   			}
#  278|   

Error: CPPCHECK_WARNING (CWE-480): [#def145]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_selectlist.cpp:58: 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
#   56|   		{
#   57|   			if (!clear_window(_renderer))
#   58|-> 				throw;
#   59|   
#   60|   			if (!update_text())

Error: CPPCHECK_WARNING (CWE-480): [#def146]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_selectlist.cpp:61: 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
#   59|   
#   60|   			if (!update_text())
#   61|-> 				throw;
#   62|   
#   63|   			if (!_buttons.update(_renderer))

Error: CPPCHECK_WARNING (CWE-480): [#def147]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_selectlist.cpp:64: 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
#   62|   
#   63|   			if (!_buttons.update(_renderer))
#   64|-> 				throw;
#   65|   
#   66|   			SDL_Event event = {};

Error: CPPCHECK_WARNING (CWE-480): [#def148]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_selectlist.cpp:110: 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
#  108|   						auto& cur = _list[TextInputIndex];
#  109|   						if (!cur.set_mouseover(_renderer, true))
#  110|-> 							throw;
#  111|   					}
#  112|   

Error: CPPCHECK_WARNING (CWE-480): [#def149]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/dialogs/sdl_selectlist.cpp:146: 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
#  144|   				auto& cur = _list[CurrentActiveTextInput];
#  145|   				if (!cur.set_highlight(_renderer, true))
#  146|-> 					throw;
#  147|   			}
#  148|   

Error: COMPILER_WARNING (CWE-1164): [#def150]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/sdl_kbd.cpp:417:20: warning[-Wunused-function]: ‘const char* sdl_scancode_name(Uint32)’ defined but not used
#  417 | static const char* sdl_scancode_name(Uint32 scancode)
#      |                    ^~~~~~~~~~~~~~~~~
#  415|   }
#  416|   
#  417|-> static const char* sdl_scancode_name(Uint32 scancode)
#  418|   {
#  419|   	for (const auto& cur : map)

Error: COMPILER_WARNING (CWE-1164): [#def151]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/sdl_kbd.cpp:439:20: warning[-Wunused-function]: ‘const char* sdl_rdp_scancode_name(UINT32)’ defined but not used
#  439 | static const char* sdl_rdp_scancode_name(UINT32 scancode)
#      |                    ^~~~~~~~~~~~~~~~~~~~~
#  437|   }
#  438|   
#  439|-> static const char* sdl_rdp_scancode_name(UINT32 scancode)
#  440|   {
#  441|   	for (const auto& cur : map)

Error: COMPILER_WARNING (CWE-1164): [#def152]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/sdl_kbd.cpp:450:15: warning[-Wunused-function]: ‘UINT32 sdl_rdp_scancode_val(const char*)’ defined but not used
#  450 | static UINT32 sdl_rdp_scancode_val(const char* scancodeName)
#      |               ^~~~~~~~~~~~~~~~~~~~
#  448|   }
#  449|   
#  450|-> static UINT32 sdl_rdp_scancode_val(const char* scancodeName)
#  451|   {
#  452|   	for (const auto& cur : map)

Error: COMPILER_WARNING (CWE-1164): [#def153]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/sdl_monitor.cpp:81:13: warning[-Wunused-function]: ‘BOOL sdl_is_monitor_id_active(SdlContext*, UINT32)’ defined but not used
#   81 | static BOOL sdl_is_monitor_id_active(SdlContext* sdl, UINT32 id)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~
#   79|   }
#   80|   
#   81|-> static BOOL sdl_is_monitor_id_active(SdlContext* sdl, UINT32 id)
#   82|   {
#   83|   	const rdpSettings* settings = nullptr;

Error: CPPCHECK_WARNING (CWE-664): [#def154]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/SDL/SDL2/sdl_utils.cpp:155: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  153|   	SDL_UserEvent* event = &ev.user;
#  154|   
#  155|-> 	va_list ap = {};
#  156|   	va_start(ap, type);
#  157|   	event->type = type;

Error: COMPILER_WARNING (CWE-1164): [#def155]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/Wayland/wlf_disp.c:289:6: warning[-Wunused-function]: ‘wlf_disp_sendLayout’ defined but not used
#  289 | UINT wlf_disp_sendLayout(DispClientContext* disp, const rdpMonitor* monitors, size_t nmonitors)
#      |      ^~~~~~~~~~~~~~~~~~~
#  287|   }
#  288|   
#  289|-> UINT wlf_disp_sendLayout(DispClientContext* disp, const rdpMonitor* monitors, size_t nmonitors)
#  290|   {
#  291|   	UINT ret = CHANNEL_RC_OK;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c: scope_hint: In function ‘xf_setup_x11’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1895:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateMutexA(0, 0, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1133:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1137:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1140:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1861:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1893:22: note: in expansion of macro ‘CreateMutex’
# 1893|   	xfc->mutex = CreateMutex(NULL, FALSE, NULL);
# 1894|   
# 1895|-> 	if (!xfc->mutex)
# 1896|   	{
# 1897|   		WLog_ERR(TAG, "Could not create mutex!");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1927:25: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(nitems, 8)’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1133:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1137:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1140:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1861:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:33: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1926:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_client.c:1926:25: note: in expansion of macro ‘WINPR_ASSERT’
# 1925|   			xfc->supportedAtoms = calloc(xfc->supportedAtomCount, sizeof(Atom));
# 1926|   			WINPR_ASSERT(xfc->supportedAtoms);
# 1927|-> 			memcpy(xfc->supportedAtoms, data, nitems * sizeof(Atom));
# 1928|   		}
# 1929|   

Error: COMPILER_WARNING (CWE-1164): [#def158]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:205:13: warning[-Wunused-function]: ‘requested_format_matches’ defined but not used
#  205 | static BOOL requested_format_matches(const RequestedFormat* pRequestedFormat, UINT32 formatId,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~
#  203|   }
#  204|   
#  205|-> static BOOL requested_format_matches(const RequestedFormat* pRequestedFormat, UINT32 formatId,
#  206|                                        const char* formatName)
#  207|   {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c: scope_hint: In function ‘xf_cliprdr_server_format_data_response’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:257:31: warning[-Wanalyzer-malloc-leak]: leak of ‘xf_cached_data_new_copy(data, (long unsigned int)size)’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:35: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2152:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2153:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2153:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2156:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2159:9: note: in expansion of macro ‘WINPR_ASSERT’
#  255|   	}
#  256|   
#  257|-> 	xfCachedData* cache = xf_cached_data_new(copy, data_length);
#  258|   	if (!cache)
#  259|   		free(copy);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def160]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c: scope_hint: In function ‘xf_clipboard_free_server_formats’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:266:22: warning[-Wanalyzer-use-after-free]: use after ‘xf_clipboard_free’ of ‘clipboard’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2381:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2382:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:265:9: note: in expansion of macro ‘WINPR_ASSERT’
#  264|   {
#  265|   	WINPR_ASSERT(clipboard);
#  266|-> 	if (clipboard->serverFormats)
#  267|   	{
#  268|   		for (size_t i = 0; i < clipboard->numServerFormats; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:1349:35: warning[-Wanalyzer-malloc-leak]: leak of ‘xf_cached_data_new(pDstData,  DstSize)’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c: scope_hint: In function ‘xf_cliprdr_server_format_data_response’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2152:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2153:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2153:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2156:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_cliprdr.c:2159:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1347|   		void* vptr;
# 1348|   	} cnv;
# 1349|-> 	cnv.uptr = 0x100000000ULL + format;
# 1350|   	return cnv.vptr;
# 1351|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def162]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c: scope_hint: In function ‘xf_floatbar_new_button’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:274:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘button’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:268:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:269:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:270:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:271:9: note: in expansion of macro ‘WINPR_ASSERT’
#  272|   
#  273|   	button = (xfFloatbarButton*)calloc(1, sizeof(xfFloatbarButton));
#  274|-> 	button->type = type;
#  275|   
#  276|   	switch (type)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def163]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c: scope_hint: In function ‘xf_floatbar_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:359:9: warning[-Wanalyzer-mismatching-deallocation]: ‘floatbar’ should have been deallocated with ‘free’ but was deallocated with ‘xf_floatbar_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:315:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:316:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:317:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:317:9: note: in expansion of macro ‘WINPR_ASSERT’
#  357|   	WINPR_PRAGMA_DIAG_PUSH
#  358|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  359|-> 	xf_floatbar_free(floatbar);
#  360|   	WINPR_PRAGMA_DIAG_POP
#  361|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def164]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c: scope_hint: In function ‘xf_floatbar_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:897:22: warning[-Wanalyzer-use-after-free]: use after ‘xf_floatbar_free’ of ‘floatbar’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:315:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:316:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:317:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_floatbar.c:317:9: note: in expansion of macro ‘WINPR_ASSERT’
#  895|   		return;
#  896|   
#  897|-> 	free(floatbar->title);
#  898|   	xfc = floatbar->xfc;
#  899|   	WINPR_ASSERT(xfc);

Error: CPPCHECK_WARNING (CWE-664): [#def165]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_utils.c:37: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   35|   static void write_log(wLog* log, DWORD level, const char* fname, const char* fkt, size_t line, ...)
#   36|   {
#   37|-> 	va_list ap = { 0 };
#   38|   	va_start(ap, line);
#   39|   	WLog_PrintMessageVA(log, WLOG_MESSAGE_TEXT, level, line, fname, fkt, ap);

Error: CPPCHECK_WARNING (CWE-758): [#def166]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:152: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  150|   	for (size_t x = 0; x < 32; x++)
#  151|   	{
#  152|-> 		const UINT32 val = 1 << x;
#  153|   		if ((style & val) != 0)
#  154|   		{

Error: GCC_ANALYZER_WARNING (CWE-686): [#def167]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:255: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.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:1199:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:1200:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:1200:9: note: in expansion of macro ‘WINPR_ASSERT’
#  253|   	for (size_t i = 0; i < numArgs; i++)
#  254|   	{
#  255|-> 		xevent.xclient.data.l[i] = va_arg(argp, int);
#  256|   	}
#  257|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def168]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c: scope_hint: In function ‘xf_SendClientEvent’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:255:44: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘long unsigned int’ for variadic argument 2 of ‘argp’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:37: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:1199:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:1200:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:1200:9: note: in expansion of macro ‘WINPR_ASSERT’
#  253|   	for (size_t i = 0; i < numArgs; i++)
#  254|   	{
#  255|-> 		xevent.xclient.data.l[i] = va_arg(argp, int);
#  256|   	}
#  257|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c: scope_hint: In function ‘xf_SetWindowRects’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:1276:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xrects’
# 1274|   	for (int i = 0; i < nrects; i++)
# 1275|   	{
# 1276|-> 		xrects[i].x = rects[i].left;
# 1277|   		xrects[i].y = rects[i].top;
# 1278|   		xrects[i].width = rects[i].right - rects[i].left;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c: scope_hint: In function ‘xf_SetWindowVisibilityRects’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/X11/xf_window.c:1301:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xrects’
# 1299|   	for (int i = 0; i < nrects; i++)
# 1300|   	{
# 1301|-> 		xrects[i].x = rects[i].left;
# 1302|   		xrects[i].y = rects[i].top;
# 1303|   		xrects[i].width = rects[i].right - rects[i].left;

Error: CPPCHECK_WARNING (CWE-664): [#def171]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client.c:1130: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1128|   				          ", ignoring",
# 1129|   				          count);
# 1130|-> 			va_list ap = { 0 };
# 1131|   			va_start(ap, count);
# 1132|   			const char* scope = va_arg(ap, const char*);

Error: CPPCHECK_WARNING (CWE-664): [#def172]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:628: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  626|   		return;
#  627|   
#  628|-> 	va_list ap = { 0 };
#  629|   	va_start(ap, line);
#  630|   	WLog_PrintMessageVA(log, WLOG_MESSAGE_TEXT, level, line, fname, fkt, ap);

Error: COMPILER_WARNING (CWE-1164): [#def173]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:1657:13: warning[-Wunused-function]: ‘cliprdr_file_server_content_changed_and_update’ defined but not used
# 1657 | static BOOL cliprdr_file_server_content_changed_and_update(CliprdrFileContext* file,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1655|   }
# 1656|   
# 1657|-> static BOOL cliprdr_file_server_content_changed_and_update(CliprdrFileContext* file,
# 1658|                                                              const void* data, size_t size)
# 1659|   {

Error: GCC_ANALYZER_WARNING (CWE-416): [#def174]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c: scope_hint: In function ‘cliprdr_file_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2071:17: warning[-Wanalyzer-use-after-free]: use after ‘cliprdr_file_context_free’ of ‘file’
# 2069|   
# 2070|   #if defined(WITH_FUSE)
# 2071|-> 	if (file->inode_table)
# 2072|   	{
# 2073|   		clear_no_cdi_entry(file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c: scope_hint: In function ‘cliprdr_file_context_update_client_data’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2162:38: warning[-Wanalyzer-malloc-leak]: leak of ‘cliprdr_local_stream_new(file,  lockId,  data,  size)’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:43: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2502:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:1668:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2484:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2486:9: note: in expansion of macro ‘WLog_Print’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2317:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2272:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2160:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2160|   	WINPR_ASSERT(stream);
# 2161|   
# 2162|-> 	for (size_t x = 0; x < stream->count; x++)
# 2163|   		cliprdr_local_file_free(&stream->files[x]);
# 2164|   	free(stream->files);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c: scope_hint: In function ‘is_directory’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2200:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateFileW(ConvertUtf8ToWCharAlloc(path, 0), 0, 4, 0, 3, 128, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2160:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2142:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2143:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2143:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2144:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2144:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2198|   	free(wpath);
# 2199|   
# 2200|-> 	if (hFile == INVALID_HANDLE_VALUE)
# 2201|   		return FALSE;
# 2202|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c: scope_hint: In function ‘add_directory’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2226:12: warning[-Wanalyzer-malloc-leak]: leak of ‘FindFirstFileW(ConvertUtf8ToWCharAlloc(GetCombinedPath(path, "*"), 0), &FindFileData)’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2160:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2142:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2143:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2143:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2144:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2144:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2224|   	free(wpath);
# 2225|   
# 2226|-> 	if (hFind == INVALID_HANDLE_VALUE)
# 2227|   		return FALSE;
# 2228|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2465:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2414:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2420:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2463|   	WINPR_PRAGMA_DIAG_PUSH
# 2464|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2465|-> 	cliprdr_file_context_free(file);
# 2466|   	WINPR_PRAGMA_DIAG_POP
# 2467|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def179]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c: scope_hint: In function ‘cliprdr_file_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2465:9: warning[-Wanalyzer-mismatching-deallocation]: ‘file’ should have been deallocated with ‘free’ but was deallocated with ‘cliprdr_file_context_free’
# 2463|   	WINPR_PRAGMA_DIAG_PUSH
# 2464|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2465|-> 	cliprdr_file_context_free(file);
# 2466|   	WINPR_PRAGMA_DIAG_POP
# 2467|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c: scope_hint: In function ‘cliprdr_file_context_update_client_data’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2520:60: warning[-Wanalyzer-malloc-leak]: leak of ‘cliprdr_local_stream_new(file,  lockId,  data,  size)’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2502:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:1668:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2484:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2486:9: note: in expansion of macro ‘WLog_Print’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2317:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/client_cliprdr_file.c:2272:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2518|   	{
# 2519|   		stream = cliprdr_local_stream_new(file, lockId, data, size);
# 2520|-> 		rc = HashTable_Insert(file->local_streams, &stream->lockId, stream);
# 2521|   		if (!rc)
# 2522|   			cliprdr_local_stream_free(stream);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c: scope_hint: In function ‘argv_append’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5533:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:2008:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:2009:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:2009:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:2008:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:2009:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:2009:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5558:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5559:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5559:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5560:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5560:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5522:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5523:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5523:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5522:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5523:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5523:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5522:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5523:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/cmdline.c:5523:9: note: in expansion of macro ‘WINPR_ASSERT’
# 5531|   	int nargc = *pargc + 1;
# 5532|   	char** tmp = realloc(*pargv, nargc * sizeof(char*));
# 5533|-> 	if (!tmp)
# 5534|   		return FALSE;
# 5535|   

Error: CPPCHECK_WARNING (CWE-664): [#def182]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c:1428: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1426|                                                         WINPR_FORMAT_ARG const char* fmt, ...)
# 1427|   {
# 1428|-> 	va_list ap = { 0 };
# 1429|   	SSIZE_T len = 0;
# 1430|   	char* buf = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c: scope_hint: In function ‘freerdp_client_rdp_file_new_ex’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c:2646:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_client_rdp_file_new_ex(0)’
# 2644|   	rdpFile* file = (rdpFile*)calloc(1, sizeof(rdpFile));
# 2645|   
# 2646|-> 	if (!file)
# 2647|   		return NULL;
# 2648|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c:2662:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_client_rdp_file_new_ex(0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:32: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/client.h:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c:2651:9: note: in expansion of macro ‘FillMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c: scope_hint: In function ‘freerdp_client_rdp_file_new_ex’
# 2660|   		goto fail;
# 2661|   
# 2662|-> 	if (!freerdp_client_add_option(file, "freerdp"))
# 2663|   		goto fail;
# 2664|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c:2669:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c:2651:9: note: in expansion of macro ‘FillMemory’
# 2667|   	WINPR_PRAGMA_DIAG_PUSH
# 2668|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2669|-> 	freerdp_client_rdp_file_free(file);
# 2670|   	WINPR_PRAGMA_DIAG_POP
# 2671|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def186]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c:2669:9: warning[-Wanalyzer-mismatching-deallocation]: ‘file’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_client_rdp_file_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c:2651:9: note: in expansion of macro ‘FillMemory’
# 2667|   	WINPR_PRAGMA_DIAG_PUSH
# 2668|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2669|-> 	freerdp_client_rdp_file_free(file);
# 2670|   	WINPR_PRAGMA_DIAG_POP
# 2671|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def187]
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c: scope_hint: In function ‘freerdp_client_rdp_file_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c:2677:25: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_client_rdp_file_free’ of ‘file’
freerdp-3.9.0-build/FreeRDP-3.9.0/client/common/file.c:2651:9: note: in expansion of macro ‘FillMemory’
# 2675|   	if (file)
# 2676|   	{
# 2677|-> 		if (file->lineCount)
# 2678|   		{
# 2679|   			for (size_t i = 0; i < file->lineCount; i++)

Error: GCC_ANALYZER_WARNING (CWE-416): [#def188]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c: scope_hint: In function ‘bitmap_cache_save_persistent’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:287:21: warning[-Wanalyzer-use-after-free]: use after ‘bitmap_cache_free’ of ‘bitmapCache’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:357:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:360:9: note: in expansion of macro ‘WINPR_ASSERT’
#  285|   static int bitmap_cache_save_persistent(rdpBitmapCache* bitmapCache)
#  286|   {
#  287|-> 	rdpContext* context = bitmapCache->context;
#  288|   	rdpSettings* settings = context->settings;
#  289|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:394:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:357:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:360:9: note: in expansion of macro ‘WINPR_ASSERT’
#  392|   	WINPR_PRAGMA_DIAG_PUSH
#  393|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  394|-> 	bitmap_cache_free(bitmapCache);
#  395|   	WINPR_PRAGMA_DIAG_POP
#  396|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def190]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c: scope_hint: In function ‘bitmap_cache_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:394:9: warning[-Wanalyzer-mismatching-deallocation]: ‘bitmapCache’ should have been deallocated with ‘free’ but was deallocated with ‘bitmap_cache_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:357:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:360:9: note: in expansion of macro ‘WINPR_ASSERT’
#  392|   	WINPR_PRAGMA_DIAG_PUSH
#  393|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  394|-> 	bitmap_cache_free(bitmapCache);
#  395|   	WINPR_PRAGMA_DIAG_POP
#  396|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def191]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c: scope_hint: In function ‘free_bitmap_update’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:477:54: warning[-Wanalyzer-use-after-free]: use after ‘free_bitmap_update’ of ‘pointer’
#  475|   		return;
#  476|   
#  477|-> 	free_bitmap_data(pointer->rectangles, pointer->number);
#  478|   	free(pointer);
#  479|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def192]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c: scope_hint: In function ‘copy_bitmap_update’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:498:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_bitmap_update’
#  496|   	WINPR_PRAGMA_DIAG_PUSH
#  497|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  498|-> 	free_bitmap_update(context, dst);
#  499|   	WINPR_PRAGMA_DIAG_POP
#  500|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def193]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c: scope_hint: In function ‘copy_cache_bitmap_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:526:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_cache_bitmap_order’
#  524|   	WINPR_PRAGMA_DIAG_PUSH
#  525|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  526|-> 	free_cache_bitmap_order(context, dst);
#  527|   	WINPR_PRAGMA_DIAG_POP
#  528|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def194]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c: scope_hint: In function ‘free_cache_bitmap_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:534:27: warning[-Wanalyzer-use-after-free]: use after ‘free_cache_bitmap_order’ of ‘order’
#  532|   {
#  533|   	if (order)
#  534|-> 		free(order->bitmapDataStream);
#  535|   
#  536|   	free(order);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def195]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c: scope_hint: In function ‘copy_cache_bitmap_v2_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:563:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_cache_bitmap_v2_order’
#  561|   	WINPR_PRAGMA_DIAG_PUSH
#  562|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  563|-> 	free_cache_bitmap_v2_order(context, dst);
#  564|   	WINPR_PRAGMA_DIAG_POP
#  565|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def196]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c: scope_hint: In function ‘free_cache_bitmap_v2_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:571:27: warning[-Wanalyzer-use-after-free]: use after ‘free_cache_bitmap_v2_order’ of ‘order’
#  569|   {
#  570|   	if (order)
#  571|-> 		free(order->bitmapDataStream);
#  572|   
#  573|   	free(order);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def197]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c: scope_hint: In function ‘copy_cache_bitmap_v3_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/bitmap.c:600:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_cache_bitmap_v3_order’
#  598|   	WINPR_PRAGMA_DIAG_PUSH
#  599|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  600|-> 	free_cache_bitmap_v3_order(context, dst);
#  601|   	WINPR_PRAGMA_DIAG_POP
#  602|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/brush.c:275:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/brush.c:251:9: note: in expansion of macro ‘WINPR_ASSERT’
#  273|   	WINPR_PRAGMA_DIAG_PUSH
#  274|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  275|-> 	brush_cache_free(brushCache);
#  276|   	WINPR_PRAGMA_DIAG_POP
#  277|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def199]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/brush.c: scope_hint: In function ‘brush_cache_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/brush.c:275:9: warning[-Wanalyzer-mismatching-deallocation]: ‘brushCache’ should have been deallocated with ‘free’ but was deallocated with ‘brush_cache_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/brush.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/brush.c:251:9: note: in expansion of macro ‘WINPR_ASSERT’
#  273|   	WINPR_PRAGMA_DIAG_PUSH
#  274|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  275|-> 	brush_cache_free(brushCache);
#  276|   	WINPR_PRAGMA_DIAG_POP
#  277|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def200]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/brush.c: scope_hint: In function ‘brush_cache_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/brush.c:284:31: warning[-Wanalyzer-use-after-free]: use after ‘brush_cache_free’ of ‘brushCache’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/brush.c:251:9: note: in expansion of macro ‘WINPR_ASSERT’
#  282|   	if (brushCache)
#  283|   	{
#  284|-> 		if (brushCache->entries)
#  285|   		{
#  286|   			for (size_t i = 0; i < brushCache->maxEntries; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c:78:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c:32:9: note: in expansion of macro ‘WINPR_ASSERT’
#   76|   	WINPR_PRAGMA_DIAG_PUSH
#   77|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#   78|-> 	cache_free(cache);
#   79|   	WINPR_PRAGMA_DIAG_POP
#   80|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def202]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c: scope_hint: In function ‘cache_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c:78:9: warning[-Wanalyzer-mismatching-deallocation]: ‘cache’ should have been deallocated with ‘free’ but was deallocated with ‘cache_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c:32:9: note: in expansion of macro ‘WINPR_ASSERT’
#   76|   	WINPR_PRAGMA_DIAG_PUSH
#   77|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#   78|-> 	cache_free(cache);
#   79|   	WINPR_PRAGMA_DIAG_POP
#   80|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def203]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c: scope_hint: In function ‘cache_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c:87:17: warning[-Wanalyzer-use-after-free]: use after ‘cache_free’ of ‘cache’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c:32:9: note: in expansion of macro ‘WINPR_ASSERT’
#   85|   	if (cache != NULL)
#   86|   	{
#   87|-> 		glyph_cache_free(cache->glyph);
#   88|   		brush_cache_free(cache->brush);
#   89|   		pointer_cache_free(cache->pointer);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def204]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c: scope_hint: In function ‘copy_cache_color_table_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c:111:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_cache_color_table_order’
#  109|   	WINPR_PRAGMA_DIAG_PUSH
#  110|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  111|-> 	free_cache_color_table_order(context, dst);
#  112|   	WINPR_PRAGMA_DIAG_POP
#  113|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def205]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c: scope_hint: In function ‘copy_surface_bits_command’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/cache.c:142:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_surface_bits_command’
#  140|   	WINPR_PRAGMA_DIAG_PUSH
#  141|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  142|-> 	free_surface_bits_command(context, dst);
#  143|   	WINPR_PRAGMA_DIAG_POP
#  144|   	return NULL;

Error: COMPILER_WARNING (CWE-1164): [#def206]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/nine_grid.c:83:7: warning[-Wunused-function]: ‘nine_grid_cache_get’ defined but not used
#   83 | void* nine_grid_cache_get(rdpNineGridCache* nine_grid, UINT32 index)
#      |       ^~~~~~~~~~~~~~~~~~~
#   81|   }
#   82|   
#   83|-> void* nine_grid_cache_get(rdpNineGridCache* nine_grid, UINT32 index)
#   84|   {
#   85|   	void* entry = NULL;

Error: COMPILER_WARNING (CWE-1164): [#def207]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/nine_grid.c:104:6: warning[-Wunused-function]: ‘nine_grid_cache_put’ defined but not used
#  104 | void nine_grid_cache_put(rdpNineGridCache* nine_grid, UINT32 index, void* entry)
#      |      ^~~~~~~~~~~~~~~~~~~
#  102|   }
#  103|   
#  104|-> void nine_grid_cache_put(rdpNineGridCache* nine_grid, UINT32 index, void* entry)
#  105|   {
#  106|   	if (index >= nine_grid->maxEntries)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def208]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/nine_grid.c: scope_hint: In function ‘nine_grid_cache_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/nine_grid.c:150:9: warning[-Wanalyzer-mismatching-deallocation]: ‘nine_grid’ should have been deallocated with ‘free’ but was deallocated with ‘nine_grid_cache_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/update.h:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/nine_grid.c:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/nine_grid.c:121:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/nine_grid.c:124:9: note: in expansion of macro ‘WINPR_ASSERT’
#  148|   	WINPR_PRAGMA_DIAG_PUSH
#  149|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  150|-> 	nine_grid_cache_free(nine_grid);
#  151|   	WINPR_PRAGMA_DIAG_POP
#  152|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def209]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/nine_grid.c: scope_hint: In function ‘nine_grid_cache_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/nine_grid.c:159:30: warning[-Wanalyzer-use-after-free]: use after ‘nine_grid_cache_free’ of ‘nine_grid’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/nine_grid.c:121:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/nine_grid.c:124:9: note: in expansion of macro ‘WINPR_ASSERT’
#  157|   	if (nine_grid != NULL)
#  158|   	{
#  159|-> 		if (nine_grid->entries != NULL)
#  160|   		{
#  161|   			for (size_t i = 0; i < nine_grid->maxEntries; i++)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def210]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/offscreen.c: scope_hint: In function ‘offscreen_cache_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/offscreen.c:221:9: warning[-Wanalyzer-mismatching-deallocation]: ‘offscreenCache’ should have been deallocated with ‘free’ but was deallocated with ‘offscreen_cache_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/offscreen.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/offscreen.c:193:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/offscreen.c:196:9: note: in expansion of macro ‘WINPR_ASSERT’
#  219|   	WINPR_PRAGMA_DIAG_PUSH
#  220|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  221|-> 	offscreen_cache_free(offscreenCache);
#  222|   	WINPR_PRAGMA_DIAG_POP
#  223|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def211]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/offscreen.c: scope_hint: In function ‘offscreen_cache_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/offscreen.c:230:35: warning[-Wanalyzer-use-after-free]: use after ‘offscreen_cache_free’ of ‘offscreenCache’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/offscreen.c:193:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/offscreen.c:196:9: note: in expansion of macro ‘WINPR_ASSERT’
#  228|   	if (offscreenCache)
#  229|   	{
#  230|-> 		if (offscreenCache->entries)
#  231|   		{
#  232|   			for (size_t i = 0; i < offscreenCache->maxEntries; i++)

Error: COMPILER_WARNING (CWE-1164): [#def212]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/palette.c:52:7: warning[-Wunused-function]: ‘palette_cache_get’ defined but not used
#   52 | void* palette_cache_get(rdpPaletteCache* paletteCache, UINT32 index)
#      |       ^~~~~~~~~~~~~~~~~
#   50|   }
#   51|   
#   52|-> void* palette_cache_get(rdpPaletteCache* paletteCache, UINT32 index)
#   53|   {
#   54|   	void* entry = NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def213]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/palette.c: scope_hint: In function ‘copy_palette_update’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/cache/palette.c:139:9: warning[-Wanalyzer-mismatching-deallocation]: ‘dst’ should have been deallocated with ‘free’ but was deallocated with ‘free_palette_update’
#  137|   	WINPR_PRAGMA_DIAG_PUSH
#  138|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  139|-> 	free_palette_update(context, dst);
#  140|   	WINPR_PRAGMA_DIAG_POP
#  141|   	return NULL;

Error: COMPILER_WARNING (CWE-1164): [#def214]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/audio.c:257:13: warning[-Wunused-function]: ‘audio_format_valid’ defined but not used
#  257 | static BOOL audio_format_valid(const AUDIO_FORMAT* format)
#      |             ^~~~~~~~~~~~~~~~~~
#  255|   }
#  256|   
#  257|-> static BOOL audio_format_valid(const AUDIO_FORMAT* format)
#  258|   {
#  259|   	if (!format)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/audio.c: scope_hint: In function ‘audio_formats_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/audio.c:278:16: warning[-Wanalyzer-malloc-leak]: leak of ‘audio_formats_new(1)’
#  276|   AUDIO_FORMAT* audio_formats_new(size_t count)
#  277|   {
#  278|-> 	return calloc(count, sizeof(AUDIO_FORMAT));
#  279|   }
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def216]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/bulk.c: scope_hint: In function ‘bulk_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/bulk.c:369:9: warning[-Wanalyzer-mismatching-deallocation]: ‘bulk’ should have been deallocated with ‘free’ but was deallocated with ‘bulk_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/bulk.c:21: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/bulk.c:337:9: note: in expansion of macro ‘WINPR_ASSERT’
#  367|   	WINPR_PRAGMA_DIAG_PUSH
#  368|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  369|-> 	bulk_free(bulk);
#  370|   	WINPR_PRAGMA_DIAG_POP
#  371|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def217]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/bulk.c: scope_hint: In function ‘bulk_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/bulk.c:379:9: warning[-Wanalyzer-use-after-free]: use after ‘bulk_free’ of ‘bulk’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/bulk.c:337:9: note: in expansion of macro ‘WINPR_ASSERT’
#  377|   		return;
#  378|   
#  379|-> 	mppc_context_free(bulk->mppcSend);
#  380|   	mppc_context_free(bulk->mppcRecv);
#  381|   	ncrush_context_free(bulk->ncrushRecv);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def218]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/clear.c: scope_hint: In function ‘clear_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/clear.c:1202:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_aligned_calloc(1, 850496, 32)’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘clear_context_free’
# 1200|   	WINPR_PRAGMA_DIAG_PUSH
# 1201|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1202|-> 	clear_context_free(clear);
# 1203|   	WINPR_PRAGMA_DIAG_POP
# 1204|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def219]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/clear.c: scope_hint: In function ‘clear_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/clear.c:1212:9: warning[-Wanalyzer-use-after-free]: use after ‘clear_context_free’ of ‘clear’
# 1210|   		return;
# 1211|   
# 1212|-> 	nsc_context_free(clear->nsc);
# 1213|   	winpr_aligned_free(clear->TempBuffer);
# 1214|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/color.c: scope_hint: In function ‘FreeRDPSplitColor’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/color.c:1442:63: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘palette’
# 1440|   			{
# 1441|   				tmp = palette->palette[color];
# 1442|-> 				FreeRDPSplitColor(tmp, palette->format, _r, _g, _b, _a, NULL);
# 1443|   			}
# 1444|   			else

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

Error: COMPILER_WARNING (CWE-1164): [#def222]
freerdp-3.9.0-build/FreeRDP-3.9.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-401): [#def223]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/h264.c: scope_hint: In function ‘avc444_ensure_buffer’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/h264.c:463:90: warning[-Wanalyzer-malloc-leak]: leak of ‘*((BYTE * (*)[3])<unknown>)[0]’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/bitstream.h:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/h264.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/h264.c:433:9: note: in expansion of macro ‘WINPR_ASSERT’
#  461|   				return FALSE;
#  462|   			ppYUVDstData[x] = tmp1;
#  463|-> 			BYTE* tmp2 = winpr_aligned_recalloc(ppOldYUVDstData[x], piDstSize[x], 1, 16);
#  464|   			if (!tmp2)
#  465|   				return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def224]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/h264.c: scope_hint: In function ‘h264_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/h264.c:724:9: warning[-Wanalyzer-mismatching-deallocation]: ‘h264’ should have been deallocated with ‘free’ but was deallocated with ‘h264_context_free’
#  722|   	WINPR_PRAGMA_DIAG_PUSH
#  723|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  724|-> 	h264_context_free(h264);
#  725|   	WINPR_PRAGMA_DIAG_POP
#  726|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def225]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/h264.c: scope_hint: In function ‘h264_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/h264.c:733:25: warning[-Wanalyzer-use-after-free]: use after ‘h264_context_free’ of ‘h264’
#  731|   	if (h264)
#  732|   	{
#  733|-> 		if (h264->subsystem)
#  734|   			h264->subsystem->Uninit(h264);
#  735|   

Error: COMPILER_WARNING (CWE-1164): [#def226]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/interleaved.c:149:20: warning[-Wunused-function]: ‘rle_code_str_buffer’ defined but not used
#  149 | static const char* rle_code_str_buffer(UINT32 code, char* buffer, size_t size)
#      |                    ^~~~~~~~~~~~~~~~~~~
#  147|   }
#  148|   
#  149|-> static const char* rle_code_str_buffer(UINT32 code, char* buffer, size_t size)
#  150|   {
#  151|   	const char* str = rle_code_str(code);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def227]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/interleaved.c: scope_hint: In function ‘bitmap_interleaved_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/interleaved.c:743:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_aligned_recalloc(0, 1, 24, 32)’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘bitmap_interleaved_context_free’
#  741|   	WINPR_PRAGMA_DIAG_PUSH
#  742|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  743|-> 	bitmap_interleaved_context_free(interleaved);
#  744|   	WINPR_PRAGMA_DIAG_POP
#  745|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def228]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/interleaved.c: scope_hint: In function ‘bitmap_interleaved_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/interleaved.c:753:39: warning[-Wanalyzer-use-after-free]: use after ‘bitmap_interleaved_context_free’ of ‘interleaved’
#  751|   		return;
#  752|   
#  753|-> 	winpr_aligned_free(interleaved->TempBuffer);
#  754|   	Stream_Free(interleaved->bts, TRUE);
#  755|   	winpr_aligned_free(interleaved);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def229]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/nsc.c: scope_hint: In function ‘nsc_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/nsc.c:370:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_aligned_calloc(1, 120, 32)’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘nsc_context_free’
#  368|   	WINPR_PRAGMA_DIAG_PUSH
#  369|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  370|-> 	nsc_context_free(context);
#  371|   	WINPR_PRAGMA_DIAG_POP
#  372|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def230]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/nsc.c: scope_hint: In function ‘nsc_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/nsc.c:380:20: warning[-Wanalyzer-use-after-free]: use after ‘nsc_context_free’ of ‘context’
#  378|   		return;
#  379|   
#  380|-> 	if (context->priv)
#  381|   	{
#  382|   		for (size_t i = 0; i < 5; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/nsc_encode.c: scope_hint: In function ‘nsc_context_initialize_encode’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/nsc_encode.c:72:41: warning[-Wanalyzer-malloc-leak]: leak of ‘**context_47(D).priv.PlaneBuffers[i]’
#   70|   	if (length > context->priv->PlaneBuffersLength)
#   71|   	{
#   72|-> 		for (int i = 0; i < 5; i++)
#   73|   		{
#   74|   			BYTE* tmp = (BYTE*)winpr_aligned_recalloc(context->priv->PlaneBuffers[i], length,

Error: COMPILER_WARNING (CWE-1164): [#def232]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/nsc_encode.c:419:15: warning[-Wunused-function]: ‘nsc_compute_byte_count’ defined but not used
#  419 | static UINT32 nsc_compute_byte_count(NSC_CONTEXT* WINPR_RESTRICT context,
#      |               ^~~~~~~~~~~~~~~~~~~~~~
#  417|   }
#  418|   
#  419|-> static UINT32 nsc_compute_byte_count(NSC_CONTEXT* WINPR_RESTRICT context,
#  420|                                        UINT32* WINPR_RESTRICT ByteCount, UINT32 width, UINT32 height)
#  421|   {

Error: GCC_ANALYZER_WARNING (CWE-762): [#def233]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/planar.c: scope_hint: In function ‘freerdp_bitmap_planar_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/planar.c:1770:17: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_aligned_calloc(1, 176, 32)’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘freerdp_bitmap_planar_context_free’
# 1768|   		WINPR_PRAGMA_DIAG_PUSH
# 1769|   		WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1770|-> 		freerdp_bitmap_planar_context_free(context);
# 1771|   		WINPR_PRAGMA_DIAG_POP
# 1772|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def234]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/planar.c: scope_hint: In function ‘freerdp_bitmap_planar_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/planar.c:1783:35: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_bitmap_planar_context_free’ of ‘context’
# 1781|   		return;
# 1782|   
# 1783|-> 	winpr_aligned_free(context->pTempData);
# 1784|   	winpr_aligned_free(context->planesBuffer);
# 1785|   	winpr_aligned_free(context->deltaPlanesBuffer);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c: scope_hint: In function ‘progressive_context_new_ex’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c:2614:12: warning[-Wanalyzer-malloc-leak]: leak of ‘progressive_context_new_ex(Compressor, 0)’
# 2612|   	    (PROGRESSIVE_CONTEXT*)winpr_aligned_calloc(1, sizeof(PROGRESSIVE_CONTEXT), 32);
# 2613|   
# 2614|-> 	if (!progressive)
# 2615|   		return NULL;
# 2616|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c:2641:35: warning[-Wanalyzer-malloc-leak]: leak of ‘progressive_context_new_ex(Compressor, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c:2640:17: note: in expansion of macro ‘WINPR_ASSERT’
# 2639|   		wObject* obj = HashTable_ValueObject(progressive->SurfaceContexts);
# 2640|   		WINPR_ASSERT(obj);
# 2641|-> 		obj->fnObjectFree = progressive_surface_context_free;
# 2642|   	}
# 2643|   	return progressive;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def237]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c:2647:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_aligned_calloc(1, 3680648, 32)’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘progressive_context_free’
# 2645|   	WINPR_PRAGMA_DIAG_PUSH
# 2646|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2647|-> 	progressive_context_free(progressive);
# 2648|   	WINPR_PRAGMA_DIAG_POP
# 2649|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c: scope_hint: In function ‘progressive_context_new_ex’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c:2657:9: warning[-Wanalyzer-malloc-leak]: leak of ‘progressive_context_new_ex(Compressor, 0)’
# 2655|   		return;
# 2656|   
# 2657|-> 	Stream_Free(progressive->buffer, TRUE);
# 2658|   	Stream_Free(progressive->rects, TRUE);
# 2659|   	rfx_context_free(progressive->rfx_context);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def239]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c: scope_hint: In function ‘progressive_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c:2657:9: warning[-Wanalyzer-use-after-free]: use after ‘progressive_context_free’ of ‘progressive’
# 2655|   		return;
# 2656|   
# 2657|-> 	Stream_Free(progressive->buffer, TRUE);
# 2658|   	Stream_Free(progressive->rects, TRUE);
# 2659|   	rfx_context_free(progressive->rfx_context);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def240]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c: scope_hint: In function ‘region16_copy_band_with_union’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:260:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:260:16: note: read of 2 bytes from after the end of ‘empty_region’
#  258|                                             const RECTANGLE_16** srcPtr, RECTANGLE_16** dstPtr)
#  259|   {
#  260|-> 	UINT16 refY = src->top;
#  261|   	const RECTANGLE_16* startOverlap = NULL;
#  262|   	const RECTANGLE_16* endOverlap = NULL;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def241]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:291:43: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:291:43: note: read of 2 bytes from after the end of ‘empty_region’
#  289|   	{
#  290|   		/* items before unionRect */
#  291|-> 		while ((src < end) && (src->top == refY) && (src->right < unionRect->left))
#  292|   		{
#  293|   			dst->top = newTop;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def242]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:291:65: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:291:65: note: read of 2 bytes from after the end of ‘empty_region’
#  289|   	{
#  290|   		/* items before unionRect */
#  291|-> 		while ((src < end) && (src->top == refY) && (src->right < unionRect->left))
#  292|   		{
#  293|   			dst->top = newTop;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def243]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:296:40: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:296:40: note: read of 2 bytes from after the end of ‘empty_region’
#  294|   			dst->bottom = newBottom;
#  295|   			dst->right = src->right;
#  296|-> 			dst->left = src->left;
#  297|   			src++;
#  298|   			dst++;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def244]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:306:40: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:306:40: note: read of 2 bytes from after the end of ‘empty_region’
#  304|   		endOverlap = unionRect;
#  305|   
#  306|-> 		if ((src < end) && (src->top == refY) && (src->left < unionRect->left))
#  307|   			startOverlap = src;
#  308|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def245]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:306:62: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:306:62: note: read of 2 bytes from after the end of ‘empty_region’
#  304|   		endOverlap = unionRect;
#  305|   
#  306|-> 		if ((src < end) && (src->top == refY) && (src->left < unionRect->left))
#  307|   			startOverlap = src;
#  308|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def246]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:309:43: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:309:43: note: read of 2 bytes from after the end of ‘empty_region’
#  307|   			startOverlap = src;
#  308|   
#  309|-> 		while ((src < end) && (src->top == refY) && (src->right < unionRect->right))
#  310|   		{
#  311|   			src++;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def247]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:309:65: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:309:65: note: read of 2 bytes from after the end of ‘empty_region’
#  307|   			startOverlap = src;
#  308|   
#  309|-> 		while ((src < end) && (src->top == refY) && (src->right < unionRect->right))
#  310|   		{
#  311|   			src++;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def248]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:329:35: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:329:35: note: read of 2 bytes from after the end of ‘empty_region’
#  327|   
#  328|   	/* treat remaining items on the same band */
#  329|-> 	while ((src < end) && (src->top == refY))
#  330|   	{
#  331|   		dst->top = newTop;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def249]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:333:33: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:333:33: note: read of 2 bytes from after the end of ‘empty_region’
#  331|   		dst->top = newTop;
#  332|   		dst->bottom = newBottom;
#  333|-> 		dst->right = src->right;
#  334|   		dst->left = src->left;
#  335|   		src++;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def250]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:334:32: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:334:32: note: read of 2 bytes from after the end of ‘empty_region’
#  332|   		dst->bottom = newBottom;
#  333|   		dst->right = src->right;
#  334|-> 		dst->left = src->left;
#  335|   		src++;
#  336|   		dst++;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def251]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c: scope_hint: In function ‘rectangle_contained_in_band’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:390:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:390:16: note: read of 2 bytes from after the end of ‘empty_region’
#  388|                                           const RECTANGLE_16* rect)
#  389|   {
#  390|-> 	UINT16 refY = band->top;
#  391|   
#  392|   	if ((band->top > rect->top) || (rect->bottom > band->bottom))

Error: GCC_ANALYZER_WARNING (CWE-126): [#def252]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:392:60: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:504:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:505:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:88:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:89:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:392:60: note: read of 2 bytes from after the end of ‘empty_region’
#  390|   	UINT16 refY = band->top;
#  391|   
#  392|-> 	if ((band->top > rect->top) || (rect->bottom > band->bottom))
#  393|   		return FALSE;
#  394|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def253]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:398:40: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:730:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:731:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:181:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:182:9: note: in expansion of macro ‘WINPR_ASSERT’
#  396|   	 * 		that is after rect->left we're sure that the result is False.
#  397|   	 */
#  398|-> 	while ((band < endPtr) && (band->top == refY) && (band->left <= rect->left))
#  399|   	{
#  400|   		if (rect->right <= band->right)

Error: COMPILER_WARNING: [#def254]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c: scope_hint: In function ‘region16_intersect_rect’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:801:17: warning[-Wuse-after-free]: pointer ‘newItems_66’ may be used after ‘realloc’
#  801 |                 free(newItems);
#      |                 ^~~~~~~~~~~~~~
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/region.c:797:21: note: call to ‘realloc’ here
#  797 |         dst->data = realloc(newItems, newItems->size);
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  799|   	if (!dst->data)
#  800|   	{
#  801|-> 		free(newItems);
#  802|   		return FALSE;
#  803|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c: scope_hint: In function ‘rfx_allocate_tiles’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:817:13: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_recalloc(*message.tiles,  count, 8, 32)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:2184:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1660:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1661:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1661:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1662:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1662:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1663:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1663:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1664:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1664:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1665:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1665:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1589:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1701:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1702:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1606:22: note: in definition of macro ‘TILE_NO’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1635:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings.h:32: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:35: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:32:22: note: in definition of macro ‘MAX’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:814:9: note: in expansion of macro ‘WINPR_ASSERT’
#  815|   
#  816|   	RFX_TILE** tmpTiles = winpr_aligned_recalloc(message->tiles, count, sizeof(RFX_TILE*), 32);
#  817|-> 	if (!tmpTiles && (count != 0))
#  818|   		return FALSE;
#  819|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c: scope_hint: In function ‘rfx_message_free.part.0’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1448:18: warning[-Wanalyzer-malloc-leak]: leak of ‘*message.tiles’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:814:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1446|   	const BOOL freeArray = message->freeArray;
# 1447|   	const RFX_MESSAGE empty = { 0 };
# 1448|-> 	*message = empty;
# 1449|   
# 1450|   	if (!freeArray)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c: scope_hint: In function ‘rfx_encode_message’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1676:36: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_calloc(1, 64, 32)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:2184:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1660:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1661:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1661:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1662:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1662:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1663:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1663:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1664:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1664:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1665:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1665:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
# 1674|   		rfx_update_context_properties(context);
# 1675|   
# 1676|-> 	message->frameIdx = context->frameIdx++;
# 1677|   
# 1678|   	if (!context->numQuant)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def258]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c: scope_hint: In function ‘rfx_encode_message’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1811:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘workParam’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:2184:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1660:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1661:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1661:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1662:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1662:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1663:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1663:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1664:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1664:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1665:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1665:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1589:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1701:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1702:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1606:22: note: in definition of macro ‘TILE_NO’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1635:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1610:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1613:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/rfx.c:1635:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1809|   				if (context->priv->UseThreads)
# 1810|   				{
# 1811|-> 					workParam->context = context;
# 1812|   					workParam->tile = tile;
# 1813|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def259]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c: scope_hint: In function ‘update_password’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:131:18: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_assistance_file_free’ of ‘file’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:130:9: note: in expansion of macro ‘WINPR_ASSERT’
#  129|   {
#  130|   	WINPR_ASSERT(file);
#  131|-> 	free(file->password);
#  132|   	file->password = NULL;
#  133|   	if (!password)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c: scope_hint: In function ‘append_address_to_list’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:263:12: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:141:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:130:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:739:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:607:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:608:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:608:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:609:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:609:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:610:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:610:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:525:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:531:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:630:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:525:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:531:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c: scope_hint: In function ‘append_address_to_list’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:630:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:525:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:531:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:630:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:525:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:531:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:494:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:418:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:429:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:494:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:418:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:429:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:203:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:716:9: note: in expansion of macro ‘WLog_DBG’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:630:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:525:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:531:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:494:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:418:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:429:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:418:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:429:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:418:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:429:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
#  261|   
#  262|   	const BOOL rc = ArrayList_Append(MachineAddresses, copy);
#  263|-> 	if (!rc)
#  264|   		free(copy);
#  265|   	// NOLINTNEXTLINE(clang-analyzer-unix.Malloc): ArrayList_Append takes ownership of copy

Error: GCC_ANALYZER_WARNING (CWE-688): [#def261]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c: scope_hint: In function ‘freerdp_assistance_parse_attr_uint32’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:507:9: warning[-Wanalyzer-null-argument]: use of NULL ‘copt’ where non-null expected
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:141:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:130:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:739:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:607:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:608:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:608:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:609:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:609:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:610:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:610:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:525:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:531:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:630:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:525:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:531:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c: scope_hint: In function ‘freerdp_assistance_parse_attr_uint32’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:630:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:525:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:531:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:630:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:631:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:632:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:525:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:526:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:527:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:531:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:494:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:418:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:419:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:420:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:429:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
<built-in>: note: argument 2 of ‘__builtin_strncpy’ must be non-null
#  505|   	}
#  506|   
#  507|-> 	strncpy(buffer, copt, size);
#  508|   	errno = 0;
#  509|   	unsigned long val = strtoul(buffer, NULL, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c: scope_hint: In function ‘freerdp_assistance_file_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:1412:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 1410|   	WINPR_PRAGMA_DIAG_PUSH
# 1411|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1412|-> 	freerdp_assistance_file_free(file);
# 1413|   	WINPR_PRAGMA_DIAG_POP
# 1414|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def263]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/assistance.c:1412:9: warning[-Wanalyzer-mismatching-deallocation]: ‘file’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_assistance_file_free’
# 1410|   	WINPR_PRAGMA_DIAG_PUSH
# 1411|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1412|-> 	freerdp_assistance_file_free(file);
# 1413|   	WINPR_PRAGMA_DIAG_POP
# 1414|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:31: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c: scope_hint: In function ‘freerdp_device_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:317:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_device_new(*device.Type,  count, & args)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:317:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
#  315|   
#  316|   	device.base = NULL;
#  317|-> 	WINPR_ASSERT(args || (count == 0));
#  318|   
#  319|   	switch (Type)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:416:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:317:9: note: in expansion of macro ‘WINPR_ASSERT’
#  414|   
#  415|   fail:
#  416|-> 	freerdp_device_free(device.base);
#  417|   	return NULL;
#  418|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def266]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:416:9: warning[-Wanalyzer-mismatching-deallocation]: ‘<unknown>’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_device_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:317:9: note: in expansion of macro ‘WINPR_ASSERT’
#  414|   
#  415|   fail:
#  416|-> 	freerdp_device_free(device.base);
#  417|   	return NULL;
#  418|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def267]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c: scope_hint: In function ‘freerdp_device_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:437:23: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_device_free’ of ‘device’
#  435|   	cnv.dev = device;
#  436|   
#  437|-> 	switch (device->Type)
#  438|   	{
#  439|   		case RDPDR_DTYP_PRINT:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def268]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:437:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*device.Type’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:317:9: note: in expansion of macro ‘WINPR_ASSERT’
#  435|   	cnv.dev = device;
#  436|   
#  437|-> 	switch (device->Type)
#  438|   	{
#  439|   		case RDPDR_DTYP_PRINT:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c: scope_hint: In function ‘freerdp_device_clone’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:492:19: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_device_clone(data)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:317:9: note: in expansion of macro ‘WINPR_ASSERT’
#  490|   		return NULL;
#  491|   
#  492|-> 	if (device->Name)
#  493|   	{
#  494|   		count = 1;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def270]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c: scope_hint: In function ‘freerdp_addin_argv_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:772:17: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_addin_argv_free’ of ‘args’
#  770|   		return;
#  771|   
#  772|-> 	if (args->argv)
#  773|   	{
#  774|   		for (int index = 0; index < args->argc; index++)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def271]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:772:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*args.argv’
#  770|   		return;
#  771|   
#  772|-> 	if (args->argv)
#  773|   	{
#  774|   		for (int index = 0; index < args->argc; index++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c: scope_hint: In function ‘freerdp_addin_argv_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:784:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_addin_argv_new((long unsigned int)*args.argc, *args.argv)’
#  782|   ADDIN_ARGV* freerdp_addin_argv_new(size_t argc, const char* argv[])
#  783|   {
#  784|-> 	if (argc > INT32_MAX)
#  785|   		return NULL;
#  786|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:790:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_addin_argv_new((long unsigned int)*args.argc, *args.argv)’
#  788|   	if (!args)
#  789|   		return NULL;
#  790|-> 	if (argc == 0)
#  791|   		return args;
#  792|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:793:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_addin_argv_new((long unsigned int)*args.argc, *args.argv)’
#  791|   		return args;
#  792|   
#  793|-> 	args->argc = (int)argc;
#  794|   	args->argv = calloc(argc, sizeof(char*));
#  795|   	if (!args->argv)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:812:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  810|   	WINPR_PRAGMA_DIAG_PUSH
#  811|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  812|-> 	freerdp_addin_argv_free(args);
#  813|   	WINPR_PRAGMA_DIAG_POP
#  814|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def276]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:812:9: warning[-Wanalyzer-mismatching-deallocation]: ‘args’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_addin_argv_free’
#  810|   	WINPR_PRAGMA_DIAG_PUSH
#  811|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  812|-> 	freerdp_addin_argv_free(args);
#  813|   	WINPR_PRAGMA_DIAG_POP
#  814|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c: scope_hint: In function ‘freerdp_settings_set_pointer_array’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:826:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_addin_argv_clone(data)’
#  824|   	if (!args)
#  825|   		return NULL;
#  826|-> 	cnv.c = args->argv;
#  827|   	return freerdp_addin_argv_new(args->argc, cnv.cc);
#  828|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c: scope_hint: In function ‘freerdp_server_license_issuers_copy’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:945:40: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(*<unknown>)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:938:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:939:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:924:9: note: in expansion of macro ‘WINPR_ASSERT’
#  943|   		return FALSE;
#  944|   
#  945|-> 	for (UINT32 x = 0; x < count; x++)
#  946|   	{
#  947|   		char* issuer = _strdup(issuers[x]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c: scope_hint: In function ‘freerdp_settings_set_pointer_len_’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:1314:12: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
# 1312|   	// freerdp_settings_set_pointer takes ownership of copy
# 1313|   	//  NOLINTNEXTLINE(clang-analyzer-unix.Malloc)
# 1314|-> 	if (lenId < 0)
# 1315|   		return TRUE;
# 1316|   	return freerdp_settings_set_uint32(settings, (FreeRDP_Settings_Keys_UInt32)lenId, len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:1316:16: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
# 1314|   	if (lenId < 0)
# 1315|   		return TRUE;
# 1316|-> 	return freerdp_settings_set_uint32(settings, (FreeRDP_Settings_Keys_UInt32)lenId, len);
# 1317|   }
# 1318|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c: scope_hint: In function ‘freerdp_settings_set_pointer_array’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings.c:1708:40: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(data)’
# 1706|   			free(settings->TargetNetAddresses[offset]);
# 1707|   			settings->TargetNetAddresses[offset] = _strdup((const char*)data);
# 1708|-> 			return settings->TargetNetAddresses[offset] != NULL;
# 1709|   		case FreeRDP_TargetNetPorts:
# 1710|   			maxOffset = freerdp_settings_get_uint32(settings, FreeRDP_TargetNetAddressCount);

Error: COMPILER_WARNING (CWE-563): [#def282]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings_getters.c: scope_hint: In function ‘freerdp_settings_set_int16’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings_getters.c:1597:11: warning[-Wunused-but-set-variable]: variable ‘cnv’ set but not used
# 1597 |         } cnv;
#      |           ^~~
# 1595|   		INT16 c;
# 1596|   		const INT16 cc;
# 1597|-> 	} cnv;
# 1598|   	WINPR_ASSERT(settings);
# 1599|   

Error: COMPILER_WARNING (CWE-563): [#def283]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings_getters.c: scope_hint: In function ‘freerdp_settings_set_int64’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/common/settings_getters.c:2656:11: warning[-Wunused-but-set-variable]: variable ‘cnv’ set but not used
# 2656 |         } cnv;
#      |           ^~~
# 2654|   		INT64 c;
# 2655|   		const INT64 cc;
# 2656|-> 	} cnv;
# 2657|   	WINPR_ASSERT(settings);
# 2658|   

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

Error: GCC_ANALYZER_WARNING (CWE-762): [#def285]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/aad.c: scope_hint: In function ‘aad_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/aad.c:762:9: warning[-Wanalyzer-mismatching-deallocation]: ‘aad’ should have been deallocated with ‘free’ but was deallocated with ‘aad_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/crypto/crypto.h:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/aad.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/aad.c:743:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/aad.c:744:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/aad.c:744:9: note: in expansion of macro ‘WINPR_ASSERT’
#  760|   	WINPR_PRAGMA_DIAG_PUSH
#  761|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  762|-> 	aad_free(aad);
#  763|   	WINPR_PRAGMA_DIAG_POP
#  764|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def286]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/aad.c: scope_hint: In function ‘aad_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/aad.c:772:17: warning[-Wanalyzer-use-after-free]: use after ‘aad_free’ of ‘aad’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/aad.c:743:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/aad.c:744:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/aad.c:744:9: note: in expansion of macro ‘WINPR_ASSERT’
#  770|   		return;
#  771|   
#  772|-> 	free(aad->hostname);
#  773|   	free(aad->scope);
#  774|   	free(aad->nonce);

Error: COMPILER_WARNING (CWE-1164): [#def287]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/autodetect.c:432:13: warning[-Wunused-function]: ‘autodetect_send_netchar_sync’ defined but not used
#  432 | static BOOL autodetect_send_netchar_sync(rdpAutoDetect* autodetect, RDP_TRANSPORT_TYPE transport,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  430|   }
#  431|   
#  432|-> static BOOL autodetect_send_netchar_sync(rdpAutoDetect* autodetect, RDP_TRANSPORT_TYPE transport,
#  433|                                            UINT16 sequenceNumber)
#  434|   {

Error: CPPCHECK_WARNING (CWE-758): [#def288]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/capabilities.c:1972: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1970|   	 */
# 1971|   	WINPR_ASSERT(cellInfo);
# 1972|-> 	info = (cellInfo->numEntries | (cellInfo->persistent << 31));
# 1973|   	Stream_Write_UINT32(s, info);
# 1974|   }

Error: COMPILER_WARNING (CWE-1164): [#def289]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/capabilities.c: scope_hint: At top level
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/capabilities.c:2393:13: warning[-Wunused-function]: ‘rdp_write_draw_gdiplus_cache_capability_set’ defined but not used
# 2393 | static BOOL rdp_write_draw_gdiplus_cache_capability_set(wStream* s, const rdpSettings* settings)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2391|    */
# 2392|   
# 2393|-> static BOOL rdp_write_draw_gdiplus_cache_capability_set(wStream* s, const rdpSettings* settings)
# 2394|   {
# 2395|   	WINPR_ASSERT(settings);

Error: COMPILER_WARNING (CWE-563): [#def290]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/capabilities.c: scope_hint: In function ‘rdp_recv_demand_active’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/capabilities.c:4529:16: warning[-Wunused-but-set-variable]: variable ‘SessionId’ set but not used
# 4529 |         UINT32 SessionId = 0;
#      |                ^~~~~~~~~
# 4527|   		return FALSE;
# 4528|   
# 4529|-> 	UINT32 SessionId = 0;
# 4530|   	Stream_Read_UINT32(s, SessionId); /* SessionId */
# 4531|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def291]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c: scope_hint: In function ‘transport_bio_named_read’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:228:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/tcp.h:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:20: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:136:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:137:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:137:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:228:25: note: read of 8 bytes from after the end of ‘chunks’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:228:25: note: valid subscripts for ‘chunks’ are ‘[0]’ to ‘[1]’
#  226|   		for (int i = 0; i < nchunks; i++)
#  227|   		{
#  228|-> 			memcpy(buf, chunks[i].data, chunks[i].size);
#  229|   			buf += chunks[i].size;
#  230|   		}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def292]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:228:46: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:136:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:137:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:137:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:228:46: note: read of 8 bytes from after the end of ‘chunks’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:228:46: note: valid subscripts for ‘chunks’ are ‘[0]’ to ‘[1]’
#  226|   		for (int i = 0; i < nchunks; i++)
#  227|   		{
#  228|-> 			memcpy(buf, chunks[i].data, chunks[i].size);
#  229|   			buf += chunks[i].size;
#  230|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c: scope_hint: In function ‘createChildSessionTransport’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:512:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateFileW(&pipePath, 3221225472, 0, 0, 3, 1073741824, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/childsession.c:445:9: note: in expansion of macro ‘WINPR_ASSERT’
#  510|   	HANDLE f = CreateFileW(pipePath, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING,
#  511|   	                       FILE_FLAG_OVERLAPPED, NULL);
#  512|-> 	if (f == INVALID_HANDLE_VALUE)
#  513|   	{
#  514|   		WLog_ERR(TAG, "error when connecting to local named pipe");

Error: GCC_ANALYZER_WARNING (CWE-416): [#def294]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/codecs.c: scope_hint: In function ‘codecs_free_int’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/codecs.c:36:27: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_client_codecs_free’ of ‘codecs’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/codecs.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/codecs.c:32:9: note: in expansion of macro ‘WINPR_ASSERT’
#   34|   	if (flags & FREERDP_CODEC_REMOTEFX)
#   35|   	{
#   36|-> 		if (codecs->rfx)
#   37|   		{
#   38|   			rfx_context_free(codecs->rfx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/codecs.c: scope_hint: In function ‘freerdp_client_codecs_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/codecs.c:260:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_client_codecs_new(freerdp_settings_get_uint32(*context.settings, 64))’
#  258|   	rdpCodecs* codecs = (rdpCodecs*)calloc(1, sizeof(rdpCodecs));
#  259|   
#  260|-> 	if (!codecs)
#  261|   		return NULL;
#  262|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/codecs.c:263:32: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_client_codecs_new(freerdp_settings_get_uint32(*context.settings, 64))’
#  261|   		return NULL;
#  262|   
#  263|-> 	codecs->ThreadingFlags = ThreadingFlags;
#  264|   
#  265|   	return codecs;

Error: CPPCHECK_WARNING (CWE-664): [#def297]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/freerdp.c:1307: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 1305|   void setChannelError(rdpContext* context, UINT errorNum, WINPR_FORMAT_ARG const char* format, ...)
# 1306|   {
# 1307|-> 	va_list ap = { 0 };
# 1308|   	va_start(ap, format);
# 1309|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/arm.c: scope_hint: In function ‘arm_treat_azureInstanceNetworkMetadata’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/arm.c:732:12: warning[-Wanalyzer-malloc-leak]: leak of ‘WINPR_JSON_Parse(metadata)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/arm.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:203:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/arm.c:898:9: note: in expansion of macro ‘WLog_DBG’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/arm.c:841:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/arm.c:842:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/arm.c:843:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/arm.c:843:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/arm.c:683:9: note: in expansion of macro ‘WINPR_ASSERT’
#  730|   	}
#  731|   
#  732|-> 	if (!freerdp_target_net_adresses_reset(settings, count))
#  733|   		return FALSE;
#  734|   

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1510:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1524:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1524:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1262:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1263:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1263:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:995:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c: scope_hint: In function ‘http_response_recv’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1282:29: note: in expansion of macro ‘sleep_or_timeout’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1282:29: note: in expansion of macro ‘sleep_or_timeout’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1230:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1282:29: note: in expansion of macro ‘sleep_or_timeout’
# 1508|   	return response;
# 1509|   out_error:
# 1510|-> 	http_response_free(response);
# 1511|   	return NULL;
# 1512|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def305]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c: scope_hint: In function ‘http_response_recv’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1510:9: warning[-Wanalyzer-mismatching-deallocation]: ‘http_response_new()’ should have been deallocated with ‘free’ but was deallocated with ‘http_response_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1524:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1524:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1262:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1263:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1263:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:995:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c: scope_hint: In function ‘http_response_recv’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
# 1508|   	return response;
# 1509|   out_error:
# 1510|-> 	http_response_free(response);
# 1511|   	return NULL;
# 1512|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c: scope_hint: In function ‘http_response_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1538:12: warning[-Wanalyzer-malloc-leak]: leak of ‘http_response_new()’
# 1536|   	HttpResponse* response = (HttpResponse*)calloc(1, sizeof(HttpResponse));
# 1537|   
# 1538|-> 	if (!response)
# 1539|   		return NULL;
# 1540|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1562:36: warning[-Wanalyzer-malloc-leak]: leak of ‘http_response_new()’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1524:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1524:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1560|   		goto fail;
# 1561|   
# 1562|-> 	response->TransferEncoding = TransferEncodingIdentity;
# 1563|   	return response;
# 1564|   fail:

Error: GCC_ANALYZER_WARNING (CWE-762): [#def308]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1567:9: warning[-Wanalyzer-mismatching-deallocation]: ‘response’ should have been deallocated with ‘free’ but was deallocated with ‘http_response_free’
# 1565|   	WINPR_PRAGMA_DIAG_PUSH
# 1566|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1567|-> 	http_response_free(response);
# 1568|   	WINPR_PRAGMA_DIAG_POP
# 1569|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def309]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c: scope_hint: In function ‘http_response_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/http.c:1577:22: warning[-Wanalyzer-use-after-free]: use after ‘http_response_free’ of ‘response’
# 1575|   		return;
# 1576|   
# 1577|-> 	free(response->lines);
# 1578|   	ListDictionary_Free(response->Authenticates);
# 1579|   	ListDictionary_Free(response->SetCookie);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def310]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rdg.c: scope_hint: In function ‘rdg_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rdg.c:2282:9: warning[-Wanalyzer-mismatching-deallocation]: ‘rdg’ should have been deallocated with ‘free’ but was deallocated with ‘rdg_free’
# 2280|   	WINPR_PRAGMA_DIAG_PUSH
# 2281|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2282|-> 	rdg_free(rdg);
# 2283|   	WINPR_PRAGMA_DIAG_POP
# 2284|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def311]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rdg.c: scope_hint: In function ‘rdg_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rdg.c:2292:9: warning[-Wanalyzer-use-after-free]: use after ‘rdg_free’ of ‘rdg’
# 2290|   		return;
# 2291|   
# 2292|-> 	freerdp_tls_free(rdg->tlsOut);
# 2293|   	freerdp_tls_free(rdg->tlsIn);
# 2294|   	http_context_free(rdg->http);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c: scope_hint: In function ‘rpc_out_channel_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:509:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_out_channel_new(rpc, &*connection.Cookie)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:680:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:570:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:571:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:571:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:621:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:622:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:622:9: note: in expansion of macro ‘WINPR_ASSERT’
#  507|   	UINT32 timeout = 0;
#  508|   
#  509|-> 	if (!client || !channel || !inout || !client->context || !client->context->settings)
#  510|   		return -1;
#  511|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def313]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c: scope_hint: In function ‘rpc_channel_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:603:9: warning[-Wanalyzer-use-after-free]: use after ‘rpc_channel_free’ of ‘channel’
#  601|   		return;
#  602|   
#  603|-> 	credssp_auth_free(channel->auth);
#  604|   	http_context_free(channel->http);
#  605|   	freerdp_tls_free(channel->tls);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c: scope_hint: In function ‘rpc_out_channel_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:647:16: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_out_channel_new(rpc, &*connection.Cookie)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:680:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:570:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:571:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:571:9: note: in expansion of macro ‘WINPR_ASSERT’
#  645|   	}
#  646|   
#  647|-> 	return outChannel;
#  648|   }
#  649|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c: scope_hint: In function ‘rpc_virtual_connection_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:675:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:680:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:570:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:571:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:571:9: note: in expansion of macro ‘WINPR_ASSERT’
#  673|   	if (connection->NonDefaultOutChannel)
#  674|   		rpc_channel_free(&connection->NonDefaultOutChannel->common);
#  675|-> 	free(connection);
#  676|   }
#  677|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:961:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:918:9: note: in expansion of macro ‘WINPR_ASSERT’
#  959|   	WINPR_PRAGMA_DIAG_PUSH
#  960|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  961|-> 	rpc_free(rpc);
#  962|   	WINPR_PRAGMA_DIAG_POP
#  963|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def317]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c: scope_hint: In function ‘rpc_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:961:9: warning[-Wanalyzer-mismatching-deallocation]: ‘rpc’ should have been deallocated with ‘free’ but was deallocated with ‘rpc_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:918:9: note: in expansion of macro ‘WINPR_ASSERT’
#  959|   	WINPR_PRAGMA_DIAG_PUSH
#  960|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  961|-> 	rpc_free(rpc);
#  962|   	WINPR_PRAGMA_DIAG_POP
#  963|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def318]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c: scope_hint: In function ‘rpc_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:970:17: warning[-Wanalyzer-use-after-free]: use after ‘rpc_free’ of ‘rpc’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc.c:918:9: note: in expansion of macro ‘WINPR_ASSERT’
#  968|   	if (rpc)
#  969|   	{
#  970|-> 		rpc_client_free(rpc->client);
#  971|   		credssp_auth_free(rpc->auth);
#  972|   		rpc_virtual_connection_free(rpc->VirtualConnection);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c: scope_hint: In function ‘rpc_send_bind_pdu’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c:274:34: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_client_call_new(bind_pdu.header.call_id, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c:188:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c:192:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:32: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c:236:9: note: in expansion of macro ‘CopyMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c:249:9: note: in expansion of macro ‘CopyMemory’
#  272|   		goto fail;
#  273|   
#  274|-> 	if (!ArrayList_Append(rpc->client->ClientCallList, clientCall))
#  275|   	{
#  276|   		rpc_client_call_free(clientCall);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c: scope_hint: In function ‘rpc_send_rpc_auth_3_pdu’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c:430:12: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_client_call_new(auth_3_pdu.header.call_id, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c:387:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c:390:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c:393:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:203:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_bind.c:395:9: note: in expansion of macro ‘WLog_DBG’
#  428|   	clientCall = rpc_client_call_new(auth_3_pdu.header.call_id, 0);
#  429|   
#  430|-> 	if (ArrayList_Append(rpc->client->ClientCallList, clientCall))
#  431|   	{
#  432|   		Stream_SealLength(buffer);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_client.c: scope_hint: In function ‘rpc_client_call_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_client.c:956:12: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_client_call_new(*rpc.CallId, (unsigned int)opnum)’
#  954|   	clientCall = (RpcClientCall*)calloc(1, sizeof(RpcClientCall));
#  955|   
#  956|-> 	if (!clientCall)
#  957|   		return NULL;
#  958|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_client.c:961:27: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_client_call_new(*rpc.CallId, (unsigned int)opnum)’
#  959|   	clientCall->CallId = CallId;
#  960|   	clientCall->OpNum = OpNum;
#  961|-> 	clientCall->State = RPC_CLIENT_CALL_STATE_SEND_PDUS;
#  962|   	return clientCall;
#  963|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_client.c: scope_hint: In function ‘rpc_client_write_call’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_client.c:1072:34: warning[-Wanalyzer-malloc-leak]: leak of ‘rpc_client_call_new(*rpc.CallId, (unsigned int)opnum)’
# 1070|   		goto fail;
# 1071|   
# 1072|-> 	if (!ArrayList_Append(rpc->client->ClientCallList, clientCall))
# 1073|   	{
# 1074|   		rpc_client_call_free(clientCall);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def324]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_client.c:1074:17: warning[-Wanalyzer-mismatching-deallocation]: ‘rpc_client_call_new(*rpc.CallId, (unsigned int)opnum)’ should have been deallocated with ‘free’ but was deallocated with ‘rpc_client_call_free’
# 1072|   	if (!ArrayList_Append(rpc->client->ClientCallList, clientCall))
# 1073|   	{
# 1074|-> 		rpc_client_call_free(clientCall);
# 1075|   		goto fail;
# 1076|   	}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def325]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_client.c: scope_hint: In function ‘rpc_client_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_client.c:1204:9: warning[-Wanalyzer-mismatching-deallocation]: ‘client’ should have been deallocated with ‘free’ but was deallocated with ‘rpc_client_free’
# 1202|   	WINPR_PRAGMA_DIAG_PUSH
# 1203|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1204|-> 	rpc_client_free(client);
# 1205|   	WINPR_PRAGMA_DIAG_POP
# 1206|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def326]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_client.c: scope_hint: In function ‘rpc_client_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/rpc_client.c:1214:20: warning[-Wanalyzer-use-after-free]: use after ‘rpc_client_free’ of ‘client’
# 1212|   		return;
# 1213|   
# 1214|-> 	free(client->host);
# 1215|   
# 1216|   	if (client->ReceiveFragment)

Error: COMPILER_WARNING (CWE-563): [#def327]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/tsg.c: scope_hint: In function ‘tsg_ndr_read_tsg_caps’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/tsg.c:505:16: warning[-Wunused-but-set-variable]: variable ‘count’ set but not used
#  505 |         UINT32 count = 0;
#      |                ^~~~~
#  503|   {
#  504|   	UINT32 capabilityType = 0;
#  505|-> 	UINT32 count = 0;
#  506|   	WINPR_ASSERT(caps);
#  507|   

Error: COMPILER_WARNING (CWE-563): [#def328]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/tsg.c:694:16: warning[-Wunused-but-set-variable]: variable ‘MaxOffsetValue’ set but not used
#  694 |         UINT32 MaxOffsetValue = 0;
#      |                ^~~~~~~~~~~~~~
#  692|   	UINT32 ResponseDataPtr = 0;
#  693|   	UINT32 MaxSizeValue = 0;
#  694|-> 	UINT32 MaxOffsetValue = 0;
#  695|   	UINT32 idleTimeout = 0;
#  696|   

Error: COMPILER_WARNING (CWE-563): [#def329]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/tsg.c: scope_hint: In function ‘tsg_ndr_read_packet_response’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/tsg.c:695:16: warning[-Wunused-but-set-variable]: variable ‘idleTimeout’ set but not used
#  695 |         UINT32 idleTimeout = 0;
#      |                ^~~~~~~~~~~
#  693|   	UINT32 MaxSizeValue = 0;
#  694|   	UINT32 MaxOffsetValue = 0;
#  695|-> 	UINT32 idleTimeout = 0;
#  696|   
#  697|   	WINPR_ASSERT(response);

Error: CPPCHECK_WARNING (CWE-664): [#def330]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/tsg.c:765: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  763|   {
#  764|   	int rc = 0;
#  765|-> 	va_list ap = { 0 };
#  766|   	if (!buffer || !len || !fmt)
#  767|   		return FALSE;

Error: COMPILER_WARNING (CWE-563): [#def331]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/tsg.c:1529:16: warning[-Wunused-but-set-variable]: variable ‘MsgId’ set but not used
# 1529 |         UINT32 MsgId = 0;
#      |                ^~~~~
# 1527|   	UINT32 PacketQuarResponsePtr = 0;
# 1528|   	UINT32 MessageSwitchValue = 0;
# 1529|-> 	UINT32 MsgId = 0;
# 1530|   	UINT32 MsgType = 0;
# 1531|   	UINT32 IsMessagePresent = 0;

Error: COMPILER_WARNING (CWE-563): [#def332]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/tsg.c:1530:16: warning[-Wunused-but-set-variable]: variable ‘MsgType’ set but not used
# 1530 |         UINT32 MsgType = 0;
#      |                ^~~~~~~
# 1528|   	UINT32 MessageSwitchValue = 0;
# 1529|   	UINT32 MsgId = 0;
# 1530|-> 	UINT32 MsgType = 0;
# 1531|   	UINT32 IsMessagePresent = 0;
# 1532|   

Error: COMPILER_WARNING (CWE-563): [#def333]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/tsg.c: scope_hint: In function ‘tsg_ndr_read_caps_response’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/tsg.c:1531:16: warning[-Wunused-but-set-variable]: variable ‘IsMessagePresent’ set but not used
# 1531 |         UINT32 IsMessagePresent = 0;
#      |                ^~~~~~~~~~~~~~~~
# 1529|   	UINT32 MsgId = 0;
# 1530|   	UINT32 MsgType = 0;
# 1531|-> 	UINT32 IsMessagePresent = 0;
# 1532|   
# 1533|   	WINPR_ASSERT(context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:837:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:719:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:720:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:720:9: note: in expansion of macro ‘WINPR_ASSERT’
#  835|   	WINPR_PRAGMA_DIAG_PUSH
#  836|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  837|-> 	wst_free(wst);
#  838|   	WINPR_PRAGMA_DIAG_POP
#  839|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def335]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c: scope_hint: In function ‘wst_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:837:9: warning[-Wanalyzer-mismatching-deallocation]: ‘wst’ should have been deallocated with ‘free’ but was deallocated with ‘wst_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:719:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:720:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:720:9: note: in expansion of macro ‘WINPR_ASSERT’
#  835|   	WINPR_PRAGMA_DIAG_PUSH
#  836|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  837|-> 	wst_free(wst);
#  838|   	WINPR_PRAGMA_DIAG_POP
#  839|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def336]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c: scope_hint: In function ‘wst_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:847:9: warning[-Wanalyzer-use-after-free]: use after ‘wst_free’ of ‘wst’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:719:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:720:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gateway/wst.c:720:9: note: in expansion of macro ‘WINPR_ASSERT’
#  845|   		return;
#  846|   
#  847|-> 	freerdp_tls_free(wst->tls);
#  848|   	http_context_free(wst->http);
#  849|   	credssp_auth_free(wst->auth);

Error: COMPILER_WARNING (CWE-563): [#def337]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gcc.c: scope_hint: In function ‘gcc_read_client_core_data’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gcc.c:1204:24: warning[-Wunused-but-set-variable]: variable ‘clientProductIdLen’ set but not used
# 1204 |                 UINT16 clientProductIdLen = 0;
#      |                        ^~~~~~~~~~~~~~~~~~
# 1202|   	do
# 1203|   	{
# 1204|-> 		UINT16 clientProductIdLen = 0;
# 1205|   		if (blockLength < 2)
# 1206|   			break;

Error: COMPILER_WARNING (CWE-563): [#def338]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gcc.c: scope_hint: In function ‘gcc_read_server_network_data’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/gcc.c:1912:16: warning[-Wunused-but-set-variable]: variable ‘MCSChannelId’ set but not used
# 1912 |         UINT16 MCSChannelId = 0;
#      |                ^~~~~~~~~~~~
# 1910|   {
# 1911|   	UINT16 channelId = 0;
# 1912|-> 	UINT16 MCSChannelId = 0;
# 1913|   	UINT16 channelCount = 0;
# 1914|   	UINT32 parsedChannelCount = 0;

Error: COMPILER_WARNING (CWE-9001): [#def339]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:68:1: warning[-Wcomment]: multi-line comment
#   68 | // #define LICENSE_PKT_CS_MASK \
#      | ^
#   66|   };
#   67|   
#   68|-> // #define LICENSE_PKT_CS_MASK \
#   69|   //	(LICENSE_INFO | NEW_LICENSE_REQUEST | PLATFORM_CHALLENGE_RESPONSE | ERROR_ALERT)
#   70|   //#define LICENSE_PKT_SC_MASK \

Error: COMPILER_WARNING (CWE-9001): [#def340]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:70:1: warning[-Wcomment]: multi-line comment
#   70 | //#define LICENSE_PKT_SC_MASK \
#      | ^
#   68|   // #define LICENSE_PKT_CS_MASK \
#   69|   //	(LICENSE_INFO | NEW_LICENSE_REQUEST | PLATFORM_CHALLENGE_RESPONSE | ERROR_ALERT)
#   70|-> //#define LICENSE_PKT_SC_MASK \
#   71|   //	(LICENSE_REQUEST | PLATFORM_CHALLENGE | NEW_LICENSE | UPGRADE_LICENSE | ERROR_ALERT)
#   72|   //#define LICENSE_PKT_MASK (LICENSE_PKT_CS_MASK | LICENSE_PKT_SC_MASK)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c: scope_hint: In function ‘license_answer_license_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:493:57: warning[-Wanalyzer-malloc-leak]: leak of ‘loadCalFile(*license_29(D)->rdp.settings, *_1->settings.ClientHostname, & license_size)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2387:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2388:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2389:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:604:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:605:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:605:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:606:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:606:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:477:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:478:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:478:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.h:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:614:15: note: in expansion of macro ‘sprintf_s’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/string.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:627:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:629:18: note: in expansion of macro ‘_ftelli64’
#  491|   
#  492|   	for (size_t i = 0; i < sizeof(hash); i++, hashStr += 2)
#  493|-> 		(void)sprintf_s(hashStr, 3, "%.2x", hash[i]);
#  494|   
#  495|   	ret = TRUE;

Error: COMPILER_WARNING (CWE-1164): [#def342]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:801:6: warning[-Wunused-function]: ‘license_read_server_upgrade_license’ defined but not used
#  801 | BOOL license_read_server_upgrade_license(rdpLicense* license, wStream* s)
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  799|   }
#  800|   
#  801|-> BOOL license_read_server_upgrade_license(rdpLicense* license, wStream* s)
#  802|   {
#  803|   	WINPR_ASSERT(license);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c: scope_hint: In function ‘license_read_binary_blob_data’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1476:28: warning[-Wanalyzer-malloc-leak]: leak of ‘*blob.data’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2619:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1499:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:445:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1504:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1504:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1504:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1505:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1505:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:445:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:995:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c: scope_hint: In function ‘license_read_binary_blob_data’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1448:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1449:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1449:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1450:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1474|   	blob->data = NULL;
# 1475|   	if (blob->length > 0)
# 1476|-> 		blob->data = malloc(blob->length);
# 1477|   	if (!blob->data)
# 1478|   	{

Error: COMPILER_WARNING (CWE-563): [#def344]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c: scope_hint: In function ‘license_read_platform_challenge_packet’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1961:16: warning[-Wunused-but-set-variable]: variable ‘ConnectFlags’ set but not used
# 1961 |         UINT32 ConnectFlags = 0;
#      |                ^~~~~~~~~~~~
# 1959|   {
# 1960|   	BYTE macData[LICENSING_ENCRYPTION_KEY_LENGTH] = { 0 };
# 1961|-> 	UINT32 ConnectFlags = 0;
# 1962|   
# 1963|   	WINPR_ASSERT(license);

Error: COMPILER_WARNING (CWE-1164): [#def345]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c: scope_hint: At top level
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2561:6: warning[-Wunused-function]: ‘license_read_platform_challenge_response’ defined but not used
# 2561 | BOOL license_read_platform_challenge_response(rdpLicense* license, wStream* s)
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2559|   }
# 2560|   
# 2561|-> BOOL license_read_platform_challenge_response(rdpLicense* license, wStream* s)
# 2562|   {
# 2563|   	UINT16 wVersion = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2714:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2662:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c: scope_hint: In function ‘license_new’
# 2712|   	WINPR_PRAGMA_DIAG_PUSH
# 2713|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2714|-> 	license_free(license);
# 2715|   	WINPR_PRAGMA_DIAG_POP
# 2716|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def347]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c: scope_hint: In function ‘license_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2714:9: warning[-Wanalyzer-mismatching-deallocation]: ‘license’ should have been deallocated with ‘free’ but was deallocated with ‘license_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2662:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2712|   	WINPR_PRAGMA_DIAG_PUSH
# 2713|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2714|-> 	license_free(license);
# 2715|   	WINPR_PRAGMA_DIAG_POP
# 2716|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def348]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c: scope_hint: In function ‘license_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2728:17: warning[-Wanalyzer-use-after-free]: use after ‘license_free’ of ‘license’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2662:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2726|   	if (license)
# 2727|   	{
# 2728|-> 		freerdp_certificate_free(license->certificate);
# 2729|   		license_free_product_info(license->ProductInfo);
# 2730|   		license_free_binary_blob(license->ErrorInfo);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/listener.c: scope_hint: In function ‘freerdp_listener_open’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/listener.c:221:47: warning[-Wanalyzer-malloc-leak]: leak of ‘WSACreateEvent()’
#  219|   		listener->events[listener->num_sockfds] = WSACreateEvent();
#  220|   
#  221|-> 		if (!listener->events[listener->num_sockfds])
#  222|   		{
#  223|   			listener->num_sockfds = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/listener.c: scope_hint: In function ‘freerdp_listener_open_local’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/listener.c:300:30: warning[-Wanalyzer-malloc-leak]: leak of ‘((rdpListener)*(void *)*instance.listener).events[<unknown>]’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/log.h:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/listener.c:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/listener.c:289:18: note: in expansion of macro ‘CreateFileDescriptorEvent’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/listener.c:289:18: note: in expansion of macro ‘CreateFileDescriptorEvent’
#  298|   	listener->sockfds[listener->num_sockfds] = sockfd;
#  299|   	listener->events[listener->num_sockfds] = hevent;
#  300|-> 	listener->num_sockfds++;
#  301|   	WLog_INFO(TAG, "Listening on socket %s.", addr.sun_path);
#  302|   	return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/listener.c: scope_hint: In function ‘freerdp_listener_open_from_socket’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/listener.c:325:39: warning[-Wanalyzer-malloc-leak]: leak of ‘WSACreateEvent()’
#  323|   	listener->events[listener->num_sockfds] = WSACreateEvent();
#  324|   
#  325|-> 	if (!listener->events[listener->num_sockfds])
#  326|   		return FALSE;
#  327|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_BitmapUpdate’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:132:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_bitmap_update(context,  bitmap)’
#  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): [#def353]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_Palette’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:150:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_palette_update(context,  palette)’
#  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): [#def354]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_SurfaceBits’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:280:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_surface_bits_command(context,  surfaceBitsCommand)’
#  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): [#def355]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_CacheBitmap’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:831:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_cache_bitmap_order(context,  cacheBitmapOrder)’
#  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): [#def356]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_CacheBitmapV2’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:850:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_cache_bitmap_v2_order(context,  cacheBitmapV2Order)’
#  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): [#def357]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_CacheBitmapV3’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:869:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_cache_bitmap_v3_order(context,  cacheBitmapV3Order)’
#  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): [#def358]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_CacheColorTable’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:888:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_cache_color_table_order(context,  cacheColorTableOrder)’
#  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): [#def359]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_CacheBrush’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:943:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_cache_brush_order(context,  cacheBrushOrder)’
#  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): [#def360]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_PointerPosition’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1585:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_position_update(context,  pointerPosition)’
# 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): [#def361]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_PointerSystem’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1604:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_system_update(context,  pointerSystem)’
# 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): [#def362]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_PointerColor’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1623:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_color_update(context,  pointerColor)’
# 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): [#def363]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_PointerLarge’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1641:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_large_update(context,  pointer)’
# 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): [#def364]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_PointerNew’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1659:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_new_update(context,  pointerNew)’
# 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): [#def365]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_PointerCached’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1678:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy_pointer_cached_update(context,  pointerCached)’
# 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): [#def366]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c: scope_hint: In function ‘nla_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2107:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2068:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2069:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2069:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2072:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2105|   	WINPR_PRAGMA_DIAG_PUSH
# 2106|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2107|-> 	nla_free(nla);
# 2108|   	WINPR_PRAGMA_DIAG_POP
# 2109|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def367]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2107:9: warning[-Wanalyzer-mismatching-deallocation]: ‘nla’ should have been deallocated with ‘free’ but was deallocated with ‘nla_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2068:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2069:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2069:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2072:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2105|   	WINPR_PRAGMA_DIAG_PUSH
# 2106|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2107|-> 	nla_free(nla);
# 2108|   	WINPR_PRAGMA_DIAG_POP
# 2109|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def368]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c: scope_hint: In function ‘nla_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2122:9: warning[-Wanalyzer-use-after-free]: use after ‘nla_free’ of ‘nla’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2068:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2069:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2069:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.c:2072:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2120|   		return;
# 2121|   
# 2122|-> 	smartcardCertInfo_Free(nla->smartcardCert);
# 2123|   	nla_buffer_free(nla);
# 2124|   	sspi_SecBufferFree(&nla->tsCredentials);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def369]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_read_cache_bitmap_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2246:9: warning[-Wanalyzer-mismatching-deallocation]: ‘cache_bitmap’ should have been deallocated with ‘free’ but was deallocated with ‘free_cache_bitmap_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.h:131:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_read_cache_bitmap_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4296:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4299:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4299:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4299:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.h:131:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_read_cache_bitmap_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3941:9: note: in expansion of macro ‘Stream_Read_INT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘update_read_cache_bitmap_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3941:9: note: in expansion of macro ‘Stream_Read_INT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_read_cache_bitmap_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3942:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3942:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3943:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3943:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3968:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.h:131:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_read_cache_bitmap_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2197:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
# 2244|   	WINPR_PRAGMA_DIAG_PUSH
# 2245|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2246|-> 	free_cache_bitmap_order(update->context, cache_bitmap);
# 2247|   	WINPR_PRAGMA_DIAG_POP
# 2248|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def370]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_read_cache_color_table_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2620:9: warning[-Wanalyzer-mismatching-deallocation]: ‘cache_color_table’ should have been deallocated with ‘free’ but was deallocated with ‘free_cache_color_table_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.h:131:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_read_cache_color_table_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4296:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4299:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4299:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4299:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.h:131:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_read_cache_color_table_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3941:9: note: in expansion of macro ‘Stream_Read_INT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘update_read_cache_color_table_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3941:9: note: in expansion of macro ‘Stream_Read_INT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_read_cache_color_table_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3942:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3942:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3943:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3943:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
# 2618|   	WINPR_PRAGMA_DIAG_PUSH
# 2619|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2620|-> 	free_cache_color_table_order(update->context, cache_color_table);
# 2621|   	WINPR_PRAGMA_DIAG_POP
# 2622|   	return NULL;

Error: COMPILER_WARNING (CWE-563): [#def371]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c: scope_hint: In function ‘rdp_read_header’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c:529:14: warning[-Wunused-but-set-variable]: variable ‘byte’ set but not used
#  529 |         BYTE byte = 0;
#      |              ^~~~
#  527|   {
#  528|   	BYTE li = 0;
#  529|-> 	BYTE byte = 0;
#  530|   	BYTE code = 0;
#  531|   	BYTE choice = 0;

Error: COMPILER_WARNING (CWE-563): [#def372]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c: scope_hint: In function ‘rdp_recv_server_set_keyboard_indicators_pdu’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c:968:16: warning[-Wunused-but-set-variable]: variable ‘unitId’ set but not used
#  968 |         UINT16 unitId = 0;
#      |                ^~~~~~
#  966|   static BOOL rdp_recv_server_set_keyboard_indicators_pdu(rdpRdp* rdp, wStream* s)
#  967|   {
#  968|-> 	UINT16 unitId = 0;
#  969|   	UINT16 ledFlags = 0;
#  970|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def373]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c: scope_hint: In function ‘rdp_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c:2386:9: warning[-Wanalyzer-mismatching-deallocation]: ‘rdp’ should have been deallocated with ‘free’ but was deallocated with ‘rdp_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c:2259:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c:2266:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2384|   	WINPR_PRAGMA_DIAG_PUSH
# 2385|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2386|-> 	rdp_free(rdp);
# 2387|   	WINPR_PRAGMA_DIAG_POP
# 2388|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def374]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c: scope_hint: In function ‘rdp_free_rc4_decrypt_keys’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c:2653:9: warning[-Wanalyzer-use-after-free]: use after ‘rdp_free’ of ‘rdp’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c:2259:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c:2266:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c:2393:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.c:2652:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2651|   {
# 2652|   	WINPR_ASSERT(rdp);
# 2653|-> 	winpr_RC4_Free(rdp->rc4_decrypt_key);
# 2654|   	rdp->rc4_decrypt_key = NULL;
# 2655|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def375]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c: scope_hint: In function ‘wts_read_drdynvc_pdu’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:331:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dvc’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:275:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:276:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:284:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:284:9: note: in expansion of macro ‘Stream_Read_UINT8’
#  329|   
#  330|   			case DATA_FIRST_PDU:
#  331|-> 				if (dvc->dvc_open_state != DVC_OPEN_STATE_SUCCEEDED)
#  332|   				{
#  333|   					WLog_ERR(TAG,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def376]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:343:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dvc’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:275:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:276:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:284:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:284:9: note: in expansion of macro ‘Stream_Read_UINT8’
#  341|   
#  342|   			case DATA_PDU:
#  343|-> 				if (dvc->dvc_open_state != DVC_OPEN_STATE_SUCCEEDED)
#  344|   				{
#  345|   					WLog_ERR(TAG,

Error: GCC_ANALYZER_WARNING (CWE-762): [#def377]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:943:9: warning[-Wanalyzer-mismatching-deallocation]: ‘channel_new(HashTable_GetItemValue(g_ServerHandles, (const void *)(long unsigned int)SessionId), client, 0, 0, 1, (long unsigned int)freerdp_settings_get_uint32(*client_41->context.settings, 2881), pVirtualName)’ should have been deallocated with ‘free’ but was deallocated with ‘server_channel_common_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c: scope_hint: In function ‘FreeRDP_WTSVirtualChannelOpenEx’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:1386:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:1240:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:1241:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:1241:9: note: in expansion of macro ‘WINPR_ASSERT’
#  941|   static void channel_free(rdpPeerChannel* channel)
#  942|   {
#  943|-> 	server_channel_common_free(channel);
#  944|   }
#  945|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def378]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:1920:9: warning[-Wanalyzer-use-after-free]: use after ‘server_channel_common_free’ of ‘channel’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c: scope_hint: In function ‘server_channel_common_free’
# 1918|   	if (!channel)
# 1919|   		return;
# 1920|-> 	MessageQueue_Free(channel->queue);
# 1921|   	Stream_Free(channel->receiveData, TRUE);
# 1922|   	DeleteCriticalSection(&channel->writeLock);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def379]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c: scope_hint: In function ‘server_channel_common_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:1920:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*channel.queue’
# 1918|   	if (!channel)
# 1919|   		return;
# 1920|-> 	MessageQueue_Free(channel->queue);
# 1921|   	Stream_Free(channel->receiveData, TRUE);
# 1922|   	DeleteCriticalSection(&channel->writeLock);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c: scope_hint: In function ‘server_channel_common_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:1931:12: warning[-Wanalyzer-malloc-leak]: leak of ‘server_channel_common_new(client, (int)index,  ChannelId,  chunkSize, & queueCallbacks,  name)’
# 1929|   {
# 1930|   	rdpPeerChannel* channel = (rdpPeerChannel*)calloc(1, sizeof(rdpPeerChannel));
# 1931|-> 	if (!channel)
# 1932|   		return NULL;
# 1933|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:1934:35: warning[-Wanalyzer-malloc-leak]: leak of ‘server_channel_common_new(client, (int)index,  ChannelId,  chunkSize, & queueCallbacks,  name)’
# 1932|   		return NULL;
# 1933|   
# 1934|-> 	InitializeCriticalSection(&channel->writeLock);
# 1935|   
# 1936|   	channel->receiveData = Stream_New(NULL, chunkSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:1947:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 1945|   	channel->client = client;
# 1946|   	channel->channelId = channelId;
# 1947|-> 	strncpy(channel->channelName, name, ARRAYSIZE(channel->channelName) - 1);
# 1948|   	return channel;
# 1949|   fail:

Error: GCC_ANALYZER_WARNING (CWE-762): [#def383]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/server.c:1952:9: warning[-Wanalyzer-mismatching-deallocation]: ‘channel’ should have been deallocated with ‘free’ but was deallocated with ‘server_channel_common_free’
# 1950|   	WINPR_PRAGMA_DIAG_PUSH
# 1951|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1952|-> 	server_channel_common_free(channel);
# 1953|   	WINPR_PRAGMA_DIAG_POP
# 1954|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def384]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c: scope_hint: In function ‘find_path_exists_with_dijkstra’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c:405:23: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_array(count)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c:427:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c:427:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c:430:9: note: in expansion of macro ‘WINPR_ASSERT’
#  403|   {
#  404|   	// NOLINTNEXTLINE(clang-analyzer-unix.MallocSizeof)
#  405|-> 	BYTE* array = calloc(count * sizeof(uintptr_t), count * sizeof(UINT32));
#  406|   	UINT32** dst = (UINT32**)array;
#  407|   	UINT32* val = (UINT32*)(array + count * sizeof(uintptr_t));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def385]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c: scope_hint: In function ‘alloc_array’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c:409:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘array’
#  407|   	UINT32* val = (UINT32*)(array + count * sizeof(uintptr_t));
#  408|   	for (size_t x = 0; x < count; x++)
#  409|-> 		dst[x] = &val[x];
#  410|   
#  411|   	return dst;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c: scope_hint: In function ‘freerdp_settings_get_config_path.part.0’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c:738:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_settings_get_config_path.part.0()’
#  736|   	if (base)
#  737|   		path = GetCombinedPath(base, FREERDP_PRODUCT_STRING);
#  738|-> 	free(base);
#  739|   
#  740|   	return path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c: scope_hint: In function ‘freerdp_settings_int_buffer_copy’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c:1265:20: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_clone(*settings.RdpServerCertificate)’
# 1263|   		if (!cert)
# 1264|   			goto out_fail;
# 1265|-> 		if (!freerdp_settings_set_pointer_len(_settings, FreeRDP_RdpServerCertificate, cert, 1))
# 1266|   			goto out_fail;
# 1267|   	}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def388]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c: scope_hint: In function ‘freerdp_settings_clone’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.c:1531:9: warning[-Wanalyzer-mismatching-deallocation]: ‘_settings’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_settings_free’
# 1529|   	WINPR_PRAGMA_DIAG_PUSH
# 1530|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1531|-> 	freerdp_settings_free(_settings);
# 1532|   	WINPR_PRAGMA_DIAG_POP
# 1533|   	return NULL;

Error: COMPILER_WARNING (CWE-1164): [#def389]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/tcp.c:106:13: warning[-Wunused-function]: ‘transport_bio_simple_callback’ defined but not used
#  106 | static long transport_bio_simple_callback(BIO* bio, int mode, const char* argp, int argi, long argl,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  104|   static int transport_bio_simple_uninit(BIO* bio);
#  105|   
#  106|-> static long transport_bio_simple_callback(BIO* bio, int mode, const char* argp, int argi, long argl,
#  107|                                             long ret)
#  108|   {

Error: COMPILER_WARNING (CWE-1164): [#def390]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/tcp.c:464:13: warning[-Wunused-function]: ‘transport_bio_buffered_callback’ defined but not used
#  464 | static long transport_bio_buffered_callback(BIO* bio, int mode, const char* argp, int argi,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  462|   } WINPR_BIO_BUFFERED_SOCKET;
#  463|   
#  464|-> static long transport_bio_buffered_callback(BIO* bio, int mode, const char* argp, int argi,
#  465|                                               long argl, long ret)
#  466|   {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def391]
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c: scope_hint: In function ‘transport_disconnect’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c:1584:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*transport.io.TransportDisconnect’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:103:11: note: in definition of macro ‘IFCALLRESULT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c:1633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:103:11: note: in definition of macro ‘IFCALLRESULT’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:103:11: note: in definition of macro ‘IFCALLRESULT’
# 1582|   	if (!transport)
# 1583|   		return FALSE;
# 1584|-> 	return IFCALLRESULT(FALSE, transport->io.TransportDisconnect, transport);
# 1585|   }
# 1586|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c:1698:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c:1633:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c:1668:37: note: in expansion of macro ‘CreateEvent’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c:1668:37: note: in expansion of macro ‘CreateEvent’
# 1696|   	WINPR_PRAGMA_DIAG_PUSH
# 1697|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1698|-> 	transport_free(transport);
# 1699|   	WINPR_PRAGMA_DIAG_POP
# 1700|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def393]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c: scope_hint: In function ‘transport_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c:1698:9: warning[-Wanalyzer-mismatching-deallocation]: ‘transport’ should have been deallocated with ‘free’ but was deallocated with ‘transport_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c:1633:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1696|   	WINPR_PRAGMA_DIAG_PUSH
# 1697|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1698|-> 	transport_free(transport);
# 1699|   	WINPR_PRAGMA_DIAG_POP
# 1700|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def394]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c: scope_hint: In function ‘transport_layer_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/transport.c:1915:21: warning[-Wanalyzer-use-after-free]: use after ‘transport_layer_free’ of ‘layer’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:79:21: note: in definition of macro ‘IFCALL’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:79:21: note: in definition of macro ‘IFCALL’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:79:21: note: in definition of macro ‘IFCALL’
# 1913|   		return;
# 1914|   
# 1915|-> 	IFCALL(layer->Close, layer->userContext);
# 1916|   	free(layer->userContext);
# 1917|   	free(layer);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def395]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.c: scope_hint: In function ‘update_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.c:3269:54: warning[-Wanalyzer-use-after-free]: use after ‘update_free’ of ‘update’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.c:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.c:3197:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.c:3198:9: note: in expansion of macro ‘WINPR_ASSERT’
# 3267|   	{
# 3268|   		rdp_update_internal* up = update_cast(update);
# 3269|-> 		rdp_altsec_update_internal* altsec = altsec_update_cast(update->altsec);
# 3270|   		OFFSCREEN_DELETE_LIST* deleteList = &(altsec->create_offscreen_bitmap.deleteList);
# 3271|   

Error: GCC_ANALYZER_WARNING (CWE-131): [#def396]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c: scope_hint: In function ‘ber_read_unicode_octet_string’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:460:15: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:127:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/crypto/ber.h:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:129:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:132:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:132:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:132:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:36:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:37:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:37:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:39:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:42:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:42:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:42:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/ber.c:457:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
#  458|   		return FALSE;
#  459|   
#  460|-> 	ret = calloc(1, length + 2);
#  461|   	if (!ret)
#  462|   		return FALSE;

Error: COMPILER_WARNING (CWE-1164): [#def397]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1002:13: warning[-Wunused-function]: ‘certificate_write_server_x509_certificate_chain’ defined but not used
# 1002 | static BOOL certificate_write_server_x509_certificate_chain(const rdpCertificate* certificate,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1000|   }
# 1001|   
# 1002|-> static BOOL certificate_write_server_x509_certificate_chain(const rdpCertificate* certificate,
# 1003|                                                               wStream* s)
# 1004|   {

Error: GCC_ANALYZER_WARNING (CWE-762): [#def398]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘freerdp_certificate_clone’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1163:9: warning[-Wanalyzer-mismatching-deallocation]: ‘freerdp_certificate_new()’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_certificate_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:31: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1132:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1133:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1133:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1161|   out_fail:
# 1162|   
# 1163|-> 	freerdp_certificate_free(_certificate);
# 1164|   	return NULL;
# 1165|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘freerdp_certificate_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1174:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new()’
# 1172|   rdpCertificate* freerdp_certificate_new(void)
# 1173|   {
# 1174|-> 	return (rdpCertificate*)calloc(1, sizeof(rdpCertificate));
# 1175|   }
# 1176|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def400]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘certificate_free_int’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1181:17: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_certificate_free’ of ‘cert’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1179:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1179|   	WINPR_ASSERT(cert);
# 1180|   
# 1181|-> 	if (cert->x509)
# 1182|   		X509_free(cert->x509);
# 1183|   	if (cert->chain)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def401]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘freerdp_certificate_new_from_der’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1272:9: warning[-Wanalyzer-mismatching-deallocation]: ‘freerdp_certificate_new()’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_certificate_free’
# 1270|   	return cert;
# 1271|   fail:
# 1272|-> 	freerdp_certificate_free(cert);
# 1273|   	return NULL;
# 1274|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘freerdp_certificate_new_from_x509’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1281:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(x509_utils_from_pem(file,  strlen(file), isFile), 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1278:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1279|   
# 1280|   	rdpCertificate* cert = freerdp_certificate_new();
# 1281|-> 	if (!cert)
# 1282|   		return NULL;
# 1283|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def403]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1297:9: warning[-Wanalyzer-mismatching-deallocation]: ‘freerdp_certificate_new()’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_certificate_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1278:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1295|   	return cert;
# 1296|   fail:
# 1297|-> 	freerdp_certificate_free(cert);
# 1298|   	return NULL;
# 1299|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘freerdp_certificate_get_fingerprint_by_hash’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1347:27: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash(cert, "sha256")’
# 1345|   	BYTE* fp = NULL;
# 1346|   	char* fp_buffer = NULL;
# 1347|-> 	if (!cert || !cert->x509)
# 1348|   	{
# 1349|   		WLog_ERR(TAG, "Invalid certificate [%p, %p]", cert, cert ? cert->x509 : NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘freerdp_certificate_get_fingerprint_by_hash_ex’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1347:27: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  hash, 1)’
# 1345|   	BYTE* fp = NULL;
# 1346|   	char* fp_buffer = NULL;
# 1347|-> 	if (!cert || !cert->x509)
# 1348|   	{
# 1349|   		WLog_ERR(TAG, "Invalid certificate [%p, %p]", cert, cert ? cert->x509 : NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘bio_read_pem’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1437:16: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1400:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1401:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1401:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1419:25: note: in expansion of macro ‘WLog_ERR’
# 1435|   	rc = TRUE;
# 1436|   fail:
# 1437|-> 	return rc;
# 1438|   }
# 1439|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘freerdp_certificate_get_pem_ex’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1451:18: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_pem_ex(cert,  pLength, 1)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1449:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1449|   	WINPR_ASSERT(cert);
# 1450|   
# 1451|-> 	if (!cert->x509)
# 1452|   		return NULL;
# 1453|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘freerdp_certificate_new_from_x509’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1710:31: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_x509(x509_utils_from_pem(file,  strlen(file), isFile), 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1278:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1208:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1709:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1708|   {
# 1709|   	WINPR_ASSERT(cert);
# 1710|-> 	return is_rsa_key(cert->x509);
# 1711|   }
# 1712|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def409]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_data.c: scope_hint: In function ‘freerdp_certificate_data_new_nocopy’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_data.c:134:9: warning[-Wanalyzer-mismatching-deallocation]: ‘certdata’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_certificate_data_free’
#  132|   	return certdata;
#  133|   fail:
#  134|-> 	freerdp_certificate_data_free(certdata);
#  135|   	return NULL;
#  136|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def410]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_data.c: scope_hint: In function ‘freerdp_certificate_data_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_data.c:179:18: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_certificate_data_free’ of ‘data’
#  177|   		return;
#  178|   
#  179|-> 	free(data->hostname);
#  180|   	freerdp_certificate_free(data->cert);
#  181|   	free(data->cached_subject);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_store.c: scope_hint: In function ‘freerdp_certificate_store_load_data’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_store.c:136:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_store_load_data(store,  freerdp_certificate_data_get_host(data), (int)freerdp_certificate_data_get_port(data))’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_store.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_store.c:134:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_store.c:198:9: note: in expansion of macro ‘WINPR_ASSERT’
#  134|   	WINPR_ASSERT(store);
#  135|   
#  136|-> 	path = freerdp_certificate_store_get_cert_path(store, host, port);
#  137|   	if (!path)
#  138|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_store.c:168:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  166|   	WINPR_PRAGMA_DIAG_PUSH
#  167|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  168|-> 	freerdp_certificate_store_free(store);
#  169|   	WINPR_PRAGMA_DIAG_POP
#  170|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def413]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_store.c: scope_hint: In function ‘freerdp_certificate_store_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_store.c:168:9: warning[-Wanalyzer-mismatching-deallocation]: ‘store’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_certificate_store_free’
#  166|   	WINPR_PRAGMA_DIAG_PUSH
#  167|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  168|-> 	freerdp_certificate_store_free(store);
#  169|   	WINPR_PRAGMA_DIAG_POP
#  170|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def414]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_store.c: scope_hint: In function ‘freerdp_certificate_store_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate_store.c:178:19: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_certificate_store_free’ of ‘store’
#  176|   		return;
#  177|   
#  178|-> 	free(store->certs_path);
#  179|   	free(store->server_path);
#  180|   	free(store);

Error: COMPILER_WARNING (CWE-1164): [#def415]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/per.c:476:13: warning[-Wunused-function]: ‘per_write_string’ defined but not used
#  476 | static void per_write_string(wStream* s, BYTE* str, int length)
#      |             ^~~~~~~~~~~~~~~~
#  474|    */
#  475|   
#  476|-> static void per_write_string(wStream* s, BYTE* str, int length)
#  477|   {
#  478|   	for (int i = 0; i < length; i++)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def416]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/privatekey.c: scope_hint: In function ‘freerdp_key_new_from_pem’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/privatekey.c:240:9: warning[-Wanalyzer-mismatching-deallocation]: ‘freerdp_key_new()’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_key_free’
#  238|   	return key;
#  239|   fail:
#  240|-> 	freerdp_key_free(key);
#  241|   	return NULL;
#  242|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def417]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/privatekey.c: scope_hint: In function ‘freerdp_key_new_from_file’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/privatekey.c:258:9: warning[-Wanalyzer-mismatching-deallocation]: ‘freerdp_key_new()’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_key_free’
#  256|   	return key;
#  257|   fail:
#  258|-> 	freerdp_key_free(key);
#  259|   	return NULL;
#  260|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/privatekey.c: scope_hint: In function ‘freerdp_key_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/privatekey.c:264:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new()’
#  262|   rdpPrivateKey* freerdp_key_new(void)
#  263|   {
#  264|-> 	return calloc(1, sizeof(rdpPrivateKey));
#  265|   }
#  266|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def419]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/privatekey.c: scope_hint: In function ‘freerdp_key_clone’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/privatekey.c:303:9: warning[-Wanalyzer-mismatching-deallocation]: ‘_key’ should have been deallocated with ‘free’ but was deallocated with ‘freerdp_key_free’
#  301|   	WINPR_PRAGMA_DIAG_PUSH
#  302|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  303|-> 	freerdp_key_free(_key);
#  304|   	WINPR_PRAGMA_DIAG_POP
#  305|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def420]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/privatekey.c: scope_hint: In function ‘freerdp_key_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/privatekey.c:313:9: warning[-Wanalyzer-use-after-free]: use after ‘freerdp_key_free’ of ‘key’
#  311|   		return;
#  312|   
#  313|-> 	EVP_PKEY_free(key->evp);
#  314|   	if (key->PrivateExponent)
#  315|   		memset(key->PrivateExponent, 0, key->PrivateExponentLength);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def421]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c: scope_hint: In function ‘scard_copy_strings’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:182:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tmp’ where non-null expected
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/freerdp.h:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:176:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:177:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:177:9: note: in expansion of macro ‘WINPR_ASSERT’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  180|   	{
#  181|   		void* tmp = malloc(srcSize);
#  182|-> 		memcpy(tmp, src, srcSize);
#  183|   		ArrayList_Append(ctx->strings, tmp);
#  184|   		*((void**)dst) = tmp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c: scope_hint: In function ‘insert_data’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2330:12: warning[-Wanalyzer-malloc-leak]: leak of ‘item’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2306:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2307:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2307:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2328|   	}
# 2329|   
# 2330|-> 	if (item->freshness > FreshnessCounter)
# 2331|   		return SCARD_W_CACHE_ITEM_STALE;
# 2332|   	item->freshness = FreshnessCounter;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2334:9: warning[-Wanalyzer-malloc-leak]: leak of ‘item’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2306:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2307:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2307:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2332|   	item->freshness = FreshnessCounter;
# 2333|   	item->size = DataLen;
# 2334|-> 	memcpy(item->data, Data, DataLen);
# 2335|   
# 2336|   	// NOLINTNEXTLINE(clang-analyzer-unix.Malloc): HashTable_Insert takes ownership of item

Error: GCC_ANALYZER_WARNING (CWE-762): [#def424]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c: scope_hint: In function ‘Emulate_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2732:9: warning[-Wanalyzer-mismatching-deallocation]: ‘smartcard’ should have been deallocated with ‘free’ but was deallocated with ‘Emulate_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2679:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2730|   	WINPR_PRAGMA_DIAG_PUSH
# 2731|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 2732|-> 	Emulate_Free(smartcard);
# 2733|   	WINPR_PRAGMA_DIAG_POP
# 2734|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def425]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c: scope_hint: In function ‘Emulate_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2742:9: warning[-Wanalyzer-use-after-free]: use after ‘Emulate_Free’ of ‘context’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:2679:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2740|   		return;
# 2741|   
# 2742|-> 	HashTable_Free(context->handles);
# 2743|   	HashTable_Free(context->contexts);
# 2744|   	free(context);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def426]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c: scope_hint: In function ‘vgids_ef_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:275:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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-401): [#def427]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c: scope_hint: In function ‘vgids_init’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:284:14: warning[-Wanalyzer-malloc-leak]: leak of ‘vgids_ef_new(ctx, 40960)’
#  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): [#def428]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:284:14: warning[-Wanalyzer-malloc-leak]: leak of ‘vgids_ef_new(ctx, 40976)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c: scope_hint: In function ‘vgids_init’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:821:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:822:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:823:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:795:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:797:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:890:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:890:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:891:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:891:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:892:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c: scope_hint: In function ‘vgids_init’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c: scope_hint: In function ‘vgids_init’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:302:17: note: in expansion of macro ‘WLog_ERR’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c: scope_hint: In function ‘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): [#def429]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c:334:16: warning[-Wanalyzer-malloc-leak]: leak of ‘vgids_ef_new(ctx, 40978)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_virtual_gids.c: scope_hint: In function ‘vgids_init’
#  332|   {
#  333|   	/* Write DO to end of file: 2-Byte ID, 1-Byte Len, Data */
#  334|-> 	return vgids_write_tlv(ef->data, doID, data, dataSize);
#  335|   }
#  336|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gdi.c: scope_hint: In function ‘gdi_init_ex’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gdi.c:1381:12: warning[-Wanalyzer-malloc-leak]: leak of ‘*context.cache’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gdi.c:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gdi.c:1344:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gdi.c:1347:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gdi.c:1348:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gdi.c:1206:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gdi.c:1207:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gdi.c:1208:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1379|   		goto fail;
# 1380|   
# 1381|-> 	if (!(context->cache = cache_new(context)))
# 1382|   		goto fail;
# 1383|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gfx.c: scope_hint: In function ‘gdi_ImportCacheEntry’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gfx.c:1421:43: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew(*importCacheEntry.key64, (unsigned int)*importCacheEntry.width, (unsigned int)*importCacheEntry.height, 537135240)’
# 1419|   	if ((cacheEntry->width > 0) && (cacheEntry->height > 0))
# 1420|   	{
# 1421|-> 		cacheEntry->data = (BYTE*)calloc(cacheEntry->height, cacheEntry->scanline);
# 1422|   
# 1423|   		if (!cacheEntry->data)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gfx.c: scope_hint: In function ‘gdi_SurfaceToCache’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gfx.c:1421:43: 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.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gfx.c:1447:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1419|   	if ((cacheEntry->width > 0) && (cacheEntry->height > 0))
# 1420|   	{
# 1421|-> 		cacheEntry->data = (BYTE*)calloc(cacheEntry->height, cacheEntry->scanline);
# 1422|   
# 1423|   		if (!cacheEntry->data)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gfx.c: scope_hint: In function ‘gdi_CacheImportReply’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gfx.c:1580:37: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew((long unsigned int)cacheSlot, 0, 0, 537135240)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gfx.c:1568:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gfx.c: scope_hint: In function ‘gdi_CacheImportReply’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
# 1578|   			return ERROR_INTERNAL_ERROR;
# 1579|   
# 1580|-> 		WINPR_ASSERT(context->SetCacheSlotData);
# 1581|   		error = context->SetCacheSlotData(context, cacheSlot, (void*)cacheEntry);
# 1582|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gfx.c: scope_hint: In function ‘gdi_ImportCacheEntry’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/gfx.c:1612:60: warning[-Wanalyzer-malloc-leak]: leak of ‘gdi_GfxCacheEntryNew(*importCacheEntry.key64, (unsigned int)*importCacheEntry.width, (unsigned int)*importCacheEntry.height, 537135240)’
# 1610|   	if (!freerdp_image_copy_no_overlap(cacheEntry->data, cacheEntry->format, cacheEntry->scanline,
# 1611|   	                                   0, 0, cacheEntry->width, cacheEntry->height,
# 1612|-> 	                                   importCacheEntry->data, PIXEL_FORMAT_BGRX32, 0, 0, 0, NULL,
# 1613|   	                                   FREERDP_FLIP_NONE))
# 1614|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def435]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/shape.c:169:33: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  167|   			{
#  168|   				BYTE* dstp = gdi_get_bitmap_pointer(hdc, nXDest, nYDest + y);
#  169|-> 				memcpy(dstp, srcp, 1ull * nWidth * formatSize);
#  170|   			}
#  171|   

Error: GCC_ANALYZER_WARNING: [#def436]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/shape.c: scope_hint: In function ‘gdi_FillRect’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/shape.c:169:33: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/gdi/shape.c:25: included_from: Included from here.
/usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers
#  167|   			{
#  168|   				BYTE* dstp = gdi_get_bitmap_pointer(hdc, nXDest, nYDest + y);
#  169|-> 				memcpy(dstp, srcp, 1ull * nWidth * formatSize);
#  170|   			}
#  171|   

Error: COMPILER_WARNING (CWE-1164): [#def437]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/locale/keyboard.c:261:12: warning[-Wunused-function]: ‘freerdp_keyboard_init_apple’ defined but not used
#  261 | static int freerdp_keyboard_init_apple(const DWORD* keyboardLayoutId,
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  259|   }
#  260|   
#  261|-> static int freerdp_keyboard_init_apple(const DWORD* keyboardLayoutId,
#  262|                                          DWORD* x11_keycode_to_rdp_scancode, size_t count)
#  263|   {

Error: COMPILER_WARNING (CWE-1164): [#def438]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/primitives/sse/prim_copy_avx2.c:37:25: warning[-Wunused-function]: ‘avx2_image_copy_no_overlap_convert’ declared ‘static’ but never defined
#   37 | static INLINE pstatus_t avx2_image_copy_no_overlap_convert(
#      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   35|   #include <immintrin.h>
#   36|   
#   37|-> static INLINE pstatus_t avx2_image_copy_no_overlap_convert(
#   38|       BYTE* WINPR_RESTRICT pDstData, DWORD DstFormat, UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst,
#   39|       UINT32 nWidth, UINT32 nHeight, const BYTE* WINPR_RESTRICT pSrcData, DWORD SrcFormat,

Error: COMPILER_WARNING: [#def439]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/primitives/sse/prim_copy_avx2.c: scope_hint: In function ‘avx2_image_copy_bgr24_bgrx32’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/primitives/sse/prim_copy_avx2.c:55:23: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   53|   	const SSIZE_T dstByte = 4;
#   54|   
#   55|-> 	const __m256i mask = _mm256_set_epi32(0xFF000000, 0xFF000000, 0xFF000000, 0xFF000000,
#   56|   	                                      0xFF000000, 0xFF000000, 0xFF000000, 0xFF000000);
#   57|   	const __m256i smask = _mm256_set_epi32(0xff171615, 0xff141312, 0xff1110ff, 0xffffffff,

Error: COMPILER_WARNING (CWE-1164): [#def440]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/primitives/sse/prim_copy_sse4_1.c:37:25: warning[-Wunused-function]: ‘sse_image_copy_no_overlap_convert’ declared ‘static’ but never defined
#   37 | static INLINE pstatus_t sse_image_copy_no_overlap_convert(
#      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   35|   #include <immintrin.h>
#   36|   
#   37|-> static INLINE pstatus_t sse_image_copy_no_overlap_convert(
#   38|       BYTE* WINPR_RESTRICT pDstData, DWORD DstFormat, UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst,
#   39|       UINT32 nWidth, UINT32 nHeight, const BYTE* WINPR_RESTRICT pSrcData, DWORD SrcFormat,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def441]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/passphrase.c: scope_hint: In function ‘freerdp_passphrase_read_tty’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/passphrase.c:174:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fout’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_fputs’ must be non-null
#  172|   		goto error;
#  173|   
#  174|-> 	(void)fprintf(fout, "%s", prompt);
#  175|   	(void)fflush(fout);
#  176|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/pcap.c: scope_hint: In function ‘pcap_read_header’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/pcap.c:55:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/pcap.c:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/pcap.c:197:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/pcap.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/pcap.c:225:23: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/pcap.c:52:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/pcap.c:53:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/pcap.c:53:9: note: in expansion of macro ‘WINPR_ASSERT’
#   53|   	WINPR_ASSERT(header);
#   54|   
#   55|-> 	return fread(header, sizeof(pcap_header), 1, pcap->fp) == 1;
#   56|   }
#   57|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def443]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c: scope_hint: In function ‘smartcard_GetStatusChangeA_Call’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:920:25: warning[-Wanalyzer-null-argument]: use of NULL ‘rgReaderStates’ where non-null expected
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:901:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:902:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:902:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:903:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:903:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:922:34: note: in expansion of macro ‘wrap’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  918|   	{
#  919|   		if (call->cReaders > 0)
#  920|-> 			memcpy(rgReaderStates, call->rgReaderStates,
#  921|   			       call->cReaders * sizeof(SCARD_READERSTATEA));
#  922|   		ret.ReturnCode = wrap(smartcard, SCardGetStatusChangeA, operation->hContext,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def444]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c: scope_hint: In function ‘smartcard_GetStatusChangeW_Call’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:982:25: warning[-Wanalyzer-null-argument]: use of NULL ‘rgReaderStates’ where non-null expected
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:963:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:964:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:964:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:965:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:965:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:985:42: note: in expansion of macro ‘wrap’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  980|   	{
#  981|   		if (call->cReaders > 0)
#  982|-> 			memcpy(rgReaderStates, call->rgReaderStates,
#  983|   			       call->cReaders * sizeof(SCARD_READERSTATEW));
#  984|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c: scope_hint: In function ‘smartcard_call_context_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:1917:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:1848:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1915|   	WINPR_PRAGMA_DIAG_PUSH
# 1916|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1917|-> 	smartcard_call_context_free(ctx);
# 1918|   	WINPR_PRAGMA_DIAG_POP
# 1919|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def446]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:1917:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ctx’ should have been deallocated with ‘free’ but was deallocated with ‘smartcard_call_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:1848:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1915|   	WINPR_PRAGMA_DIAG_PUSH
# 1916|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1917|-> 	smartcard_call_context_free(ctx);
# 1918|   	WINPR_PRAGMA_DIAG_POP
# 1919|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def447]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c: scope_hint: In function ‘smartcard_call_context_signal_stop’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:2029:17: warning[-Wanalyzer-use-after-free]: use after ‘smartcard_call_context_free’ of ‘ctx’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:1848:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:2028:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2027|   {
# 2028|   	WINPR_ASSERT(ctx);
# 2029|-> 	if (!ctx->stopEvent)
# 2030|   		return TRUE;
# 2031|   

Error: COMPILER_WARNING (CWE-563): [#def448]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_operations.c: scope_hint: In function ‘smartcard_irp_device_control_decode’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_operations.c:553:16: warning[-Wunused-but-set-variable]: variable ‘outputBufferLength’ set but not used
#  553 |         UINT32 outputBufferLength = 0;
#      |                ^~~~~~~~~~~~~~~~~~
#  551|   	UINT32 offset = 0;
#  552|   	UINT32 ioControlCode = 0;
#  553|-> 	UINT32 outputBufferLength = 0;
#  554|   	UINT32 inputBufferLength = 0;
#  555|   

Error: CPPCHECK_WARNING (CWE-457): [#def449]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_pack.c:395: warning[uninitvar]: Uninitialized variable: buffer
#  393|   	}
#  394|   
#  395|-> 	return buffer;
#  396|   }
#  397|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
freerdp-3.9.0-build/FreeRDP-3.9.0/rdtk/librdtk/rdtk_font.c: scope_hint: In function ‘rdtk_font_parse_descriptor_buffer’
freerdp-3.9.0-build/FreeRDP-3.9.0/rdtk/librdtk/rdtk_font.c:173:37: warning[-Wanalyzer-malloc-leak]: leak of ‘rdtk_font_load_descriptor_file(filename, & size)’
freerdp-3.9.0-build/FreeRDP-3.9.0/rdtk/librdtk/rdtk_font.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/rdtk/librdtk/rdtk_font.c:584:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/rdtk/librdtk/rdtk_font.c:151:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/rdtk/librdtk/rdtk_font.c:152:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/rdtk/librdtk/rdtk_font.c:152:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/rdtk/librdtk/rdtk_font.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/rdtk/librdtk/rdtk_font.c:164:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/rdtk/librdtk/rdtk_font.c:166:24: note: in expansion of macro ‘_ftelli64’
freerdp-3.9.0-build/FreeRDP-3.9.0/rdtk/librdtk/rdtk_font.c:243:9: note: in expansion of macro ‘WINPR_ASSERT’
#  171|   		goto fail;
#  172|   
#  173|-> 	uint8_t* buffer = (uint8_t*)malloc(fileSize.s + 2);
#  174|   
#  175|   	if (!buffer)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def451]
freerdp-3.9.0-build/FreeRDP-3.9.0/redhat-linux-build/winpr/include/winpr/wtypes.h:218:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c:487:24: note: in expansion of macro ‘FALSE’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c:487:24: note: in expansion of macro ‘FALSE’
#  216|   
#  217|   #ifndef FALSE
#  218|-> #define FALSE 0
#  219|   #endif
#  220|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def452]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/string.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:31: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c: scope_hint: In function ‘CreatePipe’
freerdp-3.9.0-build/FreeRDP-3.9.0/redhat-linux-build/winpr/include/winpr/wtypes.h:218:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[1]’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c:487:24: note: in expansion of macro ‘FALSE’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c:487:24: note: in expansion of macro ‘FALSE’
#  216|   
#  217|   #ifndef FALSE
#  218|-> #define FALSE 0
#  219|   #endif
#  220|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/string.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:31: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevman.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevman.c: scope_hint: In function ‘urbdrc_udevman_register_devices’
freerdp-3.9.0-build/FreeRDP-3.9.0/redhat-linux-build/winpr/include/winpr/wtypes.h:218:15: warning[-Wanalyzer-malloc-leak]: leak of ‘idpair’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevman.c:685:32: note: in expansion of macro ‘FALSE’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/urbdrc/client/libusb/libusb_udevman.c:685:32: note: in expansion of macro ‘FALSE’
#  216|   
#  217|   #ifndef FALSE
#  218|-> #define FALSE 0
#  219|   #endif
#  220|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/channels/pf_channel_rdpdr.c:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/channels/pf_channel_rdpdr.c: scope_hint: In function ‘pf_channel_rdpdr_server_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/redhat-linux-build/winpr/include/winpr/wtypes.h:218:15: warning[-Wanalyzer-malloc-leak]: leak of ‘rdpdr’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/channels/pf_channel_rdpdr.c:1794:24: note: in expansion of macro ‘FALSE’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/channels/pf_channel_rdpdr.c:1789:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/channels/pf_channel_rdpdr.c:1790:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/channels/pf_channel_rdpdr.c:1796:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/channels/pf_channel_rdpdr.c:1794:24: note: in expansion of macro ‘FALSE’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/channels/pf_channel_rdpdr.c:1794:24: note: in expansion of macro ‘FALSE’
#  216|   
#  217|   #ifndef FALSE
#  218|-> #define FALSE 0
#  219|   #endif
#  220|   

Error: COMPILER_WARNING (CWE-1164): [#def455]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/modules/bitmap-filter/bitmap-filter.cpp:306:13: warning[-Wunused-function]: ‘BOOL filter_forward_empty_offer(const char*, proxyDynChannelInterceptData*, size_t, UINT32)’ defined but not used
#  306 | static BOOL filter_forward_empty_offer(const char* sessionID, proxyDynChannelInterceptData* data,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  304|   }
#  305|   
#  306|-> static BOOL filter_forward_empty_offer(const char* sessionID, proxyDynChannelInterceptData* data,
#  307|                                          size_t startPosition, UINT32 channelId)
#  308|   {

Error: GCC_ANALYZER_WARNING (CWE-762): [#def456]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_channel.c: scope_hint: In function ‘channelTracker_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_channel.c:88:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ret’ should have been deallocated with ‘free’ but was deallocated with ‘channelTracker_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_channel.c:18: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_channel.c:72:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_channel.c:72:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_channel.c:45:9: note: in expansion of macro ‘WINPR_ASSERT’
#   86|   	WINPR_PRAGMA_DIAG_PUSH
#   87|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#   88|-> 	channelTracker_free(ret);
#   89|   	WINPR_PRAGMA_DIAG_POP
#   90|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def457]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_channel.c: scope_hint: In function ‘channelTracker_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_channel.c:163:9: warning[-Wanalyzer-use-after-free]: use after ‘channelTracker_free’ of ‘t’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_channel.c:72:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_channel.c:72:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_channel.c:45:9: note: in expansion of macro ‘WINPR_ASSERT’
#  161|   		return;
#  162|   
#  163|-> 	Stream_Free(t->currentPacket, TRUE);
#  164|   	free(t);
#  165|   }

Error: COMPILER_WARNING (CWE-1164): [#def458]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c:193:13: warning[-Wunused-function]: ‘freerdp_client_load_static_channel_addin’ defined but not used
#  193 | static BOOL freerdp_client_load_static_channel_addin(rdpChannels* channels, rdpSettings* settings,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  191|   }
#  192|   
#  193|-> static BOOL freerdp_client_load_static_channel_addin(rdpChannels* channels, rdpSettings* settings,
#  194|                                                        const char* name, void* data)
#  195|   {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c: scope_hint: In function ‘pf_client_verify_X509_certificate’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c:957:25: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(hostname)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/freerdp.h:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c:937:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c:938:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c:938:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c:939:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c:939:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c:940:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c:940:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_client.c:943:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:890:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:890:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:891:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:891:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:892:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
#  955|   	if (hostname)
#  956|   		pc->remote_hostname = _strdup(hostname);
#  957|-> 	pc->remote_port = port;
#  958|   	pc->remote_flags = flags;
#  959|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def460]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c: scope_hint: In function ‘pf_server_config_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:846:20: warning[-Wanalyzer-use-after-free]: use after ‘pf_server_config_free’ of ‘config’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:950:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:951:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:951:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c: scope_hint: In function ‘pf_server_config_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c: scope_hint: In function ‘pf_server_config_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:927:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:928:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:928:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:929:9: note: in expansion of macro ‘WINPR_ASSERT’
#  844|   		return;
#  845|   
#  846|-> 	free(config->Passthrough);
#  847|   	free(config->Intercept);
#  848|   	free(config->RequiredPlugins);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def461]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c: scope_hint: In function ‘pf_config_clone’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:1000:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:950:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:951:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:951:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c: scope_hint: In function ‘pf_config_clone’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c: scope_hint: In function ‘pf_config_clone’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:927:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:928:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:928:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:929:9: note: in expansion of macro ‘WINPR_ASSERT’
#  998|   	WINPR_PRAGMA_DIAG_PUSH
#  999|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1000|-> 	pf_server_config_free(tmp);
# 1001|   	WINPR_PRAGMA_DIAG_POP
# 1002|   	return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def462]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:1000:9: warning[-Wanalyzer-mismatching-deallocation]: ‘tmp’ should have been deallocated with ‘free’ but was deallocated with ‘pf_server_config_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:950:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:951:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:951:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c: scope_hint: In function ‘pf_config_clone’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c: scope_hint: In function ‘pf_config_clone’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:927:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:928:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:928:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_config.c:929:9: note: in expansion of macro ‘WINPR_ASSERT’
#  998|   	WINPR_PRAGMA_DIAG_PUSH
#  999|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
# 1000|-> 	pf_server_config_free(tmp);
# 1001|   	WINPR_PRAGMA_DIAG_POP
# 1002|   	return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def463]
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/server/proxy/proxy_server.h:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c: scope_hint: In function ‘StaticChannelContext_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:118:19: warning[-Wanalyzer-use-after-free]: use after ‘StaticChannelContext_free’ of ‘ctx’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:79:21: note: in definition of macro ‘IFCALL’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:79:21: note: in definition of macro ‘IFCALL’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:79:21: note: in definition of macro ‘IFCALL’
#  116|   		return;
#  117|   
#  118|-> 	IFCALL(ctx->contextDtor, ctx->context);
#  119|   
#  120|   	free(ctx->channel_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c: scope_hint: In function ‘client_to_proxy_context_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:211:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/server/proxy/proxy_modules_api.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/server/proxy/proxy_config.h:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/server/proxy/proxy_server.h:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:137:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:138:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:138:9: note: in expansion of macro ‘WINPR_ASSERT’
#  209|   	if (context->vcm && (context->vcm != INVALID_HANDLE_VALUE))
#  210|   		WTSCloseServer(context->vcm);
#  211|-> 	context->vcm = NULL;
#  212|   }
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:362:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:336:36: note: in expansion of macro ‘CreateEvent’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:336:36: note: in expansion of macro ‘CreateEvent’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:339:41: note: in expansion of macro ‘CreateEvent’
#  360|   	WINPR_PRAGMA_DIAG_PUSH
#  361|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  362|-> 	proxy_data_free(pdata);
#  363|   	WINPR_PRAGMA_DIAG_POP
#  364|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def466]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c: scope_hint: In function ‘proxy_data_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:362:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pdata’ should have been deallocated with ‘free’ but was deallocated with ‘proxy_data_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/print.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:336:36: note: in expansion of macro ‘CreateEvent’
#  360|   	WINPR_PRAGMA_DIAG_PUSH
#  361|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  362|-> 	proxy_data_free(pdata);
#  363|   	WINPR_PRAGMA_DIAG_POP
#  364|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def467]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c: scope_hint: In function ‘proxy_data_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:390:18: warning[-Wanalyzer-use-after-free]: use after ‘proxy_data_free’ of ‘pdata’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_context.c:336:36: note: in expansion of macro ‘CreateEvent’
#  388|   		return;
#  389|   
#  390|-> 	if (pdata->abort_event)
#  391|   		(void)CloseHandle(pdata->abort_event);
#  392|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:491:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new_from_pem(*server_25->config.PrivateKeyPEM)’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:468:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:475:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:481:9: note: in expansion of macro ‘WINPR_ASSERT’
#  489|   		return FALSE;
#  490|   
#  491|-> 	if (!freerdp_settings_set_pointer_len(settings, FreeRDP_RdpServerRsaKey, key, 1))
#  492|   		return FALSE;
#  493|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:498:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_pem(*server_25->config.CertificatePEM)’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:468:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:475:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:481:9: note: in expansion of macro ‘WINPR_ASSERT’
#  496|   		return FALSE;
#  497|   
#  498|-> 	if (!freerdp_settings_set_pointer_len(settings, FreeRDP_RdpServerCertificate, cert, 1))
#  499|   		return FALSE;
#  500|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def470]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c: scope_hint: In function ‘pf_server_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:981:9: warning[-Wanalyzer-mismatching-deallocation]: ‘server’ should have been deallocated with ‘free’ but was deallocated with ‘pf_server_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:932:9: note: in expansion of macro ‘WINPR_ASSERT’
#  979|   	WINPR_PRAGMA_DIAG_PUSH
#  980|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  981|-> 	pf_server_free(server);
#  982|   	WINPR_PRAGMA_DIAG_POP
#  983|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def471]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c: scope_hint: In function ‘pf_server_stop.part.0’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:1048:15: warning[-Wanalyzer-use-after-free]: use after ‘pf_server_free’ of ‘server’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:932:9: note: in expansion of macro ‘WINPR_ASSERT’
# 1046|   
# 1047|   	/* signal main thread to stop and wait for the thread to exit */
# 1048|-> 	(void)SetEvent(server->stopEvent);
# 1049|   }
# 1050|   

Error: COMPILER_WARNING (CWE-1164): [#def472]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/X11/x11_shadow.c:589:13: warning[-Wunused-function]: ‘x11_shadow_validate_region’ defined but not used
#  589 | static void x11_shadow_validate_region(x11ShadowSubsystem* subsystem, int x, int y, int width,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  587|   }
#  588|   
#  589|-> static void x11_shadow_validate_region(x11ShadowSubsystem* subsystem, int x, int y, int width,
#  590|                                          int height)
#  591|   {

Error: COMPILER_WARNING (CWE-1164): [#def473]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/X11/x11_shadow.c:609:12: warning[-Wunused-function]: ‘x11_shadow_blend_cursor’ defined but not used
#  609 | static int x11_shadow_blend_cursor(x11ShadowSubsystem* subsystem)
#      |            ^~~~~~~~~~~~~~~~~~~~~~~
#  607|   }
#  608|   
#  609|-> static int x11_shadow_blend_cursor(x11ShadowSubsystem* subsystem)
#  610|   {
#  611|   	UINT32 nXSrc = 0;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def474]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_capture.c: scope_hint: In function ‘shadow_capture_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_capture.c:326:17: warning[-Wanalyzer-mismatching-deallocation]: ‘capture’ should have been deallocated with ‘free’ but was deallocated with ‘shadow_capture_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/server/shadow.h:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_surface.h:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_capture.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_capture.c:313:9: note: in expansion of macro ‘WINPR_ASSERT’
#  324|   		WINPR_PRAGMA_DIAG_PUSH
#  325|   		WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  326|-> 		shadow_capture_free(capture);
#  327|   		WINPR_PRAGMA_DIAG_POP
#  328|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c: scope_hint: In function ‘shadow_client_send_surface_gfx’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:1283:33: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 1024)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:1885:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:1886:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:1953:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:1953:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:1955:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:1955:25: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:1281:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:1281:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:1283:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_client.c:1284:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
# 1281|   		WINPR_ASSERT(s);
# 1282|   
# 1283|-> 		WINPR_ASSERT(cmd.left <= UINT16_MAX);
# 1284|   		WINPR_ASSERT(cmd.top <= UINT16_MAX);
# 1285|   		WINPR_ASSERT(cmd.right <= UINT16_MAX);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def476]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_encomsp.c: scope_hint: In function ‘shadow_client_encomsp_init’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_encomsp.c:109:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘encomsp_server_context_new(*client.vcm)’
#  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): [#def477]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_remdesk.c: scope_hint: In function ‘shadow_client_remdesk_init’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_remdesk.c:32:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘remdesk_server_context_new(*client.vcm)’
#   30|   
#   31|   	remdesk = client->remdesk = remdesk_server_context_new(client->vcm);
#   32|-> 	remdesk->rdpcontext = &client->context;
#   33|   
#   34|   	remdesk->custom = (void*)client;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def478]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_screen.c: scope_hint: In function ‘shadow_screen_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_screen.c:90:9: warning[-Wanalyzer-mismatching-deallocation]: ‘screen’ should have been deallocated with ‘free’ but was deallocated with ‘shadow_screen_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_screen.c:21: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_screen.c:30:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_screen.c:31:9: note: in expansion of macro ‘WINPR_ASSERT’
#   88|   	WINPR_PRAGMA_DIAG_PUSH
#   89|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#   90|-> 	shadow_screen_free(screen);
#   91|   	WINPR_PRAGMA_DIAG_POP
#   92|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def479]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_screen.c: scope_hint: In function ‘shadow_screen_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_screen.c:105:19: warning[-Wanalyzer-use-after-free]: use after ‘shadow_screen_free’ of ‘screen’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_screen.c:30:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_screen.c:31:9: note: in expansion of macro ‘WINPR_ASSERT’
#  103|   	region16_uninit(&(screen->invalidRegion));
#  104|   
#  105|-> 	if (screen->primary)
#  106|   	{
#  107|   		shadow_surface_free(screen->primary);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c: scope_hint: In function ‘shadow_server_init_certificate’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:867:42: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(*server.ConfigPath, "shadow")’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:840:9: note: in expansion of macro ‘WINPR_ASSERT’
#  865|   
#  866|   	if ((!winpr_PathFileExists(server->CertificateFile)) ||
#  867|-> 	    (!winpr_PathFileExists(server->PrivateKeyFile)))
#  868|   	{
#  869|   		if (!shadow_server_create_certificate(server, filepath))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:879:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_key_new_from_file(*server.PrivateKeyFile)’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:840:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:874:9: note: in expansion of macro ‘WINPR_ASSERT’
#  877|   	if (!key)
#  878|   		goto out_fail;
#  879|-> 	if (!freerdp_settings_set_pointer_len(settings, FreeRDP_RdpServerRsaKey, key, 1))
#  880|   		goto out_fail;
#  881|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:886:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_file(*server.CertificateFile)’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:840:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:874:9: note: in expansion of macro ‘WINPR_ASSERT’
#  884|   		goto out_fail;
#  885|   
#  886|-> 	if (!freerdp_settings_set_pointer_len(settings, FreeRDP_RdpServerCertificate, cert, 1))
#  887|   		goto out_fail;
#  888|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:889:12: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_new_from_file(*server.CertificateFile)’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:840:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow_server.c:874:9: note: in expansion of macro ‘WINPR_ASSERT’
#  887|   		goto out_fail;
#  888|   
#  889|-> 	if (!freerdp_certificate_is_rdp_security_compatible(cert))
#  890|   	{
#  891|   		if (!freerdp_settings_set_bool(settings, FreeRDP_UseRdpSecurityLayer, FALSE))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2418:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2387:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2388:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2389:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:604:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:605:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:605:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:606:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:606:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:477:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:478:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:478:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:614:15: note: in expansion of macro ‘sprintf_s’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:627:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:629:18: note: in expansion of macro ‘_ftelli64’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2402:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1257:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1210:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1211:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1212:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1212:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1213:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1213:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2418:17: note: in expansion of macro ‘WINPR_ASSERT’
#   40|   		WINPR_PRAGMA_DIAG_PUSH                                       \
#   41|   		WINPR_PRAGMA_DIAG_TAUTOLOGICAL_CONSTANT_OUT_OF_RANGE_COMPARE \
#   42|-> 		if (!(cond))                                                 \
#   43|   			winpr_int_assert(#cond, __FILE__, __func__, __LINE__);   \
#   44|   		WINPR_PRAGMA_DIAG_POP                                        \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nego.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nego.c: scope_hint: In function ‘nego_send_negotiation_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:20: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 512)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nego.c:1076:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nego.c:1076:9: note: in expansion of macro ‘WINPR_ASSERT’
#   40|   		WINPR_PRAGMA_DIAG_PUSH                                       \
#   41|   		WINPR_PRAGMA_DIAG_TAUTOLOGICAL_CONSTANT_OUT_OF_RANGE_COMPARE \
#   42|-> 		if (!(cond))                                                 \
#   43|   			winpr_int_assert(#cond, __FILE__, __func__, __LINE__);   \
#   44|   		WINPR_PRAGMA_DIAG_POP                                        \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:20: warning[-Wanalyzer-malloc-leak]: leak of ‘allocatePlugin()’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1835:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:32:9: note: in definition of macro ‘FREERDP_ENTRY_POINT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1806:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1807:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpsnd/client/rdpsnd_main.c:1835:17: note: in expansion of macro ‘WINPR_ASSERT’
#   40|   		WINPR_PRAGMA_DIAG_PUSH                                       \
#   41|   		WINPR_PRAGMA_DIAG_TAUTOLOGICAL_CONSTANT_OUT_OF_RANGE_COMPARE \
#   42|-> 		if (!(cond))                                                 \
#   43|   			winpr_int_assert(#cond, __FILE__, __func__, __LINE__);   \
#   44|   		WINPR_PRAGMA_DIAG_POP                                        \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Kerberos/krb5glue_mit.c:31: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Kerberos/krb5glue_mit.c: scope_hint: In function ‘krb5glue_get_init_creds’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:20: warning[-Wanalyzer-malloc-leak]: leak of ‘create_temporary_file()’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Kerberos/krb5glue_mit.c:133:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Kerberos/krb5glue_mit.c:133:9: note: in expansion of macro ‘WINPR_ASSERT’
#   40|   		WINPR_PRAGMA_DIAG_PUSH                                       \
#   41|   		WINPR_PRAGMA_DIAG_TAUTOLOGICAL_CONSTANT_OUT_OF_RANGE_COMPARE \
#   42|-> 		if (!(cond))                                                 \
#   43|   			winpr_int_assert(#cond, __FILE__, __func__, __LINE__);   \
#   44|   		WINPR_PRAGMA_DIAG_POP                                        \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c: scope_hint: In function ‘license_answer_license_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:20: warning[-Wanalyzer-malloc-leak]: leak of ‘license_new_binary_blob(1)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2418:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2387:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2388:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2389:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:604:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:605:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:605:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:606:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:606:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:477:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:478:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:478:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:614:15: note: in expansion of macro ‘sprintf_s’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:627:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:629:18: note: in expansion of macro ‘_ftelli64’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2402:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1257:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1210:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1211:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1212:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1212:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1213:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:1213:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/license.c:2418:17: note: in expansion of macro ‘WINPR_ASSERT’
#   40|   		WINPR_PRAGMA_DIAG_PUSH                                       \
#   41|   		WINPR_PRAGMA_DIAG_TAUTOLOGICAL_CONSTANT_OUT_OF_RANGE_COMPARE \
#   42|-> 		if (!(cond))                                                 \
#   43|   			winpr_int_assert(#cond, __FILE__, __func__, __LINE__);   \
#   44|   		WINPR_PRAGMA_DIAG_POP                                        \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/freerdp.h:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:35: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c: scope_hint: In function ‘pf_server_initialize_peer_connection’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:20: warning[-Wanalyzer-malloc-leak]: leak of ‘proxy_data_new()’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:481:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:468:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:475:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/proxy/pf_server.c:481:9: note: in expansion of macro ‘WINPR_ASSERT’
#   40|   		WINPR_PRAGMA_DIAG_PUSH                                       \
#   41|   		WINPR_PRAGMA_DIAG_TAUTOLOGICAL_CONSTANT_OUT_OF_RANGE_COMPARE \
#   42|-> 		if (!(cond))                                                 \
#   43|   			winpr_int_assert(#cond, __FILE__, __func__, __LINE__);   \
#   44|   		WINPR_PRAGMA_DIAG_POP                                        \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/server/shadow.h:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow.c:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow.c: scope_hint: In function ‘main’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:20: warning[-Wanalyzer-malloc-leak]: leak of ‘shadow_server_new()’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow.c:119:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/server/shadow/shadow.c:119:9: note: in expansion of macro ‘WINPR_ASSERT’
#   40|   		WINPR_PRAGMA_DIAG_PUSH                                       \
#   41|   		WINPR_PRAGMA_DIAG_TAUTOLOGICAL_CONSTANT_OUT_OF_RANGE_COMPARE \
#   42|-> 		if (!(cond))                                                 \
#   43|   			winpr_int_assert(#cond, __FILE__, __func__, __LINE__);   \
#   44|   		WINPR_PRAGMA_DIAG_POP                                        \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/tcp.c:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/tcp.c: scope_hint: In function ‘freerdp_tcp_connect_layer’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:20: warning[-Wanalyzer-malloc-leak]: leak of ‘transport_layer_new(freerdp_get_transport(context), 16)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/tcp.c:1512:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/tcp.c:1487:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/tcp.c:1490:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/tcp.c:1512:9: note: in expansion of macro ‘WINPR_ASSERT’
#   40|   		WINPR_PRAGMA_DIAG_PUSH                                       \
#   41|   		WINPR_PRAGMA_DIAG_TAUTOLOGICAL_CONSTANT_OUT_OF_RANGE_COMPARE \
#   42|-> 		if (!(cond))                                                 \
#   43|   			winpr_int_assert(#cond, __FILE__, __func__, __LINE__);   \
#   44|   		WINPR_PRAGMA_DIAG_POP                                        \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_compute.c: scope_hint: In function ‘ntlm_compute_message_integrity_check’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:20: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_HMAC_New()’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:902:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:902:9: note: in expansion of macro ‘WINPR_ASSERT’
#   40|   		WINPR_PRAGMA_DIAG_PUSH                                       \
#   41|   		WINPR_PRAGMA_DIAG_TAUTOLOGICAL_CONSTANT_OUT_OF_RANGE_COMPARE \
#   42|-> 		if (!(cond))                                                 \
#   43|   			winpr_int_assert(#cond, __FILE__, __func__, __LINE__);   \
#   44|   		WINPR_PRAGMA_DIAG_POP                                        \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:20: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_calloc(1, 3680648, 32)’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c:2640:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/codec/progressive.c:2640:17: note: in expansion of macro ‘WINPR_ASSERT’
#   40|   		WINPR_PRAGMA_DIAG_PUSH                                       \
#   41|   		WINPR_PRAGMA_DIAG_TAUTOLOGICAL_CONSTANT_OUT_OF_RANGE_COMPARE \
#   42|-> 		if (!(cond))                                                 \
#   43|   			winpr_int_assert(#cond, __FILE__, __func__, __LINE__);   \
#   44|   		WINPR_PRAGMA_DIAG_POP                                        \

Error: COMPILER_WARNING (CWE-252): [#def494]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/debug.c:36: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/debug.c: scope_hint: In function ‘winpr_backtrace_symbols_fd’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:41:16: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#   41 | #define _write write
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/debug.c:195:31: note: in expansion of macro ‘_write’
#  195 |                         (void)_write(fd, lines[i], (unsigned)strnlen(lines[i], UINT32_MAX));
#      |                               ^~~~~~
#   39|   
#   40|   #ifndef _write
#   41|-> #define _write write
#   42|   #endif
#   43|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:32: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/freerdp.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/nla.h:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/rdp.h:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_WindowIcon’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:122:49: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1319:9: note: in expansion of macro ‘CopyMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1308:9: note: in expansion of macro ‘CopyMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1319:9: note: in expansion of macro ‘CopyMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1319:9: note: in expansion of macro ‘CopyMemory’
#  120|   #endif /* (__GNUC__ > 4) || ... */
#  121|   
#  122|-> #define CopyMemory(Destination, Source, Length) memcpy((Destination), (Source), (Length))
#  123|   #define MoveMemory(Destination, Source, Length) memmove((Destination), (Source), (Length))
#  124|   #define FillMemory(Destination, Length, Fill) memset((Destination), (Fill), (Length))

Error: GCC_ANALYZER_WARNING (CWE-688): [#def496]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c: scope_hint: In function ‘update_message_MonitoredDesktop’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:122:49: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘calloc((long unsigned int)((unsigned int*)&<unknown>)[1], 4)’ where non-null expected
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1539:17: note: in expansion of macro ‘CopyMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1524:9: note: in expansion of macro ‘CopyMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1533:9: note: in expansion of macro ‘CopyMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/message.c:1539:17: note: in expansion of macro ‘CopyMemory’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  120|   #endif /* (__GNUC__ > 4) || ... */
#  121|   
#  122|-> #define CopyMemory(Destination, Source, Length) memcpy((Destination), (Source), (Length))
#  123|   #define MoveMemory(Destination, Source, Length) memmove((Destination), (Source), (Length))
#  124|   #define FillMemory(Destination, Length, Fill) memset((Destination), (Fill), (Length))

Error: GCC_ANALYZER_WARNING (CWE-688): [#def497]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/stream.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/stream.c: scope_hint: In function ‘Stream_EnsureCapacity’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:122:49: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘new_buf’ where non-null expected
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/stream.c:67:25: note: in expansion of macro ‘CopyMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/stream.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/stream.c:23: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1033:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/stream.c: scope_hint: In function ‘Stream_EnsureCapacity’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/stream.c:46:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/stream.c:67:25: note: in expansion of macro ‘CopyMemory’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  120|   #endif /* (__GNUC__ > 4) || ... */
#  121|   
#  122|-> #define CopyMemory(Destination, Source, Length) memcpy((Destination), (Source), (Length))
#  123|   #define MoveMemory(Destination, Source, Length) memmove((Destination), (Source), (Length))
#  124|   #define FillMemory(Destination, Length, Fill) memset((Destination), (Fill), (Length))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/security.h:33: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/handle.h:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/synch.h:33: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c: scope_hint: In function ‘smartcard_EstablishContext_Call’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/nt.h:30:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/nt.h:63:26: note: in expansion of macro ‘STATUS_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:104:32: note: in expansion of macro ‘STATUS_NO_MEMORY’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/nt.h:63:26: note: in expansion of macro ‘STATUS_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/utils/smartcard_call.c:104:32: note: in expansion of macro ‘STATUS_NO_MEMORY’
#   28|   #define STATUS_CAST(t, val) static_cast<t>(val)
#   29|   #else
#   30|-> #define STATUS_CAST(t, val) (t)(val)
#   31|   #endif
#   32|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/settings.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘update_recv_secondary_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:150:38: warning[-Wanalyzer-malloc-leak]: leak of ‘update_read_cache_brush_order(update,  s, (int)stream_read_u16_le(s, 1))’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.h:131:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_recv_secondary_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4296:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4299:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4299:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4299:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.h:131:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_recv_secondary_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3941:9: note: in expansion of macro ‘Stream_Read_INT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘update_recv_secondary_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3941:9: note: in expansion of macro ‘Stream_Read_INT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_recv_secondary_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3942:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3942:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3943:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3943:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:3968:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/update.h:131:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c: scope_hint: In function ‘update_recv_secondary_order’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2919:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2922:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2922:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2922:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2923:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2923:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2929:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2929:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2929:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2930:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2930:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2933:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2933:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2934:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:2934:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/settings_types_private.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/api.h:103:11: note: in definition of macro ‘IFCALLRESULT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/core/orders.c:4075:46: note: in expansion of macro ‘IFCALLRESULT’
#  148|   		WINPR_ASSERT(Stream_GetRemainingLength(_s) >= sizeof(UINT8));
#  149|   
#  150|-> 		const UINT8 v = *(_s)->pointer;
#  151|   		if (seek)
#  152|   			Stream_Seek(_s, sizeof(UINT8));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def500]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c: scope_hint: In function ‘rdpgfx_recv_caps_advertise_pdu’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:647:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘capsSet’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:1298:17: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:1793:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:1794:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1033:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1033:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c: scope_hint: In function ‘rdpgfx_recv_caps_advertise_pdu’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1024:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:1278:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:1281:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:1281:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:1281:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:1298:17: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:1298:17: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:1298:17: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpgfx/server/rdpgfx_main.c:1298:17: note: in expansion of macro ‘Stream_Read_UINT32’
#  645|   	do                                     \
#  646|   	{                                      \
#  647|-> 		_v = stream_read_u32_le(_s, TRUE); \
#  648|   	} while (0)
#  649|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/client/audin_main.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘audin_channel_write_and_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:32: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 5)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/types.h:139: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/addin.h:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/client/audin_main.c:35: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:69:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredCapacityOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/client/audin_main.c:573:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredCapacity’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/client/audin_main.c:576:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/client/audin_main.c:576:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:147:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:148:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/client/audin_main.c:576:9: note: in expansion of macro ‘Stream_Read_UINT8’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/client/audin_main.c:139:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/client/audin_main.c:139:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/audin/client/audin_main.c:139:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:795:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:797:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
#  794|   	{
#  795|   		WINPR_ASSERT(_s);
#  796|-> 		WINPR_ASSERT(_s->pointer);
#  797|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 1);
#  798|   		*_s->pointer++ = (_v);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/freerdp.h:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘location_server_packet_send’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:32: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, 14)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:573:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:574:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:574:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:541:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:542:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:542:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/synch.h:32: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/location/server/location_main.c:546:24: note: in expansion of macro ‘ERROR_OUTOFMEMORY’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
#  811|   	{
#  812|   		WINPR_ASSERT(_s);
#  813|-> 		WINPR_ASSERT(_s->pointer);
#  814|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 2);
#  815|   		*_s->pointer++ = (_v)&0xFF;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘rdpdr_server_send_device_create_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:32: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, pathLength + 256)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3307:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3308:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3309:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:3309:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2493:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:189:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:190:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2255:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2256:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2258:9: note: in expansion of macro ‘WLog_Print’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
#  811|   	{
#  812|   		WINPR_ASSERT(_s);
#  813|-> 		WINPR_ASSERT(_s->pointer);
#  814|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 2);
#  815|   		*_s->pointer++ = (_v)&0xFF;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/include/freerdp/freerdp.h:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h: scope_hint: In function ‘rdpdr_server_send_device_query_directory_request’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:32: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, pathLength + 64)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2832:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2833:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2834:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2834:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2835:9: note: in expansion of macro ‘WLog_Print’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:113:48: note: in definition of macro ‘Stream_CheckAndLogRequiredLengthOfSizeWLog’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2849:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthWLog’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2852:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2852:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2852:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:189:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:190:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2399:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2400:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/channels/rdpdr/server/rdpdr_main.c:2402:9: note: in expansion of macro ‘WLog_Print’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:812:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:813:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:814:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:795:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:796:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:797:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
#  811|   	{
#  812|   		WINPR_ASSERT(_s);
#  813|-> 		WINPR_ASSERT(_s->pointer);
#  814|   		WINPR_ASSERT(Stream_GetRemainingCapacity(_s) >= 2);
#  815|   		*_s->pointer++ = (_v)&0xFF;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c: scope_hint: In function ‘Emulate_SCardEstablishContext’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:140:21: warning[-Wanalyzer-malloc-leak]: leak of ‘scard_context_new()’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:387:9: note: in expansion of macro ‘WLog_Print’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:380:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:219:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:231:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:145:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/emu/scard/smartcard_emulate.c:387:9: note: in expansion of macro ‘WLog_Print’
#  138|   	do                                                           \
#  139|   	{                                                            \
#  140|-> 		if (WLog_IsLevelActive(_log, _log_level))                \
#  141|   		{                                                        \
#  142|   			WLog_Print_unchecked(_log, _log_level, __VA_ARGS__); \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/debug.h:31: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/semaphore.c:21: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:150:21: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateSemaphoreW(lpSemaphoreAttributes,  lInitialCount,  lMaximumCount, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/semaphore.c:147:17: note: in expansion of macro ‘WLog_ERR’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/semaphore.c:147:17: note: in expansion of macro ‘WLog_ERR’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/semaphore.c:147:17: note: in expansion of macro ‘WLog_ERR’
#  148|   	{                                                         \
#  149|   		static wLog* _log_cached_ptr = NULL;                  \
#  150|-> 		if (!_log_cached_ptr)                                 \
#  151|   			_log_cached_ptr = WLog_Get(_tag);                 \
#  152|   		WLog_Print(_log_cached_ptr, _log_level, __VA_ARGS__); \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:36: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:150:21: warning[-Wanalyzer-malloc-leak]: leak of ‘GetKnownPath(id)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:205:29: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:393:17: note: in expansion of macro ‘WLog_WARN’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:152:17: note: in expansion of macro ‘WLog_Print’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:205:29: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:393:17: note: in expansion of macro ‘WLog_WARN’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:205:29: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:393:17: note: in expansion of macro ‘WLog_WARN’
#  148|   	{                                                         \
#  149|   		static wLog* _log_cached_ptr = NULL;                  \
#  150|-> 		if (!_log_cached_ptr)                                 \
#  151|   			_log_cached_ptr = WLog_Get(_tag);                 \
#  152|   		WLog_Print(_log_cached_ptr, _log_level, __VA_ARGS__); \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘freerdp_certificate_get_fingerprint_by_hash’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:150:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash(cert, "sha256")’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1349:17: note: in expansion of macro ‘WLog_ERR’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1349:17: note: in expansion of macro ‘WLog_ERR’
#  148|   	{                                                         \
#  149|   		static wLog* _log_cached_ptr = NULL;                  \
#  150|-> 		if (!_log_cached_ptr)                                 \
#  151|   			_log_cached_ptr = WLog_Get(_tag);                 \
#  152|   		WLog_Print(_log_cached_ptr, _log_level, __VA_ARGS__); \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c: scope_hint: In function ‘freerdp_certificate_get_fingerprint_by_hash_ex’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:150:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freerdp_certificate_get_fingerprint_by_hash_ex(cert,  hash, 1)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1349:17: note: in expansion of macro ‘WLog_ERR’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:206:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/libfreerdp/crypto/certificate.c:1349:17: note: in expansion of macro ‘WLog_ERR’
#  148|   	{                                                         \
#  149|   		static wLog* _log_cached_ptr = NULL;                  \
#  150|-> 		if (!_log_cached_ptr)                                 \
#  151|   			_log_cached_ptr = WLog_Get(_tag);                 \
#  152|   		WLog_Print(_log_cached_ptr, _log_level, __VA_ARGS__); \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic.c: scope_hint: In function ‘clipboard_synthesize_html_format’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic.c:494:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)(SrcSize + 1))’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/image.h:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic.c:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic.c:480:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic.c:481:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic.c:481:9: note: in expansion of macro ‘WINPR_ASSERT’
#  492|   		if (!pSrcData.pv)
#  493|   			goto fail;
#  494|-> 		memcpy(pSrcData.pv, pData, SrcSize);
#  495|   
#  496|   		if (SrcSize > 2)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c: scope_hint: In function ‘make_synthetic_file’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:84:12: warning[-Wanalyzer-malloc-leak]: leak of ‘FindFirstFileW(local_name, & fd)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c: scope_hint: In function ‘make_synthetic_file’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:37: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:570:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:574:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:391:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:365:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:366:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:366:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:367:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:367:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:348:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:144:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:313:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:314:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:314:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:315:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:315:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:316:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:316:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:80:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:81:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:81:9: note: in expansion of macro ‘WINPR_ASSERT’
#   82|   
#   83|   	hFind = FindFirstFileW(local_name, &fd);
#   84|-> 	if (INVALID_HANDLE_VALUE == hFind)
#   85|   	{
#   86|   		WLog_ERR(TAG, "FindFirstFile failed (%" PRIu32 ")", GetLastError());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c: scope_hint: In function ‘do_add_directory_contents_to_list’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:249:12: warning[-Wanalyzer-malloc-leak]: leak of ‘FindFirstFileW(namebuf, & FindData)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c: scope_hint: In function ‘do_add_directory_contents_to_list’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:570:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:574:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:391:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:365:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:366:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:366:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:367:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:367:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:348:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:144:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:313:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:314:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:314:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:315:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:315:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:316:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:316:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:80:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:81:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:81:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:289:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:290:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:290:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:291:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:291:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:292:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:292:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:241:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:242:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:242:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:243:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:243:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:244:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:244:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:245:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:245:9: note: in expansion of macro ‘WINPR_ASSERT’
#  247|   	WIN32_FIND_DATAW FindData = { 0 };
#  248|   	HANDLE hFind = FindFirstFileW(namebuf, &FindData);
#  249|-> 	if (INVALID_HANDLE_VALUE == hFind)
#  250|   	{
#  251|   		WLog_ERR(TAG, "FindFirstFile failed (%" PRIu32 ")", GetLastError());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c: scope_hint: In function ‘add_file_to_list’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:320:12: warning[-Wanalyzer-malloc-leak]: leak of ‘make_synthetic_file(local_name,  remote_name)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c: scope_hint: In function ‘add_file_to_list’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:570:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:574:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:391:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:365:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:366:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:366:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:367:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:367:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:348:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:144:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:313:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:314:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:314:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:315:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:315:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:316:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:316:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:80:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:81:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:81:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:289:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:290:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:290:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:291:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:291:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:292:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:292:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:241:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:242:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:242:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:243:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:243:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:244:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:244:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:245:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:245:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:209:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:210:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:210:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:211:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:211:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:212:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:212:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:213:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:213:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:144:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:176:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:177:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:177:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:176:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:177:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:177:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:313:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:314:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:314:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:315:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:315:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:316:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:316:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:80:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:81:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:81:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:289:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:290:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:290:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:291:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:291:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:292:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:292:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:241:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:242:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:242:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:243:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:243:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:244:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:244:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:245:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:245:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:209:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:210:9: note: in expansion of macro ‘WINPR_ASSERT’
#  318|   	file = make_synthetic_file(local_name, remote_name);
#  319|   
#  320|-> 	if (!file)
#  321|   		return FALSE;
#  322|   

Error: COMPILER_WARNING (CWE-1164): [#def514]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:622:14: warning[-Wunused-function]: ‘convert_nautilus_clipboard_to_filedescriptors’ defined but not used
#  622 | static void* convert_nautilus_clipboard_to_filedescriptors(wClipboard* clipboard, UINT32 formatId,
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  620|   }
#  621|   
#  622|-> static void* convert_nautilus_clipboard_to_filedescriptors(wClipboard* clipboard, UINT32 formatId,
#  623|                                                              const void* data, UINT32* pSize)
#  624|   {

Error: COMPILER_WARNING (CWE-1164): [#def515]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/clipboard/synthetic_file.c:889:14: warning[-Wunused-function]: ‘convert_filedescriptors_to_nautilus_clipboard’ defined but not used
#  889 | static void* convert_filedescriptors_to_nautilus_clipboard(wClipboard* clipboard, UINT32 formatId,
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  887|   
#  888|   /* Prepend header of nautilus based filemanager's format to file list*/
#  889|-> static void* convert_filedescriptors_to_nautilus_clipboard(wClipboard* clipboard, UINT32 formatId,
#  890|                                                              const void* data, UINT32* pSize)
#  891|   {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c: scope_hint: In function ‘DefineCommDevice’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:974:33: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(lpDeviceName)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:41: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:955:28: note: in expansion of macro ‘_tcsdup’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:955:28: note: in expansion of macro ‘_tcsdup’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:963:28: note: in expansion of macro ‘_tcsdup’
#  972|   	for (; i < COMM_DEVICE_MAX; i++)
#  973|   	{
#  974|-> 		if (sCommDevices[i] != NULL)
#  975|   		{
#  976|   			if (_tcscmp(sCommDevices[i]->name, storedDeviceName) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:974:33: warning[-Wanalyzer-malloc-leak]: leak of ‘_strdup(lpTargetPath)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:955:28: note: in expansion of macro ‘_tcsdup’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:963:28: note: in expansion of macro ‘_tcsdup’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:963:28: note: in expansion of macro ‘_tcsdup’
#  972|   	for (; i < COMM_DEVICE_MAX; i++)
#  973|   	{
#  974|-> 		if (sCommDevices[i] != NULL)
#  975|   		{
#  976|   			if (_tcscmp(sCommDevices[i]->name, storedDeviceName) == 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def518]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c: scope_hint: In function ‘CommCreateFileA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:1360:60: warning[-Wanalyzer-fd-leak]: leak of file descriptor
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:1081:29: note: in expansion of macro ‘_tcsnlen’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:1088:9: note: in expansion of macro ‘_tcsncpy’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:1088:9: note: in expansion of macro ‘_tcsncpy’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:34: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c: scope_hint: In function ‘CommCreateFileA’
# 1358|   error_handle:
# 1359|   	WINPR_PRAGMA_DIAG_PUSH
# 1360|-> 	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC(void) CloseHandle(pComm);
# 1361|   	WINPR_PRAGMA_DIAG_POP
# 1362|   	return INVALID_HANDLE_VALUE;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def519]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:1360:60: warning[-Wanalyzer-mismatching-deallocation]: ‘pComm’ should have been deallocated with ‘free’ but was deallocated with ‘CloseHandle’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:1081:29: note: in expansion of macro ‘_tcsnlen’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:1088:9: note: in expansion of macro ‘_tcsncpy’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c:1088:9: note: in expansion of macro ‘_tcsncpy’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/comm/comm.c: scope_hint: In function ‘CommCreateFileA’
# 1358|   error_handle:
# 1359|   	WINPR_PRAGMA_DIAG_PUSH
# 1360|-> 	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC(void) CloseHandle(pComm);
# 1361|   	WINPR_PRAGMA_DIAG_POP
# 1362|   	return INVALID_HANDLE_VALUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c:80:23: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_offset_malloc(num * size,  alignment,  offset)’
#   78|   
#   79|   	/* alignment must be a power of 2 */
#   80|-> 	if (alignment % 2 == 1)
#   81|   		return NULL;
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c: scope_hint: In function ‘winpr_aligned_offset_malloc’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c:80:23: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_offset_malloc(size,  alignment,  offset)’
#   78|   
#   79|   	/* alignment must be a power of 2 */
#   80|-> 	if (alignment % 2 == 1)
#   81|   		return NULL;
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c: scope_hint: In function ‘winpr_aligned_offset_realloc’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c:80:23: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_offset_realloc(memblock,  size,  alignment, 0)’
#   78|   
#   79|   	/* alignment must be a power of 2 */
#   80|-> 	if (alignment % 2 == 1)
#   81|   		return NULL;
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c:141:17: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_offset_realloc(memblock,  size,  alignment, 0)’
#  139|   	pMem = WINPR_ALIGNED_MEM_STRUCT_FROM_PTR(memblock);
#  140|   
#  141|-> 	if (pMem->sig != WINPR_ALIGNED_MEM_SIGNATURE)
#  142|   	{
#  143|   		WLog_ERR(TAG,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c: scope_hint: In function ‘winpr_aligned_offset_recalloc’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c:182:31: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_offset_recalloc(memblock,  num,  size,  alignment, 0)’
#  180|   	if (!memblock)
#  181|   	{
#  182|-> 		newMemblock = winpr_aligned_offset_malloc(size * num, alignment, offset);
#  183|   
#  184|   		if (newMemblock)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c: scope_hint: In function ‘winpr_aligned_recalloc’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c:182:31: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_recalloc(0, count,  size,  alignment)’
#  180|   	if (!memblock)
#  181|   	{
#  182|-> 		newMemblock = winpr_aligned_offset_malloc(size * num, alignment, offset);
#  183|   
#  184|   		if (newMemblock)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c: scope_hint: In function ‘winpr_aligned_offset_recalloc’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c:195:17: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_aligned_offset_recalloc(memblock,  num,  size,  alignment, 0)’
#  193|   	pMem = WINPR_ALIGNED_MEM_STRUCT_FROM_PTR(memblock);
#  194|   
#  195|-> 	if (pMem->sig != WINPR_ALIGNED_MEM_SIGNATURE)
#  196|   	{
#  197|   		WLog_ERR(TAG,

Error: GCC_ANALYZER_WARNING (CWE-416): [#def527]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c: scope_hint: In function ‘winpr_aligned_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crt/alignment.c:251:17: warning[-Wanalyzer-use-after-free]: use after ‘winpr_aligned_free’ of ‘memblock’
#  249|   	pMem = WINPR_ALIGNED_MEM_STRUCT_FROM_PTR(memblock);
#  250|   
#  251|-> 	if (pMem->sig != WINPR_ALIGNED_MEM_SIGNATURE)
#  252|   	{
#  253|   		WLog_ERR(TAG, "_aligned_free: memory block was not allocated by _aligned_malloc!");

Error: GCC_ANALYZER_WARNING (CWE-762): [#def528]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/cipher.c: scope_hint: In function ‘winpr_RC4_New_Internal’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/cipher.c:115:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ctx’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_RC4_Free’
#  113|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  114|   
#  115|-> 	winpr_RC4_Free(ctx);
#  116|   	WINPR_PRAGMA_DIAG_POP
#  117|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def529]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/cipher.c: scope_hint: In function ‘winpr_RC4_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/cipher.c:158:9: warning[-Wanalyzer-use-after-free]: use after ‘winpr_RC4_Free’ of ‘ctx’
#  156|   	winpr_int_rc4_free(ctx->ictx);
#  157|   #elif defined(WITH_OPENSSL)
#  158|-> 	EVP_CIPHER_CTX_free(ctx->ctx);
#  159|   #endif
#  160|   	free(ctx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c: scope_hint: In function ‘winpr_HMAC_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:180:12: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_HMAC_New()’
#  178|   {
#  179|   	WINPR_HMAC_CTX* ctx = (WINPR_HMAC_CTX*)calloc(1, sizeof(WINPR_HMAC_CTX));
#  180|-> 	if (!ctx)
#  181|   		return NULL;
#  182|   #if defined(WITH_OPENSSL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:199:12: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_HMAC_New()’
#  197|   	ctx->xhmac = EVP_MAC_CTX_new(emac);
#  198|   	EVP_MAC_free(emac);
#  199|-> 	if (!ctx->xhmac)
#  200|   		goto fail;
#  201|   #endif

Error: GCC_ANALYZER_WARNING (CWE-762): [#def532]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:210:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ctx’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_HMAC_Free’
#  208|   	WINPR_PRAGMA_DIAG_PUSH
#  209|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  210|-> 	winpr_HMAC_Free(ctx);
#  211|   	WINPR_PRAGMA_DIAG_POP
#  212|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def533]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c: scope_hint: In function ‘winpr_HMAC_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:380:9: warning[-Wanalyzer-use-after-free]: use after ‘winpr_HMAC_Free’ of ‘ctx’
#  378|   #if defined(WITH_OPENSSL)
#  379|   #if OPENSSL_VERSION_NUMBER >= 0x30000000L
#  380|-> 	EVP_MAC_CTX_free(ctx->xhmac);
#  381|   #else
#  382|   	HMAC_CTX* hmac = ctx->hmac;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def534]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c: scope_hint: In function ‘winpr_HMAC’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:426:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_HMAC_New()’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_HMAC_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:217:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:21: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/winpr.h:173:27: note: in definition of macro ‘WINPR_CAST_CONST_PTR_AWAY’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/winpr.h:173:27: note: in definition of macro ‘WINPR_CAST_CONST_PTR_AWAY’
#  424|   	result = TRUE;
#  425|   out:
#  426|-> 	winpr_HMAC_Free(ctx);
#  427|   	return result;
#  428|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c: scope_hint: In function ‘winpr_Digest_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:455:12: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
#  453|   {
#  454|   	WINPR_DIGEST_CTX* ctx = calloc(1, sizeof(WINPR_DIGEST_CTX));
#  455|-> 	if (!ctx)
#  456|   		return NULL;
#  457|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:465:12: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_Digest_New()’
#  463|   	ctx->mdctx = EVP_MD_CTX_new();
#  464|   #endif
#  465|-> 	if (!ctx->mdctx)
#  466|   		goto fail;
#  467|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def537]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:481:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ctx’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_Digest_Free’
#  479|   	WINPR_PRAGMA_DIAG_PUSH
#  480|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  481|-> 	winpr_Digest_Free(ctx);
#  482|   	WINPR_PRAGMA_DIAG_POP
#  483|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def538]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c: scope_hint: In function ‘winpr_Digest_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:724:16: warning[-Wanalyzer-use-after-free]: use after ‘winpr_Digest_Free’ of ‘ctx’
#  722|   		return;
#  723|   #if defined(WITH_OPENSSL)
#  724|-> 	if (ctx->mdctx)
#  725|   	{
#  726|   #if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \

Error: GCC_ANALYZER_WARNING (CWE-762): [#def539]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c: scope_hint: In function ‘winpr_Digest_Allow_FIPS’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:765:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_Digest_New()’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_Digest_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:532:9: note: in expansion of macro ‘WINPR_ASSERT’
#  763|   	result = TRUE;
#  764|   out:
#  765|-> 	winpr_Digest_Free(ctx);
#  766|   	return result;
#  767|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def540]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c: scope_hint: In function ‘winpr_Digest’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:788:9: warning[-Wanalyzer-mismatching-deallocation]: ‘winpr_Digest_New()’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_Digest_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:569:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/crypto/hash.c:489:9: note: in expansion of macro ‘WINPR_ASSERT’
#  786|   	result = TRUE;
#  787|   out:
#  788|-> 	winpr_Digest_Free(ctx);
#  789|   	return result;
#  790|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/environment/environment.c: scope_hint: In function ‘MergeEnvironmentStrings’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/environment/environment.c:329:12: warning[-Wanalyzer-malloc-leak]: leak of ‘MergeEnvironmentStrings(*envBlock,  envstr)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:31: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/environment/environment.c:24: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/environment/environment.c:568:23: note: in expansion of macro ‘sprintf_s’
#  327|   	mergeStrings = (LPCSTR*)calloc(mergeArraySize, sizeof(char*));
#  328|   
#  329|-> 	if (!mergeStrings)
#  330|   		return NULL;
#  331|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/environment/environment.c:336:16: warning[-Wanalyzer-malloc-leak]: leak of ‘MergeEnvironmentStrings(*envBlock,  envstr)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/environment/environment.c:568:23: note: in expansion of macro ‘sprintf_s’
#  334|   	cp = merge;
#  335|   
#  336|-> 	while (*cp && *(cp + 1))
#  337|   	{
#  338|   		length = strlen(cp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/file.c: scope_hint: In function ‘GetFileHandleForFileDescriptor’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/file.c:1462:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
# 1460|   
# 1461|   	pFile = FileHandle_New(fp);
# 1462|-> 	if (!pFile)
# 1463|   		return INVALID_HANDLE_VALUE;
# 1464|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/file.c: scope_hint: In function ‘winpr_fopen’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/file.c:1472:16: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_fopen(_strdup(lpFileName), "ab")’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/file.c: scope_hint: In function ‘winpr_fopen’
# 1470|   {
# 1471|   #ifndef _WIN32
# 1472|-> 	return fopen(path, mode);
# 1473|   #else
# 1474|   	LPWSTR lpPathW = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/file.c:1472:16: warning[-Wanalyzer-malloc-leak]: leak of ‘winpr_fopen(_strdup(lpFileName), FileGetMode(dwDesiredAccess,  dwCreationDisposition, & create))’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/file.c: scope_hint: In function ‘winpr_fopen’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/file.c:46: included_from: Included from here.
# 1470|   {
# 1471|   #ifndef _WIN32
# 1472|-> 	return fopen(path, mode);
# 1473|   #else
# 1474|   	LPWSTR lpPathW = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c: scope_hint: In function ‘GetFileAttributesA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:520:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  518|   	HANDLE hFind = NULL;
#  519|   
#  520|-> 	if ((hFind = FindFirstFileA(lpFileName, &findFileData)) == INVALID_HANDLE_VALUE)
#  521|   		return INVALID_FILE_ATTRIBUTES;
#  522|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:523:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  521|   		return INVALID_FILE_ATTRIBUTES;
#  522|   
#  523|-> 	FindClose(hFind);
#  524|   	return findFileData.dwFileAttributes;
#  525|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def548]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:523:9: warning[-Wanalyzer-mismatching-deallocation]: ‘FindFirstFileA(lpFileName, & findFileData)’ should have been deallocated with ‘free’ but was deallocated with ‘FindClose’
#  521|   		return INVALID_FILE_ATTRIBUTES;
#  522|   
#  523|-> 	FindClose(hFind);
#  524|   	return findFileData.dwFileAttributes;
#  525|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c: scope_hint: In function ‘file_search_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:886:12: warning[-Wanalyzer-malloc-leak]: leak of ‘file_search_new(lpFileName,  flen - patternlen,  ptr + 1, patternlen)’
#  884|   {
#  885|   	WIN32_FILE_SEARCH* pFileSearch = (WIN32_FILE_SEARCH*)calloc(1, sizeof(WIN32_FILE_SEARCH));
#  886|-> 	if (!pFileSearch)
#  887|   		return NULL;
#  888|   	WINPR_ASSERT(sizeof(file_search_magic) == sizeof(pFileSearch->magic));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:51: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:906:45: warning[-Wanalyzer-malloc-leak]: leak of ‘file_search_new(lpFileName,  flen - patternlen,  ptr + 1, patternlen)’
#  904|   		if (stat(name, &fileStat) == 0)
#  905|   		{
#  906|-> 			if (S_ISDIR(fileStat.st_mode))
#  907|   			{
#  908|   				pFileSearch->pDir = opendir(name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:924:25: warning[-Wanalyzer-malloc-leak]: leak of ‘file_search_new(lpFileName,  flen - patternlen,  ptr + 1, patternlen)’
#  922|   		}
#  923|   	}
#  924|-> 	if (!pFileSearch->pDir)
#  925|   		goto fail;
#  926|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:931:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  929|   	WINPR_PRAGMA_DIAG_PUSH
#  930|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  931|-> 	FindClose(pFileSearch);
#  932|   	WINPR_PRAGMA_DIAG_POP
#  933|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def553]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:931:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pFileSearch’ should have been deallocated with ‘free’ but was deallocated with ‘FindClose’
#  929|   	WINPR_PRAGMA_DIAG_PUSH
#  930|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  931|-> 	FindClose(pFileSearch);
#  932|   	WINPR_PRAGMA_DIAG_POP
#  933|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c: scope_hint: In function ‘FindFirstFileA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:994:13: warning[-Wanalyzer-malloc-leak]: leak of ‘FindFirstFileA(ConvertWCharToUtf8Alloc(lpFileName, 0), fd)’
#  992|   HANDLE FindFirstFileA(LPCSTR lpFileName, LPWIN32_FIND_DATAA lpFindFileData)
#  993|   {
#  994|-> 	if (!lpFindFileData || !lpFileName)
#  995|   	{
#  996|   		SetLastError(ERROR_BAD_ARGUMENTS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def555]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:994:13: warning[-Wanalyzer-malloc-leak]: leak of ‘FindFirstFileA(lpFileName, & findFileData)’
#  992|   HANDLE FindFirstFileA(LPCSTR lpFileName, LPWIN32_FIND_DATAA lpFindFileData)
#  993|   {
#  994|-> 	if (!lpFindFileData || !lpFileName)
#  995|   	{
#  996|   		SetLastError(ERROR_BAD_ARGUMENTS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c: scope_hint: In function ‘FindFirstFileA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:1026:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 1024|   
# 1025|   fail:
# 1026|-> 	FindClose(pFileSearch);
# 1027|   	return INVALID_HANDLE_VALUE;
# 1028|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def557]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:1026:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pFileSearch’ should have been deallocated with ‘free’ but was deallocated with ‘FindClose’
# 1024|   
# 1025|   fail:
# 1026|-> 	FindClose(pFileSearch);
# 1027|   	return INVALID_HANDLE_VALUE;
# 1028|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c: scope_hint: In function ‘FindFirstFileW’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:1080:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 1078|   	free(utfFileName);
# 1079|   
# 1080|-> 	if (h != INVALID_HANDLE_VALUE)
# 1081|   	{
# 1082|   		if (!ConvertFindDataAToW(fd, lpFindFileData))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:1085:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 1083|   		{
# 1084|   			SetLastError(ERROR_NOT_ENOUGH_MEMORY);
# 1085|-> 			FindClose(h);
# 1086|   			h = INVALID_HANDLE_VALUE;
# 1087|   			goto out;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def560]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:1085:25: warning[-Wanalyzer-mismatching-deallocation]: ‘FindFirstFileA(ConvertWCharToUtf8Alloc(lpFileName, 0), fd)’ should have been deallocated with ‘free’ but was deallocated with ‘FindClose’
# 1083|   		{
# 1084|   			SetLastError(ERROR_NOT_ENOUGH_MEMORY);
# 1085|-> 			FindClose(h);
# 1086|   			h = INVALID_HANDLE_VALUE;
# 1087|   			goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c: scope_hint: In function ‘file_search_new’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:1209:12: warning[-Wanalyzer-malloc-leak]: leak of ‘file_search_new(lpFileName,  flen - patternlen,  ptr + 1, patternlen)’
# 1207|   		 * Disable this return to stop confusing the analyzer. */
# 1208|   #ifndef __clang_analyzer__
# 1209|-> 	if (!is_valid_file_search_handle(hFindFile))
# 1210|   		return FALSE;
# 1211|   #endif

Error: GCC_ANALYZER_WARNING (CWE-416): [#def562]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:1213:25: warning[-Wanalyzer-use-after-free]: use after ‘FindClose’ of ‘hFindFile’
# 1211|   #endif
# 1212|   
# 1213|-> 	free(pFileSearch->lpPath);
# 1214|   	free(pFileSearch->lpPattern);
# 1215|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def563]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c: scope_hint: In function ‘FindClose’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/generic.c:1213:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(WIN32_FILE_SEARCH *)hFindFile.lpPath’
# 1211|   #endif
# 1212|   
# 1213|-> 	free(pFileSearch->lpPath);
# 1214|   	free(pFileSearch->lpPattern);
# 1215|   

Error: GCC_ANALYZER_WARNING: [#def564]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/namedPipeClient.c: scope_hint: In function ‘NamedPipeClientCreateFileA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/namedPipeClient.c:200:18: warning[-Wanalyzer-fd-use-without-check]: ‘connect’ on possibly invalid file descriptor ‘-1’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/file/namedPipeClient.c: scope_hint: In function ‘NamedPipeClientCreateFileA’
#  198|   	s.sun_family = AF_UNIX;
#  199|   	(void)sprintf_s(s.sun_path, ARRAYSIZE(s.sun_path), "%s", pNamedPipe->lpFilePath);
#  200|-> 	status = connect(pNamedPipe->clientfd, (struct sockaddr*)&s, sizeof(struct sockaddr_un));
#  201|   	pNamedPipe->common.ops = &ops;
#  202|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def565]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/handle/handle.h:141:19: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateSemaphoreW(lpSemaphoreAttributes,  lInitialCount,  lMaximumCount, 0)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/semaphore.c: scope_hint: In function ‘CreateSemaphoreW’
#  139|   
#  140|   	hdl->Type = _type;
#  141|-> 	hdl->Mode = _mode;
#  142|   }
#  143|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def566]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/library/library.c: scope_hint: In function ‘module_from_proc’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/library/library.c:294:31: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/library/library.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:122:82: note: in definition of macro ‘CopyMemory’
#  292|   
#  293|   	CopyMemory(lpFilename, buffer, nSize - 1);
#  294|-> 	lpFilename[nSize - 1] = '\0';
#  295|   	SetLastError(ERROR_INSUFFICIENT_BUFFER);
#  296|   	return nSize;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/path.c: scope_hint: In function ‘winpr_RemoveDirectory_RecursiveW’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/path.c:1143:12: warning[-Wanalyzer-malloc-leak]: leak of ‘FindFirstFileW(path_slash, & findFileData)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/include/PathCchAppend.h:11:9: note: in expansion of macro ‘PATH_CCH_APPEND’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/path.c:342: included_from: Included from here.
# 1141|   	dir = FindFirstFileW(path_slash, &findFileData);
# 1142|   
# 1143|-> 	if (dir == INVALID_HANDLE_VALUE)
# 1144|   		goto fail;
# 1145|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c: scope_hint: In function ‘GetEnvAlloc’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:74:12: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("HOME")’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c: scope_hint: In function ‘GetEnvAlloc’
#   72|   	nSize = GetEnvironmentVariableX(lpName, NULL, 0);
#   73|   
#   74|-> 	if (nSize > 0)
#   75|   	{
#   76|   		env = malloc(nSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def569]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:74:12: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("TMPDIR")’
#   72|   	nSize = GetEnvironmentVariableX(lpName, NULL, 0);
#   73|   
#   74|-> 	if (nSize > 0)
#   75|   	{
#   76|   		env = malloc(nSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def570]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:74:12: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("XDG_CACHE_HOME")’
#   72|   	nSize = GetEnvironmentVariableX(lpName, NULL, 0);
#   73|   
#   74|-> 	if (nSize > 0)
#   75|   	{
#   76|   		env = malloc(nSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:74:12: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("XDG_CONFIG_HOME")’
#   72|   	nSize = GetEnvironmentVariableX(lpName, NULL, 0);
#   73|   
#   74|-> 	if (nSize > 0)
#   75|   	{
#   76|   		env = malloc(nSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:74:12: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("XDG_DATA_HOME")’
#   72|   	nSize = GetEnvironmentVariableX(lpName, NULL, 0);
#   73|   
#   74|-> 	if (nSize > 0)
#   75|   	{
#   76|   		env = malloc(nSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:74:12: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("XDG_RUNTIME_DIR")’
#   72|   	nSize = GetEnvironmentVariableX(lpName, NULL, 0);
#   73|   
#   74|-> 	if (nSize > 0)
#   75|   	{
#   76|   		env = malloc(nSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def574]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:76:23: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("HOME")’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c: scope_hint: In function ‘GetEnvAlloc’
#   74|   	if (nSize > 0)
#   75|   	{
#   76|-> 		env = malloc(nSize);
#   77|   
#   78|   		if (!env)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:76:23: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("TMPDIR")’
#   74|   	if (nSize > 0)
#   75|   	{
#   76|-> 		env = malloc(nSize);
#   77|   
#   78|   		if (!env)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:76:23: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("XDG_CACHE_HOME")’
#   74|   	if (nSize > 0)
#   75|   	{
#   76|-> 		env = malloc(nSize);
#   77|   
#   78|   		if (!env)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:76:23: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("XDG_CONFIG_HOME")’
#   74|   	if (nSize > 0)
#   75|   	{
#   76|-> 		env = malloc(nSize);
#   77|   
#   78|   		if (!env)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:76:23: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("XDG_DATA_HOME")’
#   74|   	if (nSize > 0)
#   75|   	{
#   76|-> 		env = malloc(nSize);
#   77|   
#   78|   		if (!env)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:76:23: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvAlloc("XDG_RUNTIME_DIR")’
#   74|   	if (nSize > 0)
#   75|   	{
#   76|-> 		env = malloc(nSize);
#   77|   
#   78|   		if (!env)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c: scope_hint: In function ‘GetKnownPath’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:76:23: warning[-Wanalyzer-malloc-leak]: leak of ‘GetKnownPath(id)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c: scope_hint: In function ‘GetKnownPath’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c: scope_hint: In function ‘GetKnownPath’
#   74|   	if (nSize > 0)
#   75|   	{
#   76|-> 		env = malloc(nSize);
#   77|   
#   78|   		if (!env)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:394:16: warning[-Wanalyzer-malloc-leak]: leak of ‘GetKnownPath(id)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c: scope_hint: In function ‘GetKnownPath’
#  392|   	if (!path)
#  393|   		WLog_WARN(TAG, "Path %s is %p", GetKnownPathIdString(id), path);
#  394|-> 	return path;
#  395|   }
#  396|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c: scope_hint: In function ‘GetEnvironmentPath’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:415:12: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvironmentPath(name)’
#  413|   	nSize = GetEnvironmentVariableX(name, NULL, 0);
#  414|   
#  415|-> 	if (nSize)
#  416|   	{
#  417|   		env = (LPSTR)malloc(nSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:417:30: warning[-Wanalyzer-malloc-leak]: leak of ‘GetEnvironmentPath(name)’
#  415|   	if (nSize)
#  416|   	{
#  417|-> 		env = (LPSTR)malloc(nSize);
#  418|   
#  419|   		if (!env)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c: scope_hint: In function ‘GetCombinedPath’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:463:33: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(GetEnvironmentPath(name), path)’
#  461|   		subPathLength = strlen(subPath);
#  462|   
#  463|-> 	length = basePathLength + subPathLength + 1;
#  464|   	path = (char*)calloc(1, length + 1);
#  465|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c:463:33: warning[-Wanalyzer-malloc-leak]: leak of ‘GetCombinedPath(GetKnownPath(id), path)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c: scope_hint: In function ‘GetCombinedPath’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/path/shell.c: scope_hint: In function ‘GetCombinedPath’
#  461|   		subPathLength = strlen(subPath);
#  462|   
#  463|-> 	length = basePathLength + subPathLength + 1;
#  464|   	path = (char*)calloc(1, length + 1);
#  465|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def586]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c: scope_hint: In function ‘CreateNamedPipeA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c:717:9: warning[-Wanalyzer-malloc-leak]: leak of ‘baseSocket’
#  715|   
#  716|   	// NOLINTNEXTLINE(clang-analyzer-unix.Malloc): ArrayList_Append takes ownership of baseSocket
#  717|-> 	ArrayList_Unlock(g_NamedPipeServerSockets);
#  718|   	return pNamedPipe;
#  719|   out:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c:725:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/handle/handle.h: scope_hint: In function ‘CreateNamedPipeA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c: scope_hint: In function ‘CreateNamedPipeA’
#  723|   		close(serverfd);
#  724|   
#  725|-> 	ArrayList_Unlock(g_NamedPipeServerSockets);
#  726|   	return INVALID_HANDLE_VALUE;
#  727|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c:725:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pNamedPipe’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c:37: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/handle/handle.h: scope_hint: In function ‘CreateNamedPipeA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c: scope_hint: In function ‘CreateNamedPipeA’
#  723|   		close(serverfd);
#  724|   
#  725|-> 	ArrayList_Unlock(g_NamedPipeServerSockets);
#  726|   	return INVALID_HANDLE_VALUE;
#  727|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def589]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c: scope_hint: In function ‘ConnectNamedPipe’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pipe/pipe.c:762:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘((WINPR_NAMED_PIPE)*(void *)hNamedPipe).serverfd’
#  760|   		status = accept(pNamedPipe->serverfd, (struct sockaddr*)&s, &length);
#  761|   
#  762|-> 		if (status < 0)
#  763|   		{
#  764|   			WLog_ERR(TAG, "ConnectNamedPipe: accept error");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pool/pool.c: scope_hint: In function ‘winpr_SetThreadpoolThreadMinimum’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pool/pool.c:221:22: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateThread(0, 0, &thread_pool_work_func,  ptpp, 0, 0)’
#  219|   			goto fail;
#  220|   
#  221|-> 		if (!ArrayList_Append(ptpp->Threads, thread))
#  222|   		{
#  223|   			(void)CloseHandle(thread);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def591]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pool/work.c: scope_hint: In function ‘winpr_SubmitThreadpoolWork’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pool/work.c:156:1: warning[-Wanalyzer-malloc-leak]: leak of ‘callbackInstance’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pool/work.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pool/work.c:143:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/pool/work.c:144:9: note: in expansion of macro ‘WINPR_ASSERT’
#  154|   	}
#  155|   	// NOLINTNEXTLINE(clang-analyzer-unix.Malloc): Queue_Enqueue takes ownership of callbackInstance
#  156|-> }
#  157|   
#  158|   BOOL winpr_TrySubmitThreadpoolCallback(PTP_SIMPLE_CALLBACK pfns, PVOID pv,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/smartcard/smartcard_pcsc.c: scope_hint: In function ‘PCSC_SCardWriteCacheA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:2909:12: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:39: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:2752:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:2753:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:2753:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2907|   	free(id);
# 2908|   
# 2909|-> 	if (!rc)
# 2910|   	{
# 2911|   		pcsc_cache_item_free(data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/smartcard/smartcard_pcsc.c: scope_hint: In function ‘PCSC_SCardWriteCacheW’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:2955:12: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:2752:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:2753:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/smartcard/smartcard_pcsc.c:2753:9: note: in expansion of macro ‘WINPR_ASSERT’
# 2953|   	free(id);
# 2954|   
# 2955|-> 	if (!rc)
# 2956|   	{
# 2957|   		pcsc_cache_item_free(data);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def594]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Kerberos/kerberos.c: scope_hint: In function ‘kerberos_AcceptSecurityContext’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Kerberos/kerberos.c:1210:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘kerberos_ContextNew(sspi_SecureHandleGetLowerPointer(phCredential))’
# 1208|   		isNewContext = TRUE;
# 1209|   		context = kerberos_ContextNew(credentials);
# 1210|-> 		context->acceptor = TRUE;
# 1211|   
# 1212|   		if (sspi_gss_oid_compare(&oid, &kerberos_u2u_OID))

Error: COMPILER_WARNING (CWE-1164): [#def595]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c:52:20: warning[-Wunused-function]: ‘get_av_pair_string’ defined but not used
#   52 | static const char* get_av_pair_string(UINT16 pair)
#      |                    ^~~~~~~~~~~~~~~~~~
#   50|   }
#   51|   
#   52|-> static const char* get_av_pair_string(UINT16 pair)
#   53|   {
#   54|   	switch (pair)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c: scope_hint: In function ‘ntlm_read_AuthenticateMessage’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:1078:74: warning[-Wanalyzer-malloc-leak]: leak of ‘*credentials.identity.User’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/asn1.h:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/sspi_gss.h:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/sspi.h:90: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:926:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:927:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:927:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:930:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:246:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:247:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:247:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:249:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:694:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:695:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:696:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:253:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:253:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:408:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:409:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:409:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:410:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:410:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:412:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:415:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:415:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:415:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/wlog.h:203:28: note: in expansion of macro ‘WLog_Print_tag’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:424:9: note: in expansion of macro ‘WLog_DBG’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:333:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:333:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:333:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:333:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:333:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:333:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:334:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1041:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:1042:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:62:39: note: in definition of macro ‘WINPR_STREAM_CAST’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:1046:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:122:72: note: in definition of macro ‘CopyMemory’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c: scope_hint: In function ‘ntlm_read_AuthenticateMessage’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:122:72: note: in definition of macro ‘CopyMemory’
# 1076|   
# 1077|   		CopyMemory(credentials->identity.User, message->UserName.Buffer, message->UserName.Len);
# 1078|-> 		credentials->identity.UserLength = message->UserName.Len / 2;
# 1079|   	}
# 1080|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:1090:78: warning[-Wanalyzer-malloc-leak]: leak of ‘*credentials.identity.Domain’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:926:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:927:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:927:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:930:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:246:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:247:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:247:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:249:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:694:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:695:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:696:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:253:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:253:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:298:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:299:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:301:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:306:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:165:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:166:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:307:9: note: in expansion of macro ‘Stream_Read_UINT16’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:211:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:212:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:127:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:128:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:308:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:408:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:409:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:409:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:410:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:410:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:103:9: note: in expansion of macro ‘Stream_CheckAndLogRequiredLengthOfSize’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:412:14: note: in expansion of macro ‘Stream_CheckAndLogRequiredLength’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:415:9: note: in expansion of macro ‘Stream_Read_UINT32’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/NTLM/ntlm_message.c:415:9: note: in expansion of macro ‘Stream_Read_UINT32’
# 1088|   		CopyMemory(credentials->identity.Domain, message->DomainName.Buffer,
# 1089|   		           message->DomainName.Len);
# 1090|-> 		credentials->identity.DomainLength = message->DomainName.Len / 2;
# 1091|   	}
# 1092|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def598]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Schannel/schannel.c: scope_hint: In function ‘schannel_AcquireCredentialsHandleW.part.0’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Schannel/schannel.c:139:45: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘credentials’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Schannel/schannel.c: scope_hint: In function ‘schannel_AcquireCredentialsHandleW.part.0’
#  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): [#def599]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Schannel/schannel.c: scope_hint: In function ‘schannel_AcquireCredentialsHandleW’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Schannel/schannel.c:154:45: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘credentials’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/Schannel/schannel.c: scope_hint: In function ‘schannel_AcquireCredentialsHandleW’
#  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-401): [#def600]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/sspi_winpr.c: scope_hint: In function ‘sspi_ContextBufferFree’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/sspi/sspi_winpr.c:1069:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 1067|   		}
# 1068|   	}
# 1069|-> }
# 1070|   
# 1071|   /**

Error: GCC_ANALYZER_WARNING (CWE-401): [#def601]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c: scope_hint: In function ‘CreateEventA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c:209:18: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateEventA(lpEventAttributes,  bManualReset,  bInitialState,  name)’
#  207|   		return FALSE;
#  208|   
#  209|-> 	if (event->bAttached)
#  210|   	{
#  211|   		// don't close attached file descriptor

Error: GCC_ANALYZER_WARNING (CWE-401): [#def602]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c: scope_hint: In function ‘CreateEventA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c:209:18: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateEventA(lpEventAttributes,  manual,  initial,  lpName)’
#  207|   		return FALSE;
#  208|   
#  209|-> 	if (event->bAttached)
#  210|   	{
#  211|   		// don't close attached file descriptor

Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c: scope_hint: In function ‘CreateEventW’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c:209:18: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateEventW(lpEventAttributes,  manual,  initial,  lpName)’
#  207|   		return FALSE;
#  208|   
#  209|-> 	if (event->bAttached)
#  210|   	{
#  211|   		// don't close attached file descriptor

Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c: scope_hint: In function ‘CreateEventW’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c:276:20: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateEventW(lpEventAttributes,  manual,  initial,  lpName)’
#  274|   	{
#  275|   		name = ConvertWCharToUtf8Alloc(lpName, NULL);
#  276|-> 		if (!name)
#  277|   			return NULL;
#  278|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c:281:9: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateEventW(lpEventAttributes,  manual,  initial,  lpName)’
#  279|   
#  280|   	handle = CreateEventA(lpEventAttributes, bManualReset, bInitialState, name);
#  281|-> 	free(name);
#  282|   	return handle;
#  283|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c:293:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateEventA(lpEventAttributes,  bManualReset,  bInitialState,  name)’
#  291|   		WLog_WARN(TAG, "[%s] does not support lpEventAttributes", lpName);
#  292|   
#  293|-> 	if (!event)
#  294|   		return NULL;
#  295|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def607]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c: scope_hint: In function ‘CreateEventA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c:293:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateEventA(lpEventAttributes,  manual,  initial,  lpName)’
#  291|   		WLog_WARN(TAG, "[%s] does not support lpEventAttributes", lpName);
#  292|   
#  293|-> 	if (!event)
#  294|   		return NULL;
#  295|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def608]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c:312:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateEventA(lpEventAttributes,  bManualReset,  bInitialState,  name)’
#  310|   		goto fail;
#  311|   
#  312|-> 	if (bInitialState)
#  313|   	{
#  314|   		if (!SetEvent(event))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def609]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c:312:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateEventA(lpEventAttributes,  manual,  initial,  lpName)’
#  310|   		goto fail;
#  311|   
#  312|-> 	if (bInitialState)
#  313|   	{
#  314|   		if (!SetEvent(event))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def610]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c: scope_hint: In function ‘CreateFileDescriptorEventW’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c:446:16: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateFileDescriptorEventW(lpEventAttributes,  bManualReset,  bInitialState,  FileDescriptor,  mode)’
#  444|   	}
#  445|   
#  446|-> 	return handle;
#  447|   #else
#  448|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def611]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/event.c:446:16: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateFileDescriptorEventW(lpEventAttributes,  bManualReset,  bInitialState, (int)(long int)pObject, 1)’
#  444|   	}
#  445|   
#  446|-> 	return handle;
#  447|   #else
#  448|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def612]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/mutex.c: scope_hint: In function ‘CreateMutexW’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/mutex.c:130:20: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateMutexW(lpMutexAttributes,  initial,  lpName)’
#  128|   	{
#  129|   		name = ConvertWCharToUtf8Alloc(lpName, NULL);
#  130|-> 		if (!name)
#  131|   			return NULL;
#  132|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def613]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/mutex.c:135:9: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateMutexW(lpMutexAttributes,  initial,  lpName)’
#  133|   
#  134|   	handle = CreateMutexA(lpMutexAttributes, bInitialOwner, name);
#  135|-> 	free(name);
#  136|   	return handle;
#  137|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def614]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/mutex.c:165:16: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateMutexA(lpMutexAttributes,  bInitialOwner,  name)’
#  163|   	}
#  164|   
#  165|-> 	return handle;
#  166|   }
#  167|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def615]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/mutex.c: scope_hint: In function ‘CreateMutexA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/mutex.c:165:16: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateMutexA(lpMutexAttributes,  initial,  lpName)’
#  163|   	}
#  164|   
#  165|-> 	return handle;
#  166|   }
#  167|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def616]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/semaphore.c: scope_hint: In function ‘CreateSemaphoreW’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/synch/semaphore.c:136:12: warning[-Wanalyzer-malloc-leak]: leak of ‘CreateSemaphoreW(lpSemaphoreAttributes,  lInitialCount,  lMaximumCount, 0)’
#  134|   	semaphore = (WINPR_SEMAPHORE*)calloc(1, sizeof(WINPR_SEMAPHORE));
#  135|   
#  136|-> 	if (!semaphore)
#  137|   		return NULL;
#  138|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/thread/process.c: scope_hint: In function ‘CreateProcessExA’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/thread/process.c:110:24: warning[-Wanalyzer-malloc-leak]: leak of ‘FindApplicationPath(*pArgs)’
#  108|   		return NULL;
#  109|   
#  110|-> 	if (application[0] == '/')
#  111|   		return _strdup(application);
#  112|   

Error: COMPILER_WARNING (CWE-1164): [#def618]
freerdp-3.9.0-build/FreeRDP-3.9.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: GCC_ANALYZER_WARNING (CWE-401): [#def619]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c: scope_hint: In function ‘tz_parse_json_entry’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:137:31: warning[-Wanalyzer-malloc-leak]: leak of ‘tz_get_object_str(json,  pos, "Id")’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:21: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:228:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:162:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:167:19: note: in expansion of macro ‘_ftelli64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:173:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:129:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:107:9: note: in expansion of macro ‘WINPR_ASSERT’
#  135|   

#  136|   	entry->Id = tz_get_object_str(json, pos, "Id");

#  137|-> 	entry->StandardName = tz_get_object_str(json, pos, "StandardName");

#  138|   	entry->DisplayName = tz_get_object_str(json, pos, "DisplayName");

#  139|   	entry->DaylightName = tz_get_object_str(json, pos, "DaylightName");


Error: GCC_ANALYZER_WARNING (CWE-401): [#def620]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:138:30: warning[-Wanalyzer-malloc-leak]: leak of ‘tz_get_object_str(json,  pos, "StandardName")’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:228:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:162:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:167:19: note: in expansion of macro ‘_ftelli64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:173:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:129:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:107:9: note: in expansion of macro ‘WINPR_ASSERT’
#  136|   	entry->Id = tz_get_object_str(json, pos, "Id");

#  137|   	entry->StandardName = tz_get_object_str(json, pos, "StandardName");

#  138|-> 	entry->DisplayName = tz_get_object_str(json, pos, "DisplayName");

#  139|   	entry->DaylightName = tz_get_object_str(json, pos, "DaylightName");

#  140|   	entry->Iana = tz_get_object_str(json, pos, "Iana");


Error: GCC_ANALYZER_WARNING (CWE-401): [#def621]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:139:31: warning[-Wanalyzer-malloc-leak]: leak of ‘tz_get_object_str(json,  pos, "DisplayName")’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:228:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:162:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:167:19: note: in expansion of macro ‘_ftelli64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:173:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:129:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:107:9: note: in expansion of macro ‘WINPR_ASSERT’
#  137|   	entry->StandardName = tz_get_object_str(json, pos, "StandardName");

#  138|   	entry->DisplayName = tz_get_object_str(json, pos, "DisplayName");

#  139|-> 	entry->DaylightName = tz_get_object_str(json, pos, "DaylightName");

#  140|   	entry->Iana = tz_get_object_str(json, pos, "Iana");

#  141|   	if (!entry->Id || !entry->StandardName || !entry->DisplayName || !entry->DaylightName ||


Error: GCC_ANALYZER_WARNING (CWE-401): [#def622]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:140:23: warning[-Wanalyzer-malloc-leak]: leak of ‘tz_get_object_str(json,  pos, "DaylightName")’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:228:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:162:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:167:19: note: in expansion of macro ‘_ftelli64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:173:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:129:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:107:9: note: in expansion of macro ‘WINPR_ASSERT’
#  138|   	entry->DisplayName = tz_get_object_str(json, pos, "DisplayName");

#  139|   	entry->DaylightName = tz_get_object_str(json, pos, "DaylightName");

#  140|-> 	entry->Iana = tz_get_object_str(json, pos, "Iana");

#  141|   	if (!entry->Id || !entry->StandardName || !entry->DisplayName || !entry->DaylightName ||

#  142|   	    !entry->Iana)


Error: GCC_ANALYZER_WARNING (CWE-401): [#def623]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:141:12: warning[-Wanalyzer-malloc-leak]: leak of ‘tz_get_object_str(json,  pos, "Iana")’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:228:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:162:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:167:19: note: in expansion of macro ‘_ftelli64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:173:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:129:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:107:9: note: in expansion of macro ‘WINPR_ASSERT’
#  139|   	entry->DaylightName = tz_get_object_str(json, pos, "DaylightName");

#  140|   	entry->Iana = tz_get_object_str(json, pos, "Iana");

#  141|-> 	if (!entry->Id || !entry->StandardName || !entry->DisplayName || !entry->DaylightName ||

#  142|   	    !entry->Iana)

#  143|   	{


Error: GCC_ANALYZER_WARNING (CWE-401): [#def624]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:141:33: warning[-Wanalyzer-malloc-leak]: leak of ‘tz_get_object_str(json,  pos, "Iana")’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:228:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:162:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:167:19: note: in expansion of macro ‘_ftelli64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:173:13: note: in expansion of macro ‘_fseeki64’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:129:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/timezone/TimeZoneNameMapUtils.c:107:9: note: in expansion of macro ‘WINPR_ASSERT’
#  139|   	entry->DaylightName = tz_get_object_str(json, pos, "DaylightName");

#  140|   	entry->Iana = tz_get_object_str(json, pos, "Iana");

#  141|-> 	if (!entry->Id || !entry->StandardName || !entry->DisplayName || !entry->DaylightName ||

#  142|   	    !entry->Iana)

#  143|   	{


Error: GCC_ANALYZER_WARNING (CWE-688): [#def625]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/cmdline.c: scope_hint: In function ‘CommandLineParseCommaSeparatedValuesEx’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/cmdline.c:729:9: warning[-Wanalyzer-null-argument]: use of NULL ‘unquoted’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  727|   
#  728|   	str = &((char*)p)[prefix];
#  729|-> 	memcpy(str, unquoted, len);
#  730|   
#  731|   	if (name)

Error: GCC_ANALYZER_WARNING (CWE-416): [#def626]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c: scope_hint: In function ‘ArrayList_Lock_Conditional’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:122:22: warning[-Wanalyzer-use-after-free]: use after ‘ArrayList_Free’ of ‘arrayList’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:530:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:200:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:201:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:201:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:259:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:121:9: note: in expansion of macro ‘WINPR_ASSERT’
#  120|   {
#  121|   	WINPR_ASSERT(arrayList);
#  122|-> 	if (arrayList->synchronized)
#  123|   		EnterCriticalSection(&arrayList->lock);
#  124|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def627]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c: scope_hint: In function ‘ArrayList_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:598:9: warning[-Wanalyzer-mismatching-deallocation]: ‘arrayList’ should have been deallocated with ‘free’ but was deallocated with ‘ArrayList_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:530:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:200:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:201:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ArrayList.c:201:9: note: in expansion of macro ‘WINPR_ASSERT’
#  596|   	WINPR_PRAGMA_DIAG_PUSH
#  597|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  598|-> 	ArrayList_Free(arrayList);
#  599|   	WINPR_PRAGMA_DIAG_POP
#  600|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def628]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/BufferPool.c: scope_hint: In function ‘BufferPool_Lock’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/BufferPool.c:57:17: warning[-Wanalyzer-use-after-free]: use after ‘BufferPool_Free’ of ‘pool’
#   55|   		return FALSE;
#   56|   
#   57|-> 	if (pool->synchronized)
#   58|   		EnterCriticalSection(&pool->lock);
#   59|   	return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def629]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/BufferPool.c: scope_hint: In function ‘BufferPool_Take’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/BufferPool.c:340:17: warning[-Wanalyzer-mismatching-deallocation]: ‘buffer’ should have been deallocated with ‘free’ but was deallocated with ‘winpr_aligned_free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/BufferPool.c:22: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:123:83: note: in definition of macro ‘MoveMemory’
#  338|   out_error:
#  339|   	if (pool->alignment)
#  340|-> 		winpr_aligned_free(buffer);
#  341|   	else
#  342|   		free(buffer);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def630]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/BufferPool.c:342:17: warning[-Wanalyzer-mismatching-deallocation]: ‘buffer’ should have been deallocated with ‘winpr_aligned_free’ but was deallocated with ‘free’
#  340|   		winpr_aligned_free(buffer);
#  341|   	else
#  342|-> 		free(buffer);
#  343|   out_error_no_free:
#  344|   	BufferPool_Unlock(pool);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def631]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/BufferPool.c:530:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  528|   	WINPR_PRAGMA_DIAG_PUSH
#  529|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  530|-> 	BufferPool_Free(pool);
#  531|   	WINPR_PRAGMA_DIAG_POP
#  532|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def632]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/BufferPool.c: scope_hint: In function ‘BufferPool_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/BufferPool.c:530:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pool’ should have been deallocated with ‘free’ but was deallocated with ‘BufferPool_Free’
#  528|   	WINPR_PRAGMA_DIAG_PUSH
#  529|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  530|-> 	BufferPool_Free(pool);
#  531|   	WINPR_PRAGMA_DIAG_POP
#  532|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def633]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/CountdownEvent.c: scope_hint: In function ‘CountdownEvent_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/CountdownEvent.c:196:9: warning[-Wanalyzer-mismatching-deallocation]: ‘countdown’ should have been deallocated with ‘free’ but was deallocated with ‘CountdownEvent_Free’
#  194|   	WINPR_PRAGMA_DIAG_PUSH
#  195|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  196|-> 	CountdownEvent_Free(countdown);
#  197|   	WINPR_PRAGMA_DIAG_POP
#  198|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def634]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/CountdownEvent.c: scope_hint: In function ‘CountdownEvent_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/CountdownEvent.c:207:15: warning[-Wanalyzer-use-after-free]: use after ‘CountdownEvent_Free’ of ‘countdown’
#  205|   
#  206|   	DeleteCriticalSection(&countdown->lock);
#  207|-> 	(void)CloseHandle(countdown->event);
#  208|   
#  209|   	free(countdown);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def635]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/HashTable.c: scope_hint: In function ‘HashTable_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/HashTable.c:787:9: warning[-Wanalyzer-mismatching-deallocation]: ‘table’ should have been deallocated with ‘free’ but was deallocated with ‘HashTable_Free’
#  785|   	WINPR_PRAGMA_DIAG_PUSH
#  786|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  787|-> 	HashTable_Free(table);
#  788|   	WINPR_PRAGMA_DIAG_POP
#  789|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def636]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/HashTable.c: scope_hint: In function ‘HashTable_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/HashTable.c:800:18: warning[-Wanalyzer-use-after-free]: use after ‘HashTable_Free’ of ‘table’
#  798|   		return;
#  799|   
#  800|-> 	if (table->bucketArray)
#  801|   	{
#  802|   		for (size_t index = 0; index < table->numOfBuckets; index++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def637]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ListDictionary.c: scope_hint: In function ‘ListDictionary_GetKeys’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ListDictionary.c:174:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pKeys’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ListDictionary.c:21: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/ListDictionary.c:133:9: note: in expansion of macro ‘WINPR_ASSERT’
#  172|   		while (item)
#  173|   		{
#  174|-> 			pKeys[index++] = (ULONG_PTR)item->key;
#  175|   			item = item->next;
#  176|   		}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def638]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/MessageQueue.c: scope_hint: In function ‘MessageQueue_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/MessageQueue.c:266:9: warning[-Wanalyzer-mismatching-deallocation]: ‘queue’ should have been deallocated with ‘free’ but was deallocated with ‘MessageQueue_Free’
#  264|   	WINPR_PRAGMA_DIAG_PUSH
#  265|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  266|-> 	MessageQueue_Free(queue);
#  267|   	WINPR_PRAGMA_DIAG_POP
#  268|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def639]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/MessageQueue.c: scope_hint: In function ‘MessageQueue_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/MessageQueue.c:276:18: warning[-Wanalyzer-use-after-free]: use after ‘MessageQueue_Free’ of ‘queue’
#  274|   		return;
#  275|   
#  276|-> 	if (queue->event)
#  277|   		MessageQueue_Clear(queue);
#  278|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def640]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/PubSub.c: scope_hint: In function ‘PubSub_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/PubSub.c:251:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pubSub’ should have been deallocated with ‘free’ but was deallocated with ‘PubSub_Free’
#  249|   	WINPR_PRAGMA_DIAG_PUSH
#  250|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  251|-> 	PubSub_Free(pubSub);
#  252|   	WINPR_PRAGMA_DIAG_POP
#  253|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def641]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/PubSub.c: scope_hint: In function ‘PubSub_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/PubSub.c:260:27: warning[-Wanalyzer-use-after-free]: use after ‘PubSub_Free’ of ‘pubSub’
#  258|   	if (pubSub)
#  259|   	{
#  260|-> 		if (pubSub->synchronized)
#  261|   			DeleteCriticalSection(&pubSub->lock);
#  262|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def642]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/Queue.c: scope_hint: In function ‘Queue_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/Queue.c:331:9: warning[-Wanalyzer-mismatching-deallocation]: ‘queue’ should have been deallocated with ‘free’ but was deallocated with ‘Queue_Free’
#  329|   	WINPR_PRAGMA_DIAG_PUSH
#  330|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  331|-> 	Queue_Free(queue);
#  332|   	WINPR_PRAGMA_DIAG_POP
#  333|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def643]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/Queue.c: scope_hint: In function ‘Queue_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/Queue.c:341:18: warning[-Wanalyzer-use-after-free]: use after ‘Queue_Free’ of ‘queue’
#  339|   		return;
#  340|   
#  341|-> 	if (queue->haveLock)
#  342|   	{
#  343|   		Queue_Clear(queue);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def644]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/Stack.c: scope_hint: In function ‘Stack_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/Stack.c:237:9: warning[-Wanalyzer-mismatching-deallocation]: ‘stack’ should have been deallocated with ‘free’ but was deallocated with ‘Stack_Free’
#  235|   	WINPR_PRAGMA_DIAG_PUSH
#  236|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  237|-> 	Stack_Free(stack);
#  238|   	WINPR_PRAGMA_DIAG_POP
#  239|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def645]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/Stack.c: scope_hint: In function ‘Stack_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/Stack.c:246:26: warning[-Wanalyzer-use-after-free]: use after ‘Stack_Free’ of ‘stack’
#  244|   	if (stack)
#  245|   	{
#  246|-> 		if (stack->synchronized)
#  247|   			DeleteCriticalSection(&stack->lock);
#  248|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def646]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/StreamPool.c: scope_hint: In function ‘StreamPool_Lock’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/StreamPool.c:51:17: warning[-Wanalyzer-use-after-free]: use after ‘StreamPool_Free’ of ‘pool’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/collections.h:30: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/StreamPool.c:25: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/StreamPool.c:73:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/StreamPool.c:50:9: note: in expansion of macro ‘WINPR_ASSERT’
#   49|   {
#   50|   	WINPR_ASSERT(pool);
#   51|-> 	if (pool->synchronized)
#   52|   		EnterCriticalSection(&pool->lock);
#   53|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def647]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/StreamPool.c:378:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/StreamPool.c:73:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/StreamPool.c:73:9: note: in expansion of macro ‘WINPR_ASSERT’
#  376|   	WINPR_PRAGMA_DIAG_PUSH
#  377|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  378|-> 	StreamPool_Free(pool);
#  379|   	WINPR_PRAGMA_DIAG_POP
#  380|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def648]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/StreamPool.c: scope_hint: In function ‘StreamPool_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/StreamPool.c:378:9: warning[-Wanalyzer-mismatching-deallocation]: ‘pool’ should have been deallocated with ‘free’ but was deallocated with ‘StreamPool_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/collections/StreamPool.c:73:9: note: in expansion of macro ‘WINPR_ASSERT’
#  376|   	WINPR_PRAGMA_DIAG_PUSH
#  377|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  378|-> 	StreamPool_Free(pool);
#  379|   	WINPR_PRAGMA_DIAG_POP
#  380|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def649]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c: scope_hint: In function ‘IniFile_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:328:16: warning[-Wanalyzer-malloc-leak]: leak of ‘IniFile_New()’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:21: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:326:9: note: in expansion of macro ‘WINPR_ASSERT’
#  326|   	WINPR_ASSERT(ini);
#  327|   
#  328|-> 	if (ini->nSections + count >= ini->cSections)
#  329|   	{
#  330|   		const size_t new_size = ini->cSections + count + 1024;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def650]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c: scope_hint: In function ‘IniFile_SetFilename’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:495:17: warning[-Wanalyzer-use-after-free]: use after ‘IniFile_Free’ of ‘ini’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:326:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:494:9: note: in expansion of macro ‘WINPR_ASSERT’
#  493|   {
#  494|   	WINPR_ASSERT(ini);
#  495|-> 	free(ini->filename);
#  496|   	ini->filename = NULL;
#  497|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def651]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c: scope_hint: In function ‘IniFile_New’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:806:12: warning[-Wanalyzer-malloc-leak]: leak of ‘IniFile_New()’
#  804|   void IniFile_Free(wIniFile* ini)
#  805|   {
#  806|-> 	if (!ini)
#  807|   		return;
#  808|   

Error: GCC_ANALYZER_WARNING (CWE-762): [#def652]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:834:9: warning[-Wanalyzer-mismatching-deallocation]: ‘ini’ should have been deallocated with ‘free’ but was deallocated with ‘IniFile_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:326:9: note: in expansion of macro ‘WINPR_ASSERT’
#  832|   	WINPR_PRAGMA_DIAG_PUSH
#  833|   	WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
#  834|-> 	IniFile_Free(ini);
#  835|   	WINPR_PRAGMA_DIAG_POP
#  836|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def653]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c: scope_hint: In function ‘IniFile_Clone’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:856:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:326:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:494:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:91:9: note: in expansion of macro ‘WINPR_ASSERT’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  854|   		if (!IniFile_BufferResize(copy, ini->buffersize))
#  855|   			goto fail;
#  856|-> 		memcpy(copy->buffer, ini->buffer, copy->buffersize);
#  857|   	}
#  858|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def654]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:883:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:326:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:494:9: note: in expansion of macro ‘WINPR_ASSERT’
#  881|   
#  882|   fail:
#  883|-> 	IniFile_Free(copy);
#  884|   	return NULL;
#  885|   }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def655]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:883:9: warning[-Wanalyzer-mismatching-deallocation]: ‘IniFile_New()’ should have been deallocated with ‘free’ but was deallocated with ‘IniFile_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:326:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/ini.c:494:9: note: in expansion of macro ‘WINPR_ASSERT’
#  881|   
#  882|   fail:
#  883|-> 	IniFile_Free(copy);
#  884|   	return NULL;
#  885|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def656]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/sam.c: scope_hint: In function ‘SamFreeEntry’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/sam.c:268:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  266|   			free(entry->Domain);
#  267|   
#  268|-> 		free(entry);
#  269|   	}
#  270|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def657]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/Appender.c: scope_hint: In function ‘WLog_Appender_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/Appender.c:29:21: warning[-Wanalyzer-use-after-free]: use after ‘WLog_Appender_Free’ of ‘appender’
#   27|   		return;
#   28|   
#   29|-> 	if (appender->Layout)
#   30|   	{
#   31|   		WLog_Layout_Free(log, appender->Layout);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def658]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/BinaryAppender.c: scope_hint: In function ‘WLog_BinaryAppender_WriteMessage’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/BinaryAppender.c:143:9: warning[-Wanalyzer-malloc-leak]: leak of ‘Stream_New(0, MessageLength)’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/BinaryAppender.c:29: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/BinaryAppender.c:26: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:852:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:853:17: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/assert.h:42:23: note: in definition of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/stream.h:854:17: note: in expansion of macro ‘WINPR_ASSERT’
#  141|   		return FALSE;
#  142|   
#  143|-> 	Stream_Write_UINT32(s, (UINT32)MessageLength);
#  144|   
#  145|   	Stream_Write_UINT32(s, message->Type);

Error: CPPCHECK_WARNING (CWE-562): [#def659]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/CallbackAppender.c:50: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#   48|   		return FALSE;
#   49|   
#   50|-> 	message->PrefixString = prefix;
#   51|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#   52|   

Error: CPPCHECK_WARNING (CWE-562): [#def660]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/CallbackAppender.c:70: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#   68|   		return FALSE;
#   69|   
#   70|-> 	message->PrefixString = prefix;
#   71|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#   72|   

Error: CPPCHECK_WARNING (CWE-562): [#def661]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/CallbackAppender.c:89: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#   87|   		return FALSE;
#   88|   
#   89|-> 	message->PrefixString = prefix;
#   90|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#   91|   

Error: CPPCHECK_WARNING (CWE-562): [#def662]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/CallbackAppender.c:108: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  106|   		return FALSE;
#  107|   
#  108|-> 	message->PrefixString = prefix;
#  109|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#  110|   

Error: CPPCHECK_WARNING (CWE-562): [#def663]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/ConsoleAppender.c:62: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#   60|   	consoleAppender = (wLogConsoleAppender*)appender;
#   61|   
#   62|-> 	message->PrefixString = prefix;
#   63|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#   64|   

Error: CPPCHECK_WARNING (CWE-562): [#def664]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/FileAppender.c:144: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  142|   		return FALSE;
#  143|   
#  144|-> 	message->PrefixString = prefix;
#  145|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#  146|   	(void)fprintf(fp, "%s%s\n", message->PrefixString, message->TextString);

Error: CPPCHECK_WARNING (CWE-562): [#def665]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/UdpAppender.c:100: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#   98|   
#   99|   	udpAppender = (wLogUdpAppender*)appender;
#  100|-> 	message->PrefixString = prefix;
#  101|   	WLog_Layout_GetMessagePrefix(log, appender->Layout, message);
#  102|   	(void)_sendto(udpAppender->sock, message->PrefixString,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def666]
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/wlog.c: scope_hint: In function ‘WLog_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/wlog.c:923:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*log.Name’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/wlog.c:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/wlog.c:105:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/crt.h:28: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/wlog.c:27: included_from: Included from here.
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/include/winpr/winpr.h:79:59: note: in definition of macro ‘WINPR_NORETURN’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/wlog.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/wlog.c:105:9: note: in expansion of macro ‘WINPR_ASSERT’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/wlog.c: scope_hint: In function ‘WLog_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/wlog.c: scope_hint: In function ‘WLog_Free’
freerdp-3.9.0-build/FreeRDP-3.9.0/winpr/libwinpr/utils/wlog/wlog.c:99:9: note: in expansion of macro ‘WINPR_ASSERT’
#  921|   		}
#  922|   
#  923|-> 		free(log->Name);
#  924|   		free(log->Names[0]);
#  925|   		free(log->Names);

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-240.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namefreerdp-3.9.0-1.fc42
store-results-to/tmp/tmpsk0gh83m/freerdp-3.9.0-1.fc42.tar.xz
time-created2024-11-13 00:06:41
time-finished2024-11-13 00:16:14
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpsk0gh83m/freerdp-3.9.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpsk0gh83m/freerdp-3.9.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9