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

uefi: Fix the BufferSize argument in SimpleNetwork::transmit #1550

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

nicholasbishop
Copy link
Member

The buffer is supposed to contain both the header and data, so adding buffer.len() + header_size tells the firmware the wrong size of the packet.

Fixes #1549

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

The buffer is supposed to contain both the header and data, so adding
`buffer.len() + header_size` tells the firmware the wrong size of the packet.
@phip1611 phip1611 added this pull request to the merge queue Feb 17, 2025
Merged via the queue into rust-osdev:main with commit 470a1ed Feb 17, 2025
16 checks passed
@nicholasbishop nicholasbishop deleted the bishop-fix-snp-len branch February 17, 2025 21:10
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.

SimpleNetworks transmit passes too long buffer to SNP protocol.
2 participants