Fix: 字符数组expect_str越界
第389行创建的字符数组str大小只有10,后续412行sprintf的字符串明显超出了10的大小,会发生数组越界,出现问题
This commit is contained in:
@@ -386,7 +386,7 @@ static int air724_recv(int id, void *buf, size_t len)
|
||||
int air724_send(int id, const void *buf, size_t len)
|
||||
{
|
||||
at_echo_t echo;
|
||||
char expect_str[10];
|
||||
char expect_str[30];
|
||||
|
||||
if (tos_at_global_lock_pend() != 0) {
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user