[postgis-tickets] [PostGIS] #5535: String handling in debug_standardize_address

PostGIS trac at osgeo.org
Wed Sep 13 13:22:35 PDT 2023


#5535: String handling in debug_standardize_address
----------------------+---------------------------
  Reporter:  pramsey  |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.4.1
 Component:  postgis  |    Version:  3.4.x
Resolution:           |   Keywords:
----------------------+---------------------------
Description changed by pramsey:

Old description:

> The memory handling in debug_standardize_address is not super clean in
> the string building, it could stand to be cleaned up.

New description:

 The memory handling in debug_standardize_address is not super clean in the
 string building, it could stand to be cleaned up. In particular, don't do
 a bunch of length counting and addition and then palloc, just use
 StringInfo. Also don't use a bare sprintf, and rework that area also into
 using StringInfo.

--
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5535#comment:1>
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