Fixed: Ensure CSI parameter value is not greater than 9999 as per vt510

This commit is contained in:
agnostic-apollo 2022-06-15 04:05:34 +05:00
parent fbf55fd40c
commit 9433f10757
No known key found for this signature in database
GPG key ID: BCCC0287E9DCCAED

View file

@ -2136,6 +2136,8 @@ public final class TerminalEmulator {
} else { } else {
value = thisDigit; value = thisDigit;
} }
if (value > 9999)
value = 9999;
mArgs[mArgIndex] = value; mArgs[mArgIndex] = value;
} }
continueSequence(mEscapeState); continueSequence(mEscapeState);