|
|
|
@ -224,6 +224,10 @@ static int ea05(int desc, cli_ctx *ctx, char *tmpd) { |
|
|
|
|
return CL_CLEAN; |
|
|
|
|
comp = *buf; |
|
|
|
|
UNP.csize = cli_readint32((char *)buf+1) ^ 0x45aa; |
|
|
|
|
if ((int32_t)UNP.csize<0) { |
|
|
|
|
cli_dbgmsg("autoit: bad file size - giving up\n"); |
|
|
|
|
return CL_CLEAN; |
|
|
|
|
} |
|
|
|
|
cli_dbgmsg("autoit: compressed size: %x\n", UNP.csize); |
|
|
|
|
cli_dbgmsg("autoit: advertised uncompressed size %x\n", cli_readint32((char *)buf+5) ^ 0x45aa); |
|
|
|
|
cli_dbgmsg("autoit: ref chksum: %x\n", cli_readint32((char *)buf+9) ^ 0xc3d2); |
|
|
|
@ -326,7 +330,7 @@ static int ea05(int desc, cli_ctx *ctx, char *tmpd) { |
|
|
|
|
|
|
|
|
|
/* FIXME: TODO send to text notmalization */ |
|
|
|
|
|
|
|
|
|
/* FIXME: ad-interim solution. ideally we should only u2a unicode scripts */ |
|
|
|
|
/* FIXME: ad-interim solution. ideally we should detect text and turn it to ascii */ |
|
|
|
|
UNP.usize = u2a(UNP.outputbuf, UNP.usize); |
|
|
|
|
|
|
|
|
|
snprintf(tempfile, 1023, "%s/autoit.%.3u", tmpd, files); |
|
|
|
|