)]}'
{
  "commit": "cfa4c91d1b36c37c7c104b9c664615e59f1abfe3",
  "tree": "1806762d442c096a30fa7b8f5749190f29f86c37",
  "parents": [
    "8085cecefcc2daefbc4c4480c644b59052841b95"
  ],
  "author": {
    "name": "Alpha BAO",
    "email": "zhuijun.bao@outlook.com",
    "time": "Sat Feb 24 13:40:47 2024 +0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sat Feb 24 05:40:47 2024 +0000"
  },
  "message": "Fix array out-of-bounds access in WideDynamicFuncLut (#2468)\n\n### Problem description:\n\nIn 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.\nOn certain architectures (e.g., macOS ARM64), this out-of-bounds access causes the program to crash.\nBUG\u003dNone, reported issue#2464\n\n### Solution:\n\nIncrease the size of the gain_lut_storage array by 1 to provide an extra buffer and prevent overflow during the calculation within the loop.\n\n### Risks and considerations:\n\nIncreasing the array size will slightly increase memory usage.\nIn extremely resource-constrained systems, alternative algorithm implementations may need to be considered.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e93e8f37cd8d2c14777356fde2535e6c0fbd4139",
      "old_mode": 33188,
      "old_path": "python/tflite_micro/signal/utils/wide_dynamic_func_lut_wrapper.cc",
      "new_id": "4ecf1618466fb3a2d9ca71063f5bbd3ad5618d38",
      "new_mode": 33188,
      "new_path": "python/tflite_micro/signal/utils/wide_dynamic_func_lut_wrapper.cc"
    }
  ]
}
