From: phk Date: Tue, 8 Jul 2008 08:53:37 +0000 (+0000) Subject: assert !vsb_overflowed() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=310feaa32f87b84ac639fe13e83d60c4da9f5acb;p=varnish assert !vsb_overflowed() git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2901 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_compile.c b/varnish-cache/lib/libvcl/vcc_compile.c index 58d339c4..2de10b4f 100644 --- a/varnish-cache/lib/libvcl/vcc_compile.c +++ b/varnish-cache/lib/libvcl/vcc_compile.c @@ -299,7 +299,7 @@ EmitInitFunc(const struct tokenlist *tl) 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 @@ EmitFiniFunc(const struct tokenlist *tl) 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 @@ vcc_CompileSource(struct vsb *sb, struct source *sp) 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 @@ vcc_CompileSource(struct vsb *sb, struct source *sp) /* 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);