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

Fix collection of coverity errors #33899

Merged
merged 5 commits into from
Apr 1, 2021
Merged

Fix collection of coverity errors #33899

merged 5 commits into from
Apr 1, 2021

Conversation

dleach02
Copy link
Member

Fix a collection of low hanging coverity errors

Fixes #33809
Fixes #33060
Fixes #33791
Fixes #33818
Fixes #33792
Fixes #33789
Fixes #33796
Fixes #33797
Fixes #33793
Fixes #33811
Fixes #33816

Signed-off-by: David Leach david.leach@nxp.com

New test cases did not check return value of pthread_attr_init()

Fixes #33809

Signed-off-by: David Leach <david.leach@nxp.com>
@github-actions github-actions bot added area: Logging area: Tests Issues related to a particular existing or missing test labels Mar 31, 2021
Fixes #33060

Signed-off-by: David Leach <david.leach@nxp.com>
Fixes #33791

Signed-off-by: David Leach <david.leach@nxp.com>
The size of ctx->rx_adu.data is not CONFIG_MODBUS_BUFFER_SIZE. Coverity
flagged the potential overwrite so just use sizeof().

Fixes #33789
Fixes #33792
Fixes #33818

Signed-off-by: David Leach <david.leach@nxp.com>
Fixes #33816
Fixes #33811
Fixes #33793
Fixes #33797
Fixes #33796

Signed-off-by: David Leach <david.leach@nxp.com>
@dleach02 dleach02 requested a review from MaureenHelm March 31, 2021 01:38
@zephyrbot zephyrbot added area: POSIX POSIX API Library area: Portability Standard compliant code, toolchain abstraction labels Mar 31, 2021
@zephyrbot zephyrbot requested review from chen-png and enjiamai March 31, 2021 02:00
@nashif nashif merged commit 8272b32 into zephyrproject-rtos:master Apr 1, 2021
@dleach02 dleach02 deleted the fix_33809 branch April 1, 2021 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Logging area: Portability Standard compliant code, toolchain abstraction area: POSIX POSIX API Library area: Tests Issues related to a particular existing or missing test
Projects
None yet
8 participants