[GRASS-dev] [GRASS GIS] #801: r.le.patch crashes with -c flag
GRASS GIS
trac at osgeo.org
Mon Aug 20 05:18:26 PDT 2012
#801: r.le.patch crashes with -c flag
----------------------------------+-----------------------------------------
Reporter: wilsonadam | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.4
Component: Raster | Version: 6.4.0 RCs
Keywords: r.le.patch, segfault | Platform: Linux
Cpu: x86-64 |
----------------------------------+-----------------------------------------
Comment(by mmetz):
Replying to [comment:3 neteler]:
> The crash persists in current 6.4.svn, it fails on G_free() in trace.c,
line 765
>
>
source:grass/branches/releasebranch_6_4/raster/r.le/r.le.patch/trace.c#L765
One problem is that memory is allocated for ncols but then ncols + 3
entries are accessed, causing memory corruption. Furthermore, there are
various for (i = 1; i < nrows + 1; i++) which also exceed allocated
memory. The r.le.* modules are deprecated and deactivated in trunk; it is
recommended to use the r.li.* modules instead.
Markus M
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/801#comment:4>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list