summaryrefslogtreecommitdiff
path: root/ravenwood/scripts/extract-last-soong-commands.py
diff options
context:
space:
mode:
author Tzuhao Tseng <tzuhao.tseng@mediatek.com> 2024-11-28 15:55:32 +0800
committer Tzuhao Tseng <tzuhao.tseng@mediatek.com> 2024-12-03 01:44:20 +0000
commit8508e6637b3b142f1bd315af9f07b1e5d0a63dea (patch)
treeec2bb06fe81a1d504f764754e27ebd2de4b1d85d /ravenwood/scripts/extract-last-soong-commands.py
parentaf9fdf0a441c861cf0804982de1eae7cdbd587e7 (diff)
Fix DnsEvent ArrayIndexOutOfBound error
If both eventCount and eventTypes.length are equal to 1, then after resizing the eventTypes array, its length remains 1. Therefore, attempting to access eventTypes[eventCount] = eventType would result in an ArrayIndexOutOfBoundsException error. If the length of the eventTypes array remains the same as eventCount after resizing, then the length of the eventTypes array needs to be incremented by 1 again. Test: GOTA test Bug: 381457920 Change-Id: I7926961e6a94a976524f729d049ee7164a48d233
Diffstat (limited to 'ravenwood/scripts/extract-last-soong-commands.py')
0 files changed, 0 insertions, 0 deletions