Skip to content

feat: merge-train/barretenberg#21882

Open
AztecBot wants to merge 2 commits intonextfrom
merge-train/barretenberg
Open

feat: merge-train/barretenberg#21882
AztecBot wants to merge 2 commits intonextfrom
merge-train/barretenberg

Conversation

@AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Mar 22, 2026

BEGIN_COMMIT_OVERRIDE
feat: add many_from_buffer_exact for strict buffer size validation (#21880)
chore!: Make is_less_than range-check stricter (#21723)
END_COMMIT_OVERRIDE

…21880)

## Summary
- Adds `many_from_buffer_exact<T>` helper in `file_io.hpp` that
validates buffer sizes are exact multiples of `sizeof(T)` before
deserializing, producing clear error messages for misaligned buffers.
- Uses `many_from_buffer_exact` for UltraHonk proof and public inputs
binary deserialization in `api_ultra_honk.cpp`.
- Adds unit tests verifying rejection of trailing bytes and acceptance
of aligned buffers.

ClaudeBox log: https://claudebox.work/s/339cddebbe6e2d8c?run=1
Copy link
Collaborator

@ludamad ludamad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Auto-approved

@AztecBot AztecBot added this pull request to the merge queue Mar 22, 2026
@AztecBot
Copy link
Collaborator Author

🤖 Auto-merge enabled after 4 hours of inactivity. This PR will be merged automatically once all checks pass.

1 similar comment
@AztecBot
Copy link
Collaborator Author

🤖 Auto-merge enabled after 4 hours of inactivity. This PR will be merged automatically once all checks pass.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 22, 2026
In the bigfield function `is_less_than` we range constrain the last limb
to fit in `NUM_LAST_LIMB_BITS`, this is a stricter range constraint than
the one used previously.
@AztecBot
Copy link
Collaborator Author

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/309e926d9d199c04�309e926d9d199c048;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_epochs/epochs_ha_sync.test.ts (67s) (code: 0) group:e2e-p2p-epoch-flakes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants