[GRASS-dev] Re: [GRASS GIS] #1039: i.group segmentation fault using full path name

GRASS GIS trac at osgeo.org
Thu Apr 15 17:35:17 EDT 2010


#1039: i.group segmentation fault using full path name
----------------------+-----------------------------------------------------
  Reporter:  huhabla  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect   |      Status:  closed                   
  Priority:  major    |   Milestone:  7.0.0                    
 Component:  Imagery  |     Version:  svn-trunk                
Resolution:  fixed    |    Keywords:  group                    
  Platform:  Linux    |         Cpu:  x86-32                   
----------------------+-----------------------------------------------------
Changes (by huhabla):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 The error is related to the I_location_info(title, argv[0]) call before
 line 112 and the size of the title buffer. The consequence is a buffer
 overflow resulting in a segfault.

 The I_location_info() function is implemented quite unsafe using sprintf
 without checking the buffer length. It is always a bad idea to fill a
 buffer with an unknown length. I have fixed this in svn [41880] and
 removed the unused I_location_info() call from i.group.

 It seems to me that I_location_info() is not used by any imagery module?
 Could it be removed?

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1039#comment:1>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list