fix(l1): align SIGPARAM copy operands with CALLDATACOPY #7089
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 141 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.296
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7089"
general
weight: 0.35
ElFantasma
EIP-8141 changed the
SIGPARAMcopy form's operand order so it matchesCALLDATACOPY: the three operands belowsignatureIndexandparamare nowmemOffset,dataOffset,length(ethereum/EIPs@4a9ad32c, "align SIGPARAM copy operand order with CALLDATACOPY"). We still popped them in the oldlength,dataOffset,memOffsetorder, so an ARBITRARY-signature verifier copying its own bytes read the wrong three words — consensus-visible, sinceSIGPARAM 0x04is the only way to reach those bytes from the EVM.OpSigParamHandlerpops[mem_offset, data_offset, length].docs/eip-8141.mdstate the operand order top-first, likeFRAMEDATACOPY.sigparam_copy_codepushes in the new order, and a new test pins it with three distinct operands and a destination past the first word, so a reversed read lands the bytes elsewhere instead of coincidentally passing.The two existing copy tests use
memOffset = 0; they now exercise the new order too.Note for the frame-tx satellite branches:
eip-7906,eip-8250andeip-8272all touchOpSigParamHandlerand will need this one-line rebase.