[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
1 file changed
tree: 204b101bbf4dd3cd13b4db03b976ab6eb3ca66af
  1. garnet/
  2. infra/
  3. peridot/
  4. third_party/
  5. topaz/
  6. zircon/
  7. flower
  8. jiri.lock
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

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.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.