Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

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
18 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 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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