mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
fix(bt/bluedroid): fixed OOB read in AT_SKIP_RESET
This commit is contained in:
@@ -595,7 +595,7 @@ while (*buf == ' ') buf++;
|
||||
buf += sizeof("\r\n") - 1;
|
||||
|
||||
/* skip rest of AT string up to <cr> */
|
||||
#define AT_SKIP_REST(buf) while(*buf != '\r') buf++;
|
||||
#define AT_SKIP_REST(buf) while((*buf != '\r') && (*buf != '\0')) buf++;
|
||||
|
||||
static char *bta_hf_client_parse_ok(char *buffer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user