BrunoLevy / geogram

a programming library with geometric algorithms
Other
1.8k stars 122 forks source link

Fix segmentation fault in nlEigenSolve_ARPACK #167

Closed megawattfs closed 1 month ago

megawattfs commented 1 month ago

Avoid segmentation fault caused by ARPack incrementing the requested number of eigenvalues in nlEigenSolve_ARPACK. This workaround avoids the invalid access by enforcing that at most the requested number of eigenvalues are copied to the NL context.

See this issue where the manifold_harmonics sample program crashes due to a segmentation fault with certain values of nb_eigens on Windows.

BrunoLevy commented 1 month ago

Thank you very much !