Opened 12 years ago
Closed 9 years ago
#4730 closed defect (fixed)
Double free in OGRTABDataSource::Create() when exiting with error
Reported by: | trentcsc | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | mitab |
Cc: | Daniel Morissette |
Description (last modified by )
Found this in a unit test explicitly trying to create a MapInfo MIF file with the wrong file extension.
MIFFile::m_pszFname
is free'd (and not NULL'd) in mitab_miffile.cpp, line 329.
MIFFile::~MIFFile()
frees the dangling pointer again and whammo - segfault.
GDAL 1.9.1 built with MSVC 1600 (VS2010)
Attachments (1)
Change History (6)
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
comment:2 by , 12 years ago
Cc: | added |
---|---|
Component: | default → OGR_SF |
Keywords: | mitab added |
Milestone: | → 1.9.2 |
by , 12 years ago
Attachment: | fix_gdal_4730.patch added |
---|
comment:5 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Batch closing of MITAB tickets fixed in GDAL. They were kept open because not merged into MITAB separate repository, but the latter one is inactive, so let's close them definitely.
Note:
See TracTickets
for help on using tickets.
Oh -