mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch
'origin/GP-5597_ghidra_bad_name_in_search_window_title' (Closes #8015)
This commit is contained in:
@@ -48,12 +48,12 @@ class StringSearchFormat extends SearchFormat {
|
|||||||
if (charset == StandardCharsets.UTF_16) {
|
if (charset == StandardCharsets.UTF_16) {
|
||||||
charset = isBigEndian ? StandardCharsets.UTF_16BE : StandardCharsets.UTF_16LE;
|
charset = isBigEndian ? StandardCharsets.UTF_16BE : StandardCharsets.UTF_16LE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Escape sequences in the "input" are 2 Characters long.
|
// Escape sequences in the "input" are 2 Characters long.
|
||||||
|
String converted = input;
|
||||||
if (settings.useEscapeSequences() && inputLength >= 2) {
|
if (settings.useEscapeSequences() && inputLength >= 2) {
|
||||||
input = StringUtilities.convertEscapeSequences(input);
|
converted = StringUtilities.convertEscapeSequences(input);
|
||||||
}
|
}
|
||||||
byte[] bytes = input.getBytes(charset);
|
byte[] bytes = converted.getBytes(charset);
|
||||||
byte[] maskArray = new byte[bytes.length];
|
byte[] maskArray = new byte[bytes.length];
|
||||||
Arrays.fill(maskArray, (byte) 0xff);
|
Arrays.fill(maskArray, (byte) 0xff);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user