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

This commit is contained in:
Jin Cheng
2025-12-19 11:17:18 +08:00
parent 7d333a6324
commit e49da3f737
@@ -595,7 +595,7 @@ while (*buf == ' ') buf++;
buf += sizeof("\r\n") - 1; buf += sizeof("\r\n") - 1;
/* skip rest of AT string up to <cr> */ /* 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) static char *bta_hf_client_parse_ok(char *buffer)
{ {