fix(bt/bluedroid): fixed OOB read in AT_SKIP_RESET

This commit is contained in:
Jin Cheng
2025-10-11 17:45:00 +08:00
committed by BOT
parent 80fda864ad
commit 09f381ba97

View File

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