[roll] Roll fuchsia [bt][common] Enforce AD ManufacturerData fit when encoded
Addresses the possibility of ManufacturerData overflow in
AdvertisingData::WriteBlock. Specifically:
* Checks encoded ManufacturerData size invariant in AD::
SetManufacturerData. Accordingly, helpers::AdvertisingDataFromFidl is
fallible if the FIDL contains manufacturer data that is too long.
* Adds assertion that encoded ManufacturerData sizes are <= uint8::MAX
and static_casts before writing sizes to encoded bytes.
Original-Bug: 66980
Test: Adds to GAP_AdvertisingDataTest.SetFieldsWithTooLongParameters and
FIDL_HelpersTest.AdvertisingDataFromFidlWithFieldsTooLong. Other
modifications are trivial due to fallibility of SetServiceData /
ADFromFidl.
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/474304
Original-Revision: 0989d6f1200dced28614b43d816cca1631414049
GitOrigin-RevId: a855d39201b62740980c8849eafb664a4b69f39d
Change-Id: I52bcc587d8aba44146f2468c6af964be14f25363
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.