diff options
author | Ben Chan <benchan@chromium.org> | 2019-03-29 11:53:53 -0700 |
---|---|---|
committer | Ben Chan <benchan@chromium.org> | 2019-03-29 13:34:10 -0700 |
commit | 43d454ab7f186c5d7feb7cc9f73119864e419554 (patch) | |
tree | 43a2166238acbef71396844a9cd6cadd5a6eefdb /src | |
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
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions