Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tendermint: box headers in Misbehaviour message #1145

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

mina86
Copy link
Contributor

@mina86 mina86 commented Mar 28, 2024

Header type is quite large. Misbehaviour holds two of those. This becomes an issue on platforms with small stack—such as Solana—where keeping (even temporary) local variable may lead to stack overflow.

Fix that by Boxing each of the headers in the Misbehaviour message.


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests.
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

Copy link

codecov bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.06%. Comparing base (987ec42) to head (83d3d52).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1145   +/-   ##
=======================================
  Coverage   64.06%   64.06%           
=======================================
  Files         217      217           
  Lines       21049    21049           
=======================================
  Hits        13484    13484           
  Misses       7565     7565           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Farhad-Shabani Farhad-Shabani added this to the 0.52.0 milestone Mar 28, 2024
Header type is quite large.  Misbehaviour holds two of those.  This becomes
an issue on platforms with small stack—such as Solana—where keeping (even
temporary) local variable may lead to stack overflow.

Fix that by Boxing each of the headers in the Misbehaviour message.
@Farhad-Shabani Farhad-Shabani added this pull request to the merge queue Mar 28, 2024
Merged via the queue into cosmos:main with commit ee1107f Mar 28, 2024
17 checks passed
@mina86 mina86 deleted the b branch March 28, 2024 15:34
mina86 added a commit to mina86/ibc-rs that referenced this pull request Apr 8, 2024
Header type is quite large.  Misbehaviour holds two of those.  This becomes
an issue on platforms with small stack—such as Solana—where keeping (even
temporary) local variable may lead to stack overflow.

Fix that by Boxing each of the headers in the Misbehaviour message.

Co-authored-by: dhruvja <[email protected]>
Farhad-Shabani pushed a commit that referenced this pull request Sep 9, 2024
Header type is quite large.  Misbehaviour holds two of those.  This becomes
an issue on platforms with small stack—such as Solana—where keeping (even
temporary) local variable may lead to stack overflow.

Fix that by Boxing each of the headers in the Misbehaviour message.

Co-authored-by: dhruvja <[email protected]>
mina86 added a commit to mina86/ibc-rs that referenced this pull request Oct 4, 2024
Header type is quite large.  Misbehaviour holds two of those.  This becomes
an issue on platforms with small stack—such as Solana—where keeping (even
temporary) local variable may lead to stack overflow.

Fix that by Boxing each of the headers in the Misbehaviour message.

Co-authored-by: dhruvja <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants