BrunoLevy / geogram

a programming library with geometric algorithms
Other
1.87k stars 126 forks source link

Fix segmentation fault in nlEigenSolve_ARPACK #167

Closed megawattfs closed 4 months ago

megawattfs commented 4 months 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 4 months ago

Thank you very much !