mirror of
https://github.com/morluto/rea.git
synced 2026-11-23 23:15:58 +00:00
fix(bun): append segment claims without call arguments
Supersedes #10342 Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
1 parent
7394991d1f
commit
d8554c1c84
2 files changed
+41
-9
No files matched your search
@@ -513,15 +513,14 @@ const machOClaims = async (
|
||||
if (!read.ok) break;
|
||||
const { command: cmd, offset, size } = read.value;
|
||||
if (cmd === LC_SEGMENT_64 || cmd === LC_SEGMENT)
|
||||
claims.push(
|
||||
...segmentClaims(
|
||||
commands.subarray(offset, offset + size),
|
||||
littleEndian,
|
||||
cmd === LC_SEGMENT_64,
|
||||
imageOffset,
|
||||
Math.min(fileSize, imageOffset + imageLimit),
|
||||
),
|
||||
);
|
||||
for (const claim of segmentClaims(
|
||||
commands.subarray(offset, offset + size),
|
||||
littleEndian,
|
||||
cmd === LC_SEGMENT_64,
|
||||
imageOffset,
|
||||
Math.min(fileSize, imageOffset + imageLimit),
|
||||
))
|
||||
claims.push(claim);
|
||||
}
|
||||
return claims;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user