Skip to content

feat: merge-train/barretenberg#21882

Merged
ludamad merged 3 commits intonextfrom
merge-train/barretenberg
Mar 24, 2026
Merged

feat: merge-train/barretenberg#21882
ludamad merged 3 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)
fix: re-sign macOS binaries after stripping in copy_cross.sh (#21893)
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
federicobarbacovi and others added 2 commits March 23, 2026 06:55
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.
## Summary

`copy_cross.sh` runs `llvm-strip-20` on all cross-compiled binaries
(including macOS) after they were already code-signed by
`inject_version` in `bootstrap.sh`. Stripping modifies the binary
content, which invalidates the ad-hoc code signature applied by `ldid
-S`.

This adds a re-signing step with `ldid -S` for macOS Mach-O binaries
after stripping, matching the pattern already used in `inject_version`.
@AztecBot AztecBot enabled auto-merge March 23, 2026 20:10
@AztecBot
Copy link
Collaborator Author

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

@ludamad ludamad disabled auto-merge March 23, 2026 23:32
@ludamad ludamad added this pull request to the merge queue Mar 23, 2026
@AztecBot
Copy link
Collaborator Author

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

Merged via the queue into next with commit 7ac4a3c Mar 24, 2026
19 of 23 checks passed
@ludamad ludamad deleted the merge-train/barretenberg branch March 24, 2026 00:19
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