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

bgpd: Fix use beyond end of stream of labeled unicast parsing #12951

Merged
merged 1 commit into from Mar 5, 2023

Conversation

donaldsharp
Copy link
Member

Fixes a couple crashes associated with attempting to read beyond the end of the stream.

Reported-by: Iggy Frankovic iggyfran@amazon.com

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>
@donaldsharp
Copy link
Member Author

@Mergifyio backport stable/8.5 stable/8.4 stable/8.3 stable/8.2 stable/8.1 stable/8.0

@mergify
Copy link

mergify bot commented Mar 4, 2023

backport stable/8.5 stable/8.4 stable/8.3 stable/8.2 stable/8.1 stable/8.0

❌ No backport have been created

  • Backport to branch stable/8.5 failed

GitHub error: Branch not found

  • Backport to branch stable/8.4 in progress
  • Backport to branch stable/8.3 in progress
  • Backport to branch stable/8.2 in progress
  • Backport to branch stable/8.1 in progress
  • Backport to branch stable/8.0 in progress

@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-PULLREQ2-10043/

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.

EC_BGP_UPDATE_RCV,
"%s [Error] Update packet error (wrong label length 0)",
peer->host);
bgp_notify_send(peer, BGP_NOTIFY_UPDATE_ERR,
Copy link
Member

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.

Copy link
Member Author

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 :(

@ton31337 ton31337 merged commit e618cc7 into FRRouting:master Mar 5, 2023
@ton31337
Copy link
Member

ton31337 commented Mar 5, 2023

@Mergifyio backport dev/8.5 stable/8.4 stable/8.3 stable/8.2 stable/8.1 stable/8.0

@mergify
Copy link

mergify bot commented Mar 5, 2023

backport dev/8.5 stable/8.4 stable/8.3 stable/8.2 stable/8.1 stable/8.0

✅ Backports have been created

ton31337 added a commit that referenced this pull request Mar 6, 2023
bgpd: Fix use beyond end of stream of labeled unicast parsing (backport #12951)
@eqvinox
Copy link
Contributor

eqvinox commented May 5, 2024

@Mergifyio backport stable/8.4

Copy link

mergify bot commented May 5, 2024

backport stable/8.4

✅ Backports have been created

eqvinox added a commit that referenced this pull request May 5, 2024
Fix use beyond end of stream of labeled unicast parsing (backport #12951)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants