Skip to content

[RF] Fix a memory corruption when initialising a TMatrix.#21311

Open
hageboeck wants to merge 1 commit intoroot-project:masterfrom
hageboeck:rf_matrixBug
Open

[RF] Fix a memory corruption when initialising a TMatrix.#21311
hageboeck wants to merge 1 commit intoroot-project:masterfrom
hageboeck:rf_matrixBug

Conversation

@hageboeck
Copy link
Member

I stumbled over an address sanitizer error when a TMatrix was initialised. It turns out that it got initialised with one element too few, so the element [2][2] was initialised with random stack memory. Since it seems to be a correlation matrix and the element of the diagonal was missing, I added a 1., but please check if that's the correct value.

@hageboeck hageboeck self-assigned this Feb 18, 2026
Copy link
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@github-actions
Copy link

github-actions bot commented Feb 18, 2026

Test Results

    22 files      22 suites   3d 10h 49m 9s ⏱️
 3 799 tests  3 795 ✅ 0 💤 4 ❌
76 403 runs  76 399 ✅ 0 💤 4 ❌

For more details on these failures, see this check.

Results for commit b9a61e9.

♻️ This comment has been updated with latest results.

The correlation matrix has nine elements, but only 8 were passed to a
memcpy that doesn not check the size of the input buffer.
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.

2 participants

Comments