[GRASS-dev] [GRASS GIS] #2168: Memory error in G_matrix_inverse
GRASS GIS
trac at osgeo.org
Mon Jan 20 03:40:59 PST 2014
#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>
More information about the grass-dev
mailing list