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

Skip to content
Commit ac2311f9 authored by Henri Chataing's avatar Henri Chataing
Browse files

Packetgen: Fix potential runtime panics in rust generated code

- Replace unwrapping of Enum, Struct, CustomField, Array field
  conversion, raise Error instead
- Fix bounds checks for vector fields with _size_ or _count_
  length
- Fix bounds checks for payload fields

BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Bug: 225384813
Test: reproduction with minimal PDL source

Change-Id: If5c2c5b7fe01fe602ed93ccf1bfdfc7c86c12770
parent 85d45e8e
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