[postgis-devel] [PostGIS] #556: Return value of snprintf not correctly checked
PostGIS
trac at osgeo.org
Fri Aug 6 00:58:05 PDT 2010
#556: Return value of snprintf not correctly checked
-------------------------+--------------------------------------------------
Reporter: hopfgartner | Owner: pramsey
Type: defect | Status: new
Priority: low | Milestone:
Component: postgis | Version: trunk
Keywords: |
-------------------------+--------------------------------------------------
In loader/shp2pgsql-core.c the return value of snprintf is compared to -1.
Anyway, in case of errors the return value might >= the buffer size if the
output string was truncated or -1 for other errors see man snprintf.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/556>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list