Parent: 74d1241aecbe809dc8fb1bb1a532072ca6ea0328
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-03-02 18:36:40
Tree: be3f54af65d78b9e752b4f7a5c90e3212174f9cd
monitor: Validate HCI event/command parameter length when parsing Print an error message if the parameter length for HCI commands/events does not match the actual remaining packet size. This mainly avoids using garbage bytes when parsing corrupted packets. The check was inspired on those used when parsing SCO/ACL packets.
Diffstat
| M | monitor/packet.c | | | 14 | ++++++++++++++ |
1 files changed, 14 insertions(+), 0 deletions(-)