URL: <https://savannah.gnu.org/bugs/?66026>
Summary: gsl_linalg_LU_decomp using uninitialized memory Group: GNU Scientific Library Submitter: infradig Submitted: Fri 26 Jul 2024 02:56:44 AM UTC Category: Runtime error Severity: 3 - Normal Operating System: Ubuntu Status: None Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 2.8 _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Fri 26 Jul 2024 02:56:44 AM UTC By: Andrew Davison <infradig> At line 75 in lu.c the call gsl_vector_uint * ipiv = gsl_vector_uint_alloc(minMN); is made. The ipiv vector is then used in a manner that seems to expect zeroed values. This causes a runtime crash if the circumstances conspire to present such that the allocated memory is not zeroed. Note: simple tests seem to not show this problem making it hard to reproduce in a standalone unit test, sorry. This problem can be prevented by changing the call to gsl_vector_uint * ipiv = gsl_vector_uint_calloc(minMN); instead. In my application tests this now always works. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66026> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature