matthewbauer / undmg

extract a dmg file
GNU General Public License v3.0
33 stars 8 forks source link

Segfaults on bzip2 compressed dmg #5

Open what-the-functor opened 5 years ago

what-the-functor commented 5 years ago

See this DMG for example. https://github.com/kovidgoyal/calibre/releases/download/v4.4.0/calibre-4.4.0.dmg

[nix-shell:~/Downloads]$ undmg < calibre-4.4.0.dmg 
Segmentation fault: 11

[nix-shell:~/Downloads]$ file calibre-4.4.0.dmg 
calibre-4.4.0.dmg: bzip2 compressed data, block size = 100k
matthewbauer commented 4 years ago

I suspect this is the same as #1 and #4.

cyounkins commented 3 years ago

This file (now available at https://download.calibre-ebook.com/4.4.0/calibre-4.4.0.dmg) appears to suffer the same issue as in #8 - extraction does not segfault when used as a parameter. There may still be an issue with a non-HFS file system.

$ undmg < calibre-4.4.0.dmg
error: only HFS file systems are supported.
fish: Job 1, 'undmg < calibre-4.4.0.dmg' terminated by signal SIGSEGV (Address boundary error)
$ undmg calibre-4.4.0.dmg
error: only HFS file systems are supported.
$