Skip to content

fix: minor fixes pt. 5#22306

Merged
iakovenkos merged 5 commits into
merge-train/barretenbergfrom
si/triage-issues-5
Apr 3, 2026
Merged

fix: minor fixes pt. 5#22306
iakovenkos merged 5 commits into
merge-train/barretenbergfrom
si/triage-issues-5

Conversation

@iakovenkos

@iakovenkos iakovenkos commented Apr 3, 2026

Copy link
Copy Markdown
Contributor
  • Reject trailing msgpack data in PrivateExecutionStepRaw::load and parse_uncompressed, with red/green tests in bbapi.test.cpp
  • Add BB_ASSERT_GTE guards in Polynomial::shiftable() to prevent unsigned underflow when size < NUM_ZERO_ROWS
  • Add BB_ASSERT in scale_by_generator that generator_size % num_threads == 0 to prevent silent element skip
  • Fix row_disabling_polynomial.hpp evaluate_at_challenge to take std::span<const FF> instead of by-value std::vector<FF> / non-const std::span<FF>
  • Pass msg to assertions in evaluate_linear_identity and evaluate_polynomial_identity constant paths
  • Early return in field_t::invert() for constant inputs to avoid fragile null context dereference

@iakovenkos iakovenkos self-assigned this Apr 3, 2026
@iakovenkos iakovenkos requested a review from ledwards2225 April 3, 2026 16:26
@iakovenkos iakovenkos merged commit 20392b7 into merge-train/barretenberg Apr 3, 2026
14 checks passed
@iakovenkos iakovenkos deleted the si/triage-issues-5 branch April 3, 2026 16:45
github-merge-queue Bot pushed a commit that referenced this pull request Apr 4, 2026
BEGIN_COMMIT_OVERRIDE
chore: upgrade uintx assert to run in release (#22289)
chore: Fix log statement in ECDSA test (#22285)
fix: avoid oob access in RAM / ROM and enable soft-fail (#22301)
fix: restore test execution in ci-barretenberg CI modes (#22303)
fix: minor fixes pt. 5 (#22306)
chore: comment about standard behavior for de bruijn (#22310)
fix: null socket on bb process exit/error in native_socket.ts (#22309)
END_COMMIT_OVERRIDE
johnathan79717 added a commit that referenced this pull request Apr 7, 2026
## Summary

Addresses findings from the polynomials/ module security audit
(https://github.com/AztecProtocol/barretenberg-claude/issues/2383).

- **F1** (Low): Harden file-backed polynomial memory: restrict temp file
permissions to `0600`, add `O_EXCL` to prevent race conditions, use
`MAP_PRIVATE` instead of `MAP_SHARED`
- **F4** (Info): Guard `compute_linear_polynomial_product` against `n=0`
to prevent underflow
- **F5** (Info): Clarify `UnivariateCoefficientBasis` docstring to
distinguish Karatsuba precomputation from polynomial coefficients

**Already fixed upstream:**
- **F2** (Low): `factor_roots` empty polynomial guard (in #22282)
- **F3** (Info): `get_scratch_space` thread safety via mutex (in #22306)
critesjosh pushed a commit that referenced this pull request Apr 14, 2026
## Summary

Addresses findings from the polynomials/ module security audit
(AztecProtocol/barretenberg-claude#2383).

- **F1** (Low): Harden file-backed polynomial memory: restrict temp file
permissions to `0600`, add `O_EXCL` to prevent race conditions, use
`MAP_PRIVATE` instead of `MAP_SHARED`
- **F4** (Info): Guard `compute_linear_polynomial_product` against `n=0`
to prevent underflow
- **F5** (Info): Clarify `UnivariateCoefficientBasis` docstring to
distinguish Karatsuba precomputation from polynomial coefficients

**Already fixed upstream:**
- **F2** (Low): `factor_roots` empty polynomial guard (in #22282)
- **F3** (Info): `get_scratch_space` thread safety via mutex (in #22306)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants