Skip to content
Commit 21acbdd4 authored by Zhilong Wubin's avatar Zhilong Wubin Committed by tarek-arm
Browse files

cli: fix escape buffer overflow check



This commit add escape buffer overflow check when cli receive
escape sequence(cursor position response). escape buffer size
is 8 bytes, the last byte used to store string end symbol '\0'.
So the longest string escape buffer can save is 7 bytes. But in
some console or tool, the cursor position response sequence is
more then 7 bytes, and escap buffer will overflow. This patch
fix it.

Signed-off-by: default avatarZhilong Wubin <zhilong.wb@alibaba-inc.com>
parent e09156bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment