mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
Merge branch 'bugfix/a2dp_source_memory_access_out_of_bounds_v4.4' into 'release/v4.4'
Fixed the issue memory access out of bounds in a2dp_source example (v4.4) See merge request espressif/esp-idf!21145
This commit is contained in:
@ -355,7 +355,7 @@ static int32_t bt_app_a2d_data_cb(uint8_t *data, int32_t len)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int *p_buf = (int *)data;
|
int16_t *p_buf = (int16_t *)data;
|
||||||
for (int i = 0; i < (len >> 1); i++) {
|
for (int i = 0; i < (len >> 1); i++) {
|
||||||
p_buf[i] = rand() % (1 << 16);
|
p_buf[i] = rand() % (1 << 16);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user