Skip to content

Add SRS bounds check in KZG commit to prevent out-of-bounds slicing#1030

Open
viktorking7 wants to merge 1 commit intolambdaclass:mainfrom
viktorking7:main
Open

Add SRS bounds check in KZG commit to prevent out-of-bounds slicing#1030
viktorking7 wants to merge 1 commit intolambdaclass:mainfrom
viktorking7:main

Conversation

@viktorking7
Copy link

Description

  • Added a guard in KZG commit to cap polynomial coefficients by available SRS powers
  • Prevents out-of-bounds slice and potential panic when SRS is underprovisioned
  • Kept public API unchanged; behavior now safely truncates inputs instead of panicking

Why

  • Ensure robustness against malformed or oversized inputs
  • Avoid denial-of-service via runtime panics in critical crypto code paths

@viktorking7 viktorking7 requested a review from a team as a code owner September 24, 2025 14:44
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.

1 participant