apps_mlearning_tflite-micro/python
Alpha BAO 9ded94b561 Fix array out-of-bounds access in WideDynamicFuncLut (#2468)
### Problem description:

In the original code, pointer arithmetic of gain_lut and the assignment of gain_lut[4 * interval + 3] could potentially lead to out-of-bounds array access.
On certain architectures (e.g., macOS ARM64), this out-of-bounds access causes the program to crash.
BUG=None, reported issue#2464

### Solution:

Increase the size of the gain_lut_storage array by 1 to provide an extra buffer and prevent overflow during the calculation within the loop.

### Risks and considerations:

Increasing the array size will slightly increase memory usage.
In extremely resource-constrained systems, alternative algorithm implementations may need to be considered.
2026-04-20 14:48:02 +08:00
..
tests build(bazel): use --std=c++17 by default (#2060) 2023-06-15 20:22:54 +00:00
tflite_micro Fix array out-of-bounds access in WideDynamicFuncLut (#2468) 2026-04-20 14:48:02 +08:00
BUILD build: add means of linking with C libs in Py packages (#1668) 2023-03-05 06:25:58 +00:00
py_namespace.bzl feat: build and test a Python distribution package `tflite_micro` (#2151) 2023-08-01 22:27:53 +00:00
py_pkg_cc_deps.bzl Fixing google3 presubmit buildify errors. (#1809) 2023-03-08 21:06:49 +00:00