Skip to content

Commit

Permalink
cbfs: Replace readNextNullTerminatedAsciiString with readNextAsciiString
Browse files Browse the repository at this point in the history
This was replaced in [1], which is included in Ghidra 10.2.

[1]: NationalSecurityAgency/ghidra@01aadea
  • Loading branch information
al3xtjames committed Nov 4, 2022
1 parent 922591c commit 1521ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/firmware/cbfs/CBFSFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public CBFSFile(BinaryReader reader) throws IOException {
type = reader.readNextInt();
attributesOffset = reader.readNextUnsignedInt();
offset = reader.readNextUnsignedInt();
name = reader.readNextNullTerminatedAsciiString();
name = reader.readNextAsciiString();

// The attributes offset should point past the end of the CBFS file structure.
if (attributesOffset != 0 && attributesOffset > CBFSConstants.CBFS_FILE_SIZE) {
Expand Down

0 comments on commit 1521ece

Please sign in to comment.