mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
fix shell buffer overflow issue
This commit is contained in:
parent
0b33b1263a
commit
ce766b72d5
@ -1405,8 +1405,8 @@ enum shellCTRL _do_obj_runChar(PikaObj* self,
|
||||
int16_t n = byte_count;
|
||||
|
||||
while (n--) {
|
||||
pika_assert(PIKA_FALSE !=
|
||||
byteQueue_readOne(queue, (uint8_t*)&inputChar));
|
||||
result = byteQueue_readOne(queue, (uint8_t*)&inputChar);
|
||||
pika_assert(PIKA_FALSE != result);
|
||||
|
||||
if (SHELL_CTRL_EXIT ==
|
||||
_inner_do_obj_runChar(self, inputChar, shell)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user