Commit 1391c49
fix: reject VK with log_circuit_size=0 in UltraKeccak verifier (#22319)
## Summary
Fixes a memory-safety vulnerability in the native UltraKeccak non-ZK
verifier where a malformed verification key with `log_circuit_size = 0`
causes an out-of-bounds write in `get_dyadic_powers_of_challenge`.
---------
Co-authored-by: ludamad <adam.domurad@gmail.com>1 parent ee65fa5 commit 1391c49
File tree
2 files changed
+5
-1
lines changed- barretenberg/cpp/src/barretenberg
- transcript
- ultra_honk
2 files changed
+5
-1
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
0 commit comments