Sponsored Content
Skip to content

Fix array size check - #6030

Merged
bthomee merged 3 commits into
XRPLF:developfrom
oleks-rip:fix_cred_array
Nov 19, 2025
Merged

Fix array size check#6030
bthomee merged 3 commits into
XRPLF:developfrom
oleks-rip:fix_cred_array

Conversation

@oleks-rip

Copy link
Copy Markdown
Contributor

High Level Overview of Change

ledger_entry deposit_preauth request require array of credentials. Array size is not checked before processing the array.
This fix add check and return error in case array size is too big.

Context of Change

See RXI-1857 for more details

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Performance (increase or change in throughput and/or latency)
  • Tests (you added tests for code that already exists, or your new feature included in this PR)
  • Documentation update
  • Chore (no impact to binary, e.g. .gitignore, formatting, dropping support for older tooling)
  • Release

@oleks-rip
oleks-rip requested review from a team and mvadari November 13, 2025 01:05
@codecov

codecov Bot commented Nov 13, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.6%. Comparing base (ad37461) to head (75656ef).
⚠️ Report is 115 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           develop   #6030   +/-   ##
=======================================
  Coverage     78.6%   78.6%           
=======================================
  Files          818     818           
  Lines        68976   68983    +7     
  Branches      8267    8245   -22     
=======================================
+ Hits         54190   54196    +6     
- Misses       14786   14787    +1     
Files with missing lines Coverage Δ
src/xrpld/rpc/handlers/LedgerEntry.cpp 79.8% <100.0%> (+0.4%) ⬆️

... and 1 file with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/xrpld/rpc/handlers/LedgerEntry.cpp Outdated
Comment thread src/xrpld/rpc/handlers/LedgerEntry.cpp Outdated
@oleks-rip
oleks-rip force-pushed the fix_cred_array branch 6 times, most recently from 32d7658 to 9a5d1cf Compare November 17, 2025 20:07

@mvadari mvadari left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does the API changelog need to be updated?

@oleks-rip oleks-rip added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Nov 19, 2025
@bthomee bthomee removed the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Nov 19, 2025
@bthomee
bthomee requested a review from kuznetsss November 19, 2025 14:28

@kuznetsss kuznetsss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@bthomee bthomee added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Nov 19, 2025
@bthomee
bthomee enabled auto-merge (squash) November 19, 2025 16:37
@bthomee
bthomee merged commit 6ff495f into XRPLF:develop Nov 19, 2025
1 check passed
@oleks-rip
oleks-rip deleted the fix_cred_array branch November 19, 2025 18:03
@bthomee bthomee added the QE test desired RippleX QE Team should consider looking at this PR. label Feb 11, 2026
bthomee pushed a commit that referenced this pull request Apr 7, 2026
The `ledger_entry` and `deposit_preauth` requests require an array of credentials. However, the array size is not checked before is gets processing. This fix adds checks and return errors in case array size is too big.
ximinez pushed a commit that referenced this pull request Apr 10, 2026
The `ledger_entry` and `deposit_preauth` requests require an array of credentials. However, the array size is not checked before is gets processing. This fix adds checks and return errors in case array size is too big.
@ximinez ximinez added this to the 3.1.3 milestone Apr 15, 2026
@ximinez ximinez modified the milestones: 3.1.3, 3.1.3 (develop) Apr 15, 2026
ximinez pushed a commit that referenced this pull request Apr 22, 2026
The `ledger_entry` and `deposit_preauth` requests require an array of credentials. However, the array size is not checked before is gets processing. This fix adds checks and return errors in case array size is too big.
beartec-jpg pushed a commit to beartec-jpg/FalconLedger that referenced this pull request Jun 1, 2026
The `ledger_entry` and `deposit_preauth` requests require an array of credentials. However, the array size is not checked before is gets processing. This fix adds checks and return errors in case array size is too big.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

QE test desired RippleX QE Team should consider looking at this PR. Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants