Skip to content

bgpd: fix DEREF_OF_NULL.EX.COND in community_list_dup_check (backport #19325) #19330

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

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 4, 2025

Found by the static analyzer Svace (ISP RAS).

After having been assigned to a NULL value at bgp_clist.c:1241, pointer 'entry->config' is passed in call to function 'community_list_dup_check' at bgp_clist.c:1244, where it is dereferenced at bgp_clist.c:899.


This is an automatic backport of pull request #19325 done by Mergify.

Found by the static analyzer Svace (ISP RAS).

After having been assigned to a NULL value at bgp_clist.c:1241, pointer
'entry->config' is passed in call to function 'community_list_dup_check'
at bgp_clist.c:1244, where it is dereferenced at bgp_clist.c:899.

Signed-off-by: Petr Vaganov <[email protected]>
(cherry picked from commit 21eebc8)
@donaldsharp donaldsharp merged commit 6321cab into stable/10.0 Aug 4, 2025
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants