aboutsummaryrefslogtreecommitdiffstats
path: root/prog/prog.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-09-20 14:35:47 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-09-28 09:53:32 +0000
commit746f61e725ad2460e3f101b5e8899105ddea08a1 (patch)
tree16504ca1ef7d98f67d221e59c449266402d84c01 /prog/prog.go
parentf73e09b3a31addec5481c03b113a17cc839ded1f (diff)
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 <jm3228520@gmail.com>
Diffstat (limited to 'prog/prog.go')
-rw-r--r--prog/prog.go2
1 files changed, 1 insertions, 1 deletions
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)
}