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

isisd: fix uninitialized variable when searching for LSP #8902

Merged
merged 1 commit into from Jun 22, 2021

Conversation

idryzhov
Copy link
Contributor

Signed-off-by: Igor Ryzhov iryzhov@nfware.com

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
@riw777 riw777 self-requested a review June 22, 2021 15:16
Copy link
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

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

looks good

@LabN-CI
Copy link
Collaborator

LabN-CI commented Jun 22, 2021

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/8902 9ff7c74
Date 06/22/2021
Start 12:03:18
Finish 12:28:50
Run-Time 25:32
Total 1815
Pass 1815
Fail 0
Valgrind-Errors
Valgrind-Loss
Details vncregress-2021-06-22-12:03:18.txt
Log autoscript-2021-06-22-12:04:31.log.bz2
Memory 462 518 427

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-19764/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Failed

Ubuntu 18.04 arm7 build: Failed (click for details)

DejaGNU Unittests (make check) failed for Ubuntu 18.04 arm7 build
see PyTest log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-19764/artifact/U18ARM7BUILD/ErrorLog/log_pytests.txt
Ubuntu 18.04 arm7 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-19764/artifact/U18ARM7BUILD/config.log/config.log.gz
Ubuntu 18.04 arm7 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-19764/artifact/U18ARM7BUILD/config.status/config.status
Ubuntu 18.04 arm7 build: Unknown Log <frr.xref.xz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-19764/artifact/U18ARM7BUILD/frr.xref.xz/frr.xref.xz

Successful on other platforms/tests
  • Ubuntu 18.04 i386 build
  • Ubuntu 16.04 arm8 build
  • Ubuntu 20.04 amd64 build
  • Debian 10 amd64 build
  • Fedora 29 amd64 build
  • Debian 11 amd64 build
  • Ubuntu 18.04 amd64 build
  • FreeBSD 12 amd64 build
  • Ubuntu 16.04 arm7 build
  • CentOS 8 amd64 build
  • Ubuntu 16.04 i386 build
  • Debian 9 amd64 build
  • FreeBSD 11 amd64 build
  • Ubuntu 18.04 ppc64le build
  • Ubuntu 18.04 arm8 build
  • NetBSD 8 amd64 build
  • OpenBSD 6 amd64 build
  • Ubuntu 16.04 amd64 build
  • CentOS 7 amd64 build

Copy link
Member

@qlyoung qlyoung left a 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)

Copy link
Member

@qlyoung qlyoung left a 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.

@qlyoung qlyoung merged commit f4e7b6b into FRRouting:master Jun 22, 2021
@idryzhov
Copy link
Contributor Author

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.

@idryzhov
Copy link
Contributor Author

@Mergifyio backport stable/8.0

@mergify
Copy link

mergify bot commented Jul 23, 2021

Command backport stable/8.0: success

Backports have been created

donaldsharp added a commit that referenced this pull request Jul 23, 2021
isisd: fix uninitialized variable when searching for LSP (backport #8902)
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.

None yet

5 participants