commit | 413bbfaa99b4392581f3df65834fd27bf268c5a7 | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Fri Nov 17 09:44:29 2023 +0800 |
committer | developer <developer@mediatek.com> | Tue Nov 21 14:31:15 2023 +0800 |
tree | dc2730a33f697f86bf5f9ccdde46264871dedfea | |
parent | 50ef77c5bbb2458a7f33a4a5b1e2b430c9bb5cf6 [diff] |
[][openwrt][mt7988][pce][fix out-of-bound array access] [Description] Fix potential out-of-bound array access. The CDRT can only be accessed within 1 ~ 31 while the CDRT find function's error checking mechanism is checked the FE_MEM_CDRT_MAX_INDEX which is 96. Ajust the error checking mechanism so that we can ensure the input is within 1 ~ 31 [Release-log] N/A Change-Id: I85565f16e641800baee6dcfdcf8697ac64625d20 Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8263662