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

cpi: fix capacity check in update_caller_account #34064

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

alessandrod
Copy link
Contributor

reserve(additional) reserves additional bytes on top of the current length not capacity. Before this fix we could potentially reserve less capacity than required.

reserve(additional) reserves additional bytes on top of the current _length_
not capacity. Before this fix we could potentially reserve less capacity than
required.
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Merging #34064 (2f38eb9) into master (71dcf77) will decrease coverage by 0.1%.
The diff coverage is 100.0%.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34064     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         811      811             
  Lines      219628   219629      +1     
=========================================
- Hits       179974   179915     -59     
- Misses      39654    39714     +60     

@Lichtso Lichtso added the v1.17 PRs that should be backported to v1.17 label Nov 15, 2023
@alessandrod alessandrod merged commit d009d73 into solana-labs:master Nov 15, 2023
33 checks passed
mergify bot pushed a commit that referenced this pull request Nov 15, 2023
reserve(additional) reserves additional bytes on top of the current _length_
not capacity. Before this fix we could potentially reserve less capacity than
required.

(cherry picked from commit d009d73)
alessandrod added a commit that referenced this pull request Nov 15, 2023
…34064) (#34081)

cpi: fix capacity check in update_caller_account (#34064)

reserve(additional) reserves additional bytes on top of the current _length_
not capacity. Before this fix we could potentially reserve less capacity than
required.

(cherry picked from commit d009d73)

Co-authored-by: Alessandro Decina <alessandro.d@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.17 PRs that should be backported to v1.17
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants