[roll] Roll fuchsia [bt][common] Enforce AD ServiceData fit when encoded
Addresses the possibility of ServiceData overflow in AdvertisingData::
WriteBlock. Specifically:
* Checks encoded ServiceData size invariant in AD::SetServiceData.
Accordingly, helpers::AdvertisingDataFromFidl is fallible if the FIDL
contains service data that is too long.
* Adds assertion that encoded ServiceData 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/+/472943
Original-Revision: a2ab0f26c27ae7374b7d7c28d1d147a234dc6ef6
GitOrigin-RevId: 2da7c162a7fb105151f957cc3eae122e16ec2a0d
Change-Id: I3334023cf19fed697008f20c064bc810def03536
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.