Open zephyrbot opened 2 weeks ago
@kurtjd please take a look
Although with the code as currently written this statement can't overflow (since data->again can never exceed 9,200 and data->atime can never exceed 600), it doesn't hurt to be on the safe side. I'll get a PR for a fix submitted shortly!
Static code scan issues found in file:
https://github.com/zephyrproject-rtos/zephyr/tree/dcf42917c550714d2457947538b9e29d083e872e/drivers/sensor/ams/tsl2591/tsl2591.c#L139
Category: Integer handling issues Function:
tsl2591_channel_get
Component: Drivers CID: 353644Details:
https://github.com/zephyrproject-rtos/zephyr/blob/dcf42917c550714d2457947538b9e29d083e872e/drivers/sensor/ams/tsl2591/tsl2591.c#L139
For more information about the violation, check the Coverity Reference. (CWE-194)
Please fix or provide comments in coverity using the link:
https://scan9.scan.coverity.com/#/project-view/29271/12996?selectedIssue=353644
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.