Skip to content

Commit

Permalink
chore(deps): correct go-macho latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Apr 6, 2024
1 parent cd14855 commit a1243d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions cmd/ipsw/cmd/kernel/kernel_extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var kerExtractCmd = &cobra.Command{

m, err := macho.Open(kernPath)
if err != nil {
return err
return fmt.Errorf("failed to open kernelcache: %v", err)
}

if m.FileTOC.FileHeader.Type != types.MH_FILESET {
Expand All @@ -103,7 +103,7 @@ var kerExtractCmd = &cobra.Command{
for _, fse := range m.FileSets() {
mfse, err := m.GetFileSetFileByName(fse.EntryID)
if err != nil {
return fmt.Errorf("failed to parse kext %s: %v", fse.EntryID, err)
return fmt.Errorf("failed to parse KEXT %s: %v", fse.EntryID, err)
}
if err := mfse.Export(filepath.Join(folder, fse.EntryID), dcf, baseAddress, nil); err != nil { // TODO: do I want to add any extra syms?
return fmt.Errorf("failed to export KEXT %s; %v", fse.EntryID, err)
Expand All @@ -113,11 +113,11 @@ var kerExtractCmd = &cobra.Command{
} else {
m, err = m.GetFileSetFileByName(args[1])
if err != nil {
return fmt.Errorf("failed to parse kext %s: %v", args[0], err)
return fmt.Errorf("failed to parse KEXT %s: %v", args[1], err)
}

if err := m.Export(filepath.Join(folder, args[1]), dcf, baseAddress, nil); err != nil { // TODO: do I want to add any extra syms?
return fmt.Errorf("failed to export KEXT %s; %v", args[0], err)
return fmt.Errorf("failed to export KEXT %s; %v", args[1], err)
}
log.Infof("Created %s", filepath.Join(folder, args[1]))
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/aymanbagabas/go-udiff v0.2.0
github.com/blacktop/arm64-cgo v1.0.57
github.com/blacktop/go-dwarf v1.0.10
github.com/blacktop/go-macho v1.1.198
github.com/blacktop/go-macho v1.1.196
github.com/blacktop/go-plist v1.0.2
github.com/blacktop/lzfse-cgo v1.1.19
github.com/blacktop/lzss v0.1.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ github.com/blacktop/cast v1.5.1 h1:gwXxBZ2XlcNnU57Ws+pTDFYHKKtLdxwBqvUI2wS31wg=
github.com/blacktop/cast v1.5.1/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
github.com/blacktop/go-dwarf v1.0.10 h1:i9zYgcIROETsNZ6V+zZn3uDH21FCG5BLLZ837GitxS0=
github.com/blacktop/go-dwarf v1.0.10/go.mod h1:4W2FKgSFYcZLDwnR7k+apv5i3nrau4NGl9N6VQ9DSTo=
github.com/blacktop/go-macho v1.1.198 h1:XzLkto28L186FboxM7c7IUhQJvxCK/6J/RdQ6/SPOW4=
github.com/blacktop/go-macho v1.1.198/go.mod h1:dtlW2AJKQpFzImBVPWiUKZ6OxrQ2MLfWi/BPPe0EONE=
github.com/blacktop/go-macho v1.1.196 h1:1ieYcsGWFxKrK2oQ1kvvMTZvPjD72Qh72rFzA9a8jHE=
github.com/blacktop/go-macho v1.1.196/go.mod h1:dtlW2AJKQpFzImBVPWiUKZ6OxrQ2MLfWi/BPPe0EONE=
github.com/blacktop/go-plist v1.0.2 h1:DMX8uBiE308HWZkO9o37j7Z2b0neI3GSzN2caNa2zXk=
github.com/blacktop/go-plist v1.0.2/go.mod h1:fqVhCVVXVJWsIGY9QPgdK0mDWZD82HrRMfU5PanvdTA=
github.com/blacktop/lzfse-cgo v1.1.19 h1:1I/1y9/sjyDLomACLrR4f7GFJ1fTaIjhWb1PQrEtKiw=
Expand Down

0 comments on commit a1243d3

Please sign in to comment.