dmg2img
dmg2img copied to clipboard
How do you convert a dmg file that is split?
Like disk.001.dmg and disk.002.dmg
No idea, have you tried cat disk.001.dmg disk.002.dmg > disk.dmg
and then use dmg2img on the result?
Combining the parts with cat
ends up with dmg2img
giving me Segmentation fault (core dumped)
.
Hey @skylarmt could you provide reproduction steps with a publically available sample? What version have you been testing with? Can you create a debug build and provide a stack trace from the crash?
Sorry about the wait. Here's a multipart DMG that causes the issue: https://dl.netsyms.net/mac/ I'm using version 1.6.7 from the Ubuntu 18.04 repositories, but I get exactly the same behavior from this repo (develop branch) and the source tarball at http://vu1tur.eu.org/dmg2img.
I compiled the 1.6.6 tarball with debugging symbols, here's the relevant output of gdb --args ./dmg2img -d /media/skylar/DMG2IMG/Apple\ Service\ Diagnostics\ \(2005-2013\)/ASD-ssps-004-0553.combo.dmg
(where the DMG is a cat'd together version of the three part DMG linked above):
(gdb) run
Starting program: /home/skylar/dmg2img-1.6.6/dmg2img -d /media/skylar/DMG2IMG/Apple\ Service\ Diagnostics\ \(2005-2013\)/ASD-ssps-004-0553.combo.dmg
dmg2img v1.6.6 (c) vu1tur ([email protected])
/media/skylar/DMG2IMG/Apple Service Diagnostics (2005-2013)/ASD-ssps-004-0553.combo.dmg --> /media/skylar/DMG2IMG/Apple Service Diagnostics (2005-2013)/ASD-ssps-004-0553.combo.img
Debug info will be written to dmg2img.log
Program received signal SIGSEGV, Segmentation fault.
__strstr_sse2 (haystack_start=0x0, needle_start=0x555555558ff0 <list_end> "</array>") at ../string/strstr.c:63
63 ../string/strstr.c: No such file or directory.
(gdb) backtrace
#0 __strstr_sse2 (haystack_start=0x0, needle_start=0x555555558ff0 <list_end> "</array>") at ../string/strstr.c:63
#1 0x0000555555555ca2 in main (argc=3, argv=<optimized out>) at dmg2img.c:241
dmg2img.log
is an empty file by the way.