Skip to content

Avoid out of bound access in TPad - #23768

Merged
vepadulano merged 1 commit into
root-project:masterfrom
vepadulano:tpad-fix-out-of-bound-access
Oct 21, 2026
Merged

vepadulano merged 1 commit into
root-project:masterfrom
vepadulano:tpad-fix-out-of-bound-access

Conversation

@vepadulano

Copy link
Copy Markdown
Member

TPad was allowing to access a vector data member that stores the empty cells of the canvas where the legend can be printed. Clamp the NotFree macro to accessing at most the last element of said vector.

Add a test.

@vepadulano vepadulano self-assigned this Oct 20, 2026
@vepadulano vepadulano linked an issue Oct 20, 2026 that may be closed by this pull request
1 task
@vepadulano
vepadulano force-pushed the tpad-fix-out-of-bound-access branch from f330c85 to e4b7272 Compare October 20, 2026 12:16
Comment thread hist/hist/test/test_th1d_tpad_buildlegend.cxx Outdated
TPad was allowing to access a vector data member that stores the empty cells of
the canvas where the legend can be printed. Clamp the NotFree macro to accessing
at most the last element of said vector.

Add a test.
@vepadulano
vepadulano force-pushed the tpad-fix-out-of-bound-access branch from e4b7272 to 6da37a6 Compare October 20, 2026 14:17
@github-actions

Copy link
Copy Markdown

Test Results

    23 files      23 suites   4d 2h 6m 42s ⏱️
 3 893 tests  3 893 ✅ 0 💤 0 ❌
79 555 runs  79 555 ✅ 0 💤 0 ❌

Results for commit 6da37a6.

@vepadulano
vepadulano merged commit 97ef0eb into root-project:master Oct 21, 2026
35 of 36 checks passed
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.

out of bound access when building TLegend

3 participants