You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ix value is passed straight into simplicity_build_txEnv.
AFAICT, there are no bad consequences to this at the moment. env->ix is only used in elementsJets.c, and it is checked before ever being used as an array index.
The solution is to either list ix in the preconditions of simplicity_elements_execSimplicity, or check the ix value in that function.
The text was updated successfully, but these errors were encountered:
One of the preconditions listed in
simplicity_build_txEnv
is thatix < tx->numInputs
.simplicity/C/primitive/elements/primitive.h
Lines 266 to 274 in de799bd
However at the call site, this is not ensured.
simplicity/C/primitive/elements/exec.c
Line 120 in de799bd
The
ix
value is passed straight intosimplicity_build_txEnv
.AFAICT, there are no bad consequences to this at the moment.
env->ix
is only used in elementsJets.c, and it is checked before ever being used as an array index.The solution is to either list
ix
in the preconditions ofsimplicity_elements_execSimplicity
, or check theix
value in that function.The text was updated successfully, but these errors were encountered: