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

Possible use of uninitialized variable in subsys/net/ip/utils.c #23986

Closed
tluio opened this issue Apr 1, 2020 · 1 comment
Closed

Possible use of uninitialized variable in subsys/net/ip/utils.c #23986

tluio opened this issue Apr 1, 2020 · 1 comment

Comments

@tluio
Copy link

tluio commented Apr 1, 2020

File: subsys/net/ip/utils.c
Function: z_impl_net_addr_ntop
If family == AF_INET, w declared on line 150 is not initialized but it may be used on line 236.

@jukkar
Copy link
Member

jukkar commented Apr 1, 2020

I think you have a false positive here. If the family is AF_INET (then len = 4), the code only loop in IPv4 branch between lines 198 - 216 and never gets to line 236.

@jukkar jukkar closed this as completed Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants