Parent: b16b19885c5383cd0499503617b98ceb188c898e
Author: Iulia Tanasescu <iulia.tanasescu@nxp.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-02-13 22:27:27
Tree: 6e1a0d7902c0b885bfeb01fb86887ce0703bfa5b
btdev: Fix set PA data array overflow This fixes an array overflow that can happen if the user issues the LE Set Periodic Advertising Data command with data length exceeding 31 bytes. The PA data set by the user is copied in an array of fixed length (31 bytes). However, the data length might exceed 31 bytes. This will cause an array overflow when the PA data is later processed (for instance, when sending PA reports). According to specification, the data length provided at LE Set Periodic Advertising Data command can be maximum 252 bytes. The stored data len should also be true to the length copied in the array.
Diffstat
| M | emulator/btdev.c | | | 14 | ++++++++++- - - - |
1 files changed, 10 insertions(+), 4 deletions(-)