Add a `clone` to script sat-checker to satisfy new soundness rules
This was actually a soundness bug waiting to happen fwiw...but I'm still not so happy about it.
This commit is contained in:
parent
e0c9844ff2
commit
97bfbe790b
|
@ -856,7 +856,8 @@ impl AbstractStackElem {
|
||||||
return Err(AnalyzeValidateFailed);
|
return Err(AnalyzeValidateFailed);
|
||||||
}
|
}
|
||||||
|
|
||||||
for v in self.validators.iter().map(|v| v.clone()) {
|
let validators = self.validators.clone();
|
||||||
|
for v in validators.iter().map(|v| v.clone()) {
|
||||||
try!((v.update)(self, v.args.as_slice()));
|
try!((v.update)(self, v.args.as_slice()));
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue