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 :210593] Out-of-bounds access in lib/updatehub/updatehub.c #26993

Closed
zephyrbot opened this issue Jul 20, 2020 · 1 comment · Fixed by #27223
Closed

[Coverity CID :210593] Out-of-bounds access in lib/updatehub/updatehub.c #26993

zephyrbot opened this issue Jul 20, 2020 · 1 comment · Fixed by #27223
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: medium Medium impact/importance bug

Comments

@zephyrbot
Copy link
Collaborator

Static code scan issues found in file:

https://github.com/zephyrproject-rtos/zephyr/tree/476fc405e7/lib/updatehub/updatehub.c

Category: Memory - corruptions
Function: cleanup_connection
Component: Other
CID: 210593

Please fix or provide comments in coverity using the link:

https://scan9.coverity.com/reports.htm#v32951/p12996.

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 CODEOWNERS file.

@zephyrbot zephyrbot added bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: medium Medium impact/importance bug labels Jul 20, 2020
@nandojve
Copy link
Member

CC @otavio

nandojve added a commit to UpdateHub/zephyr that referenced this issue Jul 30, 2020
The struct pollfd context variable is not proper initialized and index
is out-of-bounds. Adjusts index to be inside scope boundary.

Fixes zephyrproject-rtos#26993.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
nandojve added a commit to UpdateHub/zephyr that referenced this issue Jul 30, 2020
The struct pollfd context variable is not proper initialized and index
is out-of-bounds. Adjusts index to be inside scope boundary.

Fixes zephyrproject-rtos#26993.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
carlescufi pushed a commit that referenced this issue Jul 30, 2020
The struct pollfd context variable is not proper initialized and index
is out-of-bounds. Adjusts index to be inside scope boundary.

Fixes #26993.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
nandojve added a commit to UpdateHub/zephyr that referenced this issue Aug 30, 2020
The struct pollfd context variable is not proper initialized and index
is out-of-bounds. Adjusts index to be inside scope boundary.

Fixes zephyrproject-rtos#26993.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
nandojve added a commit to UpdateHub/zephyr that referenced this issue Aug 30, 2020
The struct pollfd context variable is not proper initialized and index
is out-of-bounds. Adjusts index to be inside scope boundary.

Fixes zephyrproject-rtos#26993.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
nashif pushed a commit that referenced this issue Nov 17, 2020
The struct pollfd context variable is not proper initialized and index
is out-of-bounds. Adjusts index to be inside scope boundary.

Fixes #26993.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: medium Medium impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants