[roll] Roll fuchsia [camera][sensor] Fix num_modes_ initialization

num_modes_ is not properly initialized to any reasonable
value, but is used in a critical range check.

Since num_modes_ is only used in one place, and that size is
easily fetched from the said array, we choose to eliminate
num_modes_ completely.

Original-Bug: b/196701267
Test: Force an out-of-range value to see if the range check fails.
      Force an in-range value to see if the range check succeeds.
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/569121
Original-Revision: edf5a17d3110c66e7c89bcf5d1535cde0c9a171a
GitOrigin-RevId: 302a41d852273f85eb48561cd22f425c4bc0e788
Change-Id: I8021252890ee95ed47988274be5ae00c11d781ed
1 file changed
tree: 9fd3933f09751fae4c1636d8e0b5f4a42f35e17c
  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.