We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd72002 + 86c8039 commit 470a1edCopy full SHA for 470a1ed
uefi/CHANGELOG.md
@@ -7,6 +7,9 @@
7
- `boot::memory_map()` will never return `Status::BUFFER_TOO_SMALL` from now on,
8
as this is considered a hard internal error where users can't do anything
9
about it anyway. It will panic instead.
10
+- `SimpleNetwork::transmit` now passes the correct buffer size argument.
11
+ Previously it incorrectly added the header size to the buffer length, which
12
+ could cause the firmware to read past the end of the buffer.
13
14
15
# uefi - 0.34.1 (2025-02-07)
uefi/src/proto/network/snp.rs
@@ -225,7 +225,7 @@ impl SimpleNetwork {
225
(self.transmit)(
226
self,
227
header_size,
228
- buffer.len() + header_size,
+ buffer.len(),
229
buffer.as_ptr().cast(),
230
src_addr.as_ref(),
231
dest_addr.as_ref(),
0 commit comments