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

    21 files      21 suites   3d 5h 50m 7s ⏱️
 3 796 tests  3 796 ✅ 0 💤 0 ❌
71 772 runs  71 772 ✅ 0 💤 0 ❌

Results for commit 4606f1b.

♻️ 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