Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: sensor: fcx_mldx5 fix string_overflow issue #82447

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jilaypandya
Copy link
Contributor

This commit fixes Copy into fixed size buffer (STRING_OVERFLOW) by checking the cmd_data_len

This commit fixes Copy into fixed size buffer (STRING_OVERFLOW) by checking
the cmd_data_len

Signed-off-by: Jilay Pandya <[email protected]>
@jeppenodgaard
Copy link
Collaborator

jeppenodgaard commented Dec 3, 2024

I thought this was already fixed in a previous PR. How do you check that the changes fix the problem?

@jilaypandya
Copy link
Contributor Author

I thought this was already fixed in a previous PR. How do you check that the changes fix the problem?

Is there anyway to run coverity sca locally? Till now I only fixed it and it got fixed in most of the cases. This is my first fix that has recurred

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Coverity CID: 363738] Copy into fixed size buffer in drivers/sensor/fcx_mldx5/fcx_mldx5.c
4 participants