[postgis-tickets] [PostGIS] #5114: pgsql2shp segfault with long or many truncated columns

PostGIS trac at osgeo.org
Sat May 28 23:25:44 PDT 2022


#5114: pgsql2shp segfault with long or many truncated columns
----------------------+---------------------------
  Reporter:  dfuhry2  |      Owner:  pramsey
      Type:  defect   |     Status:  reopened
  Priority:  medium   |  Milestone:  PostGIS 3.2.2
 Component:  postgis  |    Version:  2.3.x
Resolution:           |   Keywords:
----------------------+---------------------------
Changes (by robe):

 * status:  closed => reopened
 * resolution:  fixed =>

Comment:

 Reopening cause dronie is complaining about it.  I know it's just a
 warning treated as an error, but we were clean before.

 https://dronie.osgeo.org/postgis/postgis/3117/1/2


 {{{
 pgsql2shp-core.c:1954:2: error: ignoring return value of 'asprintf',
 declared with attribute warn_unused_result [-Werror=unused-result]

   asprintf(&(state->fetch_query), "FETCH %d FROM cur",
 state->config->fetchsize);

 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 cc1: all warnings being treated as errors

 Makefile:97: recipe for target 'pgsql2shp-core.o' failed

 make[1]: *** [pgsql2shp-core.o] Error 1

 make[1]: *** Waiting for unfinished jobs....

 make[1]: Leaving directory '/drone/src/loader'

 GNUmakefile:22: recipe for target 'all' failed

 make: *** [all] Error 1
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5114#comment:4>
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-tickets mailing list