apps_mlearning_tflite-micro/python/tflite_micro/signal
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
..
ops `Python PCAN` (#2204) 2023-09-01 21:20:10 +00:00
utils Fix array out-of-bounds access in WideDynamicFuncLut (#2468) 2026-04-20 14:48:02 +08:00
BUILD Replace tensorflow-cpu usage with tensorflow (#2396) 2026-04-20 14:48:01 +08:00
__init__.py Adds Signal Library Window Op (#2019) 2023-06-14 00:25:02 +00:00
tflm_signal.bzl Explicit load for py_library. (#2127) 2023-07-14 21:59:36 +00:00