{"id":337205,"date":"2022-08-18T09:00:19","date_gmt":"2022-08-18T09:00:19","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=337205"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=337205","title":{"rendered":"<span>PVS-Studio 7.20: Unreal Engine, SAST, SCA<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><img decoding=\"async\" src=\"https:\/\/import.viva64.com\/docx\/blog\/0980_Release_7_20_ru\/image1.png\" alt=\"0980_Release_7_20_ru\/image1.png\" data-src=\"https:\/\/import.viva64.com\/docx\/blog\/0980_Release_7_20_ru\/image1.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0435\u0441\u0441-\u0440\u0435\u043b\u0438\u0437\u0435 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442: \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043a\u0440\u0430\u0442\u043a\u043e \u0438\u0437\u043b\u043e\u0436\u0435\u043d\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435. \u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u0434\u0435\u0442\u0430\u043b\u0438, \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u044b \u0441 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c. \u0412\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0442\u043e, \u0447\u0442\u043e \u0432\u0430\u043c \u0431\u043b\u0438\u0436\u0435.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"kratko\">\u041a\u0440\u0430\u0442\u043a\u043e<\/h2>\n<p>  <\/p>\n<p><strong>Security<\/strong>. \u041f\u043e\u043a\u0440\u044b\u043b\u0438 \u0432\u0441\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0438\u0437 OWASP Top 10 2021: \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0435\u0441\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0435. \u0412 C# \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438 \u2013 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438 <a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v5625\/\">SCA<\/a> (Software Composition Analysis).<\/p>\n<p>  <\/p>\n<p><strong>Unreal Engine<\/strong>. \u0412 Unreal Engine 5.0.3 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438 \u0431\u0430\u0433 \u0441 \u043f\u043e\u0438\u0441\u043a\u043e\u043c PVS-Studio: \u0442\u0435\u043f\u0435\u0440\u044c \u0430\u043d\u0430\u043b\u0438\u0437 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u0435\u0437 workaround&#8217;\u043e\u0432. \u0415\u0449\u0451 \u043c\u044b \u0443\u043b\u0443\u0447\u0448\u0438\u043b\u0438 \u0430\u043d\u0430\u043b\u0438\u0437 UE-\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432: \u043c\u0435\u043d\u044c\u0448\u0435 \u043b\u043e\u0436\u043d\u044b\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439, \u0431\u043e\u043b\u044c\u0448\u0435 \u0445\u043e\u0440\u043e\u0448\u0438\u0445.<\/p>\n<p>  <\/p>\n<p><strong>\u041a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 C \u0438 C++ \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432<\/strong>. \u0414\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b pvs-studio-analyzer \u0438 CompilerCommandsAnalyzer: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043c\u0438 \u0441\u0442\u0430\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435. \u0421\u0430\u043c\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0432 <a href=\"https:\/\/pvs-studio.com\/ru\/docs\/manual\/6615\/\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435<\/a>.<\/p>\n<p>  <\/p>\n<p><strong>\u0418\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432<\/strong>:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0438\u0433\u0440\u0443 \u043d\u0430 \u043f\u043e\u0438\u0441\u043a \u043e\u0448\u0438\u0431\u043e\u043a \u0432 C# \u043a\u043e\u0434\u0435: <a href=\"https:\/\/quiz.pvs-studio.com\/ru\/csharp\/\">\u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c<\/a>;<\/li>\n<li>\u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0440\u0430\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 &#171;\u041a\u0442\u043e \u0442\u044b \u0432 \u043c\u0438\u0440\u0435 C++&#187;: <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/quest\/who_you_are_in_cpp\/\">\u0443\u0437\u043d\u0430\u0442\u044c<\/a>.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0440\u0438\u0430\u043b \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c PVS-Studio 7.20 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/pvs-studio.com\/ru\/pvs-studio\/try-free\/\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u0435\u0441\u0441-\u0440\u0435\u043b\u0438\u0437\u044b \u0438 \u0441\u0430\u043c\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, <a href=\"https:\/\/pvs-studio.com\/ru\/subscribe\/\">\u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c<\/a> \u043d\u0430 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438.<\/p>\n<p>  <\/p>\n<h2 id=\"podrobno\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e<\/h2>\n<p>  <\/p>\n<h3 id=\"uluchsheniya-analizatora\">\u0423\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430<\/h3>\n<p>  <\/p>\n<p><strong>OWASP Top 10 2021: \u0438\u0449\u0438\u0442\u0435 \u0434\u0435\u0444\u0435\u043a\u0442\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438\u0437 \u0432\u0441\u0435\u0445 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0440\u0435\u043b\u0438\u0437\u0435 7.20 \u043c\u044b \u043f\u043e\u043a\u0440\u044b\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e \u0438\u0437 OWASP Top 10 2021 \u2013 A06. \u0422\u0435\u043f\u0435\u0440\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e PVS-Studio \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u0434\u0435\u0444\u0435\u043a\u0442\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438\u0437 \u0432\u0441\u0435\u0445 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u0432 OWASP Top 10. <\/p>\n<p>  <\/p>\n<p>\u041d\u0430 <a href=\"https:\/\/pvs-studio.com\/ru\/pvs-studio\/sast\/owasptopten\/\">\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435<\/a> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438\u0449\u0443\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0438\u0437 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438.<\/p>\n<p>  <\/p>\n<p><strong>SCA: \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 C# \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u044f\u0437\u0432\u0438\u043c\u043e, \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 c \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438. \u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u0430\u0442\u044c &#171;\u043e\u043f\u0430\u0441\u043d\u044b\u0435&#187; \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 SCA-\u0440\u0435\u0448\u0435\u043d\u0438\u044f (Software Composition Analysis).<\/p>\n<p>  <\/p>\n<p>PVS-Studio \u0434\u043b\u044f C# \u0442\u0435\u043f\u0435\u0440\u044c \u0442\u043e\u0436\u0435 \u0438\u0449\u0435\u0442 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0434\u0435\u0444\u0435\u043a\u0442\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0438\u0437 \u043a\u0430\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u0435\u0441\u043b\u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u0441 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u2013 \u0432\u044b\u0434\u0430\u0451\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043a \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u0443 <a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v5625\/\">V5625<\/a>.<\/p>\n<p>  <\/p>\n<p><strong>Unreal Engine: \u0431\u043e\u043b\u044c\u0448\u0435 \u0445\u043e\u0440\u043e\u0448\u0438\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439, \u043c\u0435\u043d\u044c\u0448\u0435 \u043b\u043e\u0436\u043d\u044b\u0445<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u0412 Unreal Engine 5.0.3 <a href=\"https:\/\/github.com\/EpicGames\/UnrealEngine\/pull\/8999\">\u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438 \u0431\u0430\u0433<\/a> \u0441 \u043f\u043e\u0438\u0441\u043a\u043e\u043c PVS-Studio. \u0422\u0435\u043f\u0435\u0440\u044c \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c UE 5 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0437 workaround&#8217;\u043e\u0432.<\/p>\n<p>  <\/p>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, PVS-Studio \u0442\u0435\u043f\u0435\u0440\u044c \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u043e\u0434 Unreal Engine \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0432\u044b\u0434\u0430\u0451\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u043b\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e \u0442\u0438\u043f\u0430\u0445, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0445 \u0434\u043b\u044f \u0434\u0432\u0438\u0436\u043a\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0431 \u0430\u043d\u0430\u043b\u043e\u0433\u0430\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 C++.<\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/manual\/0043\/\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a> \u043e\u0431 \u0430\u043d\u0430\u043b\u0438\u0437\u0435 Unreal Engine \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432.<\/p>\n<p>  <\/p>\n<p><strong>\u041a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 C \u0438 C++ \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432: \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0443\u0442\u0438\u043b\u0438\u0442, \u043d\u043e\u0432\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u041c\u044b \u0443\u043b\u0443\u0447\u0448\u0438\u043b\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 C \u0438 C++ \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432: pvs-studio-analyzer \u0438 CompilerCommandsAnalyzer. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u0438 \u043b\u0443\u0447\u0448\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u0442\u0438\u043f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435. \u0415\u0441\u043b\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0433\u043e \u0432\u0441\u0451 \u0436\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0442\u0438\u043f \u0432\u0440\u0443\u0447\u043d\u0443\u044e (\u0441\u043c. \u0444\u043b\u0430\u0433 &#8216;&#8212;compiler&#8217;).<\/p>\n<p>  <\/p>\n<p>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u0444\u043b\u0430\u0433\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438 \u043a\u043e\u0434\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0432 <a href=\"https:\/\/pvs-studio.com\/ru\/docs\/manual\/6615\/\">\u043d\u043e\u0432\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>.<\/p>\n<p>  <\/p>\n<h3 id=\"novye-diagnostiki\">\u041d\u043e\u0432\u044b\u0435 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438<\/h3>\n<p>  <\/p>\n<p>C, C++:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v1086\/\">V1086<\/a>. Call of the &#8216;Foo&#8217; function will lead to buffer underflow.<\/li>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v1087\/\">V1087<\/a>. Upper bound of case range is less than its lower bound. This case may be unreachable.<\/li>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v1088\/\">V1088<\/a>. No objects are passed to the &#8216;std::scoped_lock&#8217; constructor. No locking will be performed. This can cause concurrency issues.<\/li>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v1089\/\">V1089<\/a>. Waiting on condition variable without predicate. A thread can wait indefinitely or experience a spurious wake up.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>C#:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3177\/\">V3177<\/a>. Logical literal belongs to second operator with a higher priority. It is possible literal was intended to belong to &#8216;??&#8217; operator instead.<\/li>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v5624\/\">V5624<\/a>. OWASP. Use of potentially tainted data in configuration may lead to security issues.<\/li>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v5625\/\">V5625<\/a>. OWASP. Referenced package contains vulnerability.<\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"raznoe\">\u0420\u0430\u0437\u043d\u043e\u0435<\/h3>\n<p>  <\/p>\n<p><strong>\u0420\u0430\u0441\u0441\u044b\u043b\u043a\u0438 \u043f\u0440\u0435\u0441\u0441-\u0440\u0435\u043b\u0438\u0437\u043e\u0432 \u0438 \u043b\u0443\u0447\u0448\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439<\/strong>. <a href=\"https:\/\/pvs-studio.com\/ru\/subscribe\/\">\u041f\u043e\u0434\u043f\u0438\u0448\u0438\u0442\u0435\u0441\u044c<\/a>, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u043f\u0440\u0435\u0441\u0441-\u0440\u0435\u043b\u0438\u0437\u044b. \u0412\u044b\u0431\u043e\u0440\u043a\u0430 \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0440\u0430\u0437 \u0432 \u043c\u0435\u0441\u044f\u0446, \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0440\u0435\u043b\u0438\u0437\u0430\u0445 \u2013 \u0440\u0430\u0437 \u0432 \u0434\u0432\u0430.<\/p>\n<p>  <\/p>\n<p>\u0418\u0441\u0442\u043e\u0440\u0438\u044e \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0440\u0430\u0441\u0441\u044b\u043b\u043e\u043a \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/0979\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a>.<\/p>\n<p>  <\/p>\n<p><strong>\u0418\u0433\u0440\u0430: \u043d\u0430\u0439\u0434\u0438 \u043e\u0448\u0438\u0431\u043a\u0443 \u0432 \u043a\u043e\u0434\u0435 \u043d\u0430 C#<\/strong>. \u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0433\u0440\u0430 \u043d\u0430 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0438 \u0434\u043b\u044f C# (\u0440\u0430\u043d\u044c\u0448\u0435 \u0431\u044b\u043b\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f C++). <\/p>\n<p>  <\/p>\n<p>\u0421\u0443\u0442\u044c \u0438\u0433\u0440\u044b: <\/p>\n<p>  <\/p>\n<ul>\n<li>\u0435\u0441\u0442\u044c 10 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u043e\u0434\u0430. \u0412\u0441\u0435 \u2013 \u0438\u0437 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432;<\/li>\n<li>\u043a\u0430\u0436\u0434\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0443. \u0415\u0441\u0442\u044c 60 \u0441\u0435\u043a\u0443\u043d\u0434, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u0435\u0451;<\/li>\n<li>\u043d\u0430\u0431\u0438\u0440\u0430\u0435\u0442\u0435 \u043e\u0447\u043a\u0438, \u0432 \u043a\u043e\u043d\u0446\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<\/li>\n<\/ul>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/import.viva64.com\/docx\/blog\/0980_Release_7_20_ru\/image2.png\" alt=\"0980_Release_7_20_ru\/image2.png\" data-src=\"https:\/\/import.viva64.com\/docx\/blog\/0980_Release_7_20_ru\/image2.png\"\/><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0438\u0433\u0440\u0430\u0442\u044c: <a href=\"https:\/\/quiz.pvs-studio.com\/ru\/csharp\/\">\u0432\u0435\u0440\u0441\u0438\u044f \u0434\u043b\u044f C#<\/a>, <a href=\"https:\/\/quiz.pvs-studio.com\/ru\/cpp\/\">\u0432\u0435\u0440\u0441\u0438\u044f \u0434\u043b\u044f C++<\/a>. <\/p>\n<p>  <\/p>\n<p>\u0414\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0441 \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c, \u043a\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u0430\u0433-\u0445\u0430\u043d\u0442\u0435\u0440. \ud83d\ude09<\/p>\n<p>  <\/p>\n<p><strong>\u0422\u0435\u0441\u0442: \u043a\u0442\u043e \u0442\u044b \u0438\u0437 \u043c\u0438\u0440\u0430 C++<\/strong>. \u0420\u0430\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0441\u043a\u0430\u0436\u0435\u0442, \u043a\u0442\u043e \u0432\u044b \u0432 \u043c\u0438\u0440\u0435 C++. \u041f\u043e\u0434\u043e\u0439\u0434\u0451\u0442, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0432\u043b\u0435\u0447\u044c\u0441\u044f \u043d\u0430 5 \u043c\u0438\u043d\u0443\u0442 \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0433\u043e\u043b\u043e\u0432\u0443.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/import.viva64.com\/docx\/blog\/0980_Release_7_20_ru\/image3.png\" alt=\"0980_Release_7_20_ru\/image3.png\" data-src=\"https:\/\/import.viva64.com\/docx\/blog\/0980_Release_7_20_ru\/image3.png\"\/><\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0439\u0442\u0438 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/quest\/who_you_are_in_cpp\/\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<p>  <\/p>\n<p><strong>\u041f\u043e\u0447\u0438\u0442\u0430\u0442\u044c<\/strong>. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0442\u0435\u0439, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 PVS-Studio \u0441 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0440\u0435\u043b\u0438\u0437\u0430:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0421\u0442\u0430\u0442\u044c\u0438 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u043b\u0438 \u043c\u0435\u0436\u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0432 C++ \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445: <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/cpp\/0963\/\">\u0447\u0430\u0441\u0442\u044c 1<\/a>, <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/cpp\/0965\/\">\u0447\u0430\u0441\u0442\u044c 2<\/a>.<\/li>\n<li>\u041f\u043e\u0447\u0435\u043c\u0443 \u0432 \u0421++ \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 delete[]? \u041e\u0442\u0432\u0435\u0442 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/cpp\/0973\/\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/li>\n<li>\u0412 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0976\/\">\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u0435\u0449\u0451 \u0440\u0430\u0437 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 data flow \u0430\u043d\u0430\u043b\u0438\u0437\u0435 C# \u043a\u043e\u0434\u0430.<\/li>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/0975\/\">\u0421\u0442\u0430\u0442\u044c\u044f<\/a> \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c PVS-Studio, \u043d\u043e \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u044f \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043d\u0430\u0447\u0430\u043b\u044c\u0441\u0442\u0432\u0430 \u0438\u043b\u0438 \u043a\u043e\u043b\u043b\u0435\u0433. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441 \u043e\u043f\u0430\u0441\u0435\u043d\u0438\u044f\u043c\u0438, \u0438\u0449\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c.<\/li>\n<\/ul>\n<p>  <\/p>\n<p><strong>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c<\/strong>. \u041d\u0430 TechLead Conf 2022 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a SAST-\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438\u0449\u0443\u0442 \u0434\u0435\u0444\u0435\u043a\u0442\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438: <a href=\"https:\/\/youtu.be\/cREwHy4H3jM\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>.<\/p>\n<p>  <\/p>\n<p><strong>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c PVS-Studio 7.20<\/strong> \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <a href=\"https:\/\/pvs-studio.com\/ru\/pvs-studio\/download\/\">\u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435<\/a>, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0440\u0438\u0430\u043b \u2013 <a href=\"https:\/\/pvs-studio.com\/ru\/pvs-studio\/download\/#trial_form\">\u0442\u0443\u0442<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <\/p>\n<div class=\"tm-article-poll\">\n<div class=\"tm-notice tm-article-poll__notice tm-notice_positive\"><!----> <\/p>\n<div class=\"tm-notice__inner\"><!----> <\/p>\n<div data-test-id=\"notice-content\" class=\"tm-notice__content\"><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/company\/pvs-studio\/blog\/683252\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__header\">\u041a\u0430\u043a \u0432\u0430\u043c \u0442\u0430\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043f\u0440\u0435\u0441\u0441-\u0440\u0435\u043b\u0438\u0437\u0430? \u041a\u0440\u0430\u0442\u043a\u0430\u044f \u0432\u044b\u0436\u0438\u043c\u043a\u0430 \u0438 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f<\/div>\n<div class=\"tm-article-poll__answers\">\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">             80%           <\/span> <span class=\"tm-article-poll__answer-label\">\u041f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f<\/span> <span class=\"tm-article-poll__answer-votes\">             4           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width:80%;\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">             20%           <\/span> <span class=\"tm-article-poll__answer-label\">\u041d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f<\/span> <span class=\"tm-article-poll__answer-votes\">             1           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width:20%;\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__stats\">        \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 5 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.          \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 2 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.      <\/div>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/683252\/\"> https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/683252\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><img decoding=\"async\" src=\"https:\/\/import.viva64.com\/docx\/blog\/0980_Release_7_20_ru\/image1.png\" alt=\"0980_Release_7_20_ru\/image1.png\" data-src=\"https:\/\/import.viva64.com\/docx\/blog\/0980_Release_7_20_ru\/image1.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0435\u0441\u0441-\u0440\u0435\u043b\u0438\u0437\u0435 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442: \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043a\u0440\u0430\u0442\u043a\u043e \u0438\u0437\u043b\u043e\u0436\u0435\u043d\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435. \u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u0434\u0435\u0442\u0430\u043b\u0438, \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u044b \u0441 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c. \u0412\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0442\u043e, \u0447\u0442\u043e \u0432\u0430\u043c \u0431\u043b\u0438\u0436\u0435.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-337205","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=337205"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337205\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=337205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=337205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=337205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}