rpms/squidGuard/F-9 squidGuard-1.3-SG-2008-06-13.patch,NONE,1.1
Jon Ciesla
limb at fedoraproject.org
Tue Feb 17 16:35:45 UTC 2009
- Previous message (by thread): rpms/squidGuard/F-9 sources,1.3,1.4 squidGuard.spec,1.12,1.13
- Next message (by thread): rpms/rsyslog/F-10 .cvsignore, 1.29, 1.30 rsyslog.spec, 1.53, 1.54 sources, 1.31, 1.32 rsyslog-3.21.9-dodie.patch, 1.1, NONE rsyslog-3.21.9-opts.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: limb
Update of /cvs/pkgs/rpms/squidGuard/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1962
Added Files:
squidGuard-1.3-SG-2008-06-13.patch
Log Message:
Oops.
squidGuard-1.3-SG-2008-06-13.patch:
--- NEW FILE squidGuard-1.3-SG-2008-06-13.patch ---
--- src/sgDiv.c.in.orig 2007-11-03 08:59:49.000000000 -0500
+++ src/sgDiv.c.in 2008-06-13 12:01:43.000000000 -0500
@@ -94,6 +94,7 @@
int i = 0;
char c;
int report_once = 1;
+ int trailingdot = 1;
size_t strsz;
int ndx = 0;
@@ -148,6 +149,16 @@
report_once--;
}
}
+ else if ('.' == p[ndx] && '/' == p[ndx+1] && trailingdot == 0) {
+ /* If the domain has trailing dot, remove (problem found with squid 3.0 stable1-5) */
+ /* if this char is a dot and the next char is a slash, then shift the rest of the string left one char */
+ /* We do this only the first time it is encountered. */
+ trailingdot++;
+ size_t sz = strlen(p+ndx+1);
+ strncpy(p+ndx,p+ndx+1, sz);
+ p[ndx+sz] = '\0';
+ @NOLOG1@ sgLogError("Warning: Possible bypass attempt. Found a trailing dot in the domain name: %s", s->orig); @NOLOG2@
+ }
else
{
/* increment the string indexer */
- Previous message (by thread): rpms/squidGuard/F-9 sources,1.3,1.4 squidGuard.spec,1.12,1.13
- Next message (by thread): rpms/rsyslog/F-10 .cvsignore, 1.29, 1.30 rsyslog.spec, 1.53, 1.54 sources, 1.31, 1.32 rsyslog-3.21.9-dodie.patch, 1.1, NONE rsyslog-3.21.9-opts.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list