aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-08-09 15:28:30 +0300
committerJonathan Cameron <[email protected]>2024-08-10 11:22:11 +0100
commit4f6ca3464d987054f5e75f097a97dcbb86a87569 (patch)
treeaa3acc3b240b50a06ebd06ee09a45130f6557b21 /lib/test_fortify/write_overflow-strncpy-src.c
parentb09999ee1e86a19d43eb6818daa69e577c2fb77a (diff)
iio: dac: ltc2664: Fix off by one in ltc2664_channel_config()
This comparison should be >= ARRAY_SIZE() instead of >. The "mspan" variable is later used as an array index into ltc2664_mspan_lut[] so this is an off by one bug. Fixes: 4cc2fc445d2e ("iio: dac: ltc2664: Add driver for LTC2664 and LTC2672") Signed-off-by: Dan Carpenter <[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