[GRASS-dev] [GRASS GIS] #1974: buffer overflow in v.to.rast
GRASS GIS
trac at osgeo.org
Tue May 14 01:47:18 PDT 2013
#1974: buffer overflow in v.to.rast
-----------------------+----------------------------------------------------
Reporter: mgeeves | Owner: grass-dev@…
Type: defect | Status: new
Priority: minor | Milestone: 6.4.3
Component: Vector | Version: 6.4.2
Keywords: v.to.rast | Platform: All
Cpu: All |
-----------------------+----------------------------------------------------
Comment(by mgeeves):
Hi Hamish,
Sure - this is on Ubuntu 12.04 LTS, compiled from grass-6.4.2.tar.gz
Reproducible here from two identical vectors:
{{{
v.in.ascii fs=, input=-
output=p1234567890123456789012345678901234567890123456789012
0.1,51
<CTRL+D>
v.in.ascii fs=, input=-
output=p12345678901234567890123456789012345678901234567890123
0.1,51
<CTRL+D>
}}}
This one works
{{{
v.to.rast input=p1234567890123456789012345678901234567890123456789012
output=r_ok use=val
}}}
This one fails
{{{
v.to.rast input=p12345678901234567890123456789012345678901234567890123
output=r_nok use=val
*** buffer overflow detected ***: v.to.rast terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb763bdd5]
/lib/i386-linux-gnu/libc.so.6(+0xfebaa)[0xb763abaa]
/lib/i386-linux-gnu/libc.so.6(+0xfe208)[0xb763a208]
/lib/i386-linux-gnu/libc.so.6(_IO_default_xsputn+0x91)[0xb75ad461]
/lib/i386-linux-gnu/libc.so.6(_IO_vfprintf+0x53f0)[0xb7581be0]
/lib/i386-linux-gnu/libc.so.6(__vsprintf_chk+0xc9)[0xb763a2d9]
/lib/i386-linux-gnu/libc.so.6(__sprintf_chk+0x2f)[0xb763a1ef]
v.to.rast(update_hist+0xbd)[0x804b7ad]
v.to.rast(vect_to_rast+0x438)[0x804cd98]
v.to.rast(main+0x302)[0x804a432]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb75554d3]
v.to.rast[0x804a4f9]
<SNIP>
}}}
Hopefully I've not done something daft elsewhere!
Cheers,
Mike
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1974#comment:2>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list