Commit 8ae3311
committed
Add missing type/subtype checks to
This fixes a bug where `&DevicePathNode` could be converted to any specific node
type as long as the node length matches. The node type and subtype needs to be
checked first.
Also added a test for this.TryFrom<&DevicePathNode>
1 parent 3f819f4 commit 8ae3311
File tree
4 files changed
+353
-0
lines changed- uefi
- src/proto/device_path
- xtask/src/device_path
4 files changed
+353
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
0 commit comments