grass: v.in.ogr buffer overflow

Bug #308158 reported by Fabio Zottele
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libgdal-grass (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Description: Ubuntu 8.10
Release: 8.10

Trying to import shapefile i get this error with backtrace (file is not imported))

GRASS 6.2.3 (GB_Rome40_W):~ > v.in.ogr
*** buffer overflow detected ***: v.in.ogr terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f4d0f936887]
/lib/libc.so.6[0x7f4d0f934750]
/lib/libc.so.6[0x7f4d0f933d8b]
/lib/libc.so.6(__snprintf_chk+0x7b)[0x7f4d0f933c5b]
/usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x346)[0x7f4d106581a6]
v.in.ogr(main+0x13e9)[0x405729]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f4d0f855466]
v.in.ogr[0x4037a9]
======= Memory map: ========
00400000-00409000 r-xp 00000000 08:01 7080063 /usr/lib/grass/bin/v.in.ogr
00608000-00609000 r--p 00008000 08:01 7080063 /usr/lib/grass/bin/v.in.ogr
00609000-0060a000 rw-p 00009000 08:01 7080063 /usr/lib/grass/bin/v.in.ogr
018f0000-01948000 rw-p 018f0000 00:00 0 [heap]
7f4d075c8000-7f4d075d3000 r-xp 00000000 08:01 4072534 /lib/libnss_files-2.8.90.so
7f4d075d3000-7f4d077d2000 ---p 0000b000 08:01 4072534 /lib/libnss_files-2.8.90.so
7f4d077d2000-7f4d077d3000 r--p 0000a000 08:01 4072534 /lib/libnss_files-2.8.90.so
7f4d077d3000-7f4d077d4000 rw-p 0000b000 08:01 4072534 /lib/libnss_files-2.8.90.so
7f4d077d4000-7f4d077de000 r-xp 00000000 08:01 4072536 /lib/libnss_nis-2.8.90.so
7f4d077de000-7f4d079dd000 ---p 0000a000 08:01 4072536 /lib/libnss_nis-2.8.90.so
7f4d079dd000-7f4d079de000 r--p 00009000 08:01 4072536 /lib/libnss_nis-2.8.90.so
7f4d079de000-7f4d079df000 rw-p 0000a000 08:01 4072536 /lib/libnss_nis-2.8.90.so
7f4d079df000-7f4d079e7000 r-xp 00000000 08:01 4072532 /lib/libnss_compat-2.8.90.so
7f4d079e7000-7f4d07be6000 ---p 00008000 08:01 4072532 /lib/libnss_compat-2.8.90.so
7f4d07be6000-7f4d07be7000 r--p 00007000 08:01 4072532 /lib/libnss_compat-2.8.90.so
7f4d07be7000-7f4d07be8000 rw-p 00008000 08:01 4072532 /lib/libnss_compat-2.8.90.so
7f4d07be8000-7f4d07beb000 r-xp 00000000 08:01 4071591 /lib/libgpg-error.so.0.3.0
7f4d07beb000-7f4d07dea000 ---p 00003000 08:01 4071591 /lib/libgpg-error.so.0.3.0
7f4d07dea000-7f4d07deb000 rw-p 00002000 08:01 4071591 /lib/libgpg-error.so.0.3.0
7f4d07deb000-7f4d07e04000 r-xp 00000000 08:01 6623557 /usr/lib/libsasl2.so.2.0.22
7f4d07e04000-7f4d08003000 ---p 00019000 08:01 6623557 /usr/lib/libsasl2.so.2.0.22
7f4d08003000-7f4d08004000 r--p 00018000 08:01 6623557 /usr/lib/libsasl2.so.2.0.22
7f4d08004000-7f4d08005000 rw-p 00019000 08:01 6623557 /usr/lib/libsasl2.so.2.0.22
7f4d08005000-7f4d08013000 r-xp 00000000 08:01 6622224 /usr/lib/liblber-2.4.so.2.1.0
7f4d08013000-7f4d08212000 ---p 0000e000 08:01 6622224 /usr/lib/liblber-2.4.so.2.1.0
7f4d08212000-7f4d08213000 r--p 0000d000 08:01 6622224 /usr/lib/liblber-2.4.so.2.1.0
7f4d08213000-7f4d08214000 rw-p 0000e000 08:01 6622224 /usr/lib/liblber-2.4.so.2.1.0
7f4d08214000-7f4d08226000 r-xp 00000000 08:01 4072540 /lib/libresolv-2.8.90.so
7f4d08226000-7f4d08425000 ---p 00012000 08:01 4072540 /lib/libresolv-2.8.90.so
7f4d08425000-7f4d08426000 r--p 00011000 08:01 4072540 /lib/libresolv-2.8.90.so
7f4d08426000-7f4d08427000 rw-p 00012000 08:01 4072540 /lib/libresolv-2.8.90.so
7f4d08427000-7f4d08429000 rw-p 7f4d08427000 00:00 0
7f4d08429000-7f4d0842b000 r-xp 00000000 08:01 4071580 /lib/libkeyutils-1.2.so
7f4d0842b000-7f4d0862a000 ---p 00002000 08:01 4071580 /lib/libkeyutils-1.2.so
7f4d0862a000-7f4d0862c000 rw-p 00001000 08:01 4071580 /lib/libkeyutils-1.2.so
7f4d0862c000-7f4d08633000 r-xp 00000000 08:01 6622172 /usr/lib/libkrb5support.so.0.1
7f4d08633000-7f4d08832000 ---p 00007000 08:01 6622172 /usr/lib/libk

Revision history for this message
Markus Neteler (neteler) wrote :

See upstream http://trac.osgeo.org/grass/ticket/402 - the problem is only known for Ubuntu so far.

Revision history for this message
Markus Neteler (neteler) wrote :

From GRASS-trac:

04/11/09 15:43:04 changed by epatton
    * status changed from new to closed.
    * resolution set to worksforme.

I've removed the gdal 1.5.2 version that shipped with Ubuntu 8.10 and compiled gdal 1.6.0 in its place. v.in.ogr is working fine now, so I'm closing this bug.

~ Eric.

Revision history for this message
Fabio Zottele (fabio-zottele-gmail) wrote : Re: [Bug 308158] Re: grass: v.in.ogr buffer overflow
Download full text (4.5 KiB)

thank you!
Fabio

2009/5/28, Markus Neteler <email address hidden>:
> >From GRASS-trac:
>
> 04/11/09 15:43:04 changed by epatton
> * status changed from new to closed.
> * resolution set to worksforme.
>
> I've removed the gdal 1.5.2 version that shipped with Ubuntu 8.10 and
> compiled gdal 1.6.0 in its place. v.in.ogr is working fine now, so I'm
> closing this bug.
>
> ~ Eric.
>
> --
> grass: v.in.ogr buffer overflow
> https://bugs.launchpad.net/bugs/308158
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “libgdal-grass” source package in Ubuntu: New
>
> Bug description:
> Description: Ubuntu 8.10
> Release: 8.10
>
>
> Trying to import shapefile i get this error with backtrace (file is not
> imported))
>
>
> GRASS 6.2.3 (GB_Rome40_W):~ > v.in.ogr
> *** buffer overflow detected ***: v.in.ogr terminated
> ======= Backtrace: =========
> /lib/libc.so.6(__fortify_fail+0x37)[0x7f4d0f936887]
> /lib/libc.so.6[0x7f4d0f934750]
> /lib/libc.so.6[0x7f4d0f933d8b]
> /lib/libc.so.6(__snprintf_chk+0x7b)[0x7f4d0f933c5b]
> /usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x346)[0x7f4d106581a6]
>
> v.in.ogr(main+0x13e9)[0x405729]
>
> /lib/libc.so.6(__libc_start_main+0xe6)[0x7f4d0f855466]
>
> v.in.ogr[0x4037a9]
>
> ======= Memory map: ========
>
> 00400000-00409000 r-xp 00000000 08:01 7080063
> /usr/lib/grass/bin/v.in.ogr
>
> 00608000-00609000 r--p 00008000 08:01 7080063
> /usr/lib/grass/bin/v.in.ogr
>
> 00609000-0060a000 rw-p 00009000 08:01 7080063
> /usr/lib/grass/bin/v.in.ogr
>
> 018f0000-01948000 rw-p 018f0000 00:00 0
> [heap]
> 7f4d075c8000-7f4d075d3000 r-xp 00000000 08:01 4072534
> /lib/libnss_files-2.8.90.so
>
> 7f4d075d3000-7f4d077d2000 ---p 0000b000 08:01 4072534
> /lib/libnss_files-2.8.90.so
>
> 7f4d077d2000-7f4d077d3000 r--p 0000a000 08:01 4072534
> /lib/libnss_files-2.8.90.so
>
> 7f4d077d3000-7f4d077d4000 rw-p 0000b000 08:01 4072534
> /lib/libnss_files-2.8.90.so
>
> 7f4d077d4000-7f4d077de000 r-xp 00000000 08:01 4072536
> /lib/libnss_nis-2.8.90.so
>
> 7f4d077de000-7f4d079dd000 ---p 0000a000 08:01 4072536
> /lib/libnss_nis-2.8.90.so
>
> 7f4d079dd000-7f4d079de000 r--p 00009000 08:01 4072536
> /lib/libnss_nis-2.8.90.so
>
> 7f4d079de000-7f4d079df000 rw-p 0000a000 08:01 4072536
> /lib/libnss_nis-2.8.90.so
>
> 7f4d079df000-7f4d079e7000 r-xp 00000000 08:01 4072532
> /lib/libnss_compat-2.8.90.so
>
> 7f4d079e7000-7f4d07be6000 ---p 00008000 08:01 4072532
> /lib/libnss_compat-2.8.90.so
>
> 7f4d07be6000-7f4d07be7000 r--p 00007000 08:01 4072532
> /lib/libnss_compat-2.8.90.so
>
> 7f4d07be7000-7f4d07be8000 rw-p 00008000 08:01 4072532
> /lib/libnss_compat-2.8.90.so
>
> 7f4d07be8000-7f4d07beb000 r-xp 00000000 08:01 4071591
> /lib/libgpg-error.so.0.3.0
>
> 7f4d07beb000-7f4d07dea000 ---p 00003000 08:01 4071591
> /lib/libgpg-error.so.0.3.0
>
> 7f4d07dea000-7f4d07deb000 rw-p 00002000 08:01 4071591
> /lib/libgpg-error.so.0.3.0
>
> 7f4d07deb000-7f4d07e04000 r-xp 00000000 08:01 6623557
> /usr/lib/libsasl2.so.2.0.22
>
> 7f4d07e04000-7f4d08003000 ---p 00019000 08:01 6623557
> /usr/lib/libsasl2.so.2.0.22
>
> 7f4d08003000-7f4d08004000 r--p 00018000 08:01 6623557
> /usr/lib/libsasl2.so.2.0.22
> 7f4d0...

Read more...

Revision history for this message
omargut (omargut) wrote :

Using Ubuntu Jaunty AMD64, gdal 1.5.4-4, I get the same overflow bug as seen on the attachment below

Revision history for this message
Markus Neteler (neteler) wrote :

It is an Ubuntu (packaging) problem - any chance to update to GDAL 1.6.x as
suggested above?
If not, something needs to be backported from GDAL 1.6 to 1.5.

On Thu, Jul 16, 2009 at 4:34 AM, omargut<email address hidden> wrote:
> Using Ubuntu Jaunty AMD64, gdal 1.5.4-4, I get the same overflow bug as
> seen on the attachment below
>
> ** Attachment added: "buffer overflow"
>   http://launchpadlibrarian.net/29117557/buffer%20overflow
>
> --
> grass: v.in.ogr buffer overflow
> https://bugs.launchpad.net/bugs/308158
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
hamish (hamish-b) wrote :

many gdal versions have passed since the fix in gdal 1.6. assume this ticket can be closed now?

Hamish

Revision history for this message
Fabio Zottele (fabio-zottele-gmail) wrote :
Download full text (4.5 KiB)

for sure!
Thank you a lot.
F.

2014-08-12 12:28 GMT+02:00 hamish <email address hidden>:

> many gdal versions have passed since the fix in gdal 1.6. assume this
> ticket can be closed now?
>
>
> Hamish
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/308158
>
> Title:
> grass: v.in.ogr buffer overflow
>
> Status in “libgdal-grass” package in Ubuntu:
> New
>
> Bug description:
> Description: Ubuntu 8.10
> Release: 8.10
>
>
> Trying to import shapefile i get this error with backtrace (file is not
> imported))
>
>
> GRASS 6.2.3 (GB_Rome40_W):~ > v.in.ogr
> *** buffer overflow detected ***: v.in.ogr terminated
> ======= Backtrace: =========
> /lib/libc.so.6(__fortify_fail+0x37)[0x7f4d0f936887]
> /lib/libc.so.6[0x7f4d0f934750]
> /lib/libc.so.6[0x7f4d0f933d8b]
> /lib/libc.so.6(__snprintf_chk+0x7b)[0x7f4d0f933c5b]
>
> /usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x346)[0x7f4d106581a6]
> v.in.ogr(main+0x13e9)[0x405729]
> /lib/libc.so.6(__libc_start_main+0xe6)[0x7f4d0f855466]
> v.in.ogr[0x4037a9]
> ======= Memory map: ========
> 00400000-00409000 r-xp 00000000 08:01 7080063
> /usr/lib/grass/bin/v.in.ogr
> 00608000-00609000 r--p 00008000 08:01 7080063
> /usr/lib/grass/bin/v.in.ogr
> 00609000-0060a000 rw-p 00009000 08:01 7080063
> /usr/lib/grass/bin/v.in.ogr
> 018f0000-01948000 rw-p 018f0000 00:00 0
> [heap]
> 7f4d075c8000-7f4d075d3000 r-xp 00000000 08:01 4072534
> /lib/libnss_files-2.8.90.so
> 7f4d075d3000-7f4d077d2000 ---p 0000b000 08:01 4072534
> /lib/libnss_files-2.8.90.so
> 7f4d077d2000-7f4d077d3000 r--p 0000a000 08:01 4072534
> /lib/libnss_files-2.8.90.so
> 7f4d077d3000-7f4d077d4000 rw-p 0000b000 08:01 4072534
> /lib/libnss_files-2.8.90.so
> 7f4d077d4000-7f4d077de000 r-xp 00000000 08:01 4072536
> /lib/libnss_nis-2.8.90.so
> 7f4d077de000-7f4d079dd000 ---p 0000a000 08:01 4072536
> /lib/libnss_nis-2.8.90.so
> 7f4d079dd000-7f4d079de000 r--p 00009000 08:01 4072536
> /lib/libnss_nis-2.8.90.so
> 7f4d079de000-7f4d079df000 rw-p 0000a000 08:01 4072536
> /lib/libnss_nis-2.8.90.so
> 7f4d079df000-7f4d079e7000 r-xp 00000000 08:01 4072532
> /lib/libnss_compat-2.8.90.so
> 7f4d079e7000-7f4d07be6000 ---p 00008000 08:01 4072532
> /lib/libnss_compat-2.8.90.so
> 7f4d07be6000-7f4d07be7000 r--p 00007000 08:01 4072532
> /lib/libnss_compat-2.8.90.so
> 7f4d07be7000-7f4d07be8000 rw-p 00008000 08:01 4072532
> /lib/libnss_compat-2.8.90.so
> 7f4d07be8000-7f4d07beb000 r-xp 00000000 08:01 4071591
> /lib/libgpg-error.so.0.3.0
> 7f4d07beb000-7f4d07dea000 ---p 00003000 08:01 4071591
> /lib/libgpg-error.so.0.3.0
> 7f4d07dea000-7f4d07deb000 rw-p 00002000 08:01 4071591
> /lib/libgpg-error.so.0.3.0
> 7f4d07deb000-7f4d07e04000 r-xp 00000000 08:01 6623557
> /usr/lib/libsasl2.so.2.0.22
> 7f4d07e04000-7f4d08003000 ---p 00019000 08:01 6623557
> /usr/lib/libsasl2.so.2.0.22
> 7f4d08003000-7f4d08004000 r--p 00018000 08:01 6623557
> /usr/lib/libsasl2.so.2.0.22
> 7f4d08004000-7f4d08005000 rw-p 00019000 08:01 6623557
> /usr/lib/libsasl2.so.2.0.22
> 7f4d08005000-7f4d08013000 r-xp 000000...

Read more...

Markus Neteler (neteler)
Changed in libgdal-grass (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.