Commit 52188d04 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Default vcc_allow_inline_c to false in V4

parent d65d7c73
......@@ -522,7 +522,7 @@ const struct parspec mgt_parspec[] = {
{ "vcc_allow_inline_c", tweak_bool, &mgt_vcc_allow_inline_c, 0, 0,
"Allow inline C code in VCL.\n",
0,
"on", "bool" },
"off", "bool" },
{ "vcc_unsafe_path", tweak_bool, &mgt_vcc_unsafe_path, 0, 0,
"Allow '/' in vmod & include paths.\n"
......
......@@ -7,7 +7,7 @@ server s1 {
varnish v1
varnish v1 -cliok "param.show vcc_allow_inline_c"
varnish v1 -cliok "param.set vcc_allow_inline_c true"
varnish v1 -vcl+backend {
C{ getpid(); }C
......
......@@ -10,7 +10,7 @@ server s1 {
txresp -status 200 -hdr "Foo: Foo" -body "56"
} -start
varnish v1 -vcl+backend {
varnish v1 -cliok "param.set vcc_allow_inline_c true" -vcl+backend {
sub vcl_recv {
C{ VRT_CacheReqBody(ctx, 1000); }C
return (pass);
......
......@@ -5,7 +5,9 @@ server s1 {
txresp
} -start
varnish v1 -cliok "param.set sigsegv_handler on" -vcl+backend {
varnish v1 -cliok "param.set vcc_allow_inline_c true"
varnish v1 -cliok "param.set sigsegv_handler on"
varnish v1 -vcl+backend {
C{
#include <signal.h>
#include <stdlib.h>
......
......@@ -5,7 +5,7 @@ server s1 {
txresp
} -start
varnish v1 -vcl+backend {
varnish v1 -cliok "param.set vcc_allow_inline_c true" -vcl+backend {
C{
void foo(void)
{
......
......@@ -23,7 +23,7 @@ varnish v1 -errvcl {Unterminated string at} {
"
}
varnish v1 -vcl {
varnish v1 -cliok "param.set vcc_allow_inline_c true" -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv { C{ int i; (void)i; }C }
}
......
varnishtest "VCL compiler coverage test: vcc_parse.c & vcc_expr.c"
varnish v1 -vcl {
varnish v1 -cliok "param.set vcc_allow_inline_c true" -vcl {
backend b { .host = "127.0.0.1"; }
C{
#include <stdio.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment