[master] 2bc56a4b7 vcc: Add missing ERRCHK to vcc_expr5()
Nils Goroll
nils.goroll at uplex.de
Wed Jun 2 15:22:05 UTC 2021
commit 2bc56a4b789fb770548aa6d528c8c8d6d296d4a1
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Wed Jun 2 17:09:27 2021 +0200
vcc: Add missing ERRCHK to vcc_expr5()
VCC_SymbolGet() could fail, e,g, if the token is reserved
Ref cf396384595ef47cc66f1eedcf0b6730d5b1b659
diff --git a/lib/libvcc/vcc_expr.c b/lib/libvcc/vcc_expr.c
index 55d311ea8..b41395aff 100644
--- a/lib/libvcc/vcc_expr.c
+++ b/lib/libvcc/vcc_expr.c
@@ -745,6 +745,7 @@ vcc_expr5(struct vcc *tl, struct expr **e, vcc_type_t fmt)
if (sym == NULL && fmt->global_pfx != NULL && t1->tok != '.') {
sym = VCC_SymbolGet(tl, SYM_MAIN, SYM_NONE,
SYMTAB_CREATE, XREF_REF);
+ ERRCHK(tl);
AN(sym);
VCC_GlobalSymbol(sym, fmt);
}
More information about the varnish-commit
mailing list