From d87e58d425c9eeaa4bf679333f25083e46d23705 Mon Sep 17 00:00:00 2001 From: Steve Pfister Date: Thu, 21 May 2026 13:01:59 -0400 Subject: [PATCH 1/2] Add use with trusted files remark to FileVersionInfo.GetVersionInfo --- xml/System.Diagnostics/FileVersionInfo.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xml/System.Diagnostics/FileVersionInfo.xml b/xml/System.Diagnostics/FileVersionInfo.xml index b0399738e09..9b80c874ec1 100644 --- a/xml/System.Diagnostics/FileVersionInfo.xml +++ b/xml/System.Diagnostics/FileVersionInfo.xml @@ -722,6 +722,11 @@ [!CAUTION] +> Use this with only trusted files. Malformed or malicious files can cause unexpected behavior. + ## Examples The following example calls to get the for Notepad and displays the file description and version number in the console window. From ba8b2c9938d11b7a56efc48934abc0ad574d7786 Mon Sep 17 00:00:00 2001 From: Steve Pfister Date: Thu, 21 May 2026 13:12:04 -0400 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- xml/System.Diagnostics/FileVersionInfo.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Diagnostics/FileVersionInfo.xml b/xml/System.Diagnostics/FileVersionInfo.xml index 9b80c874ec1..6d3ba940527 100644 --- a/xml/System.Diagnostics/FileVersionInfo.xml +++ b/xml/System.Diagnostics/FileVersionInfo.xml @@ -725,7 +725,7 @@ ## Remarks > [!CAUTION] -> Use this with only trusted files. Malformed or malicious files can cause unexpected behavior. +> Use this method only with trusted files. Malformed or malicious files can cause unexpected behavior. ## Examples The following example calls to get the for Notepad and displays the file description and version number in the console window.