fix shell buffer overflow issue

This commit is contained in:
Gabriel Wang 2023-03-09 00:55:10 +00:00 committed by lyon
parent 0b33b1263a
commit ce766b72d5

View File

@ -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)) {