{"id":404466,"date":"2024-06-29T17:43:28","date_gmt":"2024-06-29T17:43:28","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=404466"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=404466","title":{"rendered":"<span>\u0422\u043e\u043f-10 \u043e\u0448\u0438\u0431\u043e\u043a, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0432 C#-\u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0437\u0430 2022 \u0433\u043e\u0434<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0417\u0430 2022 \u0433\u043e\u0434 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 PVS-Studio \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0435\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 Open Source \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445. \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u0432\u0435\u0441\u0442\u0438 \u0438\u0442\u043e\u0433\u0438 \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0441\u0430\u043c\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2b8\/da4\/bbd\/2b8da4bbd83f70f98a0ad5589816ac93.png\" width=\"780\" height=\"440\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2b8\/da4\/bbd\/2b8da4bbd83f70f98a0ad5589816ac93.png\"\/><figcaption><\/figcaption><\/figure>\n<h3>\u041a\u0430\u043a \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0441\u044f \u0442\u043e\u043f?<\/h3>\n<p>\u042f \u0432\u0437\u044f\u043b \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u0437\u0430 \u0433\u043e\u0434 \u0438 \u043e\u0442\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0438\u0445 \u0431\u0430\u0433\u0438. \u0427\u0442\u043e\u0431\u044b \u0442\u043e\u043f \u0432\u044b\u0448\u0435\u043b \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u0435\u0435, \u044f \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430\u043c:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435 \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0448\u0438\u0431\u043a\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0438 \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u0440\u0430\u0437\u0431\u043e\u0440\u0443.<\/p>\n<h3>10 \u043c\u0435\u0441\u0442\u043e. \u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u043e\u0442\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0432 Stride<\/h3>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0438\u0439 \u0442\u043e\u043f \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0994\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 Stride Game Engine:<\/p>\n<pre><code class=\"cs\">private void RemoveEditor(....) {   ....   if (....)   {     multiEditor.OpenedAssets.CollectionChanged -= (_, e) =>        MultiEditorOpenAssetsChanged(multiEditor, e);     ....   }   .... } <\/code><\/pre>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3084\/\">V3084<\/a>. Anonymous function is used to unsubscribe from &#8216;CollectionChanged&#8217; event. No handlers will be unsubscribed, as a separate delegate instance is created for each anonymous function declaration. AssetEditorsManager.cs 444<\/p>\n<p>\u0418\u0437 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043e\u0442\u043f\u0438\u0441\u043a\u0438 \u043e\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442. \u041f\u0440\u0438\u043d\u043e\u0441\u0438\u0442 \u043b\u0438 \u044d\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b? \u0412\u043f\u043e\u043b\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e!<\/p>\n<h3>9 \u043c\u0435\u0441\u0442\u043e. \u041d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0432 Bitwarden<\/h3>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u0432\u0435\u0441\u044c\u043c\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441 \u044f\u0440\u043a\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u2014 &#171;<a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0947\/\">\u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u044b \u0432\u0430\u0448\u0438 \u043f\u0430\u0440\u043e\u043b\u0438? \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Bitwarden<\/a>&#171;. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0436\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043d\u0435\u0451:<\/p>\n<pre><code class=\"cs\">public class BillingInvoice {   public BillingInvoice(Invoice inv)   {     Amount = inv.AmountDue \/ 100M;      \/\/ &lt;=     Date = inv.Created;     Url = inv.HostedInvoiceUrl;     PdfUrl = inv.InvoicePdf;     Number = inv.Number;     Paid = inv.Paid;     Amount = inv.Total \/ 100M;          \/\/ &lt;=   }   public decimal Amount { get; set; }   public DateTime? Date { get; set; }   public string Url { get; set; }   public string PdfUrl { get; set; }   public string Number { get; set; }   public bool Paid { get; set; } } <\/code><\/pre>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3008\/\">V3008<\/a>. The &#8216;Amount&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 148, 142. BillingInfo.cs 148<\/p>\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u043b\u0438\u0448\u044c \u0434\u043e\u0433\u0430\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f, \u0447\u0435\u0433\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0445\u043e\u0442\u0435\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438. \u0422\u043e \u043b\u0438 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0443\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u0442\u043e \u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u2014 \u043b\u0438\u0448\u043d\u0438\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0442\u043e\u0440\u043e\u0435. \u0417\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u044b <a href=\"https:\/\/github.com\/bitwarden\/server\/issues\/2013\">\u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438<\/a> \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445, \u0430 \u043e\u043d\u0438 \u0443\u0441\u043f\u0435\u043b\u0438 \u0438\u0445 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0431\u0440\u0430\u0432 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435.<\/p>\n<h3>8 \u043c\u0435\u0441\u0442\u043e. \u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438\u0437 \u043f\u0443\u0441\u0442\u043e\u0442\u044b \u0432 Barotrauma<\/h3>\n<p>\u041d\u0430 8 \u043c\u0435\u0441\u0442\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043e\u0448\u0438\u0431\u043a\u0443 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0930\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u0438\u0433\u0440\u044b Barotrauma:<\/p>\n<pre><code class=\"cs\">public ParticlePrefab(XElement element, ContentFile file) {   ....   if (CollisionRadius &lt;= 0.0f)      CollisionRadius = Sprites.Count > 0 ? 1 :                                         Sprites[0].SourceRect.Width \/ 2.0f; } <\/code><\/pre>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3106\/\">V3106<\/a> Possibly index is out of bound. The &#8216;0&#8217; index is pointing beyond &#8216;Sprites&#8217; bound. ParticlePrefab.cs 303<\/p>\n<p>\u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u043f\u0443\u0441\u0442\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u2014 \u044d\u0442\u043e \u044f\u0432\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0435 :). \u041e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0434\u0435\u044f\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c\u043e\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.<\/p>\n<h3>7 \u043c\u0435\u0441\u0442\u043e. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u0435\u0439 \u0432 AvalonStudio<\/h3>\n<p>\u0421\u0435\u0434\u044c\u043c\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0966\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 AvalonStudio:<\/p>\n<pre><code class=\"cs\">public class ColorScheme {   private static List&lt;ColorScheme> s_colorSchemes =     new List&lt;ColorScheme>();   private static Dictionary&lt;string, ColorScheme> s_colorSchemeIDs =     new Dictionary&lt;string, ColorScheme>();   private static readonly ColorScheme DefaultColorScheme =      ColorScheme.SolarizedLight;   ....   public static readonly ColorScheme SolarizedLight = new ColorScheme   {     ....   }; } <\/code><\/pre>\n<p>\u041e, \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u044f \u043d\u0435 \u043f\u043e\u043a\u0430\u0436\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0441\u0440\u0430\u0437\u0443 :). \u041f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0434\u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b \u043f\u043e\u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438, \u043a\u0430\u043a\u043e\u0432\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0431\u0435\u0437 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u0425\u043e\u0442\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043f\u0440\u043e\u0441\u0442\u0430\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0432\u044b \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u0441\u044c.<\/p>\n<details class=\"spoiler\">\n<summary>\u0412 \u0447\u0451\u043c \u0436\u0435 \u0442\u0443\u0442 \u0434\u0435\u043b\u043e?<\/summary>\n<div class=\"spoiler__content\">\n<p> \u041d\u0430 \u043a\u043e\u0434 \u0432\u044b\u0448\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0432\u044b\u0434\u0430\u0451\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435: <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3070\/\">V3070<\/a>. Uninitialized variable &#8216;SolarizedLight&#8217; is used when initializing the &#8216;DefaultColorScheme&#8217; variable. ColorScheme.cs 32<\/p>\n<p>\u0418 \u043f\u0440\u0430\u0432\u0434\u0430, \u0441 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0435\u0439 \u0442\u0443\u0442 \u0447\u0442\u043e-\u0442\u043e \u044f\u0432\u043d\u043e \u043d\u0435 \u0442\u0430\u043a.<\/p>\n<\/div>\n<\/details>\n<h3>6 \u043c\u0435\u0441\u0442\u043e. \u041f\u0443\u0442\u0430\u043d\u0438\u0446\u0430 \u0432 .NET 7<\/h3>\n<p>\u0414\u0430-\u0434\u0430, \u044d\u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/1015\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043f\u0440\u043e \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 .NET 7! \u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u0435\u043d :).<\/p>\n<p>\u0421\u043f\u0435\u0440\u0432\u0430 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 <em>XmlConfigurationElementTextContent<\/em>:<\/p>\n<pre><code class=\"cs\">public XmlConfigurationElementTextContent(string textContent,                                            int? linePosition,                                            int? lineNumber) { .... } <\/code><\/pre>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0437\u0433\u043b\u044f\u043d\u0438\u0442\u0435, \u0433\u0434\u0435 \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"cs\">public static IDictionary&lt;string, string?> Read(....) {   ....   case XmlNodeType.EndElement:     ....     var lineInfo = reader as IXmlLineInfo;     var lineNumber = lineInfo?.LineNumber;     var linePosition = lineInfo?.LinePosition;     parent.TextContent =       new XmlConfigurationElementTextContent(string.Empty,                                               lineNumber,                                              linePosition);     ....     break;   ....   case XmlNodeType.Text:     ....     var lineInfo = reader as IXmlLineInfo;     var lineNumber = lineInfo?.LineNumber;     var linePosition = lineInfo?.LinePosition;      XmlConfigurationElement parent = currentPath.Peek();      parent.TextContent =       new XmlConfigurationElementTextContent(reader.Value,                                              lineNumber,                                              linePosition);     ....     break;   .... } <\/code><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b: &#8230;, <em>lineNumber<\/em>, <em>linePosition<\/em>;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: &#8230;, <em>linePosition<\/em>, <em>lineNumber<\/em>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3066\/\">V3066<\/a> Possible incorrect order of arguments passed to &#8216;XmlConfigurationElementTextContent&#8217; constructor: &#8216;lineNumber&#8217; and &#8216;linePosition&#8217;. XmlStreamConfigurationProvider.cs 133<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3066\/\">V3066<\/a> Possible incorrect order of arguments passed to &#8216;XmlConfigurationElementTextContent&#8217; constructor: &#8216;lineNumber&#8217; and &#8216;linePosition&#8217;. XmlStreamConfigurationProvider.cs 148<\/p>\n<\/li>\n<\/ul>\n<p><a class=\"mention\" href=\"\/users\/foto_shooter\">@foto_shooter<\/a>, \u043a\u0441\u0442\u0430\u0442\u0438, \u043e\u0442\u043a\u0440\u044b\u043b <a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/78212\">issue<\/a> \u043d\u0430 GitHub, \u0438 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043b\u0438: \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0438 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0438 \u0434\u0430\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0442\u0435\u0441\u0442.<\/p>\n<h3>5 \u043c\u0435\u0441\u0442\u043e. \u041f\u0440\u0435\u0436\u0434\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u0432 Orleans<\/h3>\n<p>\u0412\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0442\u043e\u043f\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0961\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 Orleans:<\/p>\n<pre><code class=\"cs\">private class BatchOperation {   private readonly List&lt;TableTransactionAction> batchOperation;   ....    public async Task Flush()   {     if (batchOperation.Count > 0)     {       try       {         ....         batchOperation.Clear();                              \/\/ &lt;=         keyIndex = -1;          if (logger.IsEnabled(LogLevel.Trace))         {           for (int i = 0; i &lt; batchOperation.Count; i++)     \/\/ &lt;=           {             logger.LogTrace(....)           }         }       }       catch (Exception ex)       {         ....       }     }   } } <\/code><\/pre>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3116\/\">V3116<\/a>. Consider inspecting the &#8216;for&#8217; operator. It&#8217;s possible that the loop will be executed incorrectly or won&#8217;t be executed at all. AzureTableTransactionalStateStorage.cs 345<\/p>\n<p>\u0427\u0442\u043e-\u0442\u043e \u043c\u043d\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u0447\u0438\u0449\u0430\u0442\u044c <em>batchOperation<\/em> \u0441\u0442\u043e\u0438\u043b\u043e \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435. \u0418, \u0441\u0443\u0434\u044f \u043f\u043e <a href=\"https:\/\/github.com\/dotnet\/orleans\/pull\/7839\/files\">\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043c<\/a>, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 Orleans \u0441\u043e \u043c\u043d\u043e\u0439 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u044b.<\/p>\n<h3>4 \u043c\u0435\u0441\u0442\u043e. \u0422\u0435\u043d\u0435\u0432\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 Eto.Forms<\/h3>\n<p>\u0421 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043e\u0442\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u0442 \u0442\u0440\u0451\u0445 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u043b\u0430\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0929\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 GUI-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 Eto.Forms:<\/p>\n<pre><code class=\"cs\">public NSShadow TextHighlightShadow {   get   {     if (textHighlightShadow == null)     {       textHighlightShadow = new NSShadow();       textHighlightShadow.ShadowColor = NSColor.FromDeviceWhite(0F, 0.5F);       textHighlightShadow.ShadowOffset = new CGSize(0F, -1.0F);       textHighlightShadow.ShadowBlurRadius = 2F;     }     return textHighlightShadow;   }   set { textShadow = value; }         \/\/ &lt;= }  public NSShadow TextShadow {   get   {     if (textShadow == null)     {       textShadow = new NSShadow();       textShadow.ShadowColor = NSColor.FromDeviceWhite(1F, 0.5F);       textShadow.ShadowOffset = new CGSize(0F, -1.0F);       textShadow.ShadowBlurRadius = 0F;     }     return textShadow;   }   set { textShadow = value; } } <\/code><\/pre>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3140\/\">V3140<\/a> Property accessors use different backing fields. Eto.Mac64 MacImageAndTextCell.cs 162<\/p>\n<p>Copy-paste \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u043f\u0440\u0438\u0432\u0435\u0442 :).<\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443 <em>TextHighlightShadow<\/em> \u0438 \u043f\u0440\u0430\u0432\u0434\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043a\u0430\u043a-\u0442\u043e \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 <em>textShadow<\/em>. \u041d\u043e \u0434\u0430\u0436\u0435 \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u043e\u043b\u0435 <em>textHighlightShadow<\/em>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0435\u0441\u044f \u0432 get-\u0430\u043a\u0441\u0435\u0441\u0441\u043e\u0440\u0435.<\/p>\n<h3>3 \u043c\u0435\u0441\u0442\u043e. \u041f\u043e\u0442\u0435\u0440\u044f\u043d\u043d\u0430\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0432 Squidex<\/h3>\n<p>\u0422\u0440\u043e\u0439\u043a\u0443 \u0444\u0438\u043d\u0430\u043b\u0438\u0441\u0442\u043e\u0432 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0926\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u043d\u0430 ASP.NET Core. \u042d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0431\u044b\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Squidex:<\/p>\n<pre><code class=\"cs\">private IEnumerable&lt;IMigration?> ResolveMigrators(int version) {   yield return serviceProvider.GetRequiredService&lt;StopEventConsumers>();    \/\/ Version 06: Convert Event store. Must always be executed first.   if (version &lt; 6)   {     yield return serviceProvider.GetRequiredService&lt;ConvertEventStore>();   }    \/\/ Version 22: Integrate Domain Id.   if (version &lt; 22)   {     yield return serviceProvider                    .GetRequiredService&lt;AddAppIdToEventStream>();   }    \/\/ Version 07: Introduces AppId for backups.   else if (version &lt; 7)    {     yield return serviceProvider                    .GetRequiredService&lt;ConvertEventStoreAppId>();   }    \/\/ Version 05: Fixes the broken command architecture and requires a   \/\/ rebuild of all snapshots.   if (version &lt; 5)   {     yield return serviceProvider.GetRequiredService&lt;RebuildSnapshots>();   }   else   {     \/\/ Version 09: Grain indexes.     if (version &lt; 9)     {       yield return serviceProvider.GetService&lt;ConvertOldSnapshotStores>();     }      ....   }    \/\/ Version 13: Json refactoring   if (version &lt; 13)   {     yield return serviceProvider                    .GetRequiredService&lt;ConvertRuleEventsJson>();   }    yield return serviceProvider.GetRequiredService&lt;StartEventConsumers>(); } <\/code><\/pre>\n<p>\u0416\u0435\u043b\u0430\u044e \u0443\u0434\u0430\u0447\u0438 \u0432 \u0435\u0451 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 :).<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u0438\u0441\u043a\u0430\u0442\u044c \u043b\u0435\u043d\u044c, \u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0432\u0437\u0433\u043b\u044f\u043d\u0438\u0442\u0435 \u043d\u0430 \u0441\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442:<\/p>\n<pre><code class=\"cs\">\/\/ Version 22: Integrate Domain Id. if (version &lt; 22) {   yield return serviceProvider.GetRequiredService&lt;AddAppIdToEventStream>(); }  \/\/ Version 07: Introduces AppId for backups. else if (version &lt; 7)  {   yield return serviceProvider                  .GetRequiredService&lt;ConvertEventStoreAppId>(); } <\/code><\/pre>\n<p>\u0423\u0432\u0435\u0440\u0435\u043d, \u0442\u0430\u043a \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043b\u0435\u0433\u0447\u0435. \u0414\u0430\u0436\u0435 \u0436\u0430\u043b\u044c, \u0447\u0442\u043e \u0432 IDE \u043d\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b\u0430 \u0431\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438. \u0425\u043e\u0442\u044f \u043f\u043e\u0441\u0442\u043e\u0439\u0442\u0435, \u0432\u043e\u0442 \u0436\u0435 \u043e\u043d\u0430:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2b7\/2b7\/73d\/2b72b773db2a86a6f948bf9643dde6ec.png\" width=\"723\" height=\"332\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2b7\/2b7\/73d\/2b72b773db2a86a6f948bf9643dde6ec.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0423\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u044d\u0442\u043e\u0439 \u0447\u0443\u0434\u043e-\u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443:<\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3022\/\">V3022<\/a>. Expression &#8216;version &lt; 7&#8217; is always false. MigrationPath.cs 55<\/p>\n<p>\u0418 \u043f\u0440\u0430\u0432\u0434\u0430, \u0443\u0441\u043b\u043e\u0432\u0438\u0435 <em>version &lt; 7<\/em> \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 <em>version >= 22<\/em>. \u0421\u0442\u0440\u0430\u043d\u043d\u043e\u0435 \u0434\u0435\u043b\u043e!<\/p>\n<details class=\"spoiler\">\n<summary>\u0412 \u043c\u043e\u0435\u0439 IDE \u043d\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438<\/summary>\n<div class=\"spoiler__content\">\n<p> \u0427\u0442\u043e\u0431\u044b \u043a\u043d\u043e\u043f\u043a\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/pvs-studio.com\/ru\/pvs-studio\/try-free\/?utm_source=website&amp;utm_medium=habr&amp;utm_campaign=article&amp;utm_content=1020&amp;utm_term=link_try-free\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u0432\u0430\u0448\u0430 IDE \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <a href=\"https:\/\/pvs-studio.com\/ru\/about-feedback\/\">\u0442\u0443\u0442<\/a> \u043e \u0441\u0432\u043e\u0435\u0439 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u0438 \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0435 \u0434\u043b\u044f \u043d\u0435\u0451.<\/p>\n<\/div>\n<\/details>\n<h3>2 \u043c\u0435\u0441\u0442\u043e. \u0412\u0435\u0441\u0451\u043b\u044b\u0435 \u0441\u0434\u0432\u0438\u0433\u0438 \u0432 Discord.NET<\/h3>\n<p>\u0421\u0435\u0440\u0435\u0431\u0440\u043e \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0437\u0430\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0974\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 Discord.NET:<\/p>\n<pre><code class=\"cs\">public enum GuildFeature : long {   None = 0,   AnimatedBanner = 1 &lt;&lt; 0,   AnimatedIcon = 1 &lt;&lt; 1,   Banner = 1 &lt;&lt; 2,   ....   TextInVoiceEnabled = 1 &lt;&lt; 32,   ThreadsEnabled = 1 &lt;&lt; 33,   ThreadsEnabledTesting = 1 &lt;&lt; 34,   ....   VIPRegions = 1 &lt;&lt; 40,   WelcomeScreenEnabled = 1 &lt;&lt; 41, } <\/code><\/pre>\n<p>\u041a\u0430\u043a \u0438 \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437, \u044f <s>\u0431\u0443\u0434\u0443 \u0438\u0437\u0434\u0435\u0432\u0430\u0442\u044c\u0441\u044f<\/s> \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0443 \u0432\u0430\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e :). \u041d\u0443, \u0438\u043b\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0436\u0430\u0442\u044c \u0432\u043e\u043b\u0448\u0435\u0431\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443:<\/p>\n<details class=\"spoiler\">\n<summary>PVS-Studio -> Check Current File<\/summary>\n<div class=\"spoiler__content\">\n<p> <a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3134\/\">V3134<\/a>. Shift by 32 bits is greater than the size of &#8216;Int32&#8217; type of expression &#8216;1&#8217;. GuildFeature.cs 147 <\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0438\u043f\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u043e\u0432 \u0441\u0434\u0432\u0438\u0433\u0430 \u0437\u0434\u0435\u0441\u044c \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 <em>int<\/em>, \u0438 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u0442\u0438\u043f \u0431\u0443\u0434\u0435\u0442 \u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0430 <em>1 &lt;&lt; 32<\/em> \u0440\u0430\u0432\u043d\u043e 1, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>1 &lt;&lt; 33<\/em> \u2014 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e <em>1 &lt;&lt; 1<\/em>, \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.<\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0440\u0430\u043d\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f: \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b <em>AnimatedBanner<\/em> \u0438 <em>TextInVoiceEnabled<\/em> \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0438 \u0442\u0435\u043c \u0436\u0435, \u0440\u0430\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u043f\u0430\u0440\u0430 <em>AnimatedIcon-ThreadsEnabled<\/em> \u0438 \u0442. \u0434. \u0415\u0441\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u044d\u0442\u043e\u043c\u0443 \u0442\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c \u0442\u0438\u043f\u043e\u043c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <em>long,<\/em> \u0442\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u044f\u0441\u043d\u043e \u2014 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0437\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043b \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0442\u0430\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435.<\/p>\n<\/div>\n<\/details>\n<h3>1 \u043c\u0435\u0441\u0442\u043e. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0438\u0437 BlogEngine.NET<\/h3>\n<p>\u0412\u043e\u0442 \u043c\u044b \u0438 \u0434\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0434\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u044f \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043b \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u0438\u0437 \u0432\u0441\u0435\u0445, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u043c\u0438 \u0437\u0430 2022 \u0433\u043e\u0434. \u0412\u0441\u0442\u0440\u0435\u0447\u0430\u0439\u0442\u0435 \u2014 XXE-\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 BlogEngine.NET:<\/p>\n<pre><code class=\"cs\">public XMLRPCRequest(HttpContext input) {   var inputXml = ParseRequest(input);    \/\/ LogMetaWeblogCall(inputXml);   this.LoadXmlRequest(inputXml); \/\/ Loads Method Call                                   \/\/ and Associated Variables }  private static string ParseRequest(HttpContext context) {   var buffer = new byte[context.Request.InputStream.Length];    context.Request.InputStream.Position = 0;   context.Request.InputStream.Read(buffer, 0, buffer.Length);    return Encoding.UTF8.GetString(buffer); }  private void LoadXmlRequest(string xml) {   var request = new XmlDocument();   try   {     if (!(xml.StartsWith(\"&lt;?xml\") || xml.StartsWith(\"&lt;method\")))     {       xml = xml.Substring(xml.IndexOf(\"&lt;?xml\"));     }      request.LoadXml(xml);              \/\/ &lt;=   }   catch (Exception ex)   {     throw new MetaWeblogException(\"01\",                       $\"Invalid XMLRPC Request. ({ex.Message})\");   }   .... } <\/code><\/pre>\n<p>\u0427\u0442\u043e? \u0413\u0434\u0435? \u041a\u0430\u043a\u0430\u044f \u0435\u0449\u0451 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c?<\/p>\n<p>\u0414\u0430\u0436\u0435 \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u043e\u0434\u044b, \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0442\u0443\u0442 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u043a XXE \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n<p>\u0412 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0918\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0432 \u0446\u0435\u043b\u043e\u043c \u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0430 BlogEngine.NET \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438. \u0417\u0434\u0435\u0441\u044c \u0436\u0435 \u044f \u043a\u043e\u0440\u043e\u0442\u043a\u043e \u043f\u0440\u043e\u0439\u0434\u0443\u0441\u044c \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043c.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043c\u0435\u0442\u043e\u0434 <em>ParseRequest<\/em>:<\/p>\n<pre><code class=\"cs\">private static string ParseRequest(HttpContext context) {   var buffer = new byte[context.Request.InputStream.Length];    context.Request.InputStream.Position = 0;   context.Request.InputStream.Read(buffer, 0, buffer.Length);    return Encoding.UTF8.GetString(buffer); } <\/code><\/pre>\n<p><em>context.Request.InputStream<\/em> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043d\u0435\u043a\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u043e\u0441\u044c, \u0442\u043e \u0432 <em>InputStream<\/em> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e. \u0414\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0440\u0430\u0436\u0451\u043d\u043d\u044b\u043c\u0438 (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/terms\/6496\/\">\u0442\u0443\u0442<\/a>).<\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 <em>ParseRequest<\/em> \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432 \u0431\u0443\u0444\u0435\u0440, \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u0445 &#171;\u043a\u0430\u043a \u0435\u0441\u0442\u044c&#187;. \u041a\u0443\u0434\u0430 \u0436\u0435 \u043e\u043d\u0438 \u0438\u0434\u0443\u0442?<\/p>\n<p>\u041e\u0442\u0432\u0435\u0442 \u0437\u0434\u0435\u0441\u044c:<\/p>\n<pre><code class=\"cs\">public XMLRPCRequest(HttpContext input) {   var inputXml = ParseRequest(input);    \/\/ LogMetaWeblogCall(inputXml);   this.LoadXmlRequest(inputXml); \/\/ Loads Method Call                                   \/\/ and Associated Variables } <\/code><\/pre>\n<p>\u041c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b <em>ParseRequest<\/em> \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u043c\u0435\u0442\u043e\u0434 <em>LoadXmlRequest<\/em>. \u0415\u0449\u0451 \u0440\u0430\u0437 \u043d\u0430\u043f\u043e\u043c\u043d\u044e \u2014 \u0432 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u043c. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0436\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c, \u043a\u0430\u043a \u043e\u043d\u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <em>LoadXmlRequest<\/em>:<\/p>\n<pre><code class=\"cs\">private void LoadXmlRequest(string xml) {   var request = new XmlDocument();   try   {     if (!(xml.StartsWith(\"&lt;?xml\") || xml.StartsWith(\"&lt;method\")))     {       xml = xml.Substring(xml.IndexOf(\"&lt;?xml\"));     }      request.LoadXml(xml);              \/\/ &lt;=   }   catch (Exception ex)   {     throw new MetaWeblogException(\"01\",                       $\"Invalid XMLRPC Request. ({ex.Message})\");   }   .... } <\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0442\u0443\u0442-\u0442\u043e \u0438 \u0441\u0442\u0440\u0435\u043b\u044f\u0435\u0442 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c! \u041f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0440\u0430\u0436\u0451\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 <em>xml<\/em>, \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u043c\u0435\u0442\u043e\u0434 <em>LoadXml<\/em> \u043a\u043b\u0430\u0441\u0441\u0430 <em>XmlDocument<\/em>.<\/p>\n<p>\u041d\u0443 \u0438 \u0447\u0442\u043e, \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b? \u0423 \u043d\u0430\u0441 \u0432\u0435\u0434\u044c \u0435\u0441\u0442\u044c try-catch, \u0438 \u0434\u0430\u0436\u0435 \u043a\u043e\u0435-\u043a\u0430\u043a\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430. \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u0433\u0440\u043e\u0437\u044b \u044d\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u0441\u043f\u0430\u0441\u0430\u0435\u0442.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a \u043f\u0435\u0440\u0435\u0434\u0430\u0441\u0442 \u0432 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0442\u043e \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <em>request<\/em> \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441.<\/p>\n<p>\u0412 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0918\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e, \u043a\u0430\u043a \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u044d\u0442\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044e \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u0422\u0430\u043c \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e &#171;\u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c&#187;, \u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>\u041a\u0430\u043a \u0436\u0435 \u0442\u0430\u043a \u0432\u044b\u0445\u043e\u0434\u0438\u0442, \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e <em>xml<\/em> \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044e \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u044b? \u041a\u0440\u0430\u0442\u043a\u043e\u0435 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u0451\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440:<\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v5614\/\">V5614<\/a>. Potential XXE vulnerability inside method. Insecure XML parser is used to process potentially tainted data from the first argument: &#8216;inputXml&#8217;. BlogEngine.Core XMLRPCRequest.cs 41<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, PVS-Studio \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 2 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 XML External Entity:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 (\u0438\u043b\u0438 \u0442\u043e\u0447\u043d\u0435\u0435, \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439) \u043f\u0430\u0440\u0441\u0435\u0440 XML;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0435\u043c\u0443 \u0437\u0430\u0440\u0430\u0436\u0451\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430\u0440\u0430\u0436\u0451\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u044b \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0438, \u0442\u043e \u0432\u043e\u0442 \u043f\u043e\u043d\u044f\u0442\u044c, \u0432 \u0447\u0451\u043c \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0440\u0441\u0435\u0440\u0430, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e. \u0412 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0441\u0451 \u0441\u043b\u043e\u0436\u043d\u0435\u0435. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431\u043e \u0432\u0441\u0451\u043c \u044d\u0442\u043e\u043c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u0445 \u0437\u0430\u0449\u0438\u0442\u044b \u043e\u0442 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 &#171;<a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0918\/\">\u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u0437-\u0437\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 XML-\u0444\u0430\u0439\u043b\u043e\u0432: XXE \u0432 C# \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u0438 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435<\/a>&#171;.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0441\u0432\u044f\u0449\u0451\u043d\u043d\u044b\u0439 \u0434\u0430\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u0435 \u0434\u043e\u043a\u043b\u0430\u0434 \u0441 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 DotNext:<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/63ac2b8814d7249a467ba3d5\" data-style=\"\" id=\"63ac2b8814d7249a467ba3d5\" width=\"\"><\/div>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 BlogEngine.NET \u0441\u0442\u043e\u0438\u0442 \u043e\u0441\u043e\u0431\u043d\u044f\u043a\u043e\u043c \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e &#171;\u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u0432 \u043a\u043e\u0434\u0435&#187;, \u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c\u044e, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0435\u0441\u0442\u044c <a href=\"https:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2018-14485\">\u0437\u0430\u043f\u0438\u0441\u044c<\/a> \u0432 \u0431\u0430\u0437\u0435 CVE.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>2022 \u0432\u044b\u0434\u0430\u043b\u0441\u044f \u0431\u043e\u0433\u0430\u0442\u044b\u043c \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0447\u0435\u043c\u0443 \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0439 \u0442\u043e\u043f. \u042d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c PVS-Studio. \u041a\u0430\u043a\u0438\u0435-\u0442\u043e \u0438\u0437 \u043d\u0438\u0445 \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u0441 \u043d\u0435\u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e, \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u2014 \u0441 \u043d\u0435\u0437\u043d\u0430\u043d\u0438\u0435\u043c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u044f\u0437\u044b\u043a\u0430, \u0430 \u0433\u0434\u0435-\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0438 \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u0432\u0438\u0434\u043d\u043e \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u0435\u0451 \u043d\u0435 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440.<\/p>\n<p>\u0422\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u043b\u044e <a href=\"https:\/\/pvs-studio.com\/ru\/pvs-studio\/try-free\/?utm_source=website&amp;utm_medium=habr&amp;utm_campaign=article&amp;utm_content=1020&amp;utm_term=link_try-free\">\u0441\u0441\u044b\u043b\u043a\u0443<\/a> \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c PVS-Studio, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0434\u0435\u043b\u0435. \u0410 \u0443 \u043c\u0435\u043d\u044f \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451 :). \u0421\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u043e\u0433\u043e \u0432\u0430\u043c \u041d\u043e\u0432\u043e\u0433\u043e \u0413\u043e\u0434\u0430!<\/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: Nikita Lipilin. <a href=\"https:\/\/pvs-studio.com\/en\/blog\/posts\/csharp\/1020\/\">Top 10 bugs found in C# projects in 2022<\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/708226\/\"> https:\/\/habr.com\/ru\/articles\/708226\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0417\u0430 2022 \u0433\u043e\u0434 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 PVS-Studio \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0435\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 Open Source \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445. \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u0432\u0435\u0441\u0442\u0438 \u0438\u0442\u043e\u0433\u0438 \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0441\u0430\u043c\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h3>\u041a\u0430\u043a \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0441\u044f \u0442\u043e\u043f?<\/h3>\n<p>\u042f \u0432\u0437\u044f\u043b \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u0437\u0430 \u0433\u043e\u0434 \u0438 \u043e\u0442\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0438\u0445 \u0431\u0430\u0433\u0438. \u0427\u0442\u043e\u0431\u044b \u0442\u043e\u043f \u0432\u044b\u0448\u0435\u043b \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u0435\u0435, \u044f \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430\u043c:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435 \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0448\u0438\u0431\u043a\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0438 \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u0440\u0430\u0437\u0431\u043e\u0440\u0443.<\/p>\n<h3>10 \u043c\u0435\u0441\u0442\u043e. \u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u043e\u0442\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0432 Stride<\/h3>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0438\u0439 \u0442\u043e\u043f \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0994\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 Stride Game Engine:<\/p>\n<pre><code class=\"cs\">private void RemoveEditor(....) {   ....   if (....)   {     multiEditor.OpenedAssets.CollectionChanged -= (_, e) =>        MultiEditorOpenAssetsChanged(multiEditor, e);     ....   }   .... } <\/code><\/pre>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3084\/\">V3084<\/a>. Anonymous function is used to unsubscribe from &#8216;CollectionChanged&#8217; event. No handlers will be unsubscribed, as a separate delegate instance is created for each anonymous function declaration. AssetEditorsManager.cs 444<\/p>\n<p>\u0418\u0437 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043e\u0442\u043f\u0438\u0441\u043a\u0438 \u043e\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442. \u041f\u0440\u0438\u043d\u043e\u0441\u0438\u0442 \u043b\u0438 \u044d\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b? \u0412\u043f\u043e\u043b\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e!<\/p>\n<h3>9 \u043c\u0435\u0441\u0442\u043e. \u041d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0432 Bitwarden<\/h3>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u0432\u0435\u0441\u044c\u043c\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441 \u044f\u0440\u043a\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u2014 &#171;<a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0947\/\">\u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u044b \u0432\u0430\u0448\u0438 \u043f\u0430\u0440\u043e\u043b\u0438? \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Bitwarden<\/a>&#171;. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0436\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043d\u0435\u0451:<\/p>\n<pre><code class=\"cs\">public class BillingInvoice {   public BillingInvoice(Invoice inv)   {     Amount = inv.AmountDue \/ 100M;      \/\/ &lt;=     Date = inv.Created;     Url = inv.HostedInvoiceUrl;     PdfUrl = inv.InvoicePdf;     Number = inv.Number;     Paid = inv.Paid;     Amount = inv.Total \/ 100M;          \/\/ &lt;=   }   public decimal Amount { get; set; }   public DateTime? Date { get; set; }   public string Url { get; set; }   public string PdfUrl { get; set; }   public string Number { get; set; }   public bool Paid { get; set; } } <\/code><\/pre>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3008\/\">V3008<\/a>. The &#8216;Amount&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 148, 142. BillingInfo.cs 148<\/p>\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u043b\u0438\u0448\u044c \u0434\u043e\u0433\u0430\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f, \u0447\u0435\u0433\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0445\u043e\u0442\u0435\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438. \u0422\u043e \u043b\u0438 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0443\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u0442\u043e \u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u2014 \u043b\u0438\u0448\u043d\u0438\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0442\u043e\u0440\u043e\u0435. \u0417\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u044b <a href=\"https:\/\/github.com\/bitwarden\/server\/issues\/2013\">\u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438<\/a> \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445, \u0430 \u043e\u043d\u0438 \u0443\u0441\u043f\u0435\u043b\u0438 \u0438\u0445 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0431\u0440\u0430\u0432 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435.<\/p>\n<h3>8 \u043c\u0435\u0441\u0442\u043e. \u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438\u0437 \u043f\u0443\u0441\u0442\u043e\u0442\u044b \u0432 Barotrauma<\/h3>\n<p>\u041d\u0430 8 \u043c\u0435\u0441\u0442\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043e\u0448\u0438\u0431\u043a\u0443 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0930\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u0438\u0433\u0440\u044b Barotrauma:<\/p>\n<pre><code class=\"cs\">public ParticlePrefab(XElement element, ContentFile file) {   ....   if (CollisionRadius &lt;= 0.0f)      CollisionRadius = Sprites.Count > 0 ? 1 :                                         Sprites[0].SourceRect.Width \/ 2.0f; } <\/code><\/pre>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3106\/\">V3106<\/a> Possibly index is out of bound. The &#8216;0&#8217; index is pointing beyond &#8216;Sprites&#8217; bound. ParticlePrefab.cs 303<\/p>\n<p>\u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u043f\u0443\u0441\u0442\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u2014 \u044d\u0442\u043e \u044f\u0432\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0435 :). \u041e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0434\u0435\u044f\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c\u043e\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.<\/p>\n<h3>7 \u043c\u0435\u0441\u0442\u043e. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u0435\u0439 \u0432 AvalonStudio<\/h3>\n<p>\u0421\u0435\u0434\u044c\u043c\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0966\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 AvalonStudio:<\/p>\n<pre><code class=\"cs\">public class ColorScheme {   private static List&lt;ColorScheme> s_colorSchemes =     new List&lt;ColorScheme>();   private static Dictionary&lt;string, ColorScheme> s_colorSchemeIDs =     new Dictionary&lt;string, ColorScheme>();   private static readonly ColorScheme DefaultColorScheme =      ColorScheme.SolarizedLight;   ....   public static readonly ColorScheme SolarizedLight = new ColorScheme   {     ....   }; } <\/code><\/pre>\n<p>\u041e, \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u044f \u043d\u0435 \u043f\u043e\u043a\u0430\u0436\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0441\u0440\u0430\u0437\u0443 :). \u041f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0434\u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b \u043f\u043e\u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438, \u043a\u0430\u043a\u043e\u0432\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0431\u0435\u0437 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u0425\u043e\u0442\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043f\u0440\u043e\u0441\u0442\u0430\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0432\u044b \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u0441\u044c.<\/p>\n<details class=\"spoiler\">\n<summary>\u0412 \u0447\u0451\u043c \u0436\u0435 \u0442\u0443\u0442 \u0434\u0435\u043b\u043e?<\/summary>\n<div class=\"spoiler__content\">\n<p> \u041d\u0430 \u043a\u043e\u0434 \u0432\u044b\u0448\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0432\u044b\u0434\u0430\u0451\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435: <\/p>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3070\/\">V3070<\/a>. Uninitialized variable &#8216;SolarizedLight&#8217; is used when initializing the &#8216;DefaultColorScheme&#8217; variable. ColorScheme.cs 32<\/p>\n<p>\u0418 \u043f\u0440\u0430\u0432\u0434\u0430, \u0441 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0435\u0439 \u0442\u0443\u0442 \u0447\u0442\u043e-\u0442\u043e \u044f\u0432\u043d\u043e \u043d\u0435 \u0442\u0430\u043a.<\/p>\n<\/div>\n<\/details>\n<h3>6 \u043c\u0435\u0441\u0442\u043e. \u041f\u0443\u0442\u0430\u043d\u0438\u0446\u0430 \u0432 .NET 7<\/h3>\n<p>\u0414\u0430-\u0434\u0430, \u044d\u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/1015\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043f\u0440\u043e \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 .NET 7! \u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u0435\u043d :).<\/p>\n<p>\u0421\u043f\u0435\u0440\u0432\u0430 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 <em>XmlConfigurationElementTextContent<\/em>:<\/p>\n<pre><code class=\"cs\">public XmlConfigurationElementTextContent(string textContent,                                            int? linePosition,                                            int? lineNumber) { .... } <\/code><\/pre>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0437\u0433\u043b\u044f\u043d\u0438\u0442\u0435, \u0433\u0434\u0435 \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"cs\">public static IDictionary&lt;string, string?> Read(....) {   ....   case XmlNodeType.EndElement:     ....     var lineInfo = reader as IXmlLineInfo;     var lineNumber = lineInfo?.LineNumber;     var linePosition = lineInfo?.LinePosition;     parent.TextContent =       new XmlConfigurationElementTextContent(string.Empty,                                               lineNumber,                                              linePosition);     ....     break;   ....   case XmlNodeType.Text:     ....     var lineInfo = reader as IXmlLineInfo;     var lineNumber = lineInfo?.LineNumber;     var linePosition = lineInfo?.LinePosition;      XmlConfigurationElement parent = currentPath.Peek();      parent.TextContent =       new XmlConfigurationElementTextContent(reader.Value,                                              lineNumber,                                              linePosition);     ....     break;   .... } <\/code><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b: &#8230;, <em>lineNumber<\/em>, <em>linePosition<\/em>;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: &#8230;, <em>linePosition<\/em>, <em>lineNumber<\/em>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3066\/\">V3066<\/a> Possible incorrect order of arguments passed to &#8216;XmlConfigurationElementTextContent&#8217; constructor: &#8216;lineNumber&#8217; and &#8216;linePosition&#8217;. XmlStreamConfigurationProvider.cs 133<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3066\/\">V3066<\/a> Possible incorrect order of arguments passed to &#8216;XmlConfigurationElementTextContent&#8217; constructor: &#8216;lineNumber&#8217; and &#8216;linePosition&#8217;. XmlStreamConfigurationProvider.cs 148<\/p>\n<\/li>\n<\/ul>\n<p><a class=\"mention\" href=\"\/users\/foto_shooter\">@foto_shooter<\/a>, \u043a\u0441\u0442\u0430\u0442\u0438, \u043e\u0442\u043a\u0440\u044b\u043b <a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/78212\">issue<\/a> \u043d\u0430 GitHub, \u0438 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043b\u0438: \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0438 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0438 \u0434\u0430\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0442\u0435\u0441\u0442.<\/p>\n<h3>5 \u043c\u0435\u0441\u0442\u043e. \u041f\u0440\u0435\u0436\u0434\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u0432 Orleans<\/h3>\n<p>\u0412\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0442\u043e\u043f\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0961\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 Orleans:<\/p>\n<pre><code class=\"cs\">private class BatchOperation {   private readonly List&lt;TableTransactionAction> batchOperation;   ....    public async Task Flush()   {     if (batchOperation.Count > 0)     {       try       {         ....         batchOperation.Clear();                              \/\/ &lt;=         keyIndex = -1;          if (logger.IsEnabled(LogLevel.Trace))         {           for (int i = 0; i &lt; batchOperation.Count; i++)     \/\/ &lt;=           {             logger.LogTrace(....)           }         }       }       catch (Exception ex)       {         ....       }     }   } } <\/code><\/pre>\n<p><a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3116\/\">V3116<\/a>. Consider inspecting the &#8216;for&#8217; operator. It&#8217;s possible that the loop will be executed incorrectly or won&#8217;t be executed at all. AzureTableTransactionalStateStorage.cs 345<\/p>\n<p>\u0427\u0442\u043e-\u0442\u043e \u043c\u043d\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u0447\u0438\u0449\u0430\u0442\u044c <em>batchOperation<\/em> \u0441\u0442\u043e\u0438\u043b\u043e \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435. \u0418, \u0441\u0443\u0434\u044f \u043f\u043e <a href=\"https:\/\/github.com\/dotnet\/orleans\/pull\/7839\/files\">\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043c<\/a>, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 Orleans \u0441\u043e \u043c\u043d\u043e\u0439 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u044b.<\/p>\n<h3>4 \u043c\u0435\u0441\u0442\u043e. \u0422\u0435\u043d\u0435\u0432\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 Eto.Forms<\/h3>\n<p>\u0421 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043e\u0442\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u0442 \u0442\u0440\u0451\u0445 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u043b\u0430\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0929\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 GUI-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 Eto.Forms:<\/p>\n<pre><code class=\"cs\">public NSShadow TextHighlightShadow {   get   {     if (textHighlightShadow == null)     {       textHighlightShadow = new NSShadow();       textHighlightShadow.ShadowColor = NSColor.FromDeviceWhite(0F, 0.5F);       textHighlightShadow.ShadowOffset = new CGSize(0F, -1.0F);       textHighlightShadow.ShadowBlurRadius = 2F;     }     return textHighlightShadow;   }   set { textShadow = value; }         \/\/ &lt;= }  public NSShadow TextShadow {   get   {     if (textShadow == null)     {       textShadow = new NSShadow();       textShadow.ShadowColor = NSColor.FromDeviceWhite(1F, 0.5F);       textShadow.ShadowOffset = new CGSize(0F, -1.0F);       textShadow.ShadowBlurRadius = 0F;     }     return textShadow;   }   set { textShadow = value; } } <\/code><\/pre>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/docs\/warnings\/v3140\/\">V3140<\/a> Property accessors use different backing fields. Eto.Mac64 MacImageAndTextCell.cs 162<\/p>\n<p>Copy-paste \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u043f\u0440\u0438\u0432\u0435\u0442 :).<\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443 <em>TextHighlightShadow<\/em> \u0438 \u043f\u0440\u0430\u0432\u0434\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043a\u0430\u043a-\u0442\u043e \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 <em>textShadow<\/em>. \u041d\u043e \u0434\u0430\u0436\u0435 \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u043e\u043b\u0435 <em>textHighlightShadow<\/em>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0435\u0441\u044f \u0432 get-\u0430\u043a\u0441\u0435\u0441\u0441\u043e\u0440\u0435.<\/p>\n<h3>3 \u043c\u0435\u0441\u0442\u043e. \u041f\u043e\u0442\u0435\u0440\u044f\u043d\u043d\u0430\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0432 Squidex<\/h3>\n<p>\u0422\u0440\u043e\u0439\u043a\u0443 \u0444\u0438\u043d\u0430\u043b\u0438\u0441\u0442\u043e\u0432 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0438\u0437 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0926\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u043d\u0430 ASP.NET Core. \u042d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0431\u044b\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Squidex:<\/p>\n<pre><code class=\"cs\">private IEnumerable&lt;IMigration?> ResolveMigrators(int version) {   yield return serviceProvider.GetRequiredService&lt;StopEventConsumers>();    \/\/ Version 06: Convert Event store. Must always be executed first.   if (version &lt; 6)   {     yield return serviceProvider.GetRequiredService&lt;ConvertEventStore>();   }    \/\/ Version 22: Integrate Domain Id.   if (version &lt; 22)   {     yield return serviceProvider                    .GetRequiredService&lt;AddAppIdToEventStream>();   }    \/\/ Version 07: Introduces AppId for backups.   else if (version &lt; 7)    {     yield return serviceProvider                    .GetRequiredService&lt;ConvertEventStoreAppId>();   }    \/\/ Version 05: Fixes the broken command architecture and requires a   \/\/ rebuild of all snapshots.   if (version &lt; 5)   {     yield return serviceProvider.GetRequiredService&lt;RebuildSnapshots>();   }   else   {     \/\/ Version 09: Grain indexes.     if (version &lt; 9)     {       yield return serviceProvider.GetService&lt;ConvertOldSnapshotStores>();     }      ....   }    \/\/ Version 13: Json refactoring   if (version &lt; 13)   {     yield return serviceProvider                    .GetRequiredService&lt;ConvertRuleEventsJson>();   }    yield return serviceProvider.GetRequiredService&lt;StartEventConsumers>(); } <\/code><\/pre>\n<p>\u0416\u0435\u043b\u0430\u044e \u0443\u0434\u0430\u0447\u0438 \u0432 \u0435\u0451 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 :).<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u0438\u0441\u043a\u0430\u0442\u044c \u043b\u0435\u043d\u044c, \u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0432\u0437\u0433\u043b\u044f\u043d\u0438\u0442\u0435 \u043d\u0430 \u0441\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442:<\/p>\n<pre><code class=\"cs\">\/\/ Version 22: Integrate Domain Id. if (version &lt; 22) {   yield return serviceProvider.GetRequiredService&lt;AddAppIdToEventStream>(); }  \/\/ Version 07: Introduces AppId for backups. <\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/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-404466","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/404466","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=404466"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/404466\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=404466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=404466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=404466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}