Skip to content

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

Open
silverweed wants to merge 5 commits intoroot-project:masterfrom
silverweed:tfile_init_oob
Open

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

Conversation

@silverweed
Copy link
Copy Markdown
Contributor

@silverweed silverweed commented May 8, 2026

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 11h 34m 26s ⏱️
 3 852 tests  3 851 ✅ 0 💤 1 ❌
76 069 runs  76 068 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 986cb8f.

♻️ This comment has been updated with latest results.

@silverweed silverweed marked this pull request as ready for review May 11, 2026 09:31
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