Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 92edb678 authored by Myles Watson's avatar Myles Watson
Browse files

PDL: Check total field length before parsing

- Add a test for struct parsing in packet/parser/test
- Sum the field bits and check against the total size
- Round up when returning the number of bytes from Size

Fixes: 143118297
Fixes: 144231005
Fixes: 144245424
Fixes: 144354467
Test: bluetooth_packet_parser_test
      bluetooth_test_gd
Change-Id: Ib71b7fae2c00ae36326a2dc38bce3c56b96fe29e
parent aa736173
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment