[GRASS-dev] Re: [GRASS GIS] #402: v.in.ogr buffer overflow

GRASS GIS trac at osgeo.org
Wed Dec 17 09:26:42 EST 2008


#402: v.in.ogr buffer overflow
----------------------+-----------------------------------------------------
  Reporter:  epatton  |       Owner:  grass-dev at lists.osgeo.org                 
      Type:  defect   |      Status:  new                                       
  Priority:  major    |   Milestone:  6.4.0                                     
 Component:  Vector   |     Version:  svn-develbranch6                          
Resolution:           |    Keywords:  buffer overflow, vector, shapefile, import
  Platform:  Linux    |         Cpu:  x86-64                                    
----------------------+-----------------------------------------------------
Comment (by martinl):

 From grass-dev ML:

 same problem here:

 Ubuntu 8.10:

 {{{
 ii  gdal-bin                                  1.5.2-4.1~intrepid
 ii  libgdal1-1.5.0                            1.5.2-4.1~intrepid
 ii  libgdal1-1.5.0-grass                      1.5.2-1
 ii  libgdal1-dev                              1.5.2-4.1~intrepid
 }}}
 applyes for GRASS 6.3 (les-ejk ubuntu package) and 6.4 (fresh source
 compilation)

 the problem seems to be in ubuntu gdal package

 {{{
 $ ogrinfo /home/jachym/usr/src/thuban/thuban_trunk/Data/iceland/roads-
 line.shp
 INFO: Open of `/home/jachym/usr/src/thuban/thuban_trunk/Data/iceland/
 roads-line.shp'
      using driver `ESRI Shapefile' successful.
 1: roads-line (Line String)
 }}}

 {{{
 $ ogrinfo /home/jachym/usr/src/thuban/thuban_trunk/Data/iceland/roads-
 line.shp
  roads-line

 INFO: Open of `/home/jachym/usr/src/thuban/thuban_trunk/Data/iceland/
 roads-line.shp'
      using driver `ESRI Shapefile' successful.

 Layer name: roads-line
 Geometry: Line String
 Feature Count: 839
 Extent: (-24.450359, 63.426830) - (-13.556688, 66.520111)
 Layer SRS WKT:
 (unknown)
 FNODE_: Real (11.0)
 TNODE_: Real (11.0)
 LPOLY_: Real (11.0)
 RPOLY_: Real (11.0)
 LENGTH: Real (12.3)
 RDLINE_: Real (11.0)
 RDLINE_ID: Real (11.0)
 RDLNTYPE: Integer (2.0)
 RDLNSTAT: Integer (2.0)
 OGRFeature(roads-line):0
 *** buffer overflow detected ***: ogrinfo terminated
 ======= Backtrace: =========
 /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb6979558]
 /lib/tls/i686/cmov/libc.so.6[0xb6977680]
 /lib/tls/i686/cmov/libc.so.6[0xb6976f87]
 /lib/tls/i686/cmov/libc.so.6(__snprintf_chk+0x34)[0xb6976e74]
 /usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x36f)[0xb7d5641f]
 /usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature12DumpReadableEP8_IO_FILE+0x92)[0xb7d57012]
 ogrinfo[0x8049380]
 ogrinfo[0x8049cd2]
 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb6895685]
 ogrinfo[0x80491e1]
 ======= Memory map: ========
 08048000-0804b000 r-xp 00000000 08:01 241275     /usr/bin/ogrinfo
 0804b000-0804c000 r--p 00002000 08:01 241275     /usr/bin/ogrinfo
 0804c000-0804d000 rw-p 00003000 08:01 241275     /usr/bin/ogrinfo
 097df000-09800000 rw-p 097df000 00:00 0          [heap]
 [.....]
 }}}

 so, we have to dig in this direction

 jachym

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


More information about the grass-dev mailing list