Commit 46d1d71
committed
fix: guard debug-only pairing point validation and logderivative span OOB
Two fixes for the nightly barretenberg debug build:
1. PairingPoints: Add on_curve() checks before constructing native PairingPoints
in debug blocks. Zero-initialized witness values during VK generation are not
valid curve points, causing reduced_ate_pairing_batch_precomputed to abort.
2. logderivative_library: Clamp batch_invert range to the polynomial's actual
(non-virtual) data size. When multithreaded chunks exceed the polynomial's
real size, _GLIBCXX_DEBUG span bounds checking catches the OOB access.1 parent cf1a239 commit 46d1d71
2 files changed
Lines changed: 28 additions & 9 deletions
File tree
- barretenberg/cpp/src/barretenberg
- honk/proof_system
- stdlib/primitives
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
| |||
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
210 | 216 | | |
211 | 217 | | |
212 | 218 | | |
213 | | - | |
214 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
215 | 228 | | |
216 | 229 | | |
217 | 230 | | |
| |||
0 commit comments