8000 v1.17: chore: Update light-poseidon to 0.2.0 (backport of #33923) by mergify[bot] · Pull Request #34247 · solana-labs/solana · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

v1.17: chore: Update light-poseidon to 0.2.0 (backport of #33923) #34247

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

mergify[bot]
Copy link
Contributor
@mergify mergify bot commented Nov 28, 2023

This is an automatic backport of pull request #33923 done by Mergify.
Cherry-pick of 67f8daf has failed:

On branch mergify/bp/v1.17/pr-33923
Your branch is up to date with 'origin/v1.17'.

You are currently cherry-picking commit 67f8daf6e9.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   sdk/program/src/poseidon.rs

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   Cargo.lock
	both modified:   Cargo.toml
	both modified:   programs/sbf/Cargo.lock

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

That new release contains an important change which prevents a
potential DDoS.

* Lightprotocol/light-poseidon#32

Invoking `from_bytes_be` function light-poseidon 0.1.1 inverts all
the inputs before performing a check whether their length exceeds
the modulus of the prime field. Therefore, it was prone to an
attack, where a mailicious user could submit long byte slices just
to DDoS the validator, being stuck on inverting large byte sequences.

The update and mentioned change fixes the same issue as #33363 aims
to address.

The new release contains also few other less important changes like:

* Lightprotocol/light-poseidon#37
* Lightprotocol/light-poseidon#38
* Lightprotocol/light-poseidon#39

(cherry picked from commit 67f8daf)
@Lichtso Lichtso force-pushed the mergify/bp/v1.17/pr-33923 branch from 38dd0d9 to 8ab58ae Compare November 28, 2023 16:41
@Lichtso Lichtso added community Community contribution and removed conflicts labels Nov 28, 2023
Copy link
codecov bot commented Nov 28, 2023

Codecov Report

Merging #34247 (8ab58ae) into v1.17 (67bfb48) will decrease coverage by 0.1%.
The diff coverage is 0.0%.

Additional details and impacted files
@@            Coverage Diff            @@
##            v1.17   #34247     +/-   ##
=========================================
- Coverage    81.8%    81.8%   -0.1%     
=========================================
  Files         803      803             
  Lines      218020   218026      +6     
=========================================
- Hits       178479   178450     -29     
- Misses      39541    39576     +35     

Copy link
Contributor
@samkim-crypto samkim-crypto left a comment

Choose a reason for hiding this comment

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

@vadorovsky Looks fine to me. I'll submit a follow-up PR with a new feature-gate label.

@samkim-crypto samkim-crypto merged commit 7036ea0 into v1.17 Dec 8, 2023
@samkim-crypto samkim-crypto deleted the mergify/bp/v1.17/pr-33923 branch December 8, 2023 23:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0