commit | 43d454ab7f186c5d7feb7cc9f73119864e419554 | [log] [tgz] |
---|---|---|
author | Ben Chan <benchan@chromium.org> | Fri Mar 29 18:53:53 2019 |
committer | Ben Chan <benchan@chromium.org> | Fri Mar 29 20:34:10 2019 |
tree | 43a2166238acbef71396844a9cd6cadd5a6eefdb | |
parent | 0944e592522f932ec72f0e88837252c39bd4df98 [diff] |
ublox: fix out-of-bounds array accesses This patch fixes several invalid checks like this: array[i] && i < G_N_ELEMENTS (array) which should instead be: i < G_N_ELEMENTS (array) && array[i] to avoid an out-of-bounds access of the array. Fixes: c1aa658802940327369a6a4cc50d35a4a6a9b04e