mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-12 23:23:17 +00:00
GT-2715 - also handle actual strings in uninit'd memory
This commit is contained in:
parent
dd7ffda876
commit
54c650dea2
@ -422,7 +422,7 @@ public class StringDataInstance {
|
||||
}
|
||||
|
||||
private String getStringValueNoTrim() {
|
||||
if (isProbe() || isBadCharSize()) {
|
||||
if (isProbe() || isBadCharSize() || !buf.isInitializedMemory()) {
|
||||
return null;
|
||||
}
|
||||
byte[] stringBytes = convertPaddedToUnpadded(getStringBytes());
|
||||
@ -895,7 +895,10 @@ public class StringDataInstance {
|
||||
}
|
||||
|
||||
String str = getStringValue();
|
||||
if (str == null || str.length() == 0) {
|
||||
if (str == null) {
|
||||
return defaultStr;
|
||||
}
|
||||
if (str.length() == 0) {
|
||||
return prefixStr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user