Skip to content

[io] Add buffer bound checks in TFile::Recover#22190

Draft
silverweed wants to merge 4 commits intoroot-project:masterfrom
silverweed:tfile_init_oob
Draft

[io] Add buffer bound checks in TFile::Recover#22190
silverweed wants to merge 4 commits intoroot-project:masterfrom
silverweed:tfile_init_oob

Conversation

@silverweed
Copy link
Copy Markdown
Contributor

TODO

  • add tests
  • decide if we want/need to use the safer overloads elsewhere

This PR fixes #22169

- Declare variables when they're used
- Spare a needless dynamic allocation
- Use memcpy instead of frombuf in a loop
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

Test Results

    22 files      22 suites   3d 13h 37m 8s ⏱️
 3 850 tests  3 850 ✅ 0 💤 0 ❌
76 031 runs  76 031 ✅ 0 💤 0 ❌

Results for commit 33f969c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[io] TFile::Recover doesn't properly validate read lengths

1 participant