Ticket #1020 (closed patch: fixed)

Opened 2 years ago

Last modified 2 years ago

bug in BOX2DFLOAT4_in function due to GSERIALIZED_ON change

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

Description

Just a simple bug causing a seg fault in the raster regression test "create_rt_box2d_test".

The bug is how the variables are being passed to sscanf on line 45 of postgis/lwgeom_box2dfloat4.c.

A patch is attached.

Attachments

diff.patch Download (0.6 KB) - added by dustymugs 2 years ago.
lwgeom_box2dfloat4.c.patch Download (0.6 KB) - added by dustymugs 2 years ago.

Change History

Changed 2 years ago by dustymugs

Changed 2 years ago by pramsey

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

Applied. I'm sure there's many more problems in that code area, as it's all #define'd into a new type (GBOX), so Many Things Should Break.

Changed 2 years ago by dustymugs

Changed 2 years ago by dustymugs

  • status changed from closed to reopened
  • resolution fixed deleted

I've attached another patch as the same sscanf call chokes on the format mask which is defined as float while the elements of GBOX are double.

With this change (and yet to be commited patch for raster), the number of raster regressions drops to 2.

Changed 2 years ago by pramsey

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

OK, applied at r7395

Note: See TracTickets for help on using tickets.