{"id":292688,"date":"2019-07-29T09:00:42","date_gmt":"2019-07-29T09:00:42","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=292688"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=292688","title":{"rendered":"\ufeff\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Electronic Arts \u043f\u043e\u0447\u0442\u0438 \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u041d\u0430\u0448\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u043b\u0451\u043a \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 Electronic Arts \u043d\u0430 GitHub. \u041e\u043d \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0438 \u0438\u0437 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u0438 \u0442\u0440\u0451\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e C++ \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a: EASTL, EAStdC, EABase, EAThread, EATest, EAMain \u0438 EAAssert. \u041f\u0440\u043e\u0435\u043a\u0442\u044b \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0442\u043e\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c\u0438 (\u043e\u043a\u043e\u043b\u043e 10 \u0444\u0430\u0439\u043b\u043e\u0432), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u00ab\u0441\u0430\u043c\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u00bb \u0438\u0437 20 \u0444\u0430\u0439\u043b\u043e\u0432 \ud83d\ude00 \u041d\u043e \u043d\u0430\u0448\u043b\u0438, \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435! \u041f\u043e\u043a\u0430 \u043f\u0438\u0441\u0430\u043b\u0430\u0441\u044c \u0437\u0430\u043c\u0435\u0442\u043a\u0430, \u043c\u044b \u0441 \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c\u0438 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0440\u043d\u043e \u043e\u0431\u0441\u0443\u0434\u0438\u043b\u0438 \u0438\u0433\u0440\u044b \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 EA \u0438 \u0435\u0451 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044e \ud83d\ude00<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/4ba\/12e\/b0f\/4ba12eb0fdd18e78ae45db2fcb3aee3d.png\" alt=\"Picture 1\"><\/div>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  <a href=\"https:\/\/www.ea.com\/\">Electronic Arts (EA)<\/a> \u2014 \u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0430\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0432\u0438\u0434\u0435\u043e\u0438\u0433\u0440. \u041d\u0430 \u0441\u0430\u0439\u0442\u0435 GitHub \u0443 \u043d\u0435\u0451 \u0435\u0441\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 <a href=\"https:\/\/github.com\/electronicarts\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a> \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e C++ \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u042d\u0442\u043e C++ \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: EASTL, EAStdC, EABase, EAThread, EATest, EAMain \u0438 EAAssert. \u041e\u043d\u0438 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435 \u0438 \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 <a href=\"https:\/\/www.viva64.com\/ru\/pvs-studio-download\/\">PVS-Studio<\/a> \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u00ab\u0441\u0430\u043c\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u00bb \u0438\u0437 \u043d\u0438\u0445 \u2014 <a href=\"https:\/\/github.com\/electronicarts\/EAStdC\">EAStdC<\/a> (20 \u0444\u0430\u0439\u043b\u043e\u0432). \u041f\u0440\u0438 \u0442\u0430\u043a\u0438\u0445 \u043e\u0431\u044a\u0451\u043c\u0430\u0445 <a href=\"https:\/\/www.viva64.com\/ru\/b\/0158\/\">\u0441\u043b\u043e\u0436\u043d\u043e<\/a> \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u0434\u0430 \u0432 \u0446\u0435\u043b\u043e\u043c. \u041f\u0440\u043e\u0441\u0442\u043e \u043e\u0446\u0435\u043d\u0438\u0442\u0435 5 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u0438 \u0440\u0435\u0448\u0438\u0442\u0435 \u0441\u0430\u043c\u0438.<\/p>\n<h2>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 1<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v524\/\">V524<\/a> It is odd that the body of &#8216;&gt;&gt;&#8217; function is fully equivalent to the body of &#8216;&lt;&lt;&#8216; function. EAFixedPoint.h 287<\/p>\n<pre><code class=\"cpp\">template &lt;class  T,   int  upShiftInt, int downShiftInt,   int  upMulInt,   int downDivInt&gt;  struct FPTemplate {   ....   FPTemplate operator&lt;&lt;(int numBits) const { return value &lt;&lt; numBits; }   FPTemplate operator&gt;&gt;(int numBits) const { return value &lt;&lt; numBits; }    FPTemplate&amp; operator&lt;&lt;=(int numBits) { value &lt;&lt;= numBits; return *this;}   FPTemplate&amp; operator&gt;&gt;=(int numBits) { value &gt;&gt;= numBits; return *this;}   .... }<\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0441\u0434\u0432\u0438\u0433\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0443 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043d\u0438\u0445, \u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b &lt;&lt; \u0438 &gt;&gt;. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u044d\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 Copy-Paste-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<h2>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 2<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v557\/\">V557<\/a> Array overrun is possible. The value of &#8216;nFormatLength&#8217; index could reach 16. EASprintfOrdered.cpp 246<\/p>\n<pre><code class=\"cpp\">static const int kSpanFormatCapacity = 16;  struct Span8 {   ....   char mFormat[kSpanFormatCapacity];   .... };  static int OVprintfCore(....) {   ....   EA_ASSERT(nFormatLength &lt; kSpanFormatCapacity);   if(nFormatLength &lt; kSpanFormatCapacity)     spans[spanIndex].mFormat[nFormatLength++] = *p;                        \/\/ &lt;=   else     return -1;    switch(*p)   {     case 'b': case 'd': case 'i': case 'u': case 'o': case 'x': case 'X':     case 'g': case 'G': case 'e': case 'E': case 'f': case 'F': case 'a':     case 'A': case 'p': case 'c': case 'C': case 's': case 'S': case 'n':     {       \/\/ Finalize the current span.       spans[spanIndex].mpEnd = p + 1;       spans[spanIndex].mFormat[nFormatLength] = 0;                         \/\/ &lt;=       spans[spanIndex].mFormatChar = *p;       if(++spanIndex == kSpanCapacity)         break;   .... }<\/code><\/pre>\n<p>  \u041c\u0430\u0441\u0441\u0438\u0432 <i>spans[spanIndex].mFormat<\/i> \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 <i>16 <\/i> \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0442.\u0435. \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438\u043c\u0435\u0435\u0442 \u0438\u043d\u0434\u0435\u043a\u0441 <i>15<\/i>. \u0421\u0435\u0439\u0447\u0430\u0441 \u043a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>OVprintfCore<\/i> \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0442\u0430\u043a, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0438\u043d\u0434\u0435\u043a\u0441 <i>nFormatLength<\/i> \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u2014 <i>15<\/i>, \u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442 \u0434\u043e <i>16<\/i>. \u0414\u0430\u043b\u0435\u0435 \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0435 <i>switch <\/i> \u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d \u0432\u044b\u0445\u043e\u0434 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n<p>  \u042d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d \u0435\u0449\u0451 \u0432 2 \u043c\u0435\u0441\u0442\u0430:<\/p>\n<ul>\n<li>V557 Array overrun is possible. The value of &#8216;nFormatLength&#8217; index could reach 16. EASprintfOrdered.cpp 614<\/li>\n<li>V557 Array overrun is possible. The value of &#8216;nFormatLength&#8217; index could reach 16. EASprintfOrdered.cpp 977<\/li>\n<\/ul>\n<p>  <\/p>\n<h2>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 3<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v560\/\">V560<\/a> A part of conditional expression is always true: (result &gt;= 0). EASprintfOrdered.cpp 489<\/p>\n<pre><code class=\"cpp\">static int OVprintfCore(....) {   ....   for(result = 1; (result &gt;= 0) &amp;&amp; (p &lt; pEnd); ++p)   {     if(pWriteFunction8(p, 1, pWriteFunctionContext8, kWFSIntermediate) &lt; 0)       return -1;     nWriteCountSum += result;   }   .... }<\/code><\/pre>\n<p>  \u0423\u0441\u043b\u043e\u0432\u0438\u0435 <i>result &gt;= 0<\/i> \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u0442\u0438\u043d\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <i>result <\/i> \u043d\u0438\u0433\u0434\u0435 \u0432 \u0446\u0438\u043a\u043b\u0435 \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f. \u041a\u043e\u0434 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0438\u043c\u0435\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u0434\u0435.<\/p>\n<p>  \u042d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d \u0435\u0449\u0451 \u0432 2 \u043c\u0435\u0441\u0442\u0430:<\/p>\n<ul>\n<li>V560 A part of conditional expression is always true: (result &gt;= 0). EASprintfOrdered.cpp 852<\/li>\n<li>V560 A part of conditional expression is always true: (result &gt;= 0). EASprintfOrdered.cpp 1215<\/li>\n<\/ul>\n<p>  <\/p>\n<h2>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 4<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v1009\/\">V1009<\/a> Check the array initialization. Only the first element is initialized explicitly. The rest elements are initialized with zeros. EASprintfOrdered.cpp 151<\/p>\n<pre><code class=\"cpp\">static int OVprintfCore(....) {   ....   int spanArgOrder[kArgCapacity] = { -1 };   .... }<\/code><\/pre>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u043e\u0439, \u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442\u044c, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <i>-1 <\/i> \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 <i>spanArgOrder<\/i>, \u0430 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0.<\/p>\n<p>  \u042d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d \u0435\u0449\u0451 \u0432 2 \u043c\u0435\u0441\u0442\u0430:<\/p>\n<ul>\n<li>V1009 Check the array initialization. Only the first element is initialized explicitly. The rest elements are initialized with zeros. EASprintfOrdered.cpp 518<\/li>\n<li>V1009 Check the array initialization. Only the first element is initialized explicitly. The rest elements are initialized with zeros. EASprintfOrdered.cpp 881<\/li>\n<\/ul>\n<p>  <\/p>\n<h2>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 5<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v728\/\">V728<\/a> An excessive check can be simplified. The &#8216;(A &amp;&amp; !B) || (!A &amp;&amp; B)&#8217; expression is equivalent to the &#8216;bool(A) != bool(B)&#8217; expression. int128.h 1242<\/p>\n<pre><code class=\"cpp\">inline void int128_t::Modulus(....) const {   ....   bool bDividendNegative = false;   bool bDivisorNegative = false;   ....   if(    (bDividendNegative &amp;&amp; !bDivisorNegative)      || (!bDividendNegative &amp;&amp;  bDivisorNegative))   {     quotient.Negate();   }   .... }<\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 \u0431\u044b\u043b \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430, \u043d\u043e \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0434\u043b\u0438\u043d\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c. \u0414\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u043b\u043e, \u0435\u0441\u043b\u0438 \u043c\u044b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043c \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u043a\u0430\u043a \u0441\u043e\u0432\u0435\u0442\u0443\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440:<\/p>\n<pre><code class=\"cpp\">if( bDividendNegative != bDivisorNegative) {   quotient.Negate(); }<\/code><\/pre>\n<p>  \u041a\u043e\u0434 \u0441\u0442\u0430\u043b \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u0440\u043e\u0447\u0435, \u0447\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u043a\u0438 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u041a\u0430\u043a \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0442\u0440\u0435\u0445 \u043c\u0435\u0441\u0442\u0430\u0445, \u043f\u0440\u0438\u0447\u0451\u043c \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0444\u0430\u0439\u043b\u0430. \u0414\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u043e\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0442.\u043a. \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043a\u043e\u0434\u0430. \u0410 \u0435\u0441\u043b\u0438 \u0432 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430, \u0442\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0435\u0437\u043a\u043e \u0441\u043d\u0438\u0436\u0430\u0435\u0442\u0441\u044f \u0438\u0437-\u0437\u0430 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043e\u043a \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043a\u043e\u0434\u0443.<\/p>\n<p>  \u0411\u0443\u0434\u0435\u043c \u043d\u0430\u0434\u0435\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e\u0442 \u0435\u0449\u0451 \u0447\u0442\u043e-\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u0438 \u043c\u044b \u0432\u043d\u043e\u0432\u044c \u0432\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u0432 \u044d\u0442\u043e\u0442 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 :). \u041d\u0443 \u0430 \u043f\u043e\u043a\u0430 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u043c \u0441\u043a\u0430\u0447\u0430\u0442\u044c <a href=\"https:\/\/www.viva64.com\/ru\/pvs-studio-download\/\">PVS-Studio<\/a> \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b.<\/p>\n<p><a href=\"https:\/\/habr.com\/en\/company\/pvs-studio\/blog\/461677\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/898\/3b6\/5a7\/8983b65a74adb29a2113eba12fbec3f1.png\" align=\"left\"><\/a><\/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: Svyatoslav Razmyslov. <a href=\"https:\/\/habr.com\/en\/company\/pvs-studio\/blog\/461677\/\">Almost Perfect Libraries by Electronic Arts<\/a>.<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <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\/company\/pvs-studio\/blog\/461679\/\"> https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/461679\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u041d\u0430\u0448\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u043b\u0451\u043a \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 Electronic Arts \u043d\u0430 GitHub. \u041e\u043d \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0438 \u0438\u0437 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u0438 \u0442\u0440\u0451\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e C++ \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a: EASTL, EAStdC, EABase, EAThread, EATest, EAMain \u0438 EAAssert. \u041f\u0440\u043e\u0435\u043a\u0442\u044b \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0442\u043e\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c\u0438 (\u043e\u043a\u043e\u043b\u043e 10 \u0444\u0430\u0439\u043b\u043e\u0432), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u00ab\u0441\u0430\u043c\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u00bb \u0438\u0437 20 \u0444\u0430\u0439\u043b\u043e\u0432 \ud83d\ude00 \u041d\u043e \u043d\u0430\u0448\u043b\u0438, \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435! \u041f\u043e\u043a\u0430 \u043f\u0438\u0441\u0430\u043b\u0430\u0441\u044c \u0437\u0430\u043c\u0435\u0442\u043a\u0430, \u043c\u044b \u0441 \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c\u0438 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0440\u043d\u043e \u043e\u0431\u0441\u0443\u0434\u0438\u043b\u0438 \u0438\u0433\u0440\u044b \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 EA \u0438 \u0435\u0451 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044e \ud83d\ude00<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/4ba\/12e\/b0f\/4ba12eb0fdd18e78ae45db2fcb3aee3d.png\" alt=\"Picture 1\"><\/div>\n<p>  <\/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-292688","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/292688","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=292688"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/292688\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}