From 620352409e47ec27a68a97e08b5786e27035ce31 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 7 Oct 2021 14:04:54 +0000 Subject: prog/decodeexec.go: properly handle call props before no-copyin calls If a call having non-default call props is followed by a call not having copyin instructions, the non-default call prop values will be lost. Fix this by trying to commit the call before processing the call props structure. Adjust the call-props-related decodeexec test to emulate that situation as well. --- prog/decodeexec.go | 1 + 1 file changed, 1 insertion(+) (limited to 'prog/decodeexec.go') diff --git a/prog/decodeexec.go b/prog/decodeexec.go index f803d5b4c..de62879f7 100644 --- a/prog/decodeexec.go +++ b/prog/decodeexec.go @@ -116,6 +116,7 @@ func (dec *execDecoder) parse() { dec.commitCall() return case execInstrSetProps: + dec.commitCall() dec.readCallProps(&dec.call.Props) default: dec.commitCall() -- cgit mrf-deployment