Ticket #15 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Double free causes segfault

Reported by: pramsey Owned by: pramsey
Priority: high Milestone: PostGIS 1.3.6
Component: postgis Version: 1.3.X
Keywords: Cc:

Description

Cliff Wright writes:

I did not isolate the exact comparison, however the core dump did indicate which line and file caused the problem. looking at the code I see a memory free was called apparently pointing at the wrong object. The same free is used a couple of lines later pointing at the correct object. The patch attached shows the fix I used. I was using version 1.3.1, however see the same bug in subversion.

Attachments

Change History

Changed 7 years ago by mcayland

Yup, that looks entirely straightforward and sensible. I'm guessing that this is within the function LWGEOM_same (it's a little bit tricky to tell without your test query ;). Applied to SVN.

ATB,

Mark.

Note: See TracTickets for help on using tickets.