#3006: Large attribute table causes buffer overflow in v.db.select
-------------------------+-------------------------
Reporter: marisn | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: svn-trunk
Keywords: v.db.select | CPU: Unspecified
Platform: Linux |
-------------------------+-------------------------
wxGUI attribute table window is trying to load all values from the
attribute table. In case of large number of values, it is causing an
overflow in v.db.select. wxGUI should not attempt to load more than N rows
at the time (where 100 > N >= 1000).
Tested with:
Number of centroids: 99249
{{{
*** buffer overflow detected ***: v.db.select terminated
======= Backtrace: =========
/lib64/libc.so.6(+0x6fb0c)[0x7f542c5a7b0c]
/lib64/libc.so.6(__fortify_fail+0x37)[0x7f542c62fe27]
/lib64/libc.so.6(+0xf5f20)[0x7f542c62df20]
/lib64/libc.so.6(+0xf53f9)[0x7f542c62d3f9]
/lib64/libc.so.6(_IO_default_xsputn+0x80)[0x7f542c5ab270]
/lib64/libc.so.6(_IO_vfprintf+0x13a2)[0x7f542c57fc62]
/lib64/libc.so.6(__vsprintf_chk+0x8c)[0x7f542c62d48c]
/lib64/libc.so.6(__sprintf_chk+0x7d)[0x7f542c62d3dd]
v.db.select(main+0x4ad)[0x401d4d]
/lib64/libc.so.6(__libc_start_main+0xf0)[0x7f542c558710]
v.db.select(_start+0x29)[0x4025f9]
======= Memory map: ========
00400000-00403000 r-xp 00000000 08:05 12518553
/home/maris/soft/grass_trunk/dist.x86_64-pc-linux-gnu/bin/v.db.select
00602000-00603000 r--p 00002000 08:05 12518553
/home/maris/soft/grass_trunk/dist.x86_64-pc-linux-gnu/bin/v.db.select
00603000-00604000 rw-p 00003000 08:05 12518553
/home/maris/soft/grass_trunk/dist.x86_64-pc-linux-gnu/bin/v.db.select
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3006>
GRASS GIS <https://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev