Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions uefi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
- `boot::memory_map()` will never return `Status::BUFFER_TOO_SMALL` from now on,
as this is considered a hard internal error where users can't do anything
about it anyway. It will panic instead.
- `SimpleNetwork::transmit` now passes the correct buffer size argument.
Previously it incorrectly added the header size to the buffer length, which
could cause the firmware to read past the end of the buffer.


# uefi - 0.34.1 (2025-02-07)
Expand Down
2 changes: 1 addition & 1 deletion uefi/src/proto/network/snp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl SimpleNetwork {
(self.transmit)(
self,
header_size,
buffer.len() + header_size,
buffer.len(),
buffer.as_ptr().cast(),
src_addr.as_ref(),
dest_addr.as_ref(),
Expand Down