• Nils Goroll's avatar
    fix enum check in vcc: do not accept values valid for other arguments · b2d75389
    Nils Goroll authored
    VCC was silently accepting enum values valid for other arguments
    following in the argument list as well as other identifiers in the
    argument spec (for example "ENUM"). Consequently, wrong enum values in
    VCL were not detected at VCC time and passed to vmod functions, which,
    in the best case, would detect the error (and, if following the
    varnish good practice, panic on a failed assertion).
    
    This is another forgotten case since the enum list was changed to be
    terminated by \1 in a78efad8: vcc_expr
    would just loop over the \1 terminator up to the final \0 terminator
    at the end of the argument spec.
    b2d75389
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
devscripts Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.syntastic_c_config Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
Makefile.inc.phk Loading commit data...
Makefile.phk Loading commit data...
README.Packaging Loading commit data...
README.rst Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
config.phk Loading commit data...
configure.ac Loading commit data...
flint.lnt Loading commit data...
varnish-legacy.m4 Loading commit data...
varnish.m4 Loading commit data...
varnishapi-uninstalled.pc.in Loading commit data...
varnishapi.pc.in Loading commit data...