[LinearSystem] MatrixProjectionMethod: Fix out-of-bounds matrix writes - #6256
Open
fredroy wants to merge 1 commit into
Open
[LinearSystem] MatrixProjectionMethod: Fix out-of-bounds matrix writes#6256fredroy wants to merge 1 commit into
fredroy wants to merge 1 commit into
Conversation
fredroy
force-pushed
the
fix_matrixprojectionmethod
branch
from
August 25, 2026 01:36
e482fad to
2b0c0df
Compare
Contributor
Author
|
for windows.... |
Collaborator
|
[ci-depends-on] detected during build #4. To unlock the merge button, you must
|
Contributor
|
Strongly related to #6222 |
alxbilger
reviewed
Aug 25, 2026
alxbilger
left a comment
Contributor
There was a problem hiding this comment.
I am afraid Claude is wrong!
Consider a spring that has 2 input mapped states resulting into 2 mapping jacobian matrices:
I suggest to close this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MatrixProjectionMethod::addMappedMatrixToGlobalMatrixEigeniterated over the cartesian product of the union of both mechanical states' top-most ancestors, instead of inputs1 x inputs2.For the resulting spurious pairs no Jacobian exists, and computeProjection silently falls back to an unprojected block whose dimensions belong to the mapped state, written at the global offsets of an unrelated state.
[with-all-tests]
[ci-depends-on https://github.com/sofa-framework/Regression/pull/126]
By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if