[GRASS-dev] [GRASS GIS] #3062: Segmentation fault with r.buffer
GRASS GIS
trac at osgeo.org
Wed Jun 15 15:06:22 PDT 2016
#3062: Segmentation fault with r.buffer
-----------------------+-------------------------
Reporter: escheper | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 7.0.5
Component: Raster | Version: 7.0.4
Resolution: | Keywords: r.buffer
CPU: Other | Platform: Linux
-----------------------+-------------------------
Comment (by neteler):
Replying to [comment:7 escheper]:
> {{{
> G_message(_("cur_zone: %i ZONE_INCR: %i ndist: %i to_ptr:
%i"),cur_zone,ZONE_INCR,ndist,to_ptr);
> if ((cur_zone = *--to_ptr))
> cur_zone -= ZONE_INCR;
> else
> cur_zone = ndist;
> }}}
...
> cur_zone: 16538 ZONE_INCR: 2 ndist: 1 to_ptr: -2116621104
Good analysis, this number looks like an integer overflow to me (it is
negative). A C expert wanted here...
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3062#comment:8>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list