{"id":42226,"date":"2019-03-18T00:00:00","date_gmt":"2019-03-17T21:00:00","guid":{"rendered":"https:\/\/prohoster.info\/blog\/blog_prohoster\/proverka-freerdp-s-pomoshhyu-analizatora-pvs-studio"},"modified":"2020-02-18T13:45:03","modified_gmt":"2020-02-18T10:45:03","slug":"proverka-freerdp-s-pomoshhyu-analizatora-pvs-studio","status":"publish","type":"post","link":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/proverka-freerdp-s-pomoshhyu-analizatora-pvs-studio","title":{"rendered":"\ufeff\u00dcberpr\u00fcfung von FreeRDP mit dem PVS-Studio-Analyzer","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<\/p>\n<p><img decoding=\"async\" alt=\"\ufeff\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 FreeRDP \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio\" src=\"\/wp-content\/uploads\/2019\/03\/a36ed9ada04c58021f00732d1fd4bd60.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\nFreeRDP \u2013 \u043e\u0442\u043a\u0440\u044b\u0442\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f Remote Desktop Protocol (RDP), \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u043c, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 Microsoft. \u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 Windows, Linux, macOS \u0438 \u0434\u0430\u0436\u0435 iOS \u0441 Android. \u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u043c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0446\u0438\u043a\u043b\u0430 \u0441\u0442\u0430\u0442\u0435\u0439, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 RDP-\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h2>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438<\/h2>\n<p>\n\u041f\u0440\u043e\u0435\u043a\u0442 <noindex><a rel=\"nofollow\" href=\"http:\/\/www.freerdp.com\/\">FreeRDP<\/a><\/noindex> \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a Microsoft \u043e\u0442\u043a\u0440\u044b\u043b\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 RDP. \u041d\u0430 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u043a\u043b\u0438\u0435\u043d\u0442 rdesktop, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 Reverse Engineering.<\/p>\n<p>\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u043e\u0441\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0438\u0437-\u0437\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0432\u0448\u0435\u0439 \u0442\u043e\u0433\u0434\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043d\u0435\u0439 \u043f\u043e\u0440\u043e\u0434\u0438\u043b\u0438 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0444\u043e\u0440\u043a\u0430 rdesktop \u2014 FreeRDP. \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0431\u044b\u043b\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 GPLv2, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e \u0440\u0435\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430 Apache License v2. \u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0435 \u0432\u0441\u0435 \u0431\u044b\u043b\u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u044b \u043c\u0435\u043d\u044f\u0442\u044c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0432\u0438\u0434 \u043a\u043e\u0434\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u044b.<\/p>\n<p>\u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u0431 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c \u0432 \u0437\u0430\u043c\u0435\u0442\u043a\u0435 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u0433\u0430: \u00abThe history of the FreeRDP project\u00bb.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0432 \u043a\u043e\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f <noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/pvs-studio\/\">PVS-Studio<\/a><\/noindex>. \u042d\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u044f\u0437\u044b\u043a\u043e\u0432 C, C++, C# \u0438 Java, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445 Windows, Linux \u0438 macOS.<\/p>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043b\u0438\u0448\u044c \u0442\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043c\u043d\u0435 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438.<\/p>\n<h2>\u0423\u0442\u0435\u0447\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v773\/\">V773<\/a><\/noindex> The function was exited without releasing the &#8216;cwd&#8217; pointer. A memory leak is possible. environment.c 84<\/p>\n<pre><code class=\"cpp\">DWORD GetCurrentDirectoryA(DWORD nBufferLength, LPSTR lpBuffer)\n{\n  char* cwd;\n  ....\n  cwd = getcwd(NULL, 0);\n  ....\n  if (lpBuffer == NULL)\n  {\n    free(cwd);\n    return 0;\n  }\n\n  if ((length + 1) &gt; nBufferLength)\n  {\n    free(cwd);\n    return (DWORD) (length + 1);\n  }\n\n  memcpy(lpBuffer, cwd, length + 1);\n  return length;\n  ....\n}<\/code><\/pre>\n<p>\n\u0414\u0430\u043d\u043d\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u0438\u0437 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b winpr, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0439 \u043e\u0431\u0435\u0440\u0442\u043a\u0443 WINAPI \u0434\u043b\u044f \u043d\u0435-Windows \u0441\u0438\u0441\u0442\u0435\u043c, \u0442.\u0435. \u044d\u0442\u043e \u043b\u0435\u0433\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 Wine. \u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0443\u0442\u0435\u0447\u043a\u0443: \u043f\u0430\u043c\u044f\u0442\u044c, \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <i>getcwd<\/i>, \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432. \u0414\u043b\u044f \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u044b\u0437\u043e\u0432 <i>free<\/i> \u043f\u043e\u0441\u043b\u0435 <i>memcpy<\/i>.<\/p>\n<h2>\u0412\u044b\u0445\u043e\u0434 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v557\/\">V557<\/a><\/noindex> Array overrun is possible. The value of &#8216;event-&gt;EventHandlerCount&#8217; index could reach 32. PubSub.c 117<\/p>\n<pre><code class=\"cpp\">#define MAX_EVENT_HANDLERS  32\n\nstruct _wEventType\n{\n  ....\n  int EventHandlerCount;\n  pEventHandler EventHandlers[MAX_EVENT_HANDLERS];\n};\n\nint PubSub_Subscribe(wPubSub* pubSub, const char* EventName,\n      pEventHandler EventHandler)\n{\n  ....\n  if (event-&gt;EventHandlerCount &lt;= MAX_EVENT_HANDLERS)\n  {\n    event-&gt;EventHandlers[event-&gt;EventHandlerCount] = EventHandler;\n    event-&gt;EventHandlerCount++;\n  }\n  ....\n}<\/code><\/pre>\n<p>\n\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u043e\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043e\u043a, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043e\u0441\u0442\u0438\u0433\u043b\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e. \u0417\u0434\u0435\u0441\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <i>&lt;=<\/i> \u043d\u0430 <i>&lt;<\/i>, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442\u044c \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n<p>\u0411\u044b\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u0442\u0438\u043f\u0430:<\/p>\n<ul>\n<li>V557 Array overrun is possible. The value of &#8216;iBitmapFormat&#8217; index could reach 8. orders.c 2623<\/li>\n<\/ul>\n<p><\/p>\n<h2>\u041e\u043f\u0435\u0447\u0430\u0442\u043a\u0438<\/h2>\n<p><\/p>\n<h3>\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442 1<\/h3>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v547\/\">V547<\/a><\/noindex> Expression &#8216;!pipe-&gt;In&#8217; is always false. MessagePipe.c 63<\/p>\n<pre><code class=\"cpp\">wMessagePipe* MessagePipe_New()\n{\n  ....\n  pipe-&gt;In = MessageQueue_New(NULL);\n  if (!pipe-&gt;In)\n    goto error_in;\n\n  pipe-&gt;Out = MessageQueue_New(NULL);\n  if (!pipe-&gt;In) \/\/ &lt;=\n    goto error_out;\n  ....\n}<\/code><\/pre>\n<p>\n\u0422\u0443\u0442 \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u043e\u0431\u044b\u0447\u043d\u0443\u044e \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0443: \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0442\u043e\u0439 \u0436\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u0447\u0442\u043e \u0438 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430.<\/p>\n<h3>\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442 2<\/h3>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v760\/\">V760<\/a><\/noindex> Two identical blocks of text were found. The second block begins from line 771. tsg.c 770<\/p>\n<pre><code class=\"cpp\">typedef struct _TSG_PACKET_VERSIONCAPS\n{\n  ....\n  UINT16 majorVersion;\n  UINT16 minorVersion;\n  ....\n} TSG_PACKET_VERSIONCAPS, *PTSG_PACKET_VERSIONCAPS;\n\nstatic BOOL TsProxyCreateTunnelReadResponse(....)\n{\n  ....\n  PTSG_PACKET_VERSIONCAPS versionCaps = NULL;\n  ....\n  \/* MajorVersion (2 bytes) *\/\n  Stream_Read_UINT16(pdu-&gt;s, versionCaps-&gt;majorVersion);\n  \/* MinorVersion (2 bytes) *\/\n  Stream_Read_UINT16(pdu-&gt;s, versionCaps-&gt;majorVersion);\n  ....\n}<\/code><\/pre>\n<p>\n\u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0430: \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043a \u043a\u043e\u0434\u0443 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0438\u0437 \u043f\u043e\u0442\u043e\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u0440\u0438\u0439\u0442\u0438 <i>minorVersion<\/i>, \u043e\u0434\u043d\u0430\u043a\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <i>majorVersion<\/i>. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u044f \u043d\u0435 \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u043c, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e \u043b\u0438\u0448\u044c \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<h3>\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442 3<\/h3>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v524\/\">V524<\/a><\/noindex> It is odd that the body of &#8216;trio_index_last&#8217; function is fully equivalent to the body of &#8216;trio_index&#8217; function. triostr.c 933<\/p>\n<pre><code class=\"cpp\">\/**\n   Find first occurrence of a character in a string.\n   ....\n *\/\nTRIO_PUBLIC_STRING char *\ntrio_index\nTRIO_ARGS2((string, character),\n     TRIO_CONST char *string,\n     int character)\n{\n  assert(string);\n  return strchr(string, character);\n}\n\n\/**\n   Find last occurrence of a character in a string.\n   ....\n *\/\nTRIO_PUBLIC_STRING char *\ntrio_index_last\nTRIO_ARGS2((string, character),\n     TRIO_CONST char *string,\n     int character)\n{\n  assert(string);\n  return strchr(string, character);\n}<\/code><\/pre>\n<p>\n\u0421\u0443\u0434\u044f \u043f\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044e, \u0444\u0443\u043d\u043a\u0446\u0438\u044f <i>trio_index<\/i> \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435, \u043a\u043e\u0433\u0434\u0430 <i>trio_index_last<\/i> \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435. \u041d\u043e \u0442\u0435\u043b\u0430 \u044d\u0442\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b! \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u044d\u0442\u043e \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0430, \u0438 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>trio_index_last<\/i> \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <i>strrchr<\/i> \u0432\u043c\u0435\u0441\u0442\u043e <i>strchr<\/i>. \u0422\u043e\u0433\u0434\u0430 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u043c.<\/p>\n<h3>\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442 4<\/h3>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v769\/\">V769<\/a><\/noindex> The &#8216;data&#8217; pointer in the expression equals nullptr. The resulting value of arithmetic operations on this pointer is senseless and it should not be used. nsc_encode.c 124<\/p>\n<pre><code class=\"cpp\">static BOOL nsc_encode_argb_to_aycocg(NSC_CONTEXT* context,\n                                      const BYTE* data,\n                                      UINT32 scanline)\n{\n  ....\n  if (!context || data || (scanline == 0))\n    return FALSE;\n  ....\n  src = data + (context-&gt;height - 1 - y) * scanline;\n  ....\n}<\/code><\/pre>\n<p>\n\u041f\u043e\u0445\u043e\u0436\u0435, \u0437\u0434\u0435\u0441\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u044f <i>!<\/i> \u0440\u044f\u0434\u043e\u043c \u0441 <i>data<\/i>. \u0421\u0442\u0440\u0430\u043d\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u043c.<\/p>\n<h3>\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442 5<\/h3>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v517\/\">V517<\/a><\/noindex> The use of &#8216;if (A) {&#8230;} else if (A) {&#8230;}&#8217; pattern was detected. There is a probability of logical error presence. Check lines: 213, 222. rdpei_common.c 213<\/p>\n<pre><code class=\"cpp\">BOOL rdpei_write_4byte_unsigned(wStream* s, UINT32 value)\n{\n  BYTE byte;\n\n  if (value &lt;= 0x3F)\n  {\n    ....\n  }\n  else if (value &lt;= 0x3FFF)\n  {\n    ....\n  }\n  else if (value &lt;= 0x3FFFFF)\n  {\n    byte = (value &gt;&gt; 16) &amp; 0x3F;\n    Stream_Write_UINT8(s, byte | 0x80);\n    byte = (value &gt;&gt; 8) &amp; 0xFF;\n    Stream_Write_UINT8(s, byte);\n    byte = (value &amp; 0xFF);\n    Stream_Write_UINT8(s, byte);\n  }\n  else if (value &lt;= 0x3FFFFF)\n  {\n    byte = (value &gt;&gt; 24) &amp; 0x3F;\n    Stream_Write_UINT8(s, byte | 0xC0);\n    byte = (value &gt;&gt; 16) &amp; 0xFF;\n    Stream_Write_UINT8(s, byte);\n    byte = (value &gt;&gt; 8) &amp; 0xFF;\n    Stream_Write_UINT8(s, byte);\n    byte = (value &amp; 0xFF);\n    Stream_Write_UINT8(s, byte);\n  }\n  ....\n}<\/code><\/pre>\n<p>\n\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u0432\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b: \u0432\u0438\u0434\u0438\u043c\u043e, \u043a\u0442\u043e-\u0442\u043e \u0437\u0430\u0431\u044b\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0438\u0445 \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041f\u043e \u043a\u043e\u0434\u0443 \u0437\u0430\u043c\u0435\u0442\u043d\u043e, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0447\u0435\u0442\u044b\u0440\u0435\u0445\u0431\u0430\u0439\u0442\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c <i>value &lt;= 0x3FFFFFFF<\/i>.<\/p>\n<p>\u0411\u044b\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u0442\u0438\u043f\u0430:<\/p>\n<ul>\n<li>V517 The use of &#8216;if (A) {&#8230;} else if (A) {&#8230;}&#8217; pattern was detected. There is a probability of logical error presence. Check lines: 169, 173. file.c 169<\/li>\n<\/ul>\n<p><\/p>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p><\/p>\n<h3>\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442 1<\/h3>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v547\/\">V547<\/a><\/noindex> Expression &#8216;strcat(target, source) != NULL&#8217; is always true. triostr.c 425<\/p>\n<pre><code class=\"cpp\">TRIO_PUBLIC_STRING int\ntrio_append\nTRIO_ARGS2((target, source),\n     char *target,\n     TRIO_CONST char *source)\n{\n  assert(target);\n  assert(source);\n  \n  return (strcat(target, source) != NULL);\n}<\/code><\/pre>\n<p>\n\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430. \u0424\u0443\u043d\u043a\u0446\u0438\u044f <i>strcat<\/i> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u0442\u0440\u043e\u043a\u0438, \u0442.\u0435. \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e <i>target<\/i>. \u041e\u0434\u043d\u0430\u043a\u043e \u0435\u0441\u043b\u0438 \u043e\u043d \u0440\u0430\u0432\u0435\u043d <i>NULL<\/i>, \u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u0437\u0434\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>strcat <\/i> \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442 \u0435\u0433\u043e \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435. <\/p>\n<h3>\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442 2<\/h3>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v547\/\">V547<\/a><\/noindex> Expression &#8216;cache&#8217; is always true. glyph.c 730<\/p>\n<pre><code class=\"cpp\">typedef struct rdp_glyph_cache rdpGlyphCache;\n\nstruct rdp_glyph_cache\n{\n  ....\n  GLYPH_CACHE glyphCache[10];\n  ....\n};\n\nvoid glyph_cache_free(rdpGlyphCache* glyphCache)\n{\n  ....\n  GLYPH_CACHE* cache = glyphCache-&gt;glyphCache;\n\n  if (cache)\n  {\n    ....\n  }\n  ....\n}<\/code><\/pre>\n<p>\n\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <i>cache<\/i> \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0430\u0434\u0440\u0435\u0441 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 <i>glyphCache-&gt;glyphCache<\/i>. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 <i>if (cache)<\/i> \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c. <\/p>\n<h2>\u041e\u0448\u0438\u0431\u043a\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v1005\/\">V1005<\/a><\/noindex> The resource was acquired using &#8216;CreateFileA&#8217; function but was released using incompatible &#8216;fclose&#8217; function. certificate.c 447<\/p>\n<pre><code class=\"cpp\">BOOL certificate_data_replace(rdpCertificateStore* certificate_store,\n                              rdpCertificateData* certificate_data)\n{\n  HANDLE fp;\n  ....\n  fp = CreateFileA(certificate_store-&gt;file, GENERIC_READ | GENERIC_WRITE, 0,\n                   NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);\n  ....\n  if (size &lt; 1)\n  {\n    CloseHandle(fp);\n    return FALSE;\n  }\n  ....\n  if (!data)\n  {\n    fclose(fp);\n    return FALSE;\n  }\n  ....\n}<\/code><\/pre>\n<p>\n\u0414\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u0444\u0430\u0439\u043b\u0430 <i>fp<\/i>, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>CreateFile,<\/i> \u043f\u043e \u043e\u0448\u0438\u0431\u043a\u0435 \u0437\u0430\u043a\u0440\u044b\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <i>fclose <\/i> \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0430 \u043d\u0435 <i>CloseHandle<\/i>.<\/p>\n<h2>\u041e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v581\/\">V581<\/a><\/noindex> The conditional expressions of the &#8216;if&#8217; statements situated alongside each other are identical. Check lines: 269, 283. ndr_structure.c 283<\/p>\n<pre><code class=\"cpp\">void NdrComplexStructBufferSize(PMIDL_STUB_MESSAGE pStubMsg,\n      unsigned char* pMemory, PFORMAT_STRING pFormat)\n{\n  ....\n  if (conformant_array_description)\n  {\n    ULONG size;\n    unsigned char array_type;\n    array_type = conformant_array_description[0];\n    size = NdrComplexStructMemberSize(pStubMsg, pFormat);\n    WLog_ERR(TAG, \"warning: NdrComplexStructBufferSize array_type: \"\n      \"0x%02X unimplemented\", array_type);\n    NdrpComputeConformance(pStubMsg, pMemory + size,\n      conformant_array_description);\n    NdrpComputeVariance(pStubMsg, pMemory + size,\n      conformant_array_description);\n    MaxCount = pStubMsg-&gt;MaxCount;\n    ActualCount = pStubMsg-&gt;ActualCount;\n    Offset = pStubMsg-&gt;Offset;\n  }\n\n  if (conformant_array_description)\n  {\n    unsigned char array_type;\n    array_type = conformant_array_description[0];\n    pStubMsg-&gt;MaxCount = MaxCount;\n    pStubMsg-&gt;ActualCount = ActualCount;\n    pStubMsg-&gt;Offset = Offset;\n    WLog_ERR(TAG, \"warning: NdrComplexStructBufferSize array_type: \"\n      \"0x%02X unimplemented\", array_type);\n  }\n  ....\n}<\/code><\/pre>\n<p>\n\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u043e\u0439. \u041e\u0434\u043d\u0430\u043a\u043e \u043e\u0431\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043e\u0434\u043d\u043e \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043c\u043e\u0436\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c.<\/p>\n<h2>\u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v575\/\">V575<\/a><\/noindex> The null pointer is passed into &#8216;free&#8217; function. Inspect the first argument. smartcard_pcsc.c 875<\/p>\n<pre><code class=\"cpp\">WINSCARDAPI LONG WINAPI PCSC_SCardListReadersW(\n  SCARDCONTEXT hContext,\n  LPCWSTR mszGroups,\n  LPWSTR mszReaders,\n  LPDWORD pcchReaders)\n{\n  LPSTR mszGroupsA = NULL;\n  ....\n  mszGroups = NULL; \/* mszGroups is not supported by pcsc-lite *\/\n\n  if (mszGroups)\n    ConvertFromUnicode(CP_UTF8,0, mszGroups, -1, \n                       (char**) &amp;mszGroupsA, 0,\n                       NULL, NULL);\n\n  status = PCSC_SCardListReaders_Internal(hContext, mszGroupsA,\n                                          (LPSTR) &amp;mszReadersA,\n                                          pcchReaders);\n\n  if (status == SCARD_S_SUCCESS)\n  {\n    ....\n  }\n\n  free(mszGroupsA);\n  ....\n}<\/code><\/pre>\n<p>\n\u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <i>free<\/i> \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0431 \u044d\u0442\u043e\u043c \u0437\u043d\u0430\u0435\u0442. \u041d\u043e \u0435\u0441\u043b\u0438 \u0432\u044b\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u043d\u0443\u043b\u0435\u0432\u044b\u043c, \u043a\u0430\u043a \u0432 \u044d\u0442\u043e\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435, \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u043d\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435.<\/p>\n<p>\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c <i>mszGroupsA<\/i> \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0432\u0435\u043d <i>NULL<\/i> \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0442\u0432\u044c \u043a\u043e\u0434\u0430, \u0433\u0434\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0433 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0438\u0436\u0438\u043c\u043e\u0439.<\/p>\n<p>\u0411\u044b\u043b\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u044d\u0442\u043e \u0442\u0438\u043f\u0430:<\/p>\n<ul>\n<li>V575 The null pointer is passed into &#8216;free&#8217; function. Inspect the first argument. license.c 790<\/li>\n<li>V575 The null pointer is passed into &#8216;free&#8217; function. Inspect the first argument. rdpsnd_alsa.c 575<\/li>\n<\/ul>\n<p>\n\u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0437\u0430\u0431\u044b\u0442\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0438 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c.<\/p>\n<h2>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v1028\/\">V1028<\/a><\/noindex> Possible overflow. Consider casting operands, not the result. makecert.c 1087<\/p>\n<pre><code class=\"cpp\">\/\/ openssl\/x509.h\nASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);\n\nstruct _MAKECERT_CONTEXT\n{\n  ....\n  int duration_years;\n  int duration_months;\n};\n\ntypedef struct _MAKECERT_CONTEXT MAKECERT_CONTEXT;\n\nint makecert_context_process(MAKECERT_CONTEXT* context, ....)\n{\n  ....\n  if (context-&gt;duration_months)\n    X509_gmtime_adj(after, (long)(60 * 60 * 24 * 31 *\n      context-&gt;duration_months));\n  else if (context-&gt;duration_years)\n    X509_gmtime_adj(after, (long)(60 * 60 * 24 * 365 *\n      context-&gt;duration_years));\n  ....\n}<\/code><\/pre>\n<p>\n\u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043a <i>long<\/i> \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0430\u043c\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0438\u043f\u0430 <i>int<\/i>.<\/p>\n<h2>\u0420\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u0432 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v595\/\">V595<\/a><\/noindex> The &#8216;context&#8217; pointer was utilized before it was verified against nullptr. Check lines: 746, 748. gfx.c 746<\/p>\n<pre><code class=\"cpp\">static UINT gdi_SurfaceCommand(RdpgfxClientContext* context,\n                               const RDPGFX_SURFACE_COMMAND* cmd)\n{\n  ....\n  rdpGdi* gdi = (rdpGdi*) context-&gt;custom;\n\n  if (!context || !cmd)\n    return ERROR_INVALID_PARAMETER;\n  ....\n}<\/code><\/pre>\n<p>\n\u0417\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c <i>context<\/i> \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u2014 \u0440\u0430\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430.<\/p>\n<p>\u0411\u044b\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u0442\u0438\u043f\u0430:<\/p>\n<ul>\n<li>V595 The &#8216;ntlm&#8217; pointer was utilized before it was verified against nullptr. Check lines: 236, 255. ntlm.c 236<\/li>\n<li>V595 The &#8216;context&#8217; pointer was utilized before it was verified against nullptr. Check lines: 1003, 1007. rfx.c 1003<\/li>\n<li>V595 The &#8216;rdpei&#8217; pointer was utilized before it was verified against nullptr. Check lines: 176, 180. rdpei_main.c 176<\/li>\n<li>V595 The &#8216;gdi&#8217; pointer was utilized before it was verified against nullptr. Check lines: 121, 123. xf_gfx.c 121<\/li>\n<\/ul>\n<p><\/p>\n<h2>\u0411\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v547\/\">V547<\/a><\/noindex> Expression &#8216;rdp-&gt;state &gt;= CONNECTION_STATE_ACTIVE&#8217; is always true. connection.c 1489<\/p>\n<pre><code class=\"cpp\">int rdp_server_transition_to_state(rdpRdp* rdp, int state)\n{\n  ....\n  switch (state)\n  {\n    ....\n    case CONNECTION_STATE_ACTIVE:\n      rdp-&gt;state = CONNECTION_STATE_ACTIVE;          \/\/ &lt;=\n      ....\n      if (rdp-&gt;state &gt;= CONNECTION_STATE_ACTIVE)     \/\/ &lt;=\n      {\n        IFCALLRET(client-&gt;Activate, client-&gt;activated, client);\n\n        if (!client-&gt;activated)\n          return -1;\n      }\n    ....\n  }\n  ....\n}<\/code><\/pre>\n<p>\n\u041b\u0435\u0433\u043a\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430 \u0438\u0437-\u0437\u0430 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0430\u043d\u0435\u0435.<\/p>\n<h2>\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0440\u0430\u0437\u0431\u043e\u0440 \u0441\u0442\u0440\u043e\u043a\u0438<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v576\/\">V576<\/a><\/noindex> Incorrect format. Consider checking the third actual argument of the &#8216;sscanf&#8217; function. A pointer to the unsigned int type is expected. proxy.c 220<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v560\/\">V560<\/a><\/noindex> A part of conditional expression is always true: (rc &gt;= 0). proxy.c 222<\/p>\n<pre><code class=\"cpp\">static BOOL check_no_proxy(....)\n{\n  ....\n  int sub;\n  int rc = sscanf(range, \"%u\", &amp;sub);\n\n  if ((rc == 1) &amp;&amp; (rc &gt;= 0))\n  {\n    ....\n  }\n  ....\n}<\/code><\/pre>\n<p>\n\u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u0432\u044b\u0434\u0430\u0435\u0442 \u0441\u0440\u0430\u0437\u0443 2 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f. \u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 <i>%u<\/i> \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0442\u0438\u043f\u0430 <i>unsigned int<\/i>, \u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <i>sub<\/i> \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f <i>int<\/i>. \u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443: \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0438\u0434\u0435\u0442 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441 \u0435\u0434\u0438\u043d\u0438\u0446\u0435\u0439. \u041d\u0435 \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u0438\u043c\u0435\u043b \u0432 \u0432\u0438\u0434\u0443 \u0430\u0432\u0442\u043e\u0440 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043d\u043e \u0442\u0443\u0442 \u044f\u0432\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0442\u0430\u043a.<\/p>\n<h2>\u041d\u0435\u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/w\/v547\/\">V547<\/a><\/noindex> Expression &#8216;status == 0x00090314&#8217; is always false. ntlm.c 299<\/p>\n<pre><code class=\"cpp\">BOOL ntlm_authenticate(rdpNtlm* ntlm, BOOL* pbContinueNeeded)\n{\n  ....\n  if (status != SEC_E_OK)\n  {\n    ....\n    return FALSE;\n  }\n\n  if (status == SEC_I_COMPLETE_NEEDED)            \/\/ &lt;=\n    status = SEC_E_OK;\n  else if (status == SEC_I_COMPLETE_AND_CONTINUE) \/\/ &lt;=\n    status = SEC_I_CONTINUE_NEEDED;\n  ....\n}<\/code><\/pre>\n<p>\n\u041e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0432\u0441\u0435\u0433\u0434\u0430 \u043b\u043e\u0436\u043d\u044b, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0434\u043e\u0439\u0434\u0435\u0442 \u0434\u043e \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043a\u043e\u0433\u0434\u0430 <i>status == SEC_E_OK<\/i>. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cpp\">if (status == SEC_I_COMPLETE_NEEDED)\n  status = SEC_E_OK;\nelse if (status == SEC_I_COMPLETE_AND_CONTINUE)\n  status = SEC_I_CONTINUE_NEEDED;\nelse if (status != SEC_E_OK)\n{\n  ....\n  return FALSE;\n}<\/code><\/pre>\n<p><\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\n\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u044b\u044f\u0432\u0438\u043b\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0438\u0445 \u0447\u0430\u0441\u0442\u044c \u0431\u044b\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0433\u0443\u0442 \u0441\u0430\u043c\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442, \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0432 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <noindex><a rel=\"nofollow\" href=\"https:\/\/www.viva64.com\/ru\/pvs-studio-download\/\">PVS-Studio<\/a><\/noindex>. \u0411\u044b\u043b\u0438 \u0442\u0430\u043a\u0436\u0435 \u0438 \u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f, \u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0430\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0432\u0430\u0436\u0435\u043d, \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430, \u043d\u043e \u0438 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043f\u043e\u0438\u0441\u043a \u043e\u0448\u0438\u0431\u043e\u043a, \u0438 PVS-Studio \u043c\u043e\u0436\u0435\u0442 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u043c\u043e\u0447\u044c.<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/en\/company\/pvs-studio\/blog\/444246\/\"><img decoding=\"async\" alt=\"\ufeff\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 FreeRDP \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio\" src=\"\/wp-content\/uploads\/2019\/03\/965ea6adad72923960352cb10944a53b.png\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0441 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0435\u0439, \u0442\u043e \u043f\u0440\u043e\u0448\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434: Sergey Larin. <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/en\/company\/pvs-studio\/blog\/444246\/\">Checking FreeRDP with PVS-Studio<\/a><\/noindex><\/p>\n<p>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/444242\/\">habr.com<\/a><\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>FreeRDP \u2013 \u043e\u0442\u043a\u0440\u044b\u0442\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f Remote Desktop Protocol (RDP), \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u043c, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 Microsoft. \u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 Windows, Linux, macOS \u0438 \u0434\u0430\u0436\u0435 iOS \u0441 Android. \u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u043c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0446\u0438\u043a\u043b\u0430 \u0441\u0442\u0430\u0442\u0435\u0439, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 RDP-\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u041f\u0440\u043e\u0435\u043a\u0442 FreeRDP \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a Microsoft [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-42226","post","type-post","status-publish","format-standard","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"FreeRDP \u2013 \u043e\u0442\u043a\u0440\u044b\u0442\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f Remote Desktop Protocol (RDP), \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u043c, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 Microsoft. \u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 Windows, Linux, macOS \u0438 \u0434\u0430\u0436\u0435 iOS \u0441 Android. \u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u043c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0446\u0438\u043a\u043b\u0430 \u0441\u0442\u0430\u0442\u0435\u0439, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 RDP-\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u041f\u0440\u043e\u0435\u043a\u0442 FreeRDP \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a Microsoft\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/proverka-freerdp-s-pomoshhyu-analizatora-pvs-studio\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\ufeff\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 FreeRDP \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"FreeRDP \u2013 \u043e\u0442\u043a\u0440\u044b\u0442\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f Remote Desktop Protocol (RDP), \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u043c, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 Microsoft. \u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 Windows, Linux, macOS \u0438 \u0434\u0430\u0436\u0435 iOS \u0441 Android. \u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u043c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0446\u0438\u043a\u043b\u0430 \u0441\u0442\u0430\u0442\u0435\u0439, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 RDP-\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u041f\u0440\u043e\u0435\u043a\u0442 FreeRDP \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a Microsoft\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/proverka-freerdp-s-pomoshhyu-analizatora-pvs-studio\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-03-17T21:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-02-18T10:45:03+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47\ufeff\u00dcberpr\u00fcfung von FreeRDP mit dem PVS-Studio-Analysator | ProHoster","description":"FreeRDP ist eine Open-Source-Implementierung des Remote Desktop Protocol (RDP), eines Protokolls, das das Remote-Management von Computern erm\u00f6glicht und von Microsoft entwickelt wurde. Das Projekt unterst\u00fctzt eine Vielzahl von Plattformen, darunter Windows, Linux, macOS und sogar iOS sowie Android. Dieses Projekt wurde als erstes innerhalb einer Artikelreihe ausgew\u00e4hlt, die sich mit der \u00dcberpr\u00fcfung von RDP-Clients mithilfe des statischen Analysators PVS-Studio besch\u00e4ftigt. Eine kurze Geschichte: Das Projekt FreeRDP entstand, nachdem Microsoft...","canonical_url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/proverka-freerdp-s-pomoshhyu-analizatora-pvs-studio","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"de_DE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\ufeff\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 FreeRDP \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio | ProHoster","og:description":"FreeRDP \u2013 \u043e\u0442\u043a\u0440\u044b\u0442\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f Remote Desktop Protocol (RDP), \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u043c, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 Microsoft. \u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 Windows, Linux, macOS \u0438 \u0434\u0430\u0436\u0435 iOS \u0441 Android. \u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u043c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0446\u0438\u043a\u043b\u0430 \u0441\u0442\u0430\u0442\u0435\u0439, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 RDP-\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u041f\u0440\u043e\u0435\u043a\u0442 FreeRDP \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a Microsoft","og:url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/proverka-freerdp-s-pomoshhyu-analizatora-pvs-studio","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-03-17T21:00:00+00:00","article:modified_time":"2020-02-18T10:45:03+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"42226","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-22 07:42:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 00:04:28","updated":"2026-01-22 07:42:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/42226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/comments?post=42226"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/42226\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/media?parent=42226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/categories?post=42226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/tags?post=42226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}