Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: devel

Problem decompress cab file

 

 

ClamAV devel RSS feed   Index | Next | Previous | View Threaded


emilio at guerradigital

Jun 6, 2007, 5:22 AM

Post #1 of 6 (2186 views)
Permalink
Problem decompress cab file

I've tried segregate the code of decompress cab file to use on my
Project. The cab_open and cab_free function work but cab_extract generate
only zero byte files. I think is a problem in a decompress function. I
tried with cab compressed as mszip and lzx, both had the same problem. The
project is available to download in http://www.guerradigital.com.br/CABDECOMPRESS.ZIP

Tanks
Emilio

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


tkojm at clamav

Jun 6, 2007, 9:32 AM

Post #2 of 6 (2104 views)
Permalink
Re: Problem decompress cab file [In reply to]

On Wed, 6 Jun 2007 09:22:30 -0300 (BRT)
emilio [at] guerradigital wrote:

> I've tried segregate the code of decompress cab file to use on my
> Project. The cab_open and cab_free function work but cab_extract generate
> only zero byte files. I think is a problem in a decompress function. I
> tried with cab compressed as mszip and lzx, both had the same problem. The
> project is available to download in
> http://www.guerradigital.com.br/CABDECOMPRESS.ZIP

Do you expect us to fix your code?

--
oo ..... Tomasz Kojm <tkojm [at] clamav>
(\/)\......... http://www.ClamAV.net/gpg/tkojm.gpg
\..........._ 0DCA5A08407D5288279DB43454822DC8985A444B
//\ /\ Wed Jun 6 18:31:46 CEST 2007
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


emilio at guerradigital

Jun 6, 2007, 4:20 PM

Post #3 of 6 (2105 views)
Permalink
Re: Problem decompress cab file [In reply to]

No, I researched in bugzilla to know if it is a known bug, but
I didnt found nothing, so, I think send to list to know if anybody
had a similar problem, because the problem is on native libclamav function
(lzx_decompress and mszip_decompress).

Best regards
Emilio

> On Wed, 6 Jun 2007 09:22:30 -0300 (BRT)
> emilio [at] guerradigital wrote:
>
>> I've
tried segregate the code of decompress cab file to use on my
>> Project. The cab_open and cab_free function work but
cab_extract
>> generate
>> only zero byte files. I
think is a problem in a decompress function. I
>> tried with
cab compressed as mszip and lzx, both had the same problem.
>>
The
>> project is available to download in
>>
http://www.guerradigital.com.br/CABDECOMPRESS.ZIP
>
> Do
you expect us to fix your code?
>
> --
> oo
..... Tomasz Kojm <tkojm [at] clamav>
> (\/)\.........
http://www.ClamAV.net/gpg/tkojm.gpg
> \..........._
0DCA5A08407D5288279DB43454822DC8985A444B
> //\ /\ Wed Jun 6
18:31:46 CEST 2007
>
_______________________________________________
>
http://lurker.clamav.net/list/clamav-devel.html
> Please submit
your patches to our Bugzilla: http://bugs.clamav.net
>

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


tkojm at clamav

Jun 6, 2007, 4:32 PM

Post #4 of 6 (2114 views)
Permalink
Re: Problem decompress cab file [In reply to]

On Wed, 6 Jun 2007 20:22:34 -0300 (BRT)
emilio [at] guerradigital wrote:

> No, I researched in bugzilla to know if it is a known bug, but
> I didnt found nothing, so, I think send to list to know if anybody
> had a similar problem, because the problem is on native libclamav function
> (lzx_decompress and mszip_decompress).

No, there's no problem with ClamAV and it properly unpacks the cab file
included in http://www.guerradigital.com.br/CABDECOMPRESS.ZIP

--
oo ..... Tomasz Kojm <tkojm [at] clamav>
(\/)\......... http://www.ClamAV.net/gpg/tkojm.gpg
\..........._ 0DCA5A08407D5288279DB43454822DC8985A444B
//\ /\ Thu Jun 7 01:30:15 CEST 2007
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


emilio at guerradigital

Jun 7, 2007, 12:20 PM

Post #5 of 6 (2110 views)
Permalink
Re: Problem decompress cab file [In reply to]

Hi Tomasz , tanks for regard. I guess the problem is on block:
if(cli_readn(fd, state->block, state->blklen) != state->blklen)
{
 cli_dbgmsg("cab_read_block: Can't read block
data\n");
 return CL_EIO;
    }
when you is near of end of file and dont have space to
read state->blklen, in this case you return CL_EIO (i/o error) becouse
you read less bytes that you want. What do you think about it ?

Tanks
Emilio

> On Wed, 6 Jun 2007 20:22:34 -0300
(BRT)
> emilio [at] guerradigital wrote:
>
>> No, I researched in bugzilla to know if it is a known bug,
but
>> I didnt found nothing, so, I think send to list to
know if anybody
>> had a similar problem, because the problem
is on native libclamav
>> function
>>
(lzx_decompress and mszip_decompress).
>
> No, there's
no problem with ClamAV and it properly unpacks the cab file
>
included in http://www.guerradigital.com.br/CABDECOMPRESS.ZIP
>

> --
> oo ..... Tomasz Kojm <tkojm [at] clamav>
> (\/)\......... http://www.ClamAV.net/gpg/tkojm.gpg
>
\..........._ 0DCA5A08407D5288279DB43454822DC8985A444B
> //\ /\
Thu Jun 7 01:30:15 CEST 2007
>
_______________________________________________
>
http://lurker.clamav.net/list/clamav-devel.html
> Please submit
your patches to our Bugzilla: http://bugs.clamav.net
>

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


tkojm at clamav

Jun 7, 2007, 12:28 PM

Post #6 of 6 (2101 views)
Permalink
Re: Problem decompress cab file [In reply to]

On Thu, 7 Jun 2007 16:26:15 -0300 (BRT)
emilio [at] guerradigital wrote:

> Hi Tomasz , tanks for regard. I guess the problem is on block:
[...]
> What do you think about it ?

Let me repeat myself: there's no problem with libclamav.

--
oo ..... Tomasz Kojm <tkojm [at] clamav>
(\/)\......... http://www.ClamAV.net/gpg/tkojm.gpg
\..........._ 0DCA5A08407D5288279DB43454822DC8985A444B
//\ /\ Thu Jun 7 21:27:08 CEST 2007
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

ClamAV devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.