Skip to content

[Coverity CID :195819]Null pointer dereferences in /tests/net/tcp/src/main.c #14412

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

Closed
aasthagr opened this issue Mar 12, 2019 · 0 comments
Closed
Assignees
Labels
area: Networking area: Tests Issues related to a particular existing or missing test 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

@aasthagr
Copy link
Collaborator

Static code scan issues seen in File: /tests/net/tcp/src/main.c
Category: Null pointer dereferences
Function: setup_ipv4_tcp
Component: Tests
CID: 195819
Please fix or provide comments to square it off in coverity in the link: https://scan9.coverity.com/reports.htm#v32951/p12996

@galak galak added Coverity A Coverity detected issue or its fix priority: low Low impact/importance bug area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug and removed area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug labels Mar 12, 2019
@jukkar jukkar self-assigned this Mar 12, 2019
jukkar added a commit to jukkar/zephyr that referenced this issue Mar 13, 2019
If pkt allocation fails, then prepare to handle NULL pointer.

Coverity-CID: 195819
Coverity-CID: 195860
Coverity-CID: 195921

Fixes zephyrproject-rtos#14412
Fixes zephyrproject-rtos#14399
Fixes zephyrproject-rtos#14388

Signed-off-by: Jukka Rissanen <[email protected]>
galak pushed a commit that referenced this issue Mar 13, 2019
If pkt allocation fails, then prepare to handle NULL pointer.

Coverity-CID: 195819
Coverity-CID: 195860
Coverity-CID: 195921

Fixes #14412
Fixes #14399
Fixes #14388

Signed-off-by: Jukka Rissanen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking area: Tests Issues related to a particular existing or missing test 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
Development

No branches or pull requests

3 participants