mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcMachoLib: Consider the LC buffer might be padded when retrieving the next.
This commit is contained in:
parent
b74e10e066
commit
1ec1df5e78
@ -183,7 +183,8 @@ InternalGetNextCommand64 (
|
||||
|
||||
for (
|
||||
;
|
||||
(UINTN)Command < TopOfCommands;
|
||||
((UINTN)Command + sizeof (MACH_LOAD_COMMAND)) < TopOfCommands
|
||||
&& ((UINTN)Command + Command->CommandSize) < TopOfCommands;
|
||||
Command = NEXT_MACH_LOAD_COMMAND (Command)
|
||||
) {
|
||||
if (Command->CommandType == LoadCommandType) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user