id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 5715,Incorrect geometry cast when reading GML topogeometries,Even Rouault,Even Rouault,"Around line 2064 of gml2ogrgeometries.cpp, there's a cast poTS = (OGRMultiPolygon *)poUnion; done on poUnion that is the result of a Union. The result of this union may be a OGRPolygon* ... And there are calls to poTS->getNumGeometries(). By chance, they currently return non 0 value, which avoid poTS->addGeometryDirectly() at line 2050 to be called. But this is really unsafe ! And changing the geometry class hierarchy for SQL/MM triggers this bug that makes crash ogr_gml_read_35",defect,closed,normal,1.11.2,OGR_SF,unspecified,normal,fixed,,