From 9a7594a1f58eacf3c75133d66ee187bed2ba27dc Mon Sep 17 00:00:00 2001 From: Stephen Sinclair Date: Thu, 21 Oct 2021 19:59:05 +0200 Subject: [PATCH] Wrong argument to cs_transpose leads to segfault --- src/fclib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fclib.h b/src/fclib.h index b4cf720..ab4a3e3 100644 --- a/src/fclib.h +++ b/src/fclib.h @@ -1591,7 +1591,7 @@ FCLIB_STATIC double fclib_merit_local (struct fclib_local *problem, enum fclib_m /* compute V^T {r} + R \lambda + s */ if (n_e >0) { - cs * VT = cs_transpose((cs *)V, 0) ; + cs * VT = cs_transpose((cs *)V, 1) ; tmp = (double *)malloc(n_e*sizeof(double)); for (i =0; i