SIGN IN SIGN UP

Bounds checks for values/inputs/outputs (#1572)

Summary:
Pull Request resolved: https://github.com/pytorch/executorch/pull/1572

Avoid buffer overruns of the `values_` table by checking indies.

Pre-check that inputs/outputs point to valid values so we can fail non-fatally.

Add unit tests for the testable changes.

Reviewed By: larryliu0820

Differential Revision: D52646899

fbshipit-source-id: b8fe643ae946da9b77ed54687559f75cf9010703
D
Dave Bort committed
0b5e3494b7252d4b52063dacbaa9108f5177b33d
Parent: a9bd425
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 1/12/2024, 10:57:01 PM