Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6486 closed defect (fixed)

Segfault in KML parsing

Reported by: springmeyer Owned by: warmerdam
Priority: normal Milestone: 1.11.5
Component: OGR_SF Version: unspecified
Severity: normal Keywords: kml


Hitting a segfault in KML parsing. Replicates with 2.0.1 and 2.1.0RC3

Backtrace is:

Thread 0 Crashed:: Dispatch queue:
0   libc++.1.dylib                	0x00007fff8a709829 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::compare(unsigned long, unsigned long, char const*, unsigned long) const + 13
1   libc++.1.dylib                	0x00007fff8a709900 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::compare(char const*) const + 44
2   libgdal.20.dylib              	0x000000010b14ea7b KMLNode::getNameElement() const + 59
3   libgdal.20.dylib              	0x000000010b14d827 KML::getCurrentName() const + 55
4   libgdal.20.dylib              	0x000000010b239ea5 OGRKMLDataSource::Open(char const*, int) + 773
5   libgdal.20.dylib              	0x000000010b23a679 OGRKMLDriverOpen(GDALOpenInfo*) + 89
6   libgdal.20.dylib              	0x000000010af991d4 GDALOpenEx + 1236
7   ogrinfo                       	0x000000010ad2e213 main + 2483

Change History (3)

comment:1 by Even Rouault, 7 years ago

Component: defaultOGR_SF
Keywords: kml added
Milestone: 1.11.5
Resolution: fixed
Status: newclosed

trunk r34103, branches/2.1 r34104, branches/2.0 r34105, branches/1.11 r34106 "KML: fix crash on KML files without content but with nested folders (#6486)"

comment:2 by springmeyer, 7 years ago

Yay, thank you for the quick fix!. Will this be in the 2.1.0 official release or not till 2.1.1?

comment:3 by Even Rouault, 7 years ago

It was in time for 2.1.0RC4, so will be in 2.1.0 final

Note: See TracTickets for help on using tickets.