{"id":291029,"date":"2018-10-19T10:40:02","date_gmt":"2018-10-19T06:40:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=291029"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2018-10-19T06:40:02","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=291029","title":{"rendered":"\ufeffLibreOffice: \u0441\u0442\u0440\u0430\u0448\u043d\u044b\u0439 \u0441\u043e\u043d \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/bf0\/ff5\/4b4\/bf0ff54b40fb8527f7bf79edc4050d37.png\"><\/div>\n<p>  LibreOffice \u2014 \u043c\u043e\u0449\u043d\u044b\u0439 \u043e\u0444\u0438\u0441\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u0435\u043d \u0434\u043b\u044f \u0447\u0430\u0441\u0442\u043d\u043e\u0433\u043e, \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u0415\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0434\u0435\u043b\u0430\u044e\u0442 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0444\u0435\u0440\u0430\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b Microsoft Office. \u041a\u043e\u043c\u0430\u043d\u0434\u0435 PVS-Studio \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043a\u043e\u0434 \u0442\u0430\u043a\u0438\u0445 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0439\u0442\u0438 \u0432 \u043d\u0438\u0445 \u043e\u0448\u0438\u0431\u043a\u0438. \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u043a\u043e. \u041f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u043e\u0448\u0438\u0431\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u044b\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0434\u0435\u0444\u0435\u043a\u0442\u044b, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  <a href=\"https:\/\/www.libreoffice.org\/\">LibreOffice<\/a> \u2014 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u043f\u043d\u044b\u0439 C++ \u043f\u0440\u043e\u0435\u043a\u0442. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u043e\u0431\u044a\u0451\u043c\u0430 \u2014 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0418, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0443 \u043a\u043e\u0434\u0430 LibreOffice \u043d\u0435 \u0443\u0434\u0430\u0451\u0442\u0441\u044f \u0443\u0434\u0435\u043b\u044f\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439, \u043d\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u043b\u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043e\u0441\u0438\u043b\u0438\u0442 \u0430\u043d\u0430\u043b\u0438\u0437 13\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0421\u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0441\u0431\u043e\u0440\u043a\u0435 \u043e\u0444\u0438\u0441\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 LibreOffice \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043e\u043a\u043e\u043b\u043e 8\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0422\u0430\u043a\u043e\u0439 \u043e\u0431\u044a\u0451\u043c \u043a\u043e\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c:  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/95d\/8f8\/322\/95d8f8322f57ac9af0206a3ef955e55e.png\"><\/div>\n<p><a name=\"habracut\"><\/a><br \/>  \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0448\u0438\u0431\u043e\u043a. \u041a\u0430\u0436\u0434\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0447\u0438\u043d\u044f\u0442\u044c \u0431\u043e\u043b\u044c \u0441\u043e\u0442\u043d\u044f\u043c \u0438 \u0442\u044b\u0441\u044f\u0447\u0430\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u043e\u0434\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u044b \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u043e\u0434\u043e\u043c \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u0445 \u0438\u043b\u0438 \u0438\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0445 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438. \u0414\u0443\u043c\u0430\u044e, \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0441\u044f, \u0447\u0442\u043e \u0440\u0435\u0447\u044c \u0438\u0434\u0451\u0442 \u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u0445 \u043a\u043e\u0434\u0430 :).<\/p>\n<p>  \u0414\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u043d\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435. \u041e\u0434\u043d\u0430\u043a\u043e \u0442\u0430\u043a\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u043a\u0430\u043a PVS-Studio, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043d\u0430\u0439\u0442\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u0435\u0449\u0451 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043e\u0431\u044a\u0451\u043c \u0440\u0430\u0431\u043e\u0442, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u043e\u0442\u043b\u0430\u0434\u043a\u043e\u0439 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u043a\u043e\u0434\u0430\u0445 LibreOffice, \u0435\u0441\u043b\u0438 \u0432\u0437\u044f\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043a\u043e\u0434\u0430 <a href=\"https:\/\/www.viva64.com\/ru\/pvs-studio\/\">PVS-Studio<\/a>. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043e\u0431\u0448\u0438\u0440\u043d\u044b: Windows, Linux, macOS. \u0414\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u0437\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u043e\u0442\u0447\u0451\u0442 PVS-Studio, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 Windows.<\/p>\n<h2>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 2015 \u0433\u043e\u0434\u0443<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b28\/750\/671\/b28750671ffb2784af092ee21c716259.png\"><\/div>\n<p>  \u0412 \u043c\u0430\u0440\u0442\u0435 2015 \u0433\u043e\u0434\u0430 \u0431\u044b\u043b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u043f\u0435\u0440\u0432\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 LibreOffice (&#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0308\/\">\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 LibreOffice<\/a>&#171;) \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e PVS-Studio. \u0421 \u0442\u0435\u0445 \u043f\u043e\u0440 \u043e\u0444\u0438\u0441\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u043b\u0441\u044f \u043a\u0430\u043a \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0441\u0451 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a. \u0410 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u043e\u0448\u0438\u0431\u043e\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0438\u0441\u044c \u0441 \u0442\u0435\u0445 \u043f\u043e\u0440. \u0412\u043e\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438:<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v656\/\">V656<\/a> Variables &#8216;aVRP&#8217;, &#8216;aVPN&#8217; are initialized through the call to the same function. It&#8217;s probably an error or un-optimized code. Consider inspecting the &#8216;rSceneCamera.GetVRP()&#8217; expression. Check lines: 177, 178. viewcontactofe3dscene.cxx 178  <\/p>\n<pre><code class=\"cpp\">void ViewContactOfE3dScene::createViewInformation3D(....) {   ....   const basegfx::B3DPoint aVRP(rSceneCamera.GetVRP());   const basegfx::B3DVector aVPN(rSceneCamera.GetVRP());  \/\/ &lt;=   const basegfx::B3DVector aVUV(rSceneCamera.GetVUV());   .... }<\/code><\/pre>\n<p>  \u042d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430, \u043d\u043e \u0432\u043e\u0442 \u0447\u0442\u043e \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0432 \u0441\u0430\u043c\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a\u043e\u0434\u0430:<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v656\/\">V656<\/a> Variables &#8216;aSdvURL&#8217;, &#8216;aStrURL&#8217; are initialized through the call to the same function. It&#8217;s probably an error or un-optimized code. Consider inspecting the &#8216;pThm-&gt;GetSdvURL()&#8217; expression. Check lines: 658, 659. gallery1.cxx 659  <\/p>\n<pre><code class=\"cpp\">const INetURLObject&amp;  GetThmURL() const { return aThmURL; } const INetURLObject&amp;  GetSdgURL() const { return aSdgURL; } const INetURLObject&amp;  GetSdvURL() const { return aSdvURL; } const INetURLObject&amp;  GetStrURL() const { return aStrURL; }  bool Gallery::RemoveTheme( const OUString&amp; rThemeName ) {   ....   INetURLObject   aThmURL( pThm-&gt;GetThmURL() );   INetURLObject   aSdgURL( pThm-&gt;GetSdgURL() );   INetURLObject   aSdvURL( pThm-&gt;GetSdvURL() );   INetURLObject   aStrURL( pThm-&gt;GetSdvURL() ); \/\/ &lt;=   .... }<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0435\u0434\u0432\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u043c\u044b\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u043e\u0448\u0438\u0431\u043e\u043a.<\/p>\n<p>  \u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u043a\u043e\u0434\u0430:<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v656\/\">V656<\/a> Variables &#8216;nDragW&#8217;, &#8216;nDragH&#8217; are initialized through the call to the same function. It&#8217;s probably an error or un-optimized code. Consider inspecting the &#8216;rMSettings.GetStartDragWidth()&#8217; expression. Check lines: 471, 472. winproc.cxx 472  <\/p>\n<pre><code class=\"cpp\">class VCL_DLLPUBLIC MouseSettings {   ....   long GetStartDragWidth() const;   long GetStartDragHeight() const;   .... }  bool ImplHandleMouseEvent( .... ) {   ....   long nDragW  = rMSettings.GetStartDragWidth();   long nDragH  = rMSettings.GetStartDragWidth();   .... }<\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043b \u043e\u0448\u0438\u0431\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430. \u041d\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043a\u043e\u0434\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 \u043d\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f\u2026 \u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0445\u043e\u0436\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f:<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v656\/\">V656<\/a> Variables &#8216;defaultZoomX&#8217;, &#8216;defaultZoomY&#8217; are initialized through the call to the same function. It&#8217;s probably an error or un-optimized code. Consider inspecting the &#8216;pViewData-&gt;GetZoomX()&#8217; expression. Check lines: 5673, 5674. gridwin.cxx 5674  <\/p>\n<pre><code class=\"cpp\">OString ScGridWindow::getCellCursor(....) const {   ....    SCCOL nX = pViewData-&gt;GetCurX();   SCROW nY = pViewData-&gt;GetCurY();    Fraction defaultZoomX = pViewData-&gt;GetZoomX();   Fraction defaultZoomY = pViewData-&gt;GetZoomX(); \/\/ &lt;=   .... }<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0438 \u0432\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u0432 \u043a\u043e\u0434 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438.<\/p>\n<h2>\u041d\u0435 \u0434\u0430\u0439 \u0441\u0435\u0431\u044f \u043e\u0431\u043c\u0430\u043d\u0443\u0442\u044c<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/e64\/21a\/1a9\/e6421a1a9d0e05a1dff0c27f304ce403.png\"><\/div>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v765\/\">V765<\/a> A compound assignment expression &#8216;x -= x \u2014 &#8230;&#8217; is suspicious. Consider inspecting it for a possible error. swdtflvr.cxx 3509  <\/p>\n<pre><code class=\"cpp\">bool SwTransferable::PrivateDrop(...) {   ....   if ( rSrcSh.IsSelFrameMode() )   {     \/\/Hack: fool the special treatment     aSttPt -= aSttPt - rSrcSh.GetObjRect().Pos();   }   .... }<\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u00abHack\u00bb \u0431\u044b\u043b \u043d\u0430\u0439\u0434\u0435\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438 <a href=\"https:\/\/www.viva64.com\/ru\/w\/v765\/\">V765<\/a>. \u0415\u0441\u043b\u0438 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u043a\u043e\u0434\u0430 \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<p>  1-\u0439 \u0448\u0430\u0433:  <\/p>\n<pre><code class=\"cpp\">aSttPt = aSttPt - (aSttPt - rSrcSh.GetObjRect().Pos());<\/code><\/pre>\n<p>  2-\u0439 \u0448\u0430\u0433:  <\/p>\n<pre><code class=\"cpp\">aSttPt = aSttPt - aSttPt + rSrcSh.GetObjRect().Pos();<\/code><\/pre>\n<p>  3-\u0439 \u0448\u0430\u0433  <\/p>\n<pre><code class=\"cpp\">aSttPt = rSrcSh.GetObjRect().Pos();<\/code><\/pre>\n<p>  \u0418 \u0432 \u0447\u0451\u043c \u0442\u043e\u0433\u0434\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f Hack?<\/p>\n<p>  \u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443:<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v567\/\">V567<\/a> The modification of the &#8216;nCount&#8217; variable is unsequenced relative to another operation on the same variable. This may lead to undefined behavior. stgio.cxx 214  <\/p>\n<pre><code class=\"cpp\">FatError EasyFat::Mark(....) {   if( nCount &gt; 0 )   {     --nCount \/= GetPageSize();     nCount++;   }   .... }<\/code><\/pre>\n<p>  \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0432 \u0442\u0430\u043a\u0438\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430 \u044f\u0437\u044b\u043a\u0430. \u041f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 \u043f\u0440\u043e\u0449\u0435, \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435 \u0438 \u043d\u0430\u0434\u0451\u0436\u043d\u0435\u0435?<\/p>\n<h2>\u041a\u0430\u043a \u043d\u0435 \u043d\u0430\u0434\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0438 \u0432\u0435\u043a\u0442\u043e\u0440\u044b<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/d61\/38d\/483\/d6138d483ed86734a4b6d20405af255c.png\"><\/div>\n<p>  \u041f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043a\u0442\u043e-\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u0435\u043b\u0430\u043b \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438 \u0438 \u0432\u0435\u043a\u0442\u043e\u0440\u0430\u043c\u0438. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u044d\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v557\/\">V557<\/a> Array overrun is possible. The &#8216;nPageNum&#8217; index is pointing beyond array bound. pptx-epptooxml.cxx 1168  <\/p>\n<pre><code class=\"cpp\">void PowerPointExport::ImplWriteNotes(sal_uInt32 nPageNum) {   ....   \/\/ add slide implicit relation to notes   if (mpSlidesFSArray.size() &gt;= nPageNum)       addRelation(mpSlidesFSArray[ nPageNum ]-&gt;getOutputStream(),                   oox::getRelationship(Relationship::NOTESSLIDE),                   OUStringBuffer()                   .append(\"..\/notesSlides\/notesSlide\")                   .append(static_cast&lt;sal_Int32&gt;(nPageNum) + 1)                   .append(\".xml\")                   .makeStringAndClear());   .... }<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0440\u0430\u0432\u043d\u043e\u0435 <i>size() \u2014 1<\/i>. \u041d\u043e \u0432 \u044d\u0442\u043e\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043a\u043e\u0434\u0430 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u0438\u043d\u0434\u0435\u043a\u0441 <i>nPageNum <\/i> \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <i>mpSlidesFSArray.size()<\/i>, \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u044b\u0445\u043e\u0434 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u0438\u0437 \u00ab\u043c\u0443\u0441\u043e\u0440\u0430\u00bb.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v557\/\">V557<\/a> Array overrun is possible. The &#8216;mnSelectedMenu&#8217; index is pointing beyond array bound. checklistmenu.cxx 826  <\/p>\n<pre><code class=\"cpp\">void ScMenuFloatingWindow::ensureSubMenuNotVisible() {   if (mnSelectedMenu &lt;= maMenuItems.size() &amp;&amp;       maMenuItems[mnSelectedMenu].mpSubMenuWin &amp;&amp;       maMenuItems[mnSelectedMenu].mpSubMenuWin-&gt;IsVisible())   {       maMenuItems[mnSelectedMenu].mpSubMenuWin-&gt;ensureSubMenuNotVisible();   }    EndPopupMode(); }<\/code><\/pre>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0447\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043a\u043e\u0434\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0442\u0430\u043a\u0443\u044e \u0436\u0435 \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v557\/\">V557<\/a> Array overrun is possible. The &#8216;nXFIndex&#8217; index is pointing beyond array bound. xestyle.cxx 2613  <\/p>\n<pre><code class=\"cpp\">sal_Int32 XclExpXFBuffer::GetXmlStyleIndex( sal_uInt32 nXFIndex ) const {     OSL_ENSURE( nXFIndex &lt; maStyleIndexes.size(), \"....\" );     if( nXFIndex &gt; maStyleIndexes.size() )         return 0;   \/\/ should be caught\/debugged via above assert;     return maStyleIndexes[ nXFIndex ]; }<\/code><\/pre>\n<p>  \u0410 \u044d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u0434\u0432\u043e\u0439\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435! \u0412 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u043e\u043c \u043c\u0430\u043a\u0440\u043e\u0441\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0430, \u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0441\u043d\u043e\u0432\u0430 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0443, \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u0432 \u0432\u044b\u0445\u043e\u0434 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 \u0438\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430, \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u0443\u044e \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v554\/\">V554<\/a> Incorrect use of shared_ptr. The memory allocated with &#8216;new []&#8217; will be cleaned using &#8216;delete&#8217;. dx_vcltools.cxx 158  <\/p>\n<pre><code class=\"cpp\">struct RawRGBABitmap {   sal_Int32                     mnWidth;   sal_Int32                     mnHeight;   std::shared_ptr&lt; sal_uInt8 &gt;  mpBitmapData; };  RawRGBABitmap bitmapFromVCLBitmapEx( const ::BitmapEx&amp; rBmpEx ) {   ....   \/\/ convert transparent bitmap to 32bit RGBA   \/\/ ========================================    const ::Size aBmpSize( rBmpEx.GetSizePixel() );    RawRGBABitmap aBmpData;   aBmpData.mnWidth     = aBmpSize.Width();   aBmpData.mnHeight    = aBmpSize.Height();   aBmpData.mpBitmapData.reset( new sal_uInt8[ 4*aBmpData.mnWidth                                                *aBmpData.mnHeight ] );   .... }<\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0443, \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0449\u0443\u044e \u043a \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0430\u043c\u044f\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438. \u0414\u043b\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<pre><code class=\"cpp\">std::shared_ptr&lt; sal_uInt8[] &gt; mpBitmapData;<\/code><\/pre>\n<p>  <\/p>\n<h2>\u041a\u0430\u043a \u0434\u0432\u0430\u0436\u0434\u044b \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f \u0432 \u043c\u0430\u043a\u0440\u043e\u0441\u0430\u0445<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/ead\/1d2\/de0\/ead1d2de04413fc43dba4e42280f98ed.png\"><\/div>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v568\/\">V568<\/a> It&#8217;s odd that the argument of sizeof() operator is the &#8216;bTextFrame? aProps: aShapeProps&#8217; expression. wpscontext.cxx 134  <\/p>\n<pre><code class=\"cpp\">oox::core::ContextHandlerRef WpsContext::onCreateContext(....) {   ....   OUString aProps[] = { .... };   OUString aShapeProps[] = { .... };   for (std::size_t i = 0;        i &lt; SAL_N_ELEMENTS(bTextFrame ? aProps : aShapeProps);                \/\/1        ++i)     if (oInsets[i])       xPropertySet-&gt;setPropertyValue((bTextFrame ? aProps : aShapeProps)[i], \/\/2                                      uno::makeAny(*oInsets[i]));   .... }<\/code><\/pre>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432 \u0432\u0435\u0434\u0443\u0442 \u0441\u0435\u0431\u044f \u043d\u0435 \u043a\u0430\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \u0418\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u0430 \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043e\u0448\u0438\u0431\u043a\u0430\u043c. \u0412 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 #1 \u0438 #2 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430. \u041d\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u043c\u0430\u043a\u0440\u043e\u0441, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u044f. \u041e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0448\u0438\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/p>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 #1 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439:  <\/p>\n<pre><code class=\"cpp\">for (std::size_t i = 0;      i &lt; (sizeof (bTextFrame ? aProps : aShapeProps) \/           sizeof ((bTextFrame ? aProps : aShapeProps)[0]));      ++i)<\/code><\/pre>\n<p>  \u042d\u0442\u043e \u043d\u0430\u0448 \u0446\u0438\u043a\u043b \u0441 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u043c <i>SAL_N_ELEMENTS<\/i>. \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <i>sizeof<\/i> \u043d\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0435. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0434\u0430\u043b\u0451\u043a\u0438\u0435 \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432. \u041d\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u0438 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041d\u043e \u043f\u043e\u0442\u043e\u043c \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 2 \u043c\u0430\u043a\u0440\u043e\u0441\u0430 <i>SAL_N_ELEMENTS<\/i>! \u0422.\u0435. \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0440\u0430\u0441\u043a\u0440\u044b\u043b \u043d\u0435 \u0442\u043e\u0442 \u043c\u0430\u043a\u0440\u043e\u0441, \u043a\u0430\u043a \u0436\u0435 \u044d\u0442\u043e \u043c\u043e\u0433\u043b\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0442\u0438? \u041d\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u0430 \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432:  <\/p>\n<pre><code class=\"cpp\">#ifndef SAL_N_ELEMENTS #    if defined(__cplusplus) &amp;&amp;         ( defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus &gt;= 201103L )         \/*          * Magic template to calculate at compile time the number of elements          * in an array. Enforcing that the argument must be a array and not          * a pointer, e.g.          *  char *pFoo=\"foo\";          *  SAL_N_ELEMENTS(pFoo);          * fails while          *  SAL_N_ELEMENTS(\"foo\");          * or          *  char aFoo[]=\"foo\";          *  SAL_N_ELEMENTS(aFoo);          * pass          *          * Unfortunately if arr is an array of an anonymous class then we need          * C++0x, i.e. see          * http:\/\/www.open-std.org\/jtc1\/sc22\/wg21\/docs\/cwg_defects.html#757          *\/          template &lt;typename T, size_t S&gt; char (&amp;sal_n_array_size( T(&amp;)[S] ))[S]; #        define SAL_N_ELEMENTS(arr)     (sizeof(sal_n_array_size(arr))) #    else #        define SAL_N_ELEMENTS(arr)     (sizeof (arr) \/ sizeof ((arr)[0])) #    endif #endif<\/code><\/pre>\n<p>  \u0414\u0440\u0443\u0433\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043c\u0430\u043a\u0440\u043e\u0441\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0443\u044e \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a:<\/p>\n<ol>\n<li>\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u043c\u0430\u043a\u0440\u043e\u0441 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u0432 \u043a\u043e\u0434;<\/li>\n<li>\u0414\u0440\u0443\u0433\u0438\u043c \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u043c \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u0442.\u043a. \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0435 \u0438\u043d\u0441\u0442\u0430\u043d\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0432 \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430. \u0410 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0430\u043a\u0440\u043e\u0441\u0430 \u0442\u0435\u0440\u044f\u0435\u0442 \u0441\u043c\u044b\u0441\u043b.<\/li>\n<\/ol>\n<p>  <\/p>\n<h2>\u041e\u043f\u0435\u0447\u0430\u0442\u043e\u0447\u043a\u0438 \u0438 copy-paste<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/19d\/419\/905\/19d41990527e23e0654820cfcddcbe9a.png\"><\/div>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v1013\/\">V1013<\/a> Suspicious subexpression f1.Pitch == f2.CharSet in a sequence of similar comparisons. xmldlg_export.cxx 1251  <\/p>\n<pre><code class=\"cpp\">inline bool equalFont( Style const &amp; style1, Style const &amp; style2 ) {   awt::FontDescriptor const &amp; f1 = style1._descr;   awt::FontDescriptor const &amp; f2 = style2._descr;   return (       f1.Name == f2.Name &amp;&amp;       f1.Height == f2.Height &amp;&amp;       f1.Width == f2.Width &amp;&amp;       f1.StyleName == f2.StyleName &amp;&amp;       f1.Family == f2.Family &amp;&amp;       f1.CharSet == f2.CharSet &amp;&amp;    \/\/ &lt;=       f1.Pitch == f2.CharSet &amp;&amp;      \/\/ &lt;=       f1.CharacterWidth == f2.CharacterWidth &amp;&amp;       f1.Weight == f2.Weight &amp;&amp;       f1.Slant == f2.Slant &amp;&amp;       f1.Underline == f2.Underline &amp;&amp;       f1.Strikeout == f2.Strikeout &amp;&amp;       f1.Orientation == f2.Orientation &amp;&amp;       bool(f1.Kerning) == bool(f2.Kerning) &amp;&amp;       bool(f1.WordLineMode) == bool(f2.WordLineMode) &amp;&amp;       f1.Type == f2.Type &amp;&amp;       style1._fontRelief == style2._fontRelief &amp;&amp;       style1._fontEmphasisMark == style2._fontEmphasisMark       ); }<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u044b\u043c \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u043c \u0434\u043b\u044f \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0509\/\">\u0417\u043b\u043e \u0436\u0438\u0432\u0451\u0442 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f<\/a>&#171;, \u0435\u0441\u043b\u0438 \u043c\u044b \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0440\u0435\u0448\u0438\u043c \u0435\u0451 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c. \u0414\u0443\u043c\u0430\u044e, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0439\u0442\u0438 \u0442\u0430\u043a\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443 (\u043f\u0440\u043e\u043f\u0443\u0441\u043a <i>f2.Pitch<\/i>) \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u0440\u0430\u0439\u043d\u0435 \u043c\u0430\u043b\u0430. \u0410 \u0432\u044b \u043a\u0430\u043a \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0435?<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v501\/\">V501<\/a> There are identical sub-expressions &#8216;mpTable[ocArrayColSep] != mpTable[eOp]&#8217; to the left and to the right of the &#8216;&amp;&amp;&#8217; operator. formulacompiler.cxx 632  <\/p>\n<pre><code class=\"cpp\">void FormulaCompiler::OpCodeMap::putOpCode(....) {   ....   case ocSep:       bPutOp = true;       bRemoveFromMap = (mpTable[eOp] != \";\" &amp;&amp;               mpTable[ocArrayColSep] != mpTable[eOp] &amp;&amp;               mpTable[ocArrayColSep] != mpTable[eOp]);   break;   .... }<\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0431\u0435\u0437\u0434\u0443\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u043b \u0442\u0430\u043a\u043e\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u043b\u0438\u0448\u043d\u0438\u0439 \u0440\u0430\u0437, \u043d\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0432 \u043a\u043e\u0434\u0435 \u043d\u0435 \u043c\u0435\u0441\u0442\u043e \u0442\u0430\u043a\u0438\u043c \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0441\u0442\u044f\u043c.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v517\/\">V517<\/a> The use of &#8216;if (A) {&#8230;} else if (A) {&#8230;}&#8217; pattern was detected. There is a probability of logical error presence. Check lines: 781, 783. mysqlc_databasemetadata.cxx 781  <\/p>\n<pre><code class=\"cpp\">Reference&lt;XResultSet&gt; SAL_CALL ODatabaseMetaData::getColumns(....) {   ....   bool bIsCharMax = !xRow-&gt;wasNull();   if (sDataType.equalsIgnoreAsciiCase(\"year\"))       nColumnSize = sColumnType.copy(6, 1).toInt32();   else if (sDataType.equalsIgnoreAsciiCase(\"date\"))       \/\/ &lt;=       nColumnSize = 10;   else if (sDataType.equalsIgnoreAsciiCase(\"date\"))       \/\/ &lt;=       nColumnSize = 8;   else if (sDataType.equalsIgnoreAsciiCase(\"datetime\")            || sDataType.equalsIgnoreAsciiCase(\"timestamp\"))       nColumnSize = 19;   else if (!bIsCharMax)       nColumnSize = xRow-&gt;getShort(7);   else       nColumnSize = nCharMaxLen;   .... }<\/code><\/pre>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0432 \u043a\u043e\u0434\u0435 \u0431\u044b\u043b\u0430 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u0438\u0437-\u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <i>8<\/i> \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <i>nColumnSize<\/i> \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v523\/\">V523<\/a> The &#8216;then&#8217; statement is equivalent to the &#8216;else&#8217; statement. svdpdf.hxx 146  <\/p>\n<pre><code class=\"cpp\">\/\/\/ Transform the rectangle (left, right, top, bottom) by this Matrix. template &lt;typename T&gt; void Transform(....) {   ....   if (top &gt; bottom)       top = std::max(leftTopY, rightTopY);   else       top = std::min(leftTopY, rightTopY);    if (top &gt; bottom)       bottom = std::max(leftBottomY, rightBottomY);  \/\/ &lt;=   else       bottom = std::max(leftBottomY, rightBottomY);  \/\/ &lt;= }<\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>min()<\/i> \u0438 <i>max()<\/i>. \u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0438\u0437-\u0437\u0430 \u044d\u0442\u043e\u0439 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0447\u0442\u043e-\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u0442\u0441\u044f.<\/p>\n<h2>\u0421\u0442\u0440\u0430\u043d\u043d\u044b\u0435 \u0446\u0438\u043a\u043b\u044b<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/361\/175\/35d\/36117535d4e5edba8d6a11ce89ae5cbc.gif\"><\/div>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v533\/\">V533<\/a> It is likely that a wrong variable is being incremented inside the &#8216;for&#8217; operator. Consider reviewing &#8216;i&#8217;. javatypemaker.cxx 602  <\/p>\n<pre><code class=\"cpp\">void printConstructors(....) {   ....   for (std::vector&lt;                    unoidl::SingleInterfaceBasedServiceEntity::Constructor::                    Parameter &gt;::const_iterator j(i-&gt;parameters.begin());                    j != i-&gt;parameters.end(); ++i)   {       o &lt;&lt; \", \";       printType(o, options, manager, j-&gt;type, false);       if (j-&gt;rest) {           o &lt;&lt; \"...\";       }       o &lt;&lt; ' '         &lt;&lt; codemaker::java::translateUnoToJavaIdentifier(             u2b(j-&gt;name), \"param\");   }   .... }<\/code><\/pre>\n<p>  \u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <i>++i<\/i> \u0432 \u0446\u0438\u043a\u043b\u0435 \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. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0430\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c <i>++j<\/i>.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v756\/\">V756<\/a> The &#8216;nIndex2&#8217; counter is not used inside a nested loop. Consider inspecting usage of &#8216;nIndex&#8217; counter. treex.cxx 34  <\/p>\n<pre><code class=\"cpp\">SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {   OString sXHPRoot;   for (int nIndex = 1; nIndex != argc; ++nIndex)   {     if (std::strcmp(argv[nIndex], \"-r\") == 0)     {       sXHPRoot = OString( argv[nIndex + 1] );       for( int nIndex2 = nIndex+3; nIndex2 &lt; argc; nIndex2 = nIndex2 + 2 )       {         argv[nIndex-3] = argv[nIndex-1];         argv[nIndex-2] = argv[nIndex];       }       argc = argc - 2;       break;     }   }   common::HandledArgs aArgs;   if( !common::handleArguments(argc, argv, aArgs) )   {     WriteUsage();     return 1;   }   .... }<\/code><\/pre>\n<p>  \u0415\u0441\u0442\u044c \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u043e <b>\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u043c<\/b> \u0446\u0438\u043a\u043b\u0435 <i>for<\/i>. \u0422.\u043a. \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <i>nIndex <\/i> \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u0438\u0445 \u0438 \u0442\u0435\u0445 \u0436\u0435 \u0434\u0432\u0443\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0432\u0435\u0437\u0434\u0435 \u0432\u043c\u0435\u0441\u0442\u043e <i>nIndex <\/i> \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <b><i>nIndex2<\/i><\/b>.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v1008\/\">V1008<\/a> Consider inspecting the &#8216;for&#8217; operator. No more than one iteration of the loop will be performed. diagramhelper.cxx 292  <\/p>\n<pre><code class=\"cpp\">void DiagramHelper::setStackMode(     const Reference&lt; XDiagram &gt; &amp; xDiagram,     StackMode eStackMode ) {   ....   sal_Int32 nMax = aChartTypeList.getLength();   if( nMax &gt;= 1 )       nMax = 1;   for( sal_Int32 nT = 0; nT &lt; nMax; ++nT )   {     uno::Reference&lt; XChartType &gt; xChartType( aChartTypeList[nT] );     ....   }   .... }<\/code><\/pre>\n<p>  \u0426\u0438\u043a\u043b <i>for<\/i> \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043e 1 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438. \u041d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0437\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v612\/\">V612<\/a> An unconditional &#8216;return&#8217; within a loop. pormulti.cxx 891  <\/p>\n<pre><code class=\"cpp\">SwTextAttr const* MergedAttrIterMulti::NextAttr(....) {   ....   SwpHints const*const pHints(m_pNode-&gt;GetpSwpHints());   if (pHints)   {     while (m_CurrentHint &lt; pHints-&gt;Count())     {       SwTextAttr const*const pHint(pHints-&gt;Get(m_CurrentHint));       ++m_CurrentHint;       rpNode = m_pNode;       return pHint;     }   }   return nullptr;   .... }<\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0446\u0438\u043a\u043b\u0430 \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u0443\u0447\u0448\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440.<\/p>\n<p>  \u0415\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u043a\u0438\u0445 \u043c\u0435\u0441\u0442:<\/p>\n<ul>\n<li>V612 An unconditional &#8216;return&#8217; within a loop. txtfrm.cxx 144<\/li>\n<li>V612 An unconditional &#8216;return&#8217; within a loop. txtfrm.cxx 202<\/li>\n<li>V612 An unconditional &#8216;return&#8217; within a loop. txtfrm.cxx 279<\/li>\n<\/ul>\n<p>  <\/p>\n<h2>\u0421\u0442\u0440\u0430\u043d\u043d\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/9f6\/73a\/01b\/9f673a01bb41965f47539e9311546201.png\"><\/div>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v637\/\">V637<\/a> Two opposite conditions were encountered. The second condition is always false. Check lines: 281, 285. authfld.cxx 281  <\/p>\n<pre><code class=\"cpp\">sal_uInt16  SwAuthorityFieldType::GetSequencePos(sal_IntPtr nHandle) {   ....   SwTOXSortTabBase* pOld = aSortArr[i].get();   if(*pOld == *pNew)   {     \/\/only the first occurrence in the document     \/\/has to be in the array     if(*pOld &lt; *pNew)       pNew.reset();     else \/\/ remove the old content       aSortArr.erase(aSortArr.begin() + i);     break;   }   .... }<\/code><\/pre>\n<p>  \u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0432\u044b\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f. \u0427\u0442\u043e-\u0442\u043e \u0441 \u044d\u0442\u0438\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u043c \u043a\u043e\u0434\u0430 \u044f\u0432\u043d\u043e \u043d\u0435 \u0442\u0430\u043a.<\/p>\n<p>  \u0422\u0430\u043a\u043e\u0439 \u0436\u0435 \u043a\u043e\u0434 \u0437\u0430\u043c\u0435\u0447\u0435\u043d \u0438 \u0432 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435:<\/p>\n<ul>\n<li>V637 Two opposite conditions were encountered. The second condition is always false. Check lines: 1827, 1829. doctxm.cxx 1827<\/li>\n<\/ul>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v590\/\">V590<\/a> Consider inspecting this expression. The expression is excessive or contains a misprint. fileurl.cxx 55  <\/p>\n<pre><code class=\"cpp\">OUString convertToFileUrl(char const * filename, ....) {   ....   if ((filename[0] == '.') || (filename[0] != SEPARATOR))   {     ....   }   .... }<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0433\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u0434\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041f\u043e \u043c\u043e\u0442\u0438\u0432\u0430\u043c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u044f \u0434\u0430\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e: &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0390\/\">\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 C\/C++. \u041a\u0430\u043a \u043e\u0448\u0438\u0431\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044b<\/a>&#171;.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v590\/\">V590<\/a> Consider inspecting this expression. The expression is excessive or contains a misprint. unoobj.cxx 1895  <\/p>\n<pre><code class=\"cpp\">uno::Sequence&lt; beans::PropertyState &gt; SwUnoCursorHelper::GetPropertyStates(....) {   ....   if (((SW_PROPERTY_STATE_CALLER_SWX_TEXT_PORTION == eCaller)  ||        (SW_PROPERTY_STATE_CALLER_SWX_TEXT_PORTION_TOLERANT == eCaller)) &amp;&amp;       pEntry-&gt;nWID &lt; FN_UNO_RANGE_BEGIN &amp;&amp;       pEntry-&gt;nWID &gt; FN_UNO_RANGE_END  &amp;&amp;       pEntry-&gt;nWID &lt; RES_CHRATR_BEGIN &amp;&amp;       pEntry-&gt;nWID &gt; RES_TXTATR_END )   {       pStates[i] = beans::PropertyState_DEFAULT_VALUE;   }   .... }<\/code><\/pre>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u044c, \u0432 \u0447\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0431\u044b\u043b \u0432\u044b\u043f\u0438\u0441\u0430\u043d \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430:  <\/p>\n<pre><code class=\"cpp\">if (((SW_PROPERTY_STATE_CALLER_SWX_TEXT_PORTION == eCaller)  ||      (SW_PROPERTY_STATE_CALLER_SWX_TEXT_PORTION_TOLERANT == eCaller)) &amp;&amp;     pEntry-&gt;nWID &lt; (20000 + 1600) &amp;&amp;     pEntry-&gt;nWID &gt; ((20000 + 2400) + 199)  &amp;&amp;     pEntry-&gt;nWID &lt; 1 &amp;&amp;     pEntry-&gt;nWID &gt; 63 ) {     pStates[i] = beans::PropertyState_DEFAULT_VALUE; }<\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a, \u0447\u0442\u043e \u043d\u0438 \u043e\u0434\u043d\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u0432\u0445\u043e\u0434\u0438\u0442 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0432 4 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430, \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v590\/\">V590<\/a> Consider inspecting the &#8216;* pData &lt;= MAXLEVEL &amp;&amp; * pData &lt;= 9&#8217; expression. The expression is excessive or contains a misprint. ww8par2.cxx 756  <\/p>\n<pre><code class=\"cpp\">const sal_uInt8 MAXLEVEL = 10;  void SwWW8ImplReader::Read_ANLevelNo(....) {   ....   \/\/ Range WW:1..9 -&gt; SW:0..8 no bullets \/ numbering   if (*pData &lt;= MAXLEVEL &amp;&amp; *pData &lt;= 9)   {     ....   }   else if( *pData == 10 || *pData == 11 )   {       \/\/ remember type, the rest happens at Sprm 12       m_xStyles-&gt;mnWwNumLevel = *pData;   }   .... }<\/code><\/pre>\n<p>  \u0418\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <i>10<\/i>, \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u043c. \u042d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<pre><code class=\"cpp\">if (*pData &lt;= 9) {   .... } else if( *pData == 10 || *pData == 11 ) {   .... }<\/code><\/pre>\n<p>  \u041d\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u0431\u044b\u043b\u0430 \u0434\u0440\u0443\u0433\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v757\/\">V757<\/a> It is possible that an incorrect variable is compared with nullptr after type conversion using &#8216;dynamic_cast&#8217;. Check lines: 2709, 2710. menu.cxx 2709  <\/p>\n<pre><code class=\"cpp\">void PopupMenu::ClosePopup(Menu* pMenu) {   MenuFloatingWindow* p = dynamic_cast&lt;MenuFloatingWindow*&gt;(ImplGetWindow());   PopupMenu *pPopup = dynamic_cast&lt;PopupMenu*&gt;(pMenu);   if (p &amp;&amp; pMenu)     p-&gt;KillActivePopup(pPopup); }<\/code><\/pre>\n<p>  \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0443. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 <i>p<\/i> \u0438 <i>pPopup<\/i>.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v668\/\">V668<\/a> There is no sense in testing the &#8216;m_pStream&#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. zipfile.cxx 408  <\/p>\n<pre><code class=\"cpp\">ZipFile::ZipFile(const std::wstring &amp;FileName) :     m_pStream(nullptr),     m_bShouldFree(true) {     m_pStream = new FileStream(FileName.c_str());     if (m_pStream &amp;&amp; !isZipStream(m_pStream))     {         delete m_pStream;         m_pStream = nullptr;     } }<\/code><\/pre>\n<p>  \u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c <i>new<\/i>, \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043d\u0443\u043b\u0451\u043c. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 \u044f\u0437\u044b\u043a\u0430 C++, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438, \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <i>new<\/i> \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 <i>std::bad_alloc<\/i>. \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 LibreOffice \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0432\u0441\u0435\u0433\u043e 45 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043c\u0435\u0441\u0442, \u0447\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043e\u0431\u044a\u0451\u043c\u0430 \u043a\u043e\u0434\u0430. \u041d\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0431\u0440\u0430\u0442\u044c \u043b\u0438\u0448\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<pre><code class=\"cpp\">m_pStream = new (std::nothrow) FileStream(FileName.c_str());<\/code><\/pre>\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. toolbox2.cxx 1042  <\/p>\n<pre><code class=\"cpp\">void ToolBox::SetItemImageMirrorMode( sal_uInt16 nItemId,                                        bool bMirror ) {   ImplToolItems::size_type nPos = GetItemPos( nItemId );    if ( nPos != ITEM_NOTFOUND )   {     ImplToolItem* pItem = &amp;mpData-&gt;m_aItems[nPos];      if ((pItem-&gt;mbMirrorMode &amp;&amp; !bMirror) ||   \/\/ &lt;=        (!pItem-&gt;mbMirrorMode &amp;&amp;  bMirror))     \/\/ &lt;=     {       ....     }   } }<\/code><\/pre>\n<p>  \u041e\u0447\u0435\u043d\u044c \u0434\u0430\u0432\u043d\u043e \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0430 <a href=\"https:\/\/www.viva64.com\/ru\/w\/v728\/\">V728<\/a> \u0431\u044b\u043b\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0430 \u0434\u043e \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u0441\u043a\u043e\u0440\u043e\u0435 \u0432\u0441\u0435\u0433\u043e, \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043e\u0447\u043d\u044b\u043c\u0438, \u043d\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u044e\u0442 \u043a\u043e\u0434. \u0410 \u0432 \u0441\u043b\u043e\u0436\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u0440\u0430\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0437\u0434\u043d\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<p>  \u0414\u0430\u043d\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u0442\u0430\u043a\u043e\u0433\u043e:  <\/p>\n<pre><code class=\"cpp\">if (pItem-&gt;mbMirrorMode != bMirror) {   .... }<\/code><\/pre>\n<p>  \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u043a\u043e\u043b\u043e 60 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445 \u043e\u0447\u0435\u043d\u044c \u0438 \u043e\u0447\u0435\u043d\u044c \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u0438\u0435. \u0410\u0432\u0442\u043e\u0440\u0430\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043b\u0443\u0447\u0448\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u043e\u0442\u0447\u0451\u0442\u043e\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio.<\/p>\n<h2>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c\u044e<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/38b\/9aa\/9ba\/38b9aa9ba87c83eb5207957913b918af.png\"><\/div>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v523\/\">V523<\/a> The &#8216;then&#8217; statement is equivalent to the &#8216;else&#8217; statement. docxattributeoutput.cxx 1571  <\/p>\n<pre><code class=\"cpp\">void DocxAttributeOutput::DoWritePermissionTagEnd(   const OUString &amp; permission) {     OUString permissionIdAndName;      if (permission.startsWith(\"permission-for-group:\", &amp;permissionIdAndName))     {         const sal_Int32 sparatorIndex = permissionIdAndName.indexOf(':');         const OUString permissionId   = permissionIdAndName.copy(....);         const OString rId             = OUStringToOString(....).getStr();          m_pSerializer-&gt;singleElementNS(XML_w, XML_permEnd,             FSNS(XML_w, XML_id), rId.getStr(),             FSEND);     }     else     {         const sal_Int32 sparatorIndex = permissionIdAndName.indexOf(':');         const OUString permissionId   = permissionIdAndName.copy(....);         const OString rId             = OUStringToOString(....).getStr();          m_pSerializer-&gt;singleElementNS(XML_w, XML_permEnd,             FSNS(XML_w, XML_id), rId.getStr(),             FSEND);     } }<\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u043f\u043d\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430. \u0414\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0435\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0430, \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \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.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v1001\/\">V1001<\/a> The &#8216;DL&#8217; variable is assigned but is not used by the end of the function. cipher.cxx 811  <\/p>\n<pre><code class=\"cpp\">static void BF_updateECB(     CipherContextBF    *ctx,     rtlCipherDirection  direction,     const sal_uInt8    *pData,     sal_uInt8          *pBuffer,     sal_Size            nLength) {     CipherKeyBF *key;     sal_uInt32   DL, DR;      key = &amp;(ctx-&gt;m_key);     if (direction == rtl_Cipher_DirectionEncode)     {         RTL_CIPHER_NTOHL64(pData, DL, DR, nLength);          BF_encode(key, &amp;DL, &amp;DR);          RTL_CIPHER_HTONL(DL, pBuffer);         RTL_CIPHER_HTONL(DR, pBuffer);     }     else     {         RTL_CIPHER_NTOHL(pData, DL);         RTL_CIPHER_NTOHL(pData, DR);          BF_decode(key, &amp;DL, &amp;DR);          RTL_CIPHER_HTONL64(DL, DR, pBuffer, nLength);     }     DL = DR = 0; }<\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <i>DL<\/i> \u0438 <i>DR<\/i> \u043e\u0431\u043d\u0443\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u043a\u043e\u043d\u0446\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f. \u0414\u043b\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u044d\u0442\u043e \u043f\u043e\u0432\u043e\u0434 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438. <\/p>\n<p>  \u0414\u043b\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 Windows \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<pre><code class=\"cpp\">RtlSecureZeroMemory(&amp;DL, sizeof(DL)); RtlSecureZeroMemory(&amp;DR, sizeof(DR));<\/code><\/pre>\n<p>  \u041d\u043e \u0434\u043b\u044f LibreOffice \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043a\u0440\u043e\u0441\u0441-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0435\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<ul>\n<li>V1001 The &#8216;DL&#8217; variable is assigned but is not used by the end of the function. cipher.cxx 860<\/li>\n<\/ul>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v764\/\">V764<\/a> Possible incorrect order of arguments passed to &#8216;queryStream&#8217; function: &#8216;rUri&#8217; and &#8216;rPassword&#8217;. tdoc_storage.cxx 271  <\/p>\n<pre><code class=\"cpp\">css::uno::Reference&lt; css::io::XStream &gt;         queryStream( const css::uno::Reference&lt;                         css::embed::XStorage &gt; &amp; xParentStorage,                      const OUString &amp; rPassword,                      const OUString &amp; rUri,                      StorageAccessMode eMode,                      bool bTruncate  );  uno::Reference&lt; io::XOutputStream &gt; StorageElementFactory::createOutputStream( const OUString &amp; rUri,                                            const OUString &amp; rPassword,                                            bool bTruncate ) {   ....   uno::Reference&lt; io::XStream &gt; xStream       = queryStream(           xParentStorage, rUri, rPassword, READ_WRITE_CREATE, bTruncate );   .... }<\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>queryStream <\/i> \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0434\u0451\u0442 <i>rPassword<\/i>, \u0430 \u0437\u0430\u0442\u0435\u043c \u2013 <i>rUri<\/i>. \u0412 \u043a\u043e\u0434\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043d\u044b \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v794\/\">V794<\/a> The assignment operator should be protected from the case of &#8216;this == &amp;rToBeCopied&#8217;. hommatrixtemplate.hxx 121  <\/p>\n<pre><code class=\"cpp\">ImplHomMatrixTemplate&amp; operator=(....) {   \/\/ complete initialization using copy   for(sal_uInt16 a(0); a &lt; (RowSize - 1); a++)   {     memcpy(&amp;maLine[a], &amp;rToBeCopied.maLine[a], sizeof(....));   }   if(rToBeCopied.mpLine)   {     mpLine.reset( new ImplMatLine&lt; RowSize &gt;(....) );   }   return *this; }<\/code><\/pre>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u043c\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043a\u043e\u0434\u0430. \u0412 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u0435\u0431\u0435. \u0412\u0441\u0435\u0433\u043e \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043e\u043a\u043e\u043b\u043e 30 \u0442\u0430\u043a\u0438\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<h2>\u041e\u0448\u0438\u0431\u043a\u0438 \u0441 SysAllocString<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/39c\/568\/55a\/39c56855adffe06a5e0d517f764ecea6.png\"><\/div>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v649\/\">V649<\/a> There are two &#8216;if&#8217; statements with identical conditional expressions. The first &#8216;if&#8217; statement contains function return. This means that the second &#8216;if&#8217; statement is senseless. Check lines: 125, 137. acctable.cxx 137  <\/p>\n<pre><code class=\"cpp\">STDMETHODIMP CAccTable::get_columnDescription(long column, BSTR * description) {     SolarMutexGuard g;      ENTER_PROTECTED_BLOCK      \/\/ #CHECK#     if(description == nullptr)         return E_INVALIDARG;      \/\/ #CHECK XInterface#     if(!pRXTable.is())         return E_FAIL;     ....     SAFE_SYSFREESTRING(*description);     *description = SysAllocString(o3tl::toW(ouStr.getStr()));     if(description==nullptr) \/\/ &lt;=         return E_FAIL;     return S_OK;      LEAVE_PROTECTED_BLOCK }<\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f <i>SysAllocString() <\/i> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <i>NULL<\/i>. \u0427\u0442\u043e-\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0430\u0432\u0442\u043e\u0440 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0430\u043b\u043b\u043e\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0438\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439:<\/p>\n<ul>\n<li>V649 There are two &#8216;if&#8217; statements with identical conditional expressions. The first &#8216;if&#8217; statement contains function return. This means that the second &#8216;if&#8217; statement is senseless. Check lines: 344, 356. acctable.cxx 356<\/li>\n<li>V649 There are two &#8216;if&#8217; statements with identical conditional expressions. The first &#8216;if&#8217; statement contains function return. This means that the second &#8216;if&#8217; statement is senseless. Check lines: 213, 219. trvlfrm.cxx 219<\/li>\n<\/ul>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v530\/\">V530<\/a> The return value of function &#8216;SysAllocString&#8217; is required to be utilized. maccessible.cxx 1077  <\/p>\n<pre><code class=\"cpp\">STDMETHODIMP CMAccessible::put_accValue(....) {   ....   if(varChild.lVal==CHILDID_SELF)   {     SysAllocString(m_pszValue);     m_pszValue=SysAllocString(szValue);     return S_OK;   }   .... }<\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>SysAllocString()<\/i> \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430.<\/p>\n<h2>\u0420\u0430\u0437\u043d\u043e\u0435<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v716\/\">V716<\/a> Suspicious type conversion in return statement: returned HRESULT, but function actually returns BOOL. maccessible.cxx 2649  <\/p>\n<pre><code class=\"cpp\">BOOL CMAccessible::get_IAccessibleFromXAccessible(....) {   ENTER_PROTECTED_BLOCK    \/\/ #CHECK#   if(ppIA == nullptr)   {       return E_INVALIDARG; \/\/ &lt;=   }   BOOL isGet = FALSE;   if(g_pAgent)       isGet = g_pAgent-&gt;GetIAccessibleFromXAccessible(....);    if(isGet)       return TRUE;   else       return FALSE;    LEAVE_PROTECTED_BLOCK }<\/code><\/pre>\n<p>  \u041e\u0434\u043d\u0430 \u0438\u0437 \u0432\u0435\u0442\u0432\u0435\u0439 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0442\u0438\u043f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0438\u043f\u0443 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0422\u0438\u043f <i>HRESULT <\/i> \u0438\u043c\u0435\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442, \u0447\u0435\u043c \u0442\u0438\u043f <i>BOOL<\/i>, \u0438 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <i>E_INVALIDARG<\/i> \u0440\u0430\u0432\u043d\u043e <i>0x80070057L<\/i>. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"cpp\">return FAILED(E_INVALIDARG);<\/code><\/pre>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043a \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0435 V716.<\/p>\n<p>  \u0415\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043c\u0435\u0441\u0442:<\/p>\n<ul>\n<li>V716 Suspicious type conversion in return statement: returned HRESULT, but function actually returns BOOL. inprocembobj.cxx 1299<\/li>\n<li>V716 Suspicious type conversion in return statement: returned HRESULT, but function actually returns BOOL. maccessible.cxx 2660<\/li>\n<\/ul>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v670\/\">V670<\/a> The uninitialized class member &#8216;m_aMutex&#8217; is used to initialize the &#8216;m_aModifyListeners&#8217; member. Remember that members are initialized in the order of their declarations inside a class. fmgridif.cxx 1033  <\/p>\n<pre><code class=\"cpp\">FmXGridPeer::FmXGridPeer(const Reference&lt; XComponentContext &gt;&amp; _rxContext)             :m_aModifyListeners(m_aMutex)             ,m_aUpdateListeners(m_aMutex)             ,m_aContainerListeners(m_aMutex)             ,m_aSelectionListeners(m_aMutex)             ,m_aGridControlListeners(m_aMutex)             ,m_aMode( getDataModeIdentifier() )             ,m_nCursorListening(0)             ,m_bInterceptingDispatch(false)             ,m_xContext(_rxContext) {     \/\/ Create must be called after this constructor     m_pGridListener.reset( new GridListenerDelegator( this ) ); }  class  __declspec(dllexport) FmXGridPeer:     public cppu::ImplInheritanceHelper&lt;....&gt; {     ....     ::comphelper::OInterfaceContainerHelper2 m_aModifyListeners,                                              m_aUpdateListeners,                                              m_aContainerListeners,                                              m_aSelectionListeners,                                              m_aGridControlListeners;     .... protected:     css::uno::Reference&lt; css::uno::XComponentContext &gt;  m_xContext;     ::osl::Mutex                                        m_aMutex;     .... };<\/code><\/pre>\n<p>  \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 \u044f\u0437\u044b\u043a\u0430, \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0438\u0445 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u043a\u043b\u0430\u0441\u0441\u0435. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u0435 <i>m_aMutex<\/i> \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043f\u043e\u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u044f\u0442\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 \u043a\u043b\u0430\u0441\u0441\u0430.<\/p>\n<p>  \u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043f\u043e\u043b\u0435\u0439 \u043a\u043b\u0430\u0441\u0441\u0430:  <\/p>\n<pre><code class=\"cpp\">OInterfaceContainerHelper2( ::osl::Mutex &amp; rMutex );<\/code><\/pre>\n<p>  \u041e\u0431\u044a\u0435\u043a\u0442 \u043c\u044c\u044e\u0442\u0435\u043a\u0441\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b: \u043e\u0442 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u043d\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043f\u043e\u0442\u0435\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u0430.<\/p>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v763\/\">V763<\/a> Parameter &#8216;nNativeNumberMode&#8217; is always rewritten in function body before being used. calendar_jewish.cxx 286  <\/p>\n<pre><code class=\"cpp\">OUString SAL_CALL Calendar_jewish::getDisplayString(...., sal_Int16 nNativeNumberMode ) {   \/\/ make Hebrew number for Jewish calendar   nNativeNumberMode = NativeNumberMode::NATNUM2;    if (nCalendarDisplayCode == CalendarDisplayCode::SHORT_YEAR) {     sal_Int32 value = getValue(CalendarFieldIndex::YEAR) % 1000;     return mxNatNum-&gt;getNativeNumberString(...., nNativeNumberMode );   }   else     return Calendar_gregorian::getDisplayString(...., nNativeNumberMode ); }<\/code><\/pre>\n<p>  \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c: \u0431\u043e\u0440\u044c\u0431\u0430 \u0441 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f\u043c\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430, \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c, \u00ab\u043a\u043e\u0441\u0442\u044b\u043b\u044c\u00bb \u0438 \u0442.\u043f. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u043b\u044e\u0431\u043e\u0435 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u0438\u043c, \u0430 \u043a\u043e\u0434 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u044b\u043c.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0431\u0437\u043e\u0440 \u043a\u043e\u0434\u0430 \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0438 \u0435\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0445\u043e\u0436\u0438\u0445:<\/p>\n<ul>\n<li>V763 Parameter &#8216;bExtendedInfo&#8217; is always rewritten in function body before being used. graphicfilter2.cxx 442<\/li>\n<li>V763 Parameter &#8216;nVerbID&#8217; is always rewritten in function body before being used. oleembed.cxx 841<\/li>\n<li>V763 Parameter &#8216;pCursor&#8217; is always rewritten in function body before being used. edlingu.cxx 843<\/li>\n<li>V763 Parameter &#8216;pOutput&#8217; is always rewritten in function body before being used. vnew.cxx 181<\/li>\n<li>V763 Parameter &#8216;pOutput&#8217; is always rewritten in function body before being used. vnew.cxx 256<\/li>\n<\/ul>\n<p>  <\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0416\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043a\u043e\u0434 LibreOffice \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430. \u041f\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435, \u043f\u0440\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0445 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0438\u0437 \u0432\u0441\u0435\u0445 \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u043c\u0435\u043d\u044e \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442. \u041e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u043e\u0441\u043a\u0438. \u041e\u0448\u0438\u0431\u043a\u0430, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u0430\u044f \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0435\u0451 \u043d\u0435\u043b\u044c\u0437\u044f \u043d\u0430\u0439\u0442\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043d\u0430\u0448\u0451\u043b \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u044d\u0442\u0438\u043c, \u0438 \u044f \u0431\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 LibreOffice \u043e\u0431\u0440\u0430\u0442\u044f\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u043a\u043e\u0434\u0430 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0438 \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0432\u0441\u0435\u043c.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u0430\u0448\u0438 \u043a\u0430\u043d\u0430\u043b\u044b \u0438 \u0441\u043b\u0435\u0434\u0438\u0442\u0435 \u0437\u0430 \u043d\u043e\u0432\u043e\u0441\u0442\u044f\u043c\u0438 \u0438\u0437 \u043c\u0438\u0440\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f!<\/p>\n<ul>\n<li>Vk: <a href=\"https:\/\/vk.com\/pvsstudio_rus\">@pvsstudio_rus<\/a> <\/li>\n<li>Telegram: <a href=\"https:\/\/t.me\/pvsstudio_rus\">@pvsstudio_rus<\/a><\/li>\n<li>Instagram: <a href=\"https:\/\/www.instagram.com\/pvsstudio_rus\/\">@pvsstudio_rus<\/a><\/li>\n<li>Twitter: <a href=\"https:\/\/twitter.com\/pvsstudio_rus\">@pvsstudio_rus<\/a><\/li>\n<li>YouTube: <a href=\"https:\/\/www.youtube.com\/c\/PVSStudioTool\">@PVSStudioTool<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.viva64.com\/en\/b\/0586\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ts\/z9\/km\/tsz9kmyjtteajhd4x1au60rsrvq.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:\/\/www.viva64.com\/en\/b\/0586\/\">LibreOffice: Accountant&#8217;s Nightmare<\/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\/company\/pvs-studio\/blog\/426977\/\"> https:\/\/habr.com\/company\/pvs-studio\/blog\/426977\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/bf0\/ff5\/4b4\/bf0ff54b40fb8527f7bf79edc4050d37.png\"><\/div>\n<p>  LibreOffice \u2014 \u043c\u043e\u0449\u043d\u044b\u0439 \u043e\u0444\u0438\u0441\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u0435\u043d \u0434\u043b\u044f \u0447\u0430\u0441\u0442\u043d\u043e\u0433\u043e, \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u0415\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0434\u0435\u043b\u0430\u044e\u0442 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0444\u0435\u0440\u0430\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b Microsoft Office. \u041a\u043e\u043c\u0430\u043d\u0434\u0435 PVS-Studio \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043a\u043e\u0434 \u0442\u0430\u043a\u0438\u0445 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0439\u0442\u0438 \u0432 \u043d\u0438\u0445 \u043e\u0448\u0438\u0431\u043a\u0438. \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u043a\u043e. \u041f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u043e\u0448\u0438\u0431\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u044b\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0434\u0435\u0444\u0435\u043a\u0442\u044b, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  <a href=\"https:\/\/www.libreoffice.org\/\">LibreOffice<\/a> \u2014 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u043f\u043d\u044b\u0439 C++ \u043f\u0440\u043e\u0435\u043a\u0442. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u043e\u0431\u044a\u0451\u043c\u0430 \u2014 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0418, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0443 \u043a\u043e\u0434\u0430 LibreOffice \u043d\u0435 \u0443\u0434\u0430\u0451\u0442\u0441\u044f \u0443\u0434\u0435\u043b\u044f\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439, \u043d\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u043b\u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043e\u0441\u0438\u043b\u0438\u0442 \u0430\u043d\u0430\u043b\u0438\u0437 13\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0421\u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0441\u0431\u043e\u0440\u043a\u0435 \u043e\u0444\u0438\u0441\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 LibreOffice \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043e\u043a\u043e\u043b\u043e 8\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0422\u0430\u043a\u043e\u0439 \u043e\u0431\u044a\u0451\u043c \u043a\u043e\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c:  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/95d\/8f8\/322\/95d8f8322f57ac9af0206a3ef955e55e.png\"><\/div>\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-291029","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291029","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=291029"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291029\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=291029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=291029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=291029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}