Skip to content

fix(interpreter): handle non-Spanned variants in wrap_spanned_with_src#867

Open
mwaddip wants to merge 1 commit into
ergoplatform:developfrom
mwaddip:fix/wrap-spanned-no-panic
Open

fix(interpreter): handle non-Spanned variants in wrap_spanned_with_src#867
mwaddip wants to merge 1 commit into
ergoplatform:developfrom
mwaddip:fix/wrap-spanned-no-panic

Conversation

@mwaddip
Copy link
Copy Markdown

@mwaddip mwaddip commented May 24, 2026

Wrap bare EvalError variants instead of panicking. The diagnostic retry
path in reduce_to_crypto can hit wrap_spanned_with_src with an
unspanned variant (e.g. InvalidResultType, UnexpectedExpr); the
type-checking parser keeps this off the consensus path, but fuzzers and
external reduce-helper code can reach it.

Wrap bare `EvalError` variants instead of panicking. The diagnostic retry
path in `reduce_to_crypto` can hit `wrap_spanned_with_src` with an
unspanned variant (e.g. `InvalidResultType`, `UnexpectedExpr`); the
type-checking parser keeps this off the consensus path, but fuzzers and
external reduce-helper code can reach it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant