mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 10:03:27 +08:00
Fixed incorrect parsing of the Erase In Line ANSI code.
All credits go to nsadeveloper789 for the patch.
This commit is contained in:
+3
@@ -365,6 +365,9 @@ public class AnsiBufferedInputStream extends InputStream {
|
||||
|
||||
protected int parseNumericBuffer() {
|
||||
String numeric = readAndClearEscBuf();
|
||||
if (numeric.isEmpty()) {
|
||||
return 0;
|
||||
}
|
||||
int result = Integer.parseInt(numeric);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user