Skip to content

Commit f376026

Browse files
committed
Reduce replace() strlimit down to 1k
1 parent 47d6962 commit f376026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/gatekeeper/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func EvalContextFromCommandEnvironment(env CommandEnvironment, command Command,
221221
},
222222
"replace": func(context *EvalContext, args[]Expr) (Expr, error) {
223223
arity := 3;
224-
strlimit := 4096; // one replacement could potentially create a strlimit*strlimit string inside this block
224+
strlimit := 1024; // one replacement could potentially create a strlimit*strlimit string inside this block
225225
if len(args) != arity {
226226
return Expr{}, fmt.Errorf("replace: Expected %d arguments but got %d", arity, len(args))
227227
}

0 commit comments

Comments
 (0)