[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
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.