-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
isisd: fix uninitialized variable when searching for LSP #8902
Conversation
Signed-off-by: Igor Ryzhov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
Continuous Integration Result: FAILEDSee below for issues. This is a comment from an automated CI system. Get source / Pull Request: SuccessfulBuilding Stage: FailedUbuntu 18.04 arm7 build: Failed (click for details)DejaGNU Unittests (make check) failed for Ubuntu 18.04 arm7 build Successful on other platforms/tests
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary? The variable is initialized where it is used. We generally avoid 0-initializing variables like this if the 0 doesn't have a semantic value because it allows static analyzers to find places where the value was not set properly (it'll show up as uninitialized value use)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, we are casting this to a string. Dumb.
Right, we use it as a string and only set the first two bytes in the code later. We're actually seeing issues because of this - "show isis database detail NAME" doesn't work sometimes. |
@Mergifyio backport stable/8.0 |
Command
|
isisd: fix uninitialized variable when searching for LSP (backport #8902)
Signed-off-by: Igor Ryzhov [email protected]