Skip to content

[Coverity CID: 520269] Unintentional integer overflow in drivers/sensor/bosch/bma4xx/bma4xx_emul.c #90517

@zephyrbot

Description

@zephyrbot

Static code scan issues found in file:

https://github.com/zephyrproject-rtos/zephyr/tree/265cfb45a818f39cf03c3527b5d1b21027d3cac1/drivers/sensor/bosch/bma4xx/bma4xx_emul.c

Category: Integer handling issues
Function: bma4xx_emul_set_accel_data
Component: Drivers
CID: 520269

Details:

int64_t accel_range = (2 << data->regs[BMA4XX_REG_ACCEL_RANGE]);

Please fix or provide comments in coverity using the link:

https://scan9.scan.coverity.com/#/project-view/29271/12996?selectedIssue=520269

For more information about the violation, check the Coverity Reference. (CWE-190)

Note: This issue was created automatically. Priority was set based on classification
of the file affected and the impact field in coverity. Assignees were set using the MAINTAINERS file.

Metadata

Metadata

Assignees

Labels

CoverityA Coverity detected issue or its fixarea: SensorsSensorsbugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions