Skip to content

[io] adjust array length checks in text-based buffers#21463

Merged
linev merged 1 commit intoroot-project:masterfrom
linev:buffer_checks
Mar 4, 2026
Merged

[io] adjust array length checks in text-based buffers#21463
linev merged 1 commit intoroot-project:masterfrom
linev:buffer_checks

Conversation

@linev
Copy link
Member

@linev linev commented Mar 3, 2026

@pcanal @ferdymercury

Seems to be I overseen your PR #14627

Text-based buffers do not have 1GB limitation for object store.
But all kind of loops over array indexes made with Int_t so elements count can not be larger than max int value.
So only this limit is important.

In JSON array compression can produce small output string from large but empty array.
Overflow of output string buffer (for JSON or XML) is handled by TString::Append() method and should not play role here.

One can adjust error messages in TBufferFile and TBufferSQL - while you checks 2GB and not 1GB limit.

Text-based buffers do not have 1GB limitation for object store.
But all kind of loops over array indicies made with Int_t so
elements count cann't be larger than max int value.

Adjust error message
@linev linev self-assigned this Mar 3, 2026
@linev linev requested a review from pcanal as a code owner March 3, 2026 12:32
Copy link
Collaborator

@ferdymercury ferdymercury left a comment

Choose a reason for hiding this comment

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

thanks

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

Test Results

    22 files      22 suites   3d 3h 45m 16s ⏱️
 3 808 tests  3 807 ✅ 1 💤 0 ❌
75 708 runs  75 699 ✅ 9 💤 0 ❌

Results for commit fc82e0a.

♻️ This comment has been updated with latest results.

Copy link
Member

@pcanal pcanal left a comment

Choose a reason for hiding this comment

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

Thanks.

@linev linev merged commit 43a7dc3 into root-project:master Mar 4, 2026
47 of 56 checks passed
@linev linev deleted the buffer_checks branch March 4, 2026 06:55
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.

3 participants