zephyr/drivers/sensor/lsm6dsl
Andy Gross 3ff4065cb3 drivers: sensors: lsm6dsl: Fix array overrun
This patch fixes an overrun detected via Coverity.  The
lsm6dsl_odr_to_freq_val function takes an index as argument.  If the
index is out of bounds, the expected behavior was to return the last
element of an array.  The actual behavior was to overrun the array.

Fixes: #7482

Signed-off-by: Andy Gross <andy.gross@linaro.org>
2018-05-11 19:04:06 -04:00
..
CMakeLists.txt drivers: sensor: lsm6dsl: Adding sensorhub support 2018-04-30 16:16:08 -05:00
Kconfig drivers: sensor: lsm6dsl: add .attr_set callback 2018-04-30 16:16:08 -05:00
lsm6dsl.c drivers: sensors: lsm6dsl: Fix array overrun 2018-05-11 19:04:06 -04:00
lsm6dsl.h drivers: sensor: lsm6dsl: add .attr_set callback 2018-04-30 16:16:08 -05:00
lsm6dsl_i2c.c drivers: sensor: lsm6dsl: add SPI support 2018-04-03 15:59:36 -04:00
lsm6dsl_shub.c drivers: sensor: lsm6dsl: add .attr_set callback 2018-04-30 16:16:08 -05:00
lsm6dsl_spi.c sensors/lsm5dsl: Fix SPI API usage 2018-04-21 05:42:59 -07:00
lsm6dsl_trigger.c drivers: sensor: lsm6dsl: add trigger support 2018-04-10 22:12:14 +02:00