Skip to content

[BP][626] [io] Improve checks when reading arrays with TBufferFile#21871

Merged
dpiparo merged 3 commits intoroot-project:v6-26-00-patchesfrom
dpiparo:bp_21814_626
Apr 9, 2026
Merged

[BP][626] [io] Improve checks when reading arrays with TBufferFile#21871
dpiparo merged 3 commits intoroot-project:v6-26-00-patchesfrom
dpiparo:bp_21814_626

Conversation

@dpiparo
Copy link
Copy Markdown
Member

@dpiparo dpiparo commented Apr 9, 2026

BP of #21814

dpiparo and others added 3 commits April 9, 2026 17:44
Because, under certain circumstances, BufMax and fBufSize got
out-of-sync

Co-Authored-By: Philippe Canal <pcanal@fnal.gov>
(cherry picked from commit 619d396)
i.e. in the TBufferFile::Read*Array* methods.

Previously, the collection length was checked to be positive
and that it was less than the total buffer size.

Those checks have been improved with a battery of 3 checks:
    1. The collection's number of elements is checked to be positive
    2. The collection length is checked to be positive
    3. The collection length is checked to be less than the portion
    of the buffer that remains to be read

The test roottest-root-io-prefetching-run had to be modified as well
because of what seems to be a corrupted input file.

thanks also to @Sebasteuo

(cherry picked from commit 6ab4902)
@dpiparo dpiparo self-assigned this Apr 9, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

Test Results

    3 files      3 suites   9h 42m 32s ⏱️
2 327 tests 2 327 ✅ 0 💤 0 ❌
6 939 runs  6 939 ✅ 0 💤 0 ❌

Results for commit 4bfa38f.

@dpiparo dpiparo merged commit 7bb37d7 into root-project:v6-26-00-patches Apr 9, 2026
5 of 6 checks passed
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.

1 participant