[roll] Roll fuchsia [bt][lib] Correct generation bug in DetachableMap

In DetachableMap, you can get a DetachableWeak reference to an item, but
then that item could be replaced later.  If you then detached the original
item, it would remove the new item from the Map, even though you didn't
detach a reference to that item.

Add a bool tracking whether the item is in the parent map, and check it
was true before removing it.

Original-Bug: 75375
Test: added cant_detach_replaced_key
Test: fx test bluetooth-crate-tests
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/520371
Original-Revision: 668361c15c458fca181e91c32adadd3c14b32417
GitOrigin-RevId: db474d531faad28dd39e2715e5acc36c9eb76eb4
Change-Id: Ib2c78921b13a4586b0a3429408c5fc8649f84509
1 file changed
tree: 57a49f8bd1b5a80ccc59a5d3c33a68d9d4197fe3
  1. garnet/
  2. infra/
  3. peridot/
  4. third_party/
  5. topaz/
  6. zircon/
  7. firmware
  8. flower
  9. jiri.lock
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. 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.