Opened 6 years ago

Closed 6 years ago

#4236 closed defect (fixed)

gidx_to_string doesn't allocate enough memory

Reported by: Algunenano Owned by: Algunenano
Priority: high Milestone: PostGIS 3.0.0
Component: postgis Version: 2.2.x
Keywords: Cc:

Description

Manifested in some logs:

got boxes GIDX( 4.99354171753 1.33285224438 -3.40282346639e+38 3.34260988235, 91.8126296997 100.783157349 3.40282346639e+38 98.150138855 )� and GIDX( 67.4631118774 3.76653146744, 76.9421615601 23.6310768127 )


got boxes GIDX( 7.67286014557 3.55379080772 -3.40282346639e+38 1.00054788589, 96.2146835327 99.1751022339 3.40282346639e+38 94.6226959229 �

For " %.12g" you need at most 20 chars, but is reserving only 15.

Code has been this way since it was introduced, so all supported releases are affected.

Change History (6)

comment:1 by Algunenano, 6 years ago

Version: 2.3.x2.2.x

All supported releases are affected

comment:2 by algunenano, 6 years ago

In 17015:

Allocate enough memory in gidx_to_string

References #4236

comment:3 by algunenano, 6 years ago

In 17016:

Allocate enough memory in gidx_to_string

References #4236

comment:4 by algunenano, 6 years ago

In 17017:

Allocate enough memory in gidx_to_string

References #4236

comment:5 by algunenano, 6 years ago

In 17018:

Allocate enough memory in gidx_to_string

References #4236

comment:6 by algunenano, 6 years ago

Resolution: fixed
Status: assignedclosed

In 17019:

Allocate enough memory in gidx_to_string

Close #4236

Note: See TracTickets for help on using tickets.