Skip to content

Commit

Permalink
fix remove signature
Browse files Browse the repository at this point in the history
  • Loading branch information
paradiseduo authored Oct 7, 2023
1 parent 0be5fba commit 52e0cce
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Injection/Injection/Command.swift
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ public struct LoadCommand {
with: newHeaderData)
newbinary.replaceSubrange(offset..<offset + Int(command.cmdsize),
with: Data(count: Int(command.cmdsize)))
newbinary.replaceSubrange(Int(command.dataoff)..<Int(command.dataoff + command.datasize),
with: Data(count: Int(command.datasize)))
newbinary.removeSubrange(Int(command.dataoff)..<Int(command.dataoff + command.datasize))
} else {
newbinary.replaceSubrange(offset..<offset + 4,
with: Data(bytes: &opSoftStrip, count: 4))
Expand All @@ -221,8 +220,7 @@ public struct LoadCommand {
with: newHeaderData)
newbinary.replaceSubrange(offset..<offset + Int(command.cmdsize),
with: Data(count: Int(command.cmdsize)))
newbinary.replaceSubrange(Int(command.dataoff)..<Int(command.dataoff + command.datasize),
with: Data(count: Int(command.datasize)))
newbinary.removeSubrange(Int(command.dataoff)..<Int(command.dataoff + command.datasize))
} else {
newbinary.replaceSubrange(offset..<offset + 4,
with: Data(bytes: &opSoftStrip, count: 4))
Expand Down

0 comments on commit 52e0cce

Please sign in to comment.