Closed aw closed 2 years ago
As the title suggests, this PR adds bounds check on TBUF to ensure it doesn't overflow.
TBUF
I tested this by changing TIB_SIZE to 0x0002 and confirmed only 2 characters can be added to the buffer. After typing the third character, an error is returned.
TIB_SIZE
0x0002
As the title suggests, this PR adds bounds check on
TBUF
to ensure it doesn't overflow.I tested this by changing
TIB_SIZE
to0x0002
and confirmed only 2 characters can be added to the buffer. After typing the third character, an error is returned.