samba-vscan/fprot vscan-fprotd_core.c,1.24.2.2,1.24.2.3
Rainer Link <[email protected]>
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/samba-vscan/fprot
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30690
Modified Files:
Tag: VSCAN_0_3
vscan-fprotd_core.c
Log Message:
improved sanity check
Index: vscan-fprotd_core.c
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/fprot/vscan-fprotd_core.c,v
retrieving revision 1.24.2.2
retrieving revision 1.24.2.3
diff -u -d -r1.24.2.2 -r1.24.2.3
--- vscan-fprotd_core.c 3 Jan 2004 14:59:41 -0000 1.24.2.2
+++ vscan-fprotd_core.c 3 Apr 2004 16:30:39 -0000 1.24.2.3
@@ -86,7 +86,8 @@
/* some sanity checks ... */
len = strlen(result);
- if ( len < 8 ) {
+ /* see later on */
+ if ( len < (6 + 8) ) {
/* hum, sth went wrong */
vscan_syslog_alert("ALERT - Scan result: '%s' infected with virus 'UNKNOWN', client: '%s'", infected_file, client_ip);
if ( send_warning_message )
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click