Repository navigation
Commit 2f56d3b
committed
fix(coordinator): reject malformed chunk/batch proof submissions with nil StarkProof
A submission carrying "proof": null (or omitting the key) unmarshals to a
nil *OpenVMStarkProof; the metric block then dereferences StarkProof.Stat
unconditionally and panics in the HTTP handler — skipping proofRecover and
the verifier-failure accounting, and leaving the task stuck until the
sweeper resets it. Any authenticated prover can trigger this. Guard right
after unmarshal so malformed submissions take the normal error path.1 parent 8cc4b0d commit 2f56d3b
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
| |||
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
254 | 260 | | |
255 | 261 | | |
256 | 262 | | |
| |||
0 commit comments