Ticket #718 (closed defect: fixed)

Opened 2 years ago

Last modified 17 months ago

Catch dimensionally mixed WKB collections

Reported by: pramsey Owned by: strk
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: trunk
Keywords: Cc:

Description

If someone submits dimensionally mixed WKB collections, it will be read into LWGEOM objects and then the dimensionality bits may be set from above into the wrong values. This could result in a 2d subobject being read as 3d, with a nasty result. The WKB reader needs to die if handed dimensionally mixed WKB collections.

Change History

Changed 17 months ago by strk

  • owner changed from pramsey to strk
  • status changed from new to assigned
  • type changed from enhancement to defect

Changed 17 months ago by strk

Is this still an issue ? Doesn't seem so:

=> select '010700004002000000010100000000000000000000000000000000000000010100000000000000000000000000000000000000'::geometry;                              
 ERROR:  Dimensions mismatch in lwcollection

Changed 17 months ago by strk

  • status changed from assigned to closed
  • resolution set to fixed

I'll assume this is fixed. Please reopen with an example WKB if this is not the case. Note that 1.5 is likely to be still affected in taht it raises a NOTICE but continues.

Note: See TracTickets for help on using tickets.