HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.
It is currently 22 Jun 2014 09:52

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 02 Nov 2006 11:53 
Offline

Joined: 02 Nov 2006 11:17
Posts: 7
Platform : FreeBSD 6.1-RELEASE-p10
Havp : 0.82
Clamav 0.88.5

When i try to download any .cab file the result is:
havp[50117]: 192.168.0.70 GET 200 http://www.example.it/ims.cab 290+525736 SCANERROR ClamAV: MS CAB module failure

If i pass the same file to clamdscan all is ok?

Tnx

Why if reached maxscansize get the scanner Answer on a not coplete file (line 867)
866 //Check answers
867 TempScannerAnswer = Scanners.GetAnswer();
868 Scanners.ReinitTempFile();
869
870 AnswerDone = UnlockDone = true;
871
872 //Exit bodyloop if error or virus found
873 if ( TempScannerAnswer != 0 ) break;


Top
 Profile  
 
PostPosted: 02 Nov 2006 15:31 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
vittorio wrote:
Platform : FreeBSD 6.1-RELEASE-p10
Havp : 0.82
Clamav 0.88.5

When i try to download any .cab file the result is:
havp[50117]: 192.168.0.70 GET 200 http://www.example.it/ims.cab 290+525736 SCANERROR ClamAV: MS CAB module failure

If i pass the same file to clamdscan all is ok?

Tnx

Why if reached maxscansize get the scanner Answer on a not coplete file


Thanks, you found a small logic error. :)

Naturally when we reach maxscansize, the not complete tempfile must be scanned, because we are not writing it anymore. Then we know if we can continue sending rest of the file directly to client.

We should ignore all errors from scanners from incomplete files.. It will be fixed in 0.84.

Cheers,
Henrik


Top
 Profile  
 
 Post subject:
PostPosted: 02 Nov 2006 15:42 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
If you want a quick fix to your compile, replace line 872->

Code:
//Exit bodyloop only if virus found. Ignore scanner errors
//because incomplete archives might produce them.
if ( TempScannerAnswer == 1 ) break;
TempScannerAnswer = 0;


Top
 Profile  
 
 Post subject:
PostPosted: 02 Nov 2006 17:13 
Offline

Joined: 02 Nov 2006 11:17
Posts: 7
hege wrote:
If you want a quick fix to your compile, replace line 872->

Code:
//Exit bodyloop only if virus found. Ignore scanner errors
//because incomplete archives might produce them.
if ( TempScannerAnswer == 1 ) break;
TempScannerAnswer = 0;


Tnx...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group