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
bgpd: Fix use beyond end of stream of labeled unicast parsing #12951
Conversation
Fixes a couple crashes associated with attempting to read beyond the end of the stream. Reported-by: Iggy Frankovic <iggyfran@amazon.com> Signed-off-by: Donald Sharp <sharpd@nvidia.com>
@Mergifyio backport stable/8.5 stable/8.4 stable/8.3 stable/8.2 stable/8.1 stable/8.0 |
❌ No backport have been created
GitHub error:
|
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-PULLREQ2-10043/ This is a comment from an automated CI system. |
EC_BGP_UPDATE_RCV, | ||
"%s [Error] Update packet error (wrong label length 0)", | ||
peer->host); | ||
bgp_notify_send(peer, BGP_NOTIFY_UPDATE_ERR, |
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.
I think we don't need to send a notification because it's handled in bgp_update_receive()
already.
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.
the whole function is completely inconsistent :(
@Mergifyio backport dev/8.5 stable/8.4 stable/8.3 stable/8.2 stable/8.1 stable/8.0 |
✅ Backports have been created
|
bgpd: Fix use beyond end of stream of labeled unicast parsing (backport #12951)
@Mergifyio backport stable/8.4 |
✅ Backports have been created
|
Fix use beyond end of stream of labeled unicast parsing (backport #12951)
Fixes a couple crashes associated with attempting to read beyond the end of the stream.
Reported-by: Iggy Frankovic iggyfran@amazon.com