File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 77- ` boot::memory_map() ` will never return ` Status::BUFFER_TOO_SMALL ` from now on,
88 as this is considered a hard internal error where users can't do anything
99 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.
1013
1114
1215# uefi - 0.34.1 (2025-02-07)
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ impl SimpleNetwork {
225225 ( self . transmit ) (
226226 self ,
227227 header_size,
228- buffer. len ( ) + header_size ,
228+ buffer. len ( ) ,
229229 buffer. as_ptr ( ) . cast ( ) ,
230230 src_addr. as_ref ( ) ,
231231 dest_addr. as_ref ( ) ,
You can’t perform that action at this time.
0 commit comments