aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2024-08-14 21:19:09 +0200
committerJonathan Cameron <[email protected]>2024-08-17 15:37:37 +0100
commit076c4d18de4e93591641d03fb921875c02b30eb3 (patch)
tree0e092ce152369ac7eec8dc1617871c05d5276e33 /lib/test_fortify/write_overflow-strncpy-src.c
parentc524fbca672e07439a4ed5628c93cec10188dc00 (diff)
iio: light: noa1305: Fix up integration time look up
The current code is always iterating over two fields in the noa1305_int_time_available array. Fix iteration limit, which has to be halved to avoid out of bounds access in case the value that is being looked up is not in the array. Fixes: 025f23cfebad ("iio: light: noa1305: Make integration time configurable") Reported-by: Dan Carpenter <[email protected]> Suggested-by: Jonathan Cameron <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions