2014年10月4日 星期六

[ArchLinux] p7zip core dump when password length is longer than 30 characters

p7zip will core dump when decompress a RAR file with the password length longer than 30 characters. There is a bug report and solution for this issue in 2011, but the latest release of 7z is in 2009. So, just download the source file of p7zip and modify the corresponding code to fix this issue.

$ sudo abs
$ cp -rf /var/abs/extra/p7zip ~/opt
$ cd ~/opt/p7zip

Download this patch to ~/opt/p7zip

$ makepkg
$ sudo pacman -U p7zip-9.20.1-9-x86_64.pkg.tar.xz

#115 GPF with RAR and password >30 characters