From f81e46670a612c95ff0bec4b5186401ec93b6e4e Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 3 Sep 2025 08:42:22 -0400 Subject: [PATCH] Remove UTF-8 strings from check --- BinaryObjectScanner/FileType/Executable.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/BinaryObjectScanner/FileType/Executable.cs b/BinaryObjectScanner/FileType/Executable.cs index 7db6ec82..327483bc 100644 --- a/BinaryObjectScanner/FileType/Executable.cs +++ b/BinaryObjectScanner/FileType/Executable.cs @@ -335,12 +335,8 @@ namespace BinaryObjectScanner.FileType // We are limiting the check for Unicode characters with a second byte of 0x00 for now var utf8Strings = ReadStringsWithEncoding(input, charLimit, Encoding.UTF8); - // Check for Unicode strings - // We are limiting the check for Unicode characters with a second byte of 0x00 for now - var unicodeStrings = ReadStringsWithEncoding(input, charLimit, Encoding.Unicode); - // Ignore duplicate strings across encodings - List sourceStrings = [.. asciiStrings, .. utf8Strings, .. unicodeStrings]; + List sourceStrings = [.. asciiStrings, .. utf8Strings]; // Sort the strings and return sourceStrings.Sort();