r2901 - trunk/varnish-cache/lib/libvcl

phk at projects.linpro.no phk at projects.linpro.no
Tue Jul 8 10:53:38 CEST 2008


Author: phk
Date: 2008-07-08 10:53:37 +0200 (Tue, 08 Jul 2008)
New Revision: 2901

Modified:
   trunk/varnish-cache/lib/libvcl/vcc_compile.c
Log:
assert !vsb_overflowed()



Modified: trunk/varnish-cache/lib/libvcl/vcc_compile.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_compile.c	2008-07-08 07:30:42 UTC (rev 2900)
+++ trunk/varnish-cache/lib/libvcl/vcc_compile.c	2008-07-08 08:53:37 UTC (rev 2901)
@@ -299,7 +299,7 @@
 
 	Fc(tl, 0, "\nstatic void\nVGC_Init(struct cli *cli)\n{\n\n");
 	vsb_finish(tl->fi);
-	/* XXX: check vsb_overflowed ? */
+	AZ(vsb_overflowed(tl->fi));
 	vsb_cat(tl->fc, vsb_data(tl->fi));
 	Fc(tl, 0, "}\n");
 }
@@ -310,7 +310,7 @@
 
 	Fc(tl, 0, "\nstatic void\nVGC_Fini(struct cli *cli)\n{\n\n");
 	vsb_finish(tl->ff);
-	/* XXX: check vsb_overflowed ? */
+	AZ(vsb_overflowed(tl->ff));
 	vsb_cat(tl->fc, vsb_data(tl->ff));
 	Fc(tl, 0, "}\n");
 }
@@ -625,7 +625,7 @@
 		Fc(tl, 1, "VGC_function_%s (struct sess *sp)\n",
 		    method_tab[i].name);
 		vsb_finish(tl->fm[i]);
-		/* XXX: check vsb_overflowed ? */
+		AZ(vsb_overflowed(tl->fm[i]));
 		Fc(tl, 1, "{\n");
 		Fc(tl, 1, "%s", vsb_data(tl->fm[i]));
 		Fc(tl, 1, "}\n");
@@ -641,9 +641,10 @@
 
 	/* Combine it all in the fh vsb */
 	vsb_finish(tl->fc);
-	/* XXX: check vsb_overflowed ? */
+	AZ(vsb_overflowed(tl->fc));
 	vsb_cat(tl->fh, vsb_data(tl->fc));
 	vsb_finish(tl->fh);
+	AZ(vsb_overflowed(tl->fh));
 
 	of = strdup(vsb_data(tl->fh));
 	AN(of);




More information about the varnish-commit mailing list