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