#2168: Memory error in G_matrix_inverse -----------------------+---------------------------------------------------- Reporter: stopkovae | Owner: grass-dev@… Type: defect | Status: new Priority: normal | Milestone: 7.0.0 Component: Default | Version: svn-trunk Keywords: | Platform: Linux Cpu: x86-64 | -----------------------+---------------------------------------------------- Hi,
I would like to ask for error correction in ''G_matrix_inverse()'' function. It makes "''free(): invalid next size (fast)''" error. I suggest replacing of ''perm = (integer *) G_malloc(wmat->rows);''[[BR]] with[[BR]] ''perm = (integer *) G_malloc(wmat->rows * sizeof(int));'' in ''grass/trunk/lib/gmath/la.c'' (line 486). Thank you in advance. Eva -- Ticket URL: <https://trac.osgeo.org/grass/ticket/2168> GRASS GIS <http://grass.osgeo.org> _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev