mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-31 05:28:45 +08:00
Merge remote-tracking branch
'origin/GP-0_d-millar_index_error_revisited' (Closes #4353)
This commit is contained in:
+2
-1
@@ -286,7 +286,8 @@ public class DumpFileLoader extends AbstractLibrarySupportLoader {
|
||||
DataUtilities.ClearDataMode.CHECK_FOR_SPACE);
|
||||
}
|
||||
catch (CodeUnitInsertionException e) {
|
||||
Msg.error(this, "Could not create " + dd.getDataType().getName() + " at " + address);
|
||||
Msg.error(this,
|
||||
"Could not create " + dd.getDataType().getName() + " at " + address);
|
||||
}
|
||||
monitor.setProgress(count++);
|
||||
monitor.checkCanceled();
|
||||
|
||||
+1
-2
@@ -43,8 +43,8 @@ public class CommentStreamA implements StructConverter {
|
||||
private void parse() throws IOException {
|
||||
reader.setPointerIndex(index);
|
||||
|
||||
commentLength = reader.readNextInt();
|
||||
comment = reader.readNextAsciiString();
|
||||
commentLength = (int) (reader.getPointerIndex() - index);
|
||||
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ public class CommentStreamA implements StructConverter {
|
||||
public DataType toDataType() throws DuplicateNameException {
|
||||
StructureDataType struct = new StructureDataType(NAME, 0);
|
||||
|
||||
struct.add(DWORD, 4, "CommentLength", null);
|
||||
struct.add(ASCII, commentLength, "Comment", null);
|
||||
|
||||
return struct;
|
||||
|
||||
+1
-2
@@ -43,8 +43,8 @@ public class CommentStreamW implements StructConverter {
|
||||
private void parse() throws IOException {
|
||||
reader.setPointerIndex(index);
|
||||
|
||||
commentLength = reader.readNextInt();
|
||||
comment = reader.readNextUnicodeString();
|
||||
commentLength = (int) (reader.getPointerIndex() - index);
|
||||
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ public class CommentStreamW implements StructConverter {
|
||||
public DataType toDataType() throws DuplicateNameException {
|
||||
StructureDataType struct = new StructureDataType(NAME, 0);
|
||||
|
||||
struct.add(DWORD, 4, "CommentLength", null);
|
||||
struct.add(UTF16, commentLength, "Comment", null);
|
||||
|
||||
return struct;
|
||||
|
||||
Reference in New Issue
Block a user