Commit 0990598
authored
fix: catch exceptions in ChonkBatchVerifier::batch_check (#22270)
## Summary
PR #22263 replaced `BB_ASSERT(val.on_curve())` with `throw_or_abort()`
in `field_conversion.hpp` for the external audit response. This bypasses
`BB_DISABLE_ASSERTS()` and causes
`ChonkBatchVerifierTests.RandomMixedBatches` to crash when deserializing
corrupted IPA proof points during `batch_check()`.
Added try-catch in `batch_check()` so exceptions from corrupted proof
data return `false` (triggering bisection) instead of terminating the
process. This is consistent with the existing try-catch in
`parallel_reduce()`.
All 29 chonk tests pass.
Full analysis:
https://gist.github.com/AztecBot/71089def650112d95757a7d3af6c0d67
ClaudeBox log: https://claudebox.work/s/fd385651d6fa6262?run=11 parent 7511415 commit 0990598
1 file changed
Lines changed: 16 additions & 11 deletions
Lines changed: 16 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
228 | 229 | | |
229 | | - | |
230 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
231 | 236 | | |
232 | 237 | | |
233 | 238 | | |
| |||
0 commit comments