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

solving vulnerability of string last element not null neighsync.cpp #3457

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marwanelmessiry
Copy link

@marwanelmessiry marwanelmessiry commented Jan 8, 2025

What I did
added try and catch for the string macstr and making last element = NULL
Why I did it
as it gives vulnerability of being not sure that the last element of the string is not NULL
How I verified it
by using checkmarx it gave vulnerability of that string last element is not assigned to zero by these edits it was solved

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -134,13 +134,33 @@ void NeighSync::onMsg(int nlmsg_type, struct nl_object *obj)
}

if (use_zero_mac)
{
try
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix alignment

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

Successfully merging this pull request may close these issues.

3 participants