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 dereference of NULL #894

Open
VoroninArtemii opened this issue Nov 15, 2024 · 0 comments
Open

Possible dereference of NULL #894

VoroninArtemii opened this issue Nov 15, 2024 · 0 comments

Comments

@VoroninArtemii
Copy link

There is a possible dereference of iflist = NULL inside linux_freeinternalnameindex because since we are allocating memory but it may fail:

tmp =
realloc(iflist,
(sizeof(struct if_nameindex)) * (last_if_count +
2));
if (!tmp) {
linux_freeinternalnameindex(iflist, if_index);
if_count = 0;
iflist = NULL;
break;
}

Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author A. Voronin.

@VoroninArtemii VoroninArtemii changed the title Possible derefernce of NULL Possible dereference of NULL Nov 15, 2024
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

1 participant