From 746f61e725ad2460e3f101b5e8899105ddea08a1 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 20 Sep 2023 14:35:47 +0200 Subject: prog: preserve inout direction during squashing Prohibit arg direction from being DirIn if other calls use the resource as input. Fix one case where we used to violate it - during argument squashing. Reported-by: John Miller --- prog/prog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prog/prog.go') diff --git a/prog/prog.go b/prog/prog.go index bb7caa7c5..1453e6aea 100644 --- a/prog/prog.go +++ b/prog/prog.go @@ -45,7 +45,7 @@ type Arg interface { Dir() Dir Size() uint64 - validate(ctx *validCtx) error + validate(ctx *validCtx, dir Dir) error serialize(ctx *serializer) } -- cgit mrf-deployment