Opened 13 years ago

Closed 12 years ago

#718 closed defect (fixed)

Catch dimensionally mixed WKB collections

Reported by: pramsey Owned by: strk
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
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 (3)

comment:1 by strk, 12 years ago

Owner: changed from pramsey to strk
Status: newassigned
Type: enhancementdefect

comment:2 by strk, 12 years ago

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

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

comment:3 by strk, 12 years ago

Resolution: fixed
Status: assignedclosed

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.