zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.99k stars 6.69k forks source link

[Coverity CID: 434607] Out-of-bounds access in drivers/display/ssd1322.c #81957

Open zephyrbot opened 6 days ago

zephyrbot commented 6 days ago

Static code scan issues found in file:

https://github.com/zephyrproject-rtos/zephyr/tree/b1def7145fd/drivers/display/ssd1322.c

Category: Memory - corruptions Function: ssd1322_write_pixels Component: Drivers CID: 434607

Details:

https://github.com/zephyrproject-rtos/zephyr/blob/b1def7145fd/drivers/display/ssd1322.c#L136

Please fix or provide comments in coverity using the link:

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

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

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.

kartben commented 5 days ago

@topisani could you please have a look at this Coverity issue? Happy to assign the issue to you if you plan on working on a fix

topisani commented 1 day ago

I will work on a fix, feel free to assign it to me