Opened 10 years ago

Closed 10 years ago

#2720 closed defect (fixed)

lwpoly_add_ring should update maxrings after realloc

Reported by: fatcathu Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.7
Component: liblwgeom Version: 2.0.x
Keywords: Cc:


in lwpoly.c, lwpoly_add_ring function.

when nrings ≥ maxrings, rings will be lwrealloc to the size of new_maxrings, then then maxrings member should be updated to new_maxrings

Change History (1)

comment:1 by pramsey, 10 years ago

Milestone: PostGIS 2.2.0PostGIS 2.0.7
Resolution: fixed
Status: newclosed
Version: 2.1.x2.0.x

Fixed in 2.0 at r12909, 2.1 at r12910, trunk at r12911

Note: See TracTickets for help on using tickets.