We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d69dbe5 + ebb336b commit d982c09Copy full SHA for d982c09
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/BinaryReader.java
@@ -436,8 +436,9 @@ public long[] readNextLongArray(int nElements) throws IOException {
436
*/
437
public String readAsciiString(long index) throws IOException {
438
StringBuffer buffer = new StringBuffer();
439
+ long len = provider.length();
440
while (true) {
- if (index == provider.length()) {
441
+ if (index == len) {
442
// reached the end of the bytes and found no non-ascii data
443
break;
444
}
0 commit comments