{"id":409288,"date":"2024-06-29T20:42:02","date_gmt":"2024-06-29T20:42:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=409288"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=409288","title":{"rendered":"<span>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 RPCS3 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e PVS-Studio<\/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>RPCS3 \u2013 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u043d\u0441\u043e\u043b\u044c PS3. \u041e\u043d \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f: \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0431\u044b\u043b\u0430 \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u0433\u0440\u044b \u0438\u0437 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430. \u042d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u043e\u0432\u043e\u0434 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u2013 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0439.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/c7d\/156\/f1c\/c7d156f1c49a1ec607de9aca78a1e872.png\" alt=\"0886_rpcs3_ru\/image1.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c7d\/156\/f1c\/c7d156f1c49a1ec607de9aca78a1e872.png\"\/><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"vvedenie\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u0441\u0438\u0441\u0442\u044b\u0439. \u041e\u043d \u043d\u0430\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 300 \u0442\u044b\u0441\u044f\u0447 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 \u043d\u0430 C++ \u0438 \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0442\u044f\u043d\u0435\u0442 \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u0432 \u0447\u0438\u0441\u043b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c:<\/p>\n<p>  <\/p>\n<ul>\n<li>llvm \u2013 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u0432 \u0438 \u0443\u0442\u0438\u043b\u0438\u0442. \u041a \u0441\u043b\u043e\u0432\u0443, \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/cpp\/0871\/\">LLVM 13<\/a>;<\/li>\n<li>ffmpeg \u2013 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u0435\u0434\u0438\u0430\u0444\u0430\u0439\u043b\u0430\u043c\u0438;<\/li>\n<li>curl \u2013 \u043d\u0443\u0436\u043d\u0430 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0441\u0435\u0442\u044c\u044e \u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u043c HTTP;<\/li>\n<li>zlib \u2013 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u0436\u0430\u0442\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0430\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c DEFLATE.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0414\u043b\u044f GUI \u0447\u0430\u0441\u0442\u0438 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f Qt, \u043e\u0434\u043d\u0430\u043a\u043e \u043e\u043d \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/ccc\/f6b\/f13\/cccf6bf13eb0ef2750410803f7f999ad.png\" alt=\"0886_rpcs3_ru\/image2.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/ccc\/f6b\/f13\/cccf6bf13eb0ef2750410803f7f999ad.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u044f\u0437\u044b\u043a\u0430 C++ \u2013 \u0441\u0432\u0435\u0436\u0438\u0439 C++20. PVS-Studio \u0445\u043e\u0440\u043e\u0448\u043e \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0432\u0435\u0434\u044c \u043c\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043d\u0430\u0434 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439. \u0414\u0430, \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043d\u043e \u043c\u044b \u0438\u0445 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c. \u0412 \u0446\u0435\u043b\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u043e\u0441\u043b\u0443\u0436\u0438\u043b\u0430 \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0442\u0435\u0441\u0442\u043e\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043d\u043e\u0432\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0431\u043e\u0440\u043e\u0447\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 CMake. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u2013 GCC 11.2 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a\u0443\u044e-\u0442\u043e constexpr-\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e, \u043e\u0434\u043d\u0430\u043a\u043e Clang 12 \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0441\u043e \u0441\u0431\u043e\u0440\u043a\u043e\u0439 \u043e\u0442\u043b\u0438\u0447\u043d\u043e. \u0421\u0431\u043e\u0440\u043a\u0443 \u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b \u043f\u043e\u0434 devel-\u0432\u0435\u0440\u0441\u0438\u0435\u0439 Ubuntu, \u0442\u0430\u043a \u0447\u0442\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u043d\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0434 Linux \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/cpp\/0851\/\">\u043c\u0435\u0436\u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430<\/a> \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">cmake -S. -Bbuild -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DCMAKE_BUILD_TYPE=Debug \\           -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ cmake --build build -j$(nproc) pvs-studio-analyzer analyze -f .\/build\/compile_commands.json -j`nproc` \\           -o pvs.log -e 3rdparty\/ -e llvm\/ --intermodular<\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0442\u043e \u0436\u0435, \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \u2013 \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043e\u0448\u0438\u0431\u043a\u0430\u043c!<\/p>\n<p>  <\/p>\n<h2 id=\"ne-pishi-v-std-brat\">\u041d\u0435 \u043f\u0438\u0448\u0438 \u0432 std, \u0431\u0440\u0430\u0442<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v1061\/\">V1061<\/a> Extending the &#8216;std&#8217; namespace may result in undefined behavior. shared_ptr.hpp 1131<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">namespace std {   template &lt;typename T>   void swap(stx::single_ptr&lt;T>&amp; lhs, stx::single_ptr&lt;T>&amp; rhs) noexcept   {     lhs.swap(rhs);   }    template &lt;typename T>   void swap(stx::shared_ptr&lt;T>&amp; lhs, stx::shared_ptr&lt;T>&amp; rhs) noexcept   {     lhs.swap(rhs);   } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 C++ \u044f\u0432\u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0438\u043c\u0451\u043d <em>std<\/em>, \u0430 C++20 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <em>swap<\/em> \u2013 \u0447\u0430\u0441\u0442\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0442\u0430\u043a\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <em>swap<\/em> \u0432 \u0442\u043e\u043c \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0438\u043c\u0451\u043d, \u0433\u0434\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u043a\u043b\u0430\u0441\u0441 (<em>stx<\/em>);<\/li>\n<li>\u0432 \u0431\u043b\u043e\u043a\u0435, \u0433\u0434\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0432\u044b\u0437\u043e\u0432 <em>swap<\/em>, \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443 <em>using std::swap;<\/em><\/li>\n<li>\u0432\u044b\u0437\u043e\u0432 swap \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0451\u043d <em>std<\/em>, \u0442.\u0435. \u043d\u0435\u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c: <em>swap(obj1, obj2);<\/em><\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c Argument-Dependent Lookup (ADL), \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <em>swap<\/em>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0440\u044f\u0434\u043e\u043c \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c. \u0410 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0451\u043d <em>std<\/em> \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043e.<\/p>\n<p>  <\/p>\n<h2 id=\"udalyonnyy-memset\">\u0423\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 memset<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v597\/\">V597<\/a> The compiler could delete the &#8216;memset&#8217; function call, which is used to flush &#8216;cty&#8217; object. The memset_s() function should be used to erase the private data. aes.cpp 596<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">\/*  * AES key schedule (decryption)  *\/ int aes_setkey_dec(....) {     aes_context cty;      \/\/ ....  done:     memset( &amp;cty, 0, sizeof( aes_context ) );      return( 0 ); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0430\u0441\u0442\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u2013 \u0432\u044b\u0437\u043e\u0432 <em>memset<\/em> \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0451\u043d \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0439, \u0430 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0441\u0442\u0430\u043d\u0443\u0442\u0441\u044f \u043b\u0435\u0436\u0430\u0442\u044c \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u0414\u0430, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u0434\u0430 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0432\u0440\u044f\u0434 \u043b\u0438 \u044d\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u0430\u043a\u0443\u044e-\u043b\u0438\u0431\u043e \u0443\u0433\u0440\u043e\u0437\u0443 \u0443\u0442\u0435\u0447\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.<\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0431\u044b\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u0435\u0449\u0451 \u0441\u043b\u0443\u0447\u0430\u0438 \u0442\u0430\u043a\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v597\/\">V597<\/a> The compiler could delete the &#8216;memset&#8217; function call, which is used to flush &#8216;tmpbuf&#8217; buffer. The memset_s() function should be used to erase the private data. sha1.cpp 371<\/li>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v597\/\">V597<\/a> The compiler could delete the &#8216;memset&#8217; function call, which is used to flush &#8216;ctx&#8217; object. The memset_s() function should be used to erase the private data. sha1.cpp 396<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"izbytochnaya-proverka\">\u0418\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v547\/\">V547<\/a> Expression &#8216;rawcode == CELL_KEYC_KPAD_NUMLOCK&#8217; is always false. cellKb.cpp 126<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">enum Keys {   \/\/ ....   CELL_KEYC_KPAD_NUMLOCK          = 0x53,   \/\/ .... };  u16 cellKbCnvRawCode(u32 arrange, u32 mkey, u32 led, u16 rawcode) {   \/\/ ....    \/\/ CELL_KB_RAWDAT   if (rawcode &lt;= 0x03       || rawcode == 0x29       || rawcode == 0x35       || (rawcode >= 0x39 &amp;&amp; rawcode &lt;= 0x53)    \/\/ &lt;=       || rawcode == 0x65       || rawcode == 0x88       || rawcode == 0x8A       || rawcode == 0x8B)   {     return rawcode | 0x8000;   }    const bool is_alt = mkey &amp; (CELL_KB_MKEY_L_ALT | CELL_KB_MKEY_R_ALT);   const bool is_shift = mkey &amp; (CELL_KB_MKEY_L_SHIFT | CELL_KB_MKEY_R_SHIFT);   const bool is_caps_lock = led &amp; (CELL_KB_LED_CAPS_LOCK);   const bool is_num_lock = led &amp; (CELL_KB_LED_NUM_LOCK);    \/\/ CELL_KB_NUMPAD    if (is_num_lock)   {     if (rawcode == CELL_KEYC_KPAD_NUMLOCK)  return 0x00 | 0x4000; \/\/ &lt;=     if (rawcode == CELL_KEYC_KPAD_SLASH)    return 0x2F | 0x4000;     if (rawcode == CELL_KEYC_KPAD_ASTERISK) return 0x2A | 0x4000;     if (rawcode == CELL_KEYC_KPAD_MINUS)    return 0x2D | 0x4000;     if (rawcode == CELL_KEYC_KPAD_PLUS)     return 0x2B | 0x4000;     if (rawcode == CELL_KEYC_KPAD_ENTER)    return 0x0A | 0x4000;     if (rawcode == CELL_KEYC_KPAD_0)        return 0x30 | 0x4000;     if (rawcode >= CELL_KEYC_KPAD_1 &amp;&amp; rawcode &lt;= CELL_KEYC_KPAD_9)       return (rawcode - 0x28) | 0x4000;   } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0430 \u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438: \u043e\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043d\u0438\u0436\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <em>rawcode<\/em> \u043d\u0430 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0435 <em>CELL_KEYC_KPAD_NUMLOCK<\/em>. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>CELL_KEYC_KPAD_NUMLOCK<\/em> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0447\u0438\u0441\u043b\u0443 0x53 \u2013 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043f\u043e\u0434 \u043f\u0435\u0440\u0432\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0438\u0436\u043d\u0438\u0439 <em>if<\/em> \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u041e\u0448\u0438\u0431\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432 \u0434\u0432\u0443\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u2013 \u043b\u0438\u0431\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u043d\u0435 \u0443\u0447\u0442\u0435\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b, \u043b\u0438\u0431\u043e \u0441\u0430\u043c\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u043d\u0435\u0432\u0435\u0440\u043d\u043e.<\/p>\n<p>  <\/p>\n<h2 id=\"vyhod-za-granicu-massiva\">\u0412\u044b\u0445\u043e\u0434 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v557\/\">V557<\/a> Array underrun is possible. The value of &#8216;month + \u2014 1&#8217; index could reach -1. cellRtc.cpp 1470<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">error_code cellRtcGetDaysInMonth(s32 year, s32 month) {   cellRtc.todo(\"cellRtcGetDaysInMonth(year=%d, month=%d)\", year, month);    if ((year &lt; 0) || (month &lt; 0) || (month > 12))   {     return CELL_RTC_ERROR_INVALID_ARG;   }    if (is_leap_year(year))   {     return not_an_error(DAYS_IN_MONTH[month + 11]);   }    return not_an_error(DAYS_IN_MONTH[month + -1]); \/\/ &lt;= }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0435 return \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043c\u0430\u0441\u0441\u0438\u0432\u0443 <em>DAYS_IN_MONTH<\/em> \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0442\u0438 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0443 -1, \u0442.\u043a. \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <em>month<\/em> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u043e 0.<\/p>\n<p>  <\/p>\n<p>\u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043e\u0448\u0438\u0431\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u2013 \u0441\u0443\u0434\u044f \u043f\u043e \u043a\u043e\u0434\u0443, \u043e\u0442\u0441\u0447\u0435\u0442 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0432\u0435\u0434\u0451\u0442\u0441\u044f \u0441 \u0435\u0434\u0438\u043d\u0438\u0446\u044b, \u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e <em>month<\/em> \u043c\u0435\u043d\u044c\u0448\u0435 0, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0434\u043e <em>month &lt; 1<\/em>.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u043d\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0430 \u043c\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 protobuf: <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/cpp\/0550\/\">31 \u0444\u0435\u0432\u0440\u0430\u043b\u044f<\/a>.<\/p>\n<p>  <\/p>\n<h2 id=\"oshibka-kopipasty\">\u041e\u0448\u0438\u0431\u043a\u0430 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u044b<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v519\/\">V519<\/a> The &#8216;evnt->color.white_x&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 51, 52. sys_uart.cpp 52<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">struct av_get_monitor_info_cmd : public ps3av_cmd {   bool execute(....) override   {     \/\/ ....     evnt->color.blue_x = 0xFFFF;     evnt->color.blue_y = 0xFFFF;     evnt->color.green_x = 0xFFFF;     evnt->color.green_y = 0xFFFF;     evnt->color.red_x = 0xFFFF;     evnt->color.red_y = 0xFFFF;     evnt->color.white_x = 0xFFFF;     evnt->color.white_x = 0xFFFF; \/\/ &lt;=     evnt->color.gamma = 100;     \/\/ ....   { };<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430: \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u0437\u0430\u0431\u044b\u043b\u0438 \u0432 \u043d\u0435\u0439 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0443\u0436\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e. \u0413\u043b\u0430\u0437\u0430\u043c\u0438 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443 \u0437\u0434\u0435\u0441\u044c \u0441\u043b\u043e\u0436\u043d\u043e, \u043d\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445.<\/p>\n<p>  <\/p>\n<h2 id=\"povtoryayuschayasya-proverka\">\u041f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0430\u044f\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v581\/\">V581<\/a> The conditional expressions of the &#8216;if&#8217; statements situated alongside each other are identical. Check lines: 4225, 4226. PPUTranslator.cpp 4226<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">void PPUTranslator::MTFSFI(ppu_opcode_t op) {   SetFPSCRBit(op.crfd * 4 + 0, m_ir->getInt1((op.i &amp; 8) != 0), false);   if (op.crfd != 0) SetFPSCRBit(op.crfd * 4 + 1,                                 m_ir->getInt1((op.i &amp; 4) != 0), false);   if (op.crfd != 0) SetFPSCRBit(op.crfd * 4 + 2,                                 m_ir->getInt1((op.i &amp; 2) != 0), false);   SetFPSCRBit(op.crfd * 4 + 3, m_ir->getInt1((op.i &amp; 1) != 0), false);    if (op.rc) SetCrFieldFPCC(1); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0435\u0449\u0451 \u043e\u0434\u043d\u0443 \u043e\u0448\u0438\u0431\u043a\u0443 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u044b \u2013 \u0432\u0438\u0434\u0438\u043c\u043e, \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0438 \u0437\u0430\u0431\u044b\u043b\u0438 \u0435\u0433\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c, \u043e\u0434\u043d\u0430\u043a\u043e then-\u0447\u0430\u0441\u0442\u044c \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0440\u0443\u0433\u0430\u044f.<\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u044d\u0442\u043e \u043d\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0442\u0430\u043a\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438. \u0412 \u043a\u043e\u0434\u0435 \u0431\u044b\u043b\u043e \u0435\u0449\u0451 \u043e\u0434\u043d\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v581\/\">V581<\/a> The conditional expressions of the &#8216;if&#8217; statements situated alongside each other are identical. Check lines: 758, 759. RSXThread.cpp 759<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"oshibka-v-cikle\">\u041e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0446\u0438\u043a\u043b\u0435<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v560\/\">V560<\/a> A part of conditional expression is always true: i != 1. PPUTranslator.cpp 4252<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">void PPUTranslator::MTFSF(ppu_opcode_t op) {   const auto value = GetFpr(op.frb, 32, true);    for (u32 i = 16; i &lt; 20; i++)   {     if (i != 1 &amp;&amp; i != 2 &amp;&amp; (op.flm &amp; (128 >> (i \/ 4))) != 0)     {       SetFPSCRBit(i, Trunc(m_ir->CreateLShr(value, i ^ 31),                   GetType&lt;bool>()), false);     }   }    if (op.rc) SetCrFieldFPCC(1); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <em>i<\/em> \u043d\u0430 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e 1 \u0438 2 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u2013 \u0446\u0438\u043a\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u043e\u0442 16 \u0434\u043e 20. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0441\u044f \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0437\u0430\u0431\u044b\u043b\u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435.<\/p>\n<p>  <\/p>\n<h2 id=\"razymenovanie-ukazatelya-pered-proverkoy\">\u0420\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v595\/\">V595<\/a> The &#8216;cached_dest&#8217; pointer was utilized before it was verified against nullptr. Check lines: 3059, 3064. texture_cache.h 3059<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">template &lt;typename surface_store_type, typename blitter_type, typename ...Args> blit_op_result upload_scaled_image(....) {   \/\/ ....    if (!use_null_region) [[likely]]   {     \/\/ Do preliminary analysis     typeless_info.analyse();      blitter.scale_image(cmd, vram_texture, dest_texture, src_area, dst_area,                         interpolate, typeless_info);   }   else   {     cached_dest->dma_transfer(cmd, vram_texture, src_area, \/\/ &lt;=                               dst_range, dst.pitch);   }    blit_op_result result = true;    if (cached_dest) \/\/ &lt;=   {     result.real_dst_address = cached_dest->get_section_base();     result.real_dst_size = cached_dest->get_section_size();   }   else   {     result.real_dst_address = dst_base_address;     result.real_dst_size = dst.pitch * dst_dimensions.height;   }    return result; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u0447\u0430\u0441\u0442\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u2013 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f. \u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0447\u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u044d\u0442\u043e\u0433\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u0434\u0430.<\/p>\n<p>  <\/p>\n<h2 id=\"proverka-na-null-rezultata-new\">\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 null \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 new<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v668\/\">V668<\/a> There is no sense in testing the &#8216;movie&#8217; pointer against null, as the memory was allocated using the &#8216;new&#8217; operator. The exception will be generated in the case of memory allocation error. movie_item.h 56<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">void init_movie(const QString&amp; path) {   if (path.isEmpty() || !m_icon_callback) return;    if (QMovie* movie = new QMovie(path); movie &amp;&amp; movie->isValid())   {     m_movie = movie;   }   else   {     delete movie;     return;   }    QObject::connect(m_movie, &amp;QMovie::frameChanged, m_movie, m_icon_callback); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 nullptr \u0437\u0434\u0435\u0441\u044c \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u0430: \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 <em>new<\/em> \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u0431\u0440\u043e\u0448\u0435\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 <em>std::bad_alloc<\/em>. \u0415\u0441\u043b\u0438 \u0431\u0440\u043e\u0441\u0430\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f, \u0442\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e <a href=\"https:\/\/en.cppreference.com\/w\/cpp\/memory\/new\/nothrow\">std::nothrow<\/a> \u2013 \u0442\u043e\u0433\u0434\u0430 \u043a\u0430\u043a \u0440\u0430\u0437 \u0432\u0435\u0440\u043d\u0451\u0442\u0441\u044f \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c.<\/p>\n<p>  <\/p>\n<p>\u0415\u0449\u0451 \u043c\u0435\u0441\u0442\u0430 \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u043e\u0439:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v668\/\">V668<\/a> There is no sense in testing the &#8216;m_render_creator&#8217; pointer against null, as the memory was allocated using the &#8216;new&#8217; operator. The exception will be generated in the case of memory allocation error. emu_settings.cpp 75<\/li>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v668\/\">V668<\/a> There is no sense in testing the &#8216;trophy_slider_label&#8217; pointer against null, as the memory was allocated using the &#8216;new&#8217; operator. The exception will be generated in the case of memory allocation error. trophy_manager_dialog.cpp 216<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"utechka-pamyati\">\u0423\u0442\u0435\u0447\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v773\/\">V773<\/a> The function was exited without releasing the &#8216;buffer&#8217; pointer. A memory leak is possible. rsx_debugger.cpp 380<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">u8* convert_to_QImage_buffer(rsx::surface_color_format format,                              std::span&lt;const std::byte> orig_buffer,                              usz width, usz height) noexcept {   u8* buffer = static_cast&lt;u8*>(std::malloc(width * height * 4));   if (!buffer || width == 0 || height == 0)   {     return nullptr;   }   for (u32 i = 0; i &lt; width * height; i++)   {     \/\/ depending on original buffer, the colors may need to be reversed     const auto &amp;colors = get_value(orig_buffer, format, i);     buffer[0 + i * 4] = colors[0];     buffer[1 + i * 4] = colors[1];     buffer[2 + i * 4] = colors[2];     buffer[3 + i * 4] = 255;   }   return buffer; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u0438\u0434\u0438\u043c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 <em>malloc<\/em>, \u0438 \u0435\u0441\u043b\u0438 \u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f <em>nullptr<\/em>, \u0442\u043e \u0432\u044b\u0445\u043e\u0434\u0438\u043c. \u041f\u043e\u043a\u0430 \u0432\u0441\u0451 \u0445\u043e\u0440\u043e\u0448\u043e. \u041d\u043e \u0434\u0430\u043b\u044c\u0448\u0435 \u0438\u0434\u0443\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 <em>width<\/em> \u0438 <em>height<\/em> \u2013 \u043e\u043d\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438, \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f <em>nullptr<\/em>. \u0414\u0430, \u043f\u0440\u0438 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0435 \u044d\u0442\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043d\u0443\u043b\u044e malloc \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0435\u043b\u044f\u0442\u044c 0 \u0431\u0430\u0439\u0442, \u043e\u0434\u043d\u0430\u043a\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0447\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a\u0430\u043a <em>nullptr<\/em>, \u0442\u0430\u043a \u0438 \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u043b\u044c\u0437\u044f \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0442\u044c. \u041d\u043e \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u0442\u044c \u0435\u0433\u043e \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043d\u0443\u0436\u043d\u043e, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435, <em>free<\/em> \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0438 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c. \u0422\u0430\u043a \u0447\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">if (!buffer || width == 0 || height == 0) {   std::free(buffer)   return nullptr; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041b\u0438\u0431\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 0 \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u0431\u0440\u0430\u0442\u044c \u2013 \u0446\u0438\u043a\u043b \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">if (!buffer) {   return nullptr; } for (u32 i = 0; i &lt; width * height; i++) {   \/\/ .... } return buffer;<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"nekorrektnaya-proverka-razmera\">\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v557\/\">V557<\/a> Array overrun is possible. The &#8216;pad&#8217; index is pointing beyond array bound. pad_thread.cpp 191<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">void pad_thread::SetRumble(const u32 pad, u8 largeMotor, bool smallMotor) {   if (pad > m_pads.size())     return;    if (m_pads[pad]->m_vibrateMotors.size() >= 2)   {     m_pads[pad]->m_vibrateMotors[0].m_value = largeMotor;     m_pads[pad]->m_vibrateMotors[1].m_value = smallMotor ? 255 : 0;   } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 > \u0432\u043c\u0435\u0441\u0442\u043e >=, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>pad<\/em> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 <em>m_pads<\/em>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0443 \u0435\u0441\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0445\u043e\u0434\u0430 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0443.<\/p>\n<p>  <\/p>\n<h2 id=\"sdvig-ne-v-tu-storonu\">\u0421\u0434\u0432\u0438\u0433 \u043d\u0435 \u0432 \u0442\u0443 \u0441\u0442\u043e\u0440\u043e\u043d\u0443<\/h2>\n<p>  <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/w\/v547\/\">V547<\/a> Expression &#8216;current_version &lt; threshold_version&#8217; is always false. Unsigned type value is never &lt; 0. device.cpp 91<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">void physical_device::create(VkInstance context,                              VkPhysicalDevice pdev,                              bool allow_extensions) {   else if (get_driver_vendor() == driver_vendor::NVIDIA)   { #ifdef _WIN32     \/\/ SPIRV bugs were fixed in 452.28 for windows     const u32 threshold_version = (452u >> 22) | (28 >> 14); #else     \/\/ SPIRV bugs were fixed in 450.56 for linux\/BSD     const u32 threshold_version = (450u >> 22) | (56 >> 14); #endif     \/\/ Clear patch and revision fields     const auto current_version = props.driverVersion &amp; ~0x3fffu;     if (current_version &lt; threshold_version)     {       rsx_log.error(....);     }   } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 <em>threshold_version<\/em> \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u0430 0, \u0442.\u043a. \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0434\u0432\u0438\u0433\u0430 \u0432\u043b\u0435\u0432\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0434\u0432\u0438\u0433 \u0432\u043f\u0440\u0430\u0432\u043e. \u0421\u0434\u0432\u0438\u0433 \u0432\u043f\u0440\u0430\u0432\u043e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u0435\u043d \u0434\u0435\u043b\u0435\u043d\u0438\u044e \u043d\u0430 \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0434\u0432\u043e\u0439\u043a\u0438 \u2013 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430 2^22 \u0438 2^14 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u0430 \u0438\u0437 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043c\u0435\u043d\u044c\u0448\u0435 \u044d\u0442\u0438\u0445 \u0441\u0442\u0435\u043f\u0435\u043d\u0435\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u0435\u043d 0.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u043c\u0435\u0441\u0442\u043e \u0431\u044b\u043b\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0438\u0437 \u043a\u043e\u0434\u0430 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438, \u043d\u043e \u043f\u0440\u0438 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0431\u044b\u043b\u0438.<\/p>\n<p>  <\/p>\n<h2 id=\"zaklyuchenie\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043d\u0430\u0448\u0451\u043b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430: \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u0431\u044b\u043b\u0438 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u044b \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0433\u0434\u0435 \u043a\u043e\u0434 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f. \u041d\u0430\u0434\u0435\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u044d\u0442\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0443 \u0431\u0430\u0433\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0436\u0435\u043b\u0430\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0438\u0433\u0440 \u0438 \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0410 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/pvs-studio.com\/pvs-studio\/try-free\/?utm_source=habr&amp;utm_medium=articles&amp;utm_content=rpcs3&amp;utm_term=link_try-free\">\u0442\u0440\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e<\/a> \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u044b \u043d\u0430\u0439\u0434\u0451\u0442\u0435 \u0443 \u0441\u0435\u0431\u044f. \u0410 \u0435\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0435 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u0443\u044e \u0438\u0433\u0440\u0443, \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0441\u0442\u043e open-source \u043f\u0440\u043e\u0435\u043a\u0442, \u0442\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/0614\/\">\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/a>.<\/p>\n<p>  <\/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. <a href=\"https:\/\/habr.com\/en\/company\/pvs-studio\/blog\/589269\/\">PVS-Studio to check the RPCS3 emulator<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/589271\/\"> https:\/\/habr.com\/ru\/articles\/589271\/<\/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>RPCS3 \u2013 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u043d\u0441\u043e\u043b\u044c PS3. \u041e\u043d \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f: \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0431\u044b\u043b\u0430 \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u0433\u0440\u044b \u0438\u0437 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430. \u042d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u043e\u0432\u043e\u0434 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u2013 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0439.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/c7d\/156\/f1c\/c7d156f1c49a1ec607de9aca78a1e872.png\" alt=\"0886_rpcs3_ru\/image1.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c7d\/156\/f1c\/c7d156f1c49a1ec607de9aca78a1e872.png\"\/><\/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-409288","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/409288","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=409288"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/409288\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=409288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=409288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=409288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}