This is an automated email from the git hooks/post-receive script.

logari81 pushed a commit to branch master
in repository getfem.

The following commit(s) were added to refs/heads/master by this push:
     new 2a92631c Fix out-of-bound access bug
2a92631c is described below

commit 2a92631c263e6eb8e22b034699b13a32bf91b04d
Author: Konstantinos Poulios <[email protected]>
AuthorDate: Thu Jan 29 15:34:51 2026 +0100

    Fix out-of-bound access bug
---
 src/gmm/gmm_range_basis.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gmm/gmm_range_basis.h b/src/gmm/gmm_range_basis.h
index 7d7eeb58..9809c04c 100644
--- a/src/gmm/gmm_range_basis.h
+++ b/src/gmm/gmm_range_basis.h
@@ -398,7 +398,7 @@ namespace gmm {
 
     std::vector<R> norms(nc);
     std::vector<bool> c_ortho(nc), booked(nr);
-    std::vector< std::set<size_type> > nnzs(mat_nrows(B));
+    std::vector< std::set<size_type> > nnzs(nr+1); // 0,1,...,nr non-zeros
 
     if (!skip_init) {
 

Reply via email to