File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 39
39
> use uefi::table::boot::BootServices;
40
40
```
41
41
42
+
43
+ # uefi - 0.30.0 (unreleased)
44
+ ## Changed
45
+ - ** Breaking:** : Fixed a bug in the impls of ` TryFrom<&[u8]> ` for
46
+ ` &DevicePathHeader ` , ` &DevicePathNode ` and ` &DevicePath ` that could lead to
47
+ memory unsafety. See < https://github.com/rust-osdev/uefi-rs/issues/1281 > .
48
+
49
+
42
50
# uefi - 0.29.0 (2024-07-02)
43
51
44
52
## Added
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ pub struct DevicePathHeader {
119
119
pub length : u16 ,
120
120
}
121
121
122
- impl < ' a > TryFrom < & [ u8 ] > for & ' a DevicePathHeader {
122
+ impl < ' a > TryFrom < & ' a [ u8 ] > for & ' a DevicePathHeader {
123
123
type Error = ByteConversionError ;
124
124
125
125
fn try_from ( bytes : & [ u8 ] ) -> Result < Self , Self :: Error > {
@@ -265,7 +265,7 @@ impl PartialEq for DevicePathNode {
265
265
}
266
266
}
267
267
268
- impl < ' a > TryFrom < & [ u8 ] > for & ' a DevicePathNode {
268
+ impl < ' a > TryFrom < & ' a [ u8 ] > for & ' a DevicePathNode {
269
269
type Error = ByteConversionError ;
270
270
271
271
fn try_from ( bytes : & [ u8 ] ) -> Result < Self , Self :: Error > {
@@ -516,7 +516,7 @@ impl PartialEq for DevicePath {
516
516
}
517
517
}
518
518
519
- impl < ' a > TryFrom < & [ u8 ] > for & ' a DevicePath {
519
+ impl < ' a > TryFrom < & ' a [ u8 ] > for & ' a DevicePath {
520
520
type Error = ByteConversionError ;
521
521
522
522
fn try_from ( bytes : & [ u8 ] ) -> Result < Self , Self :: Error > {
You can’t perform that action at this time.
0 commit comments