Logging and parser fixes (#7796)

* Fixed remdesk settings pointer

* Fixed sign warnings in display_write_monitor_layout_pdu

* Use freerdp_abort_connect_context and freerdp_shall_disconnect_context

* Added and updates settings

* info assert/dynamic timezone

* mcs assert/log/flags

* Fixed and added assertions for wStream

* Unified stream length checks

* Added new function to check for lenght and log
* Replace all usages with this new function

* Cleaned up PER, added parser logging

* Cleaned up BER, added parser logging

* log messages

* Modified Stream_CheckAndLogRequiredLengthEx

* Allow custom format and options
* Add Stream_CheckAndLogRequiredLengthExVa for prepared va_list

* Improved Stream_CheckAndLogRequiredLength

* Now have log level adjustable
* Added function equivalents for existing logger
* Added a backtrace in case of a failure is detected

* Fixed public API input checks
This commit is contained in:
akallabeth
2022-04-19 14:29:17 +02:00
committed by GitHub
parent 37d0a9e2b7
commit 73cdcdfe09
135 changed files with 2809 additions and 2972 deletions

View File

@@ -433,7 +433,7 @@ static int android_freerdp_run(freerdp* instance)
inputEvent = android_get_handle(instance);
while (!freerdp_shall_disconnect(instance))
while (!freerdp_shall_disconnect_context(instance->context))
{
DWORD tmp;
count = 0;
@@ -469,7 +469,7 @@ static int android_freerdp_run(freerdp* instance)
break;
}
if (freerdp_shall_disconnect(instance))
if (freerdp_shall_disconnect_context(instance->context))
break;
if (android_check_handle(instance) != TRUE)
@@ -774,7 +774,7 @@ Java_com_freerdp_freerdpcore_services_LibFreeRDP_freerdp_1disconnect(JNIEnv* env
return JNI_FALSE;
}
if (!freerdp_abort_connect(inst))
if (!freerdp_abort_connect_context(inst->context))
return JNI_FALSE;
return JNI_TRUE;