r3318 - trunk/varnish-cache/lib/libvcl

phk at projects.linpro.no phk at projects.linpro.no
Fri Oct 17 20:54:08 CEST 2008


Author: phk
Date: 2008-10-17 20:54:07 +0200 (Fri, 17 Oct 2008)
New Revision: 3318

Modified:
   trunk/varnish-cache/lib/libvcl/vcc_parse.c
Log:
Check that regexps are constant strings.



Modified: trunk/varnish-cache/lib/libvcl/vcc_parse.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_parse.c	2008-10-17 15:53:34 UTC (rev 3317)
+++ trunk/varnish-cache/lib/libvcl/vcc_parse.c	2008-10-17 18:54:07 UTC (rev 3318)
@@ -250,6 +250,7 @@
 	switch (tl->t->tok) {
 	case '~':
 		vcc_NextToken(tl);
+		ExpectErr(tl, CSTR);
 		p = vcc_regexp(tl, 0);
 		vcc_NextToken(tl);
 		Fb(tl, 1, "VRT_re_match(%s, %s)\n", vp->rname, p);




More information about the varnish-commit mailing list