Skip to content

Commit d982c09

Browse files
committed
Merge remote-tracking branch 'origin/patch'
2 parents d69dbe5 + ebb336b commit d982c09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/BinaryReader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,9 @@ public long[] readNextLongArray(int nElements) throws IOException {
436436
*/
437437
public String readAsciiString(long index) throws IOException {
438438
StringBuffer buffer = new StringBuffer();
439+
long len = provider.length();
439440
while (true) {
440-
if (index == provider.length()) {
441+
if (index == len) {
441442
// reached the end of the bytes and found no non-ascii data
442443
break;
443444
}

0 commit comments

Comments
 (0)