zephyr/drivers/sensor/bosch
Gaetan Perrot 9207749e83 drivers: sensor: bma4xx: Avoid potential overflow
Coverity reports a potential integer overflow in the accel_range
computation due to the use of a left shift on an int type.

CID 520269: Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)

Even though the register value is constrained to 0–3 by the BMA456 spec,
and no real overflow occurs, an explicit cast to int64_t prevents false
positives and aligns with safe coding practices.

Fixes: #90517

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-07-04 15:49:09 -05:00
..
bma4xx drivers: sensor: bma4xx: Avoid potential overflow 2025-07-04 15:49:09 -05:00
bma280
bmc150_magn
bme280 drivers: sensor: bme280: fix "config" register intialization issue 2025-05-29 12:06:39 +02:00
bme680
bmg160
bmi08x sensor: bmi08x: Fix variable name in bmi08x_acc_trigger_mode_init 2025-05-09 21:09:04 +02:00
bmi160 sensor: remove PM state checks from API functions 2025-05-01 18:15:42 +02:00
bmi270
bmi323
bmm150 sensor: remove PM state checks from API functions 2025-05-01 18:15:42 +02:00
bmm350 drivers: sensor: bmm350: fix redundant return logic in init_chip 2025-06-27 09:04:32 -10:00
bmp180 sensor: remove PM state checks from API functions 2025-05-01 18:15:42 +02:00
bmp388 sensor: remove PM state checks from API functions 2025-05-01 18:15:42 +02:00
bmp581 drivers: sensor: bmp581: add const qualifier when casting 2025-07-04 13:06:22 -05:00
CMakeLists.txt
Kconfig