Skip to content

RUM-15081: Fix memory corruption in NDK module#3257

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/rum-15081/fix-memory-corruption-ndk
Mar 13, 2026
Merged

RUM-15081: Fix memory corruption in NDK module#3257
0xnm merged 1 commit into
developfrom
nogorodnikov/rum-15081/fix-memory-corruption-ndk

Conversation

@0xnm

@0xnm 0xnm commented Mar 13, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Backtrace copy logic in NDK can corrupt memory by accessing the address outside of boundary in case if str.size() is bigger than max_size we reserved.

This PR puts the termination char at the correct position.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm
0xnm requested review from a team as code owners March 13, 2026 10:06

@mariusc83 mariusc83 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good catch

@datadog-prod-us1-3

This comment has been minimized.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.35%. Comparing base (6772dc6) to head (1a28c0b).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3257      +/-   ##
===========================================
- Coverage    71.37%   71.35%   -0.03%     
===========================================
  Files          940      940              
  Lines        34773    34773              
  Branches      5894     5894              
===========================================
- Hits         24819    24810       -9     
- Misses        8304     8313       +9     
  Partials      1650     1650              

see 32 files with indirect coverage changes

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

@0xnm
0xnm merged commit bbf5b1b into develop Mar 13, 2026
27 checks passed
@0xnm
0xnm deleted the nogorodnikov/rum-15081/fix-memory-corruption-ndk branch March 13, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants