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

vtysh: fix rare crash(es) #4879

Merged
merged 1 commit into from
Aug 26, 2019
Merged

Conversation

qlyoung
Copy link
Member

@qlyoung qlyoung commented Aug 23, 2019

Couple code paths end up trying to dereference vty->of which can be null
in one special case.

Signed-off-by: Quentin Young qlyoung@cumulusnetworks.com

Couple code paths end up trying to dereference vty->of which can be null
in one special case.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Copy link
Contributor

@mjstapp mjstapp left a comment

Choose a reason for hiding this comment

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

Would it make sense to add the check to vty_out itself - to avoid using ->of if it's NULL?

@qlyoung
Copy link
Member Author

qlyoung commented Aug 23, 2019

I thought about that, but it really probably should crash anywhere else but here, and vtysh is already a cesspit of bs so I don't feel too torn up about these checks

@LabN-CI
Copy link
Collaborator

LabN-CI commented Aug 23, 2019

🚧 Basic BGPD CI results: Partial FAILURE, 2 tests failed

Results table
_ _
Result SUCCESS git merge/4879 52038ac
Date 08/23/2019
Start 16:30:20
Finish 16:52:08
Run-Time 21:48
Total 1815
Pass 1813
Fail 2
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2019-08-23-16:30:20.txt
Log autoscript-2019-08-23-16:31:13.log.bz2
Memory 430 428 360

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-8689/

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.


CLANG Static Analyzer Summary

  • Github Pull Request 4879, comparing to Git base SHA 401ba2a

No Changes in Static Analysis warnings compared to base

1 Static Analyzer issues remaining.

See details at
https://ci1.netdef.org/browse/FRR-FRRPULLREQ-8689/artifact/shared/static_analysis/index.html

Copy link
Contributor

@mjstapp mjstapp 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

@mjstapp mjstapp merged commit 7c6824f into FRRouting:master Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants