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

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

Open
zephyrbot opened this issue Jun 22, 2024 · 1 comment · Fixed by #81178 · May be fixed by #82447
Open

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

zephyrbot opened this issue Jun 22, 2024 · 1 comment · Fixed by #81178 · May be fixed by #82447
Assignees
Labels
area: Sensors Sensors bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: low Low impact/importance bug

Comments

@zephyrbot
Copy link
Collaborator

Static code scan issues found in file:

https://github.com/zephyrproject-rtos/zephyr/tree/dcf42917c550714d2457947538b9e29d083e872e/drivers/sensor/fcx_mldx5/fcx_mldx5.c

Category: Security best practices violations
Function: fcx_mldx5_uart_send
Component: Drivers
CID: 363738

Details:

memcpy(&buf[FCX_MLDX5_DATA_INDEX], cmd_data, strlen(cmd_data));

Please fix or provide comments in coverity using the link:

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

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

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.

@zephyrbot zephyrbot added area: Sensors Sensors bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: low Low impact/importance bug labels Jun 22, 2024
jilaypandya added a commit to jilaypandya/zephyr that referenced this issue Nov 9, 2024
jilaypandya added a commit to jilaypandya/zephyr that referenced this issue Nov 9, 2024
jilaypandya added a commit to jilaypandya/zephyr that referenced this issue Nov 9, 2024
jilaypandya added a commit to jilaypandya/zephyr that referenced this issue Nov 9, 2024
jilaypandya added a commit to jilaypandya/zephyr that referenced this issue Nov 9, 2024
jilaypandya added a commit to jilaypandya/zephyr that referenced this issue Nov 9, 2024
@zephyrbot zephyrbot reopened this Nov 25, 2024
@zephyrbot
Copy link
Collaborator Author

This coverity CID still appears as an outstanding issue. Please make sure any fixes correctly address the problem or triage the issue correctly in coverity on https://scan.coverity.com/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Sensors Sensors bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: low Low impact/importance bug
Projects
None yet
4 participants