Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/libkml-1.3.0/examples/engine/balloonwalker.cc
Examining data/libkml-1.3.0/examples/engine/change.cc
Examining data/libkml-1.3.0/examples/engine/clone.cc
Examining data/libkml-1.3.0/examples/engine/csv2kml.cc
Examining data/libkml-1.3.0/examples/engine/csvinfo.cc
Examining data/libkml-1.3.0/examples/engine/import.cc
Examining data/libkml-1.3.0/examples/engine/inlinestyles.cc
Examining data/libkml-1.3.0/examples/engine/kml2kmz.cc
Examining data/libkml-1.3.0/examples/engine/kmlfile.cc
Examining data/libkml-1.3.0/examples/engine/kmzchecklinks.cc
Examining data/libkml-1.3.0/examples/engine/oldschema.cc
Examining data/libkml-1.3.0/examples/engine/parsebig.cc
Examining data/libkml-1.3.0/examples/engine/printstyle.cc
Examining data/libkml-1.3.0/examples/engine/splitstyles.cc
Examining data/libkml-1.3.0/examples/engine/streamkml.cc
Examining data/libkml-1.3.0/examples/gpx/gpxtracktokml.cc
Examining data/libkml-1.3.0/examples/gx/featuretour.cc
Examining data/libkml-1.3.0/examples/gx/gpxfly.cc
Examining data/libkml-1.3.0/examples/hellonet/csvurl2gmap.cc
Examining data/libkml-1.3.0/examples/hellonet/curlfetch.cc
Examining data/libkml-1.3.0/examples/hellonet/curlfetch.h
Examining data/libkml-1.3.0/examples/hellonet/getgmapkml.cc
Examining data/libkml-1.3.0/examples/hellonet/getgsheetcsv.cc
Examining data/libkml-1.3.0/examples/hellonet/getgsheetkml.cc
Examining data/libkml-1.3.0/examples/hellonet/gsheet2gmap.cc
Examining data/libkml-1.3.0/examples/hellonet/kmlwalk.cc
Examining data/libkml-1.3.0/examples/hellonet/kmzfetch.cc
Examining data/libkml-1.3.0/examples/hellonet/listfeed.cc
Examining data/libkml-1.3.0/examples/hellonet/listgdocs.cc
Examining data/libkml-1.3.0/examples/hellonet/listgmaps.cc
Examining data/libkml-1.3.0/examples/hellonet/listgphotos.cc
Examining data/libkml-1.3.0/examples/hellonet/prompt.h
Examining data/libkml-1.3.0/examples/hellonet/resolvestyle.cc
Examining data/libkml-1.3.0/examples/hellonet/searchgmap.cc
Examining data/libkml-1.3.0/examples/hellonet/uploadgmap.cc
Examining data/libkml-1.3.0/examples/hellonet/uploadgmapcsv.cc
Examining data/libkml-1.3.0/examples/hellonet/uploadgmapkml.cc
Examining data/libkml-1.3.0/examples/hellonet/uploadgsheet.cc
Examining data/libkml-1.3.0/examples/hellonet/xsdprint.cc
Examining data/libkml-1.3.0/examples/helloworld/checklinks.cc
Examining data/libkml-1.3.0/examples/helloworld/circlegen.cc
Examining data/libkml-1.3.0/examples/helloworld/countkml.cc
Examining data/libkml-1.3.0/examples/helloworld/createkml.cc
Examining data/libkml-1.3.0/examples/helloworld/helloattrs.cc
Examining data/libkml-1.3.0/examples/helloworld/helloenum.cc
Examining data/libkml-1.3.0/examples/helloworld/hellofeatures.cc
Examining data/libkml-1.3.0/examples/helloworld/hellofolder.cc
Examining data/libkml-1.3.0/examples/helloworld/hellogeometry.cc
Examining data/libkml-1.3.0/examples/helloworld/hellohref.cc
Examining data/libkml-1.3.0/examples/helloworld/hellokmz.cc
Examining data/libkml-1.3.0/examples/helloworld/helloregion.cc
Examining data/libkml-1.3.0/examples/helloworld/helloworld.cc
Examining data/libkml-1.3.0/examples/helloworld/parsebuf.cc
Examining data/libkml-1.3.0/examples/helloworld/parsekml.cc
Examining data/libkml-1.3.0/examples/helloworld/parsens.cc
Examining data/libkml-1.3.0/examples/helloworld/prettykml.cc
Examining data/libkml-1.3.0/examples/helloworld/print.cc
Examining data/libkml-1.3.0/examples/helloworld/print.h
Examining data/libkml-1.3.0/examples/helloworld/printgeometry.cc
Examining data/libkml-1.3.0/examples/helloworld/sharedstyles.cc
Examining data/libkml-1.3.0/examples/helloworld/simplifylines.cc
Examining data/libkml-1.3.0/examples/helloworld/sortplacemarks.cc
Examining data/libkml-1.3.0/examples/regionator/csvregionator.cc
Examining data/libkml-1.3.0/examples/regionator/kmlregionator.cc
Examining data/libkml-1.3.0/examples/wxregionator/main.cc
Examining data/libkml-1.3.0/examples/wxregionator/main.h
Examining data/libkml-1.3.0/examples/wxregionator/wxregionator.cc
Examining data/libkml-1.3.0/examples/wxregionator/wxregionator.h
Examining data/libkml-1.3.0/examples/wxviewer/wxviewer.cc
Examining data/libkml-1.3.0/examples/wxviewer/wxviewer.h
Examining data/libkml-1.3.0/examples/xsd/xsdchildren.cc
Examining data/libkml-1.3.0/examples/xsd/xsdcoverage.cc
Examining data/libkml-1.3.0/examples/xsd/xsdelements.cc
Examining data/libkml-1.3.0/examples/xsd/xsdenums.cc
Examining data/libkml-1.3.0/examples/xsd/xsdfind.cc
Examining data/libkml-1.3.0/examples/xsd/xsdtypes.cc
Examining data/libkml-1.3.0/src/kml/base/attributes.cc
Examining data/libkml-1.3.0/src/kml/base/attributes.h
Examining data/libkml-1.3.0/src/kml/base/color32.h
Examining data/libkml-1.3.0/src/kml/base/contrib/minizip/ioapi.h
Examining data/libkml-1.3.0/src/kml/base/contrib/minizip/iomem_simple.c
Examining data/libkml-1.3.0/src/kml/base/contrib/minizip/iomem_simple.h
Examining data/libkml-1.3.0/src/kml/base/contrib/minizip/unzip.c
Examining data/libkml-1.3.0/src/kml/base/contrib/minizip/unzip.h
Examining data/libkml-1.3.0/src/kml/base/csv_splitter.cc
Examining data/libkml-1.3.0/src/kml/base/csv_splitter.h
Examining data/libkml-1.3.0/src/kml/base/date_time.cc
Examining data/libkml-1.3.0/src/kml/base/date_time.h
Examining data/libkml-1.3.0/src/kml/base/expat_handler.h
Examining data/libkml-1.3.0/src/kml/base/expat_handler_ns.cc
Examining data/libkml-1.3.0/src/kml/base/expat_handler_ns.h
Examining data/libkml-1.3.0/src/kml/base/expat_parser.cc
Examining data/libkml-1.3.0/src/kml/base/expat_parser.h
Examining data/libkml-1.3.0/src/kml/base/file.cc
Examining data/libkml-1.3.0/src/kml/base/file.h
Examining data/libkml-1.3.0/src/kml/base/file_posix.cc
Examining data/libkml-1.3.0/src/kml/base/file_win32.cc
Examining data/libkml-1.3.0/src/kml/base/math_util.cc
Examining data/libkml-1.3.0/src/kml/base/math_util.h
Examining data/libkml-1.3.0/src/kml/base/memory_file.h
Examining data/libkml-1.3.0/src/kml/base/mimetypes.cc
Examining data/libkml-1.3.0/src/kml/base/mimetypes.h
Examining data/libkml-1.3.0/src/kml/base/net_cache.h
Examining data/libkml-1.3.0/src/kml/base/referent.cc
Examining data/libkml-1.3.0/src/kml/base/referent.h
Examining data/libkml-1.3.0/src/kml/base/string_util.cc
Examining data/libkml-1.3.0/src/kml/base/string_util.h
Examining data/libkml-1.3.0/src/kml/base/tempfile.h
Examining data/libkml-1.3.0/src/kml/base/time_util.cc
Examining data/libkml-1.3.0/src/kml/base/time_util.h
Examining data/libkml-1.3.0/src/kml/base/uri_parser.cc
Examining data/libkml-1.3.0/src/kml/base/uri_parser.h
Examining data/libkml-1.3.0/src/kml/base/util.h
Examining data/libkml-1.3.0/src/kml/base/vec3.h
Examining data/libkml-1.3.0/src/kml/base/version.cc
Examining data/libkml-1.3.0/src/kml/base/version.h
Examining data/libkml-1.3.0/src/kml/base/xml_element.h
Examining data/libkml-1.3.0/src/kml/base/xml_file.h
Examining data/libkml-1.3.0/src/kml/base/xml_namespaces.cc
Examining data/libkml-1.3.0/src/kml/base/xml_namespaces.h
Examining data/libkml-1.3.0/src/kml/base/xmlns.h
Examining data/libkml-1.3.0/src/kml/base/zip_file.cc
Examining data/libkml-1.3.0/src/kml/base/zip_file.h
Examining data/libkml-1.3.0/src/kml/convenience/atom_util.cc
Examining data/libkml-1.3.0/src/kml/convenience/atom_util.h
Examining data/libkml-1.3.0/src/kml/convenience/convenience.cc
Examining data/libkml-1.3.0/src/kml/convenience/convenience.h
Examining data/libkml-1.3.0/src/kml/convenience/csv_file.cc
Examining data/libkml-1.3.0/src/kml/convenience/csv_file.h
Examining data/libkml-1.3.0/src/kml/convenience/csv_parser.cc
Examining data/libkml-1.3.0/src/kml/convenience/csv_parser.h
Examining data/libkml-1.3.0/src/kml/convenience/element_counter.h
Examining data/libkml-1.3.0/src/kml/convenience/feature_list.cc
Examining data/libkml-1.3.0/src/kml/convenience/feature_list.h
Examining data/libkml-1.3.0/src/kml/convenience/google_doc_list.cc
Examining data/libkml-1.3.0/src/kml/convenience/google_doc_list.h
Examining data/libkml-1.3.0/src/kml/convenience/google_maps_data.cc
Examining data/libkml-1.3.0/src/kml/convenience/google_maps_data.h
Examining data/libkml-1.3.0/src/kml/convenience/google_picasa_web.cc
Examining data/libkml-1.3.0/src/kml/convenience/google_picasa_web.h
Examining data/libkml-1.3.0/src/kml/convenience/google_spreadsheets.cc
Examining data/libkml-1.3.0/src/kml/convenience/google_spreadsheets.h
Examining data/libkml-1.3.0/src/kml/convenience/gpx_trk_pt_handler.h
Examining data/libkml-1.3.0/src/kml/convenience/http_client.cc
Examining data/libkml-1.3.0/src/kml/convenience/http_client.h
Examining data/libkml-1.3.0/src/kml/convenience/kml_feature_list_saver.h
Examining data/libkml-1.3.0/src/kml/convenience/kmz_check_links.cc
Examining data/libkml-1.3.0/src/kml/convenience/kmz_check_links.h
Examining data/libkml-1.3.0/src/kml/dom.h
Examining data/libkml-1.3.0/src/kml/dom/abstractlatlonbox.cc
Examining data/libkml-1.3.0/src/kml/dom/abstractlatlonbox.h
Examining data/libkml-1.3.0/src/kml/dom/abstractview.cc
Examining data/libkml-1.3.0/src/kml/dom/abstractview.h
Examining data/libkml-1.3.0/src/kml/dom/atom.cc
Examining data/libkml-1.3.0/src/kml/dom/atom.h
Examining data/libkml-1.3.0/src/kml/dom/balloonstyle.cc
Examining data/libkml-1.3.0/src/kml/dom/balloonstyle.h
Examining data/libkml-1.3.0/src/kml/dom/colorstyle.cc
Examining data/libkml-1.3.0/src/kml/dom/colorstyle.h
Examining data/libkml-1.3.0/src/kml/dom/container.cc
Examining data/libkml-1.3.0/src/kml/dom/container.h
Examining data/libkml-1.3.0/src/kml/dom/document.cc
Examining data/libkml-1.3.0/src/kml/dom/document.h
Examining data/libkml-1.3.0/src/kml/dom/element.cc
Examining data/libkml-1.3.0/src/kml/dom/element.h
Examining data/libkml-1.3.0/src/kml/dom/extendeddata.cc
Examining data/libkml-1.3.0/src/kml/dom/extendeddata.h
Examining data/libkml-1.3.0/src/kml/dom/feature.cc
Examining data/libkml-1.3.0/src/kml/dom/feature.h
Examining data/libkml-1.3.0/src/kml/dom/folder.cc
Examining data/libkml-1.3.0/src/kml/dom/folder.h
Examining data/libkml-1.3.0/src/kml/dom/geometry.cc
Examining data/libkml-1.3.0/src/kml/dom/geometry.h
Examining data/libkml-1.3.0/src/kml/dom/gx_timeprimitive.cc
Examining data/libkml-1.3.0/src/kml/dom/gx_timeprimitive.h
Examining data/libkml-1.3.0/src/kml/dom/gx_tour.cc
Examining data/libkml-1.3.0/src/kml/dom/gx_tour.h
Examining data/libkml-1.3.0/src/kml/dom/hotspot.cc
Examining data/libkml-1.3.0/src/kml/dom/hotspot.h
Examining data/libkml-1.3.0/src/kml/dom/iconstyle.cc
Examining data/libkml-1.3.0/src/kml/dom/iconstyle.h
Examining data/libkml-1.3.0/src/kml/dom/kml.cc
Examining data/libkml-1.3.0/src/kml/dom/kml.h
Examining data/libkml-1.3.0/src/kml/dom/kml22.cc
Examining data/libkml-1.3.0/src/kml/dom/kml22.h
Examining data/libkml-1.3.0/src/kml/dom/kml_cast.cc
Examining data/libkml-1.3.0/src/kml/dom/kml_cast.h
Examining data/libkml-1.3.0/src/kml/dom/kml_factory.cc
Examining data/libkml-1.3.0/src/kml/dom/kml_factory.h
Examining data/libkml-1.3.0/src/kml/dom/kml_funcs.h
Examining data/libkml-1.3.0/src/kml/dom/kml_handler.cc
Examining data/libkml-1.3.0/src/kml/dom/kml_handler.h
Examining data/libkml-1.3.0/src/kml/dom/kml_handler_ns.cc
Examining data/libkml-1.3.0/src/kml/dom/kml_handler_ns.h
Examining data/libkml-1.3.0/src/kml/dom/kml_ptr.h
Examining data/libkml-1.3.0/src/kml/dom/kmldom.h
Examining data/libkml-1.3.0/src/kml/dom/labelstyle.cc
Examining data/libkml-1.3.0/src/kml/dom/labelstyle.h
Examining data/libkml-1.3.0/src/kml/dom/linestyle.cc
Examining data/libkml-1.3.0/src/kml/dom/linestyle.h
Examining data/libkml-1.3.0/src/kml/dom/link.cc
Examining data/libkml-1.3.0/src/kml/dom/link.h
Examining data/libkml-1.3.0/src/kml/dom/liststyle.cc
Examining data/libkml-1.3.0/src/kml/dom/liststyle.h
Examining data/libkml-1.3.0/src/kml/dom/model.cc
Examining data/libkml-1.3.0/src/kml/dom/model.h
Examining data/libkml-1.3.0/src/kml/dom/networklink.cc
Examining data/libkml-1.3.0/src/kml/dom/networklink.h
Examining data/libkml-1.3.0/src/kml/dom/networklinkcontrol.cc
Examining data/libkml-1.3.0/src/kml/dom/networklinkcontrol.h
Examining data/libkml-1.3.0/src/kml/dom/object.cc
Examining data/libkml-1.3.0/src/kml/dom/object.h
Examining data/libkml-1.3.0/src/kml/dom/overlay.cc
Examining data/libkml-1.3.0/src/kml/dom/overlay.h
Examining data/libkml-1.3.0/src/kml/dom/parser.cc
Examining data/libkml-1.3.0/src/kml/dom/parser.h
Examining data/libkml-1.3.0/src/kml/dom/parser_observer.h
Examining data/libkml-1.3.0/src/kml/dom/placemark.cc
Examining data/libkml-1.3.0/src/kml/dom/placemark.h
Examining data/libkml-1.3.0/src/kml/dom/polystyle.cc
Examining data/libkml-1.3.0/src/kml/dom/polystyle.h
Examining data/libkml-1.3.0/src/kml/dom/region.cc
Examining data/libkml-1.3.0/src/kml/dom/region.h
Examining data/libkml-1.3.0/src/kml/dom/schema.cc
Examining data/libkml-1.3.0/src/kml/dom/schema.h
Examining data/libkml-1.3.0/src/kml/dom/serializer.cc
Examining data/libkml-1.3.0/src/kml/dom/serializer.h
Examining data/libkml-1.3.0/src/kml/dom/snippet.cc
Examining data/libkml-1.3.0/src/kml/dom/snippet.h
Examining data/libkml-1.3.0/src/kml/dom/stats_serializer.h
Examining data/libkml-1.3.0/src/kml/dom/style.cc
Examining data/libkml-1.3.0/src/kml/dom/style.h
Examining data/libkml-1.3.0/src/kml/dom/stylemap.cc
Examining data/libkml-1.3.0/src/kml/dom/stylemap.h
Examining data/libkml-1.3.0/src/kml/dom/styleselector.cc
Examining data/libkml-1.3.0/src/kml/dom/styleselector.h
Examining data/libkml-1.3.0/src/kml/dom/substyle.cc
Examining data/libkml-1.3.0/src/kml/dom/substyle.h
Examining data/libkml-1.3.0/src/kml/dom/timeprimitive.cc
Examining data/libkml-1.3.0/src/kml/dom/timeprimitive.h
Examining data/libkml-1.3.0/src/kml/dom/vec2.cc
Examining data/libkml-1.3.0/src/kml/dom/vec2.h
Examining data/libkml-1.3.0/src/kml/dom/visitor.cc
Examining data/libkml-1.3.0/src/kml/dom/visitor.h
Examining data/libkml-1.3.0/src/kml/dom/visitor_driver.cc
Examining data/libkml-1.3.0/src/kml/dom/visitor_driver.h
Examining data/libkml-1.3.0/src/kml/dom/xal.cc
Examining data/libkml-1.3.0/src/kml/dom/xal.h
Examining data/libkml-1.3.0/src/kml/dom/xml_serializer.cc
Examining data/libkml-1.3.0/src/kml/dom/xml_serializer.h
Examining data/libkml-1.3.0/src/kml/dom/xsd.cc
Examining data/libkml-1.3.0/src/kml/dom/xsd.h
Examining data/libkml-1.3.0/src/kml/engine.h
Examining data/libkml-1.3.0/src/kml/engine/bbox.h
Examining data/libkml-1.3.0/src/kml/engine/clone.cc
Examining data/libkml-1.3.0/src/kml/engine/clone.h
Examining data/libkml-1.3.0/src/kml/engine/engine_constants.h
Examining data/libkml-1.3.0/src/kml/engine/engine_types.h
Examining data/libkml-1.3.0/src/kml/engine/entity_mapper.cc
Examining data/libkml-1.3.0/src/kml/engine/entity_mapper.h
Examining data/libkml-1.3.0/src/kml/engine/feature_balloon.cc
Examining data/libkml-1.3.0/src/kml/engine/feature_balloon.h
Examining data/libkml-1.3.0/src/kml/engine/feature_view.cc
Examining data/libkml-1.3.0/src/kml/engine/feature_view.h
Examining data/libkml-1.3.0/src/kml/engine/feature_visitor.cc
Examining data/libkml-1.3.0/src/kml/engine/feature_visitor.h
Examining data/libkml-1.3.0/src/kml/engine/find.cc
Examining data/libkml-1.3.0/src/kml/engine/find.h
Examining data/libkml-1.3.0/src/kml/engine/find_xml_namespaces.cc
Examining data/libkml-1.3.0/src/kml/engine/find_xml_namespaces.h
Examining data/libkml-1.3.0/src/kml/engine/get_link_parents.cc
Examining data/libkml-1.3.0/src/kml/engine/get_link_parents.h
Examining data/libkml-1.3.0/src/kml/engine/get_links.cc
Examining data/libkml-1.3.0/src/kml/engine/get_links.h
Examining data/libkml-1.3.0/src/kml/engine/href.cc
Examining data/libkml-1.3.0/src/kml/engine/href.h
Examining data/libkml-1.3.0/src/kml/engine/id_mapper.cc
Examining data/libkml-1.3.0/src/kml/engine/id_mapper.h
Examining data/libkml-1.3.0/src/kml/engine/id_mapper_internal.h
Examining data/libkml-1.3.0/src/kml/engine/kml_cache.cc
Examining data/libkml-1.3.0/src/kml/engine/kml_cache.h
Examining data/libkml-1.3.0/src/kml/engine/kml_file.cc
Examining data/libkml-1.3.0/src/kml/engine/kml_file.h
Examining data/libkml-1.3.0/src/kml/engine/kml_stream.cc
Examining data/libkml-1.3.0/src/kml/engine/kml_stream.h
Examining data/libkml-1.3.0/src/kml/engine/kml_uri.cc
Examining data/libkml-1.3.0/src/kml/engine/kml_uri.h
Examining data/libkml-1.3.0/src/kml/engine/kml_uri_internal.h
Examining data/libkml-1.3.0/src/kml/engine/kmz_cache.cc
Examining data/libkml-1.3.0/src/kml/engine/kmz_cache.h
Examining data/libkml-1.3.0/src/kml/engine/kmz_file.cc
Examining data/libkml-1.3.0/src/kml/engine/kmz_file.h
Examining data/libkml-1.3.0/src/kml/engine/link_util.cc
Examining data/libkml-1.3.0/src/kml/engine/link_util.h
Examining data/libkml-1.3.0/src/kml/engine/location_util.cc
Examining data/libkml-1.3.0/src/kml/engine/location_util.h
Examining data/libkml-1.3.0/src/kml/engine/merge.cc
Examining data/libkml-1.3.0/src/kml/engine/merge.h
Examining data/libkml-1.3.0/src/kml/engine/object_id_parser_observer.h
Examining data/libkml-1.3.0/src/kml/engine/old_schema_parser_observer.h
Examining data/libkml-1.3.0/src/kml/engine/parse_old_schema.cc
Examining data/libkml-1.3.0/src/kml/engine/parse_old_schema.h
Examining data/libkml-1.3.0/src/kml/engine/schema_parser_observer.h
Examining data/libkml-1.3.0/src/kml/engine/shared_style_parser_observer.h
Examining data/libkml-1.3.0/src/kml/engine/style_inliner.cc
Examining data/libkml-1.3.0/src/kml/engine/style_inliner.h
Examining data/libkml-1.3.0/src/kml/engine/style_inliner_internal.h
Examining data/libkml-1.3.0/src/kml/engine/style_merger.cc
Examining data/libkml-1.3.0/src/kml/engine/style_merger.h
Examining data/libkml-1.3.0/src/kml/engine/style_resolver.cc
Examining data/libkml-1.3.0/src/kml/engine/style_resolver.h
Examining data/libkml-1.3.0/src/kml/engine/style_splitter.cc
Examining data/libkml-1.3.0/src/kml/engine/style_splitter.h
Examining data/libkml-1.3.0/src/kml/engine/style_splitter_internal.h
Examining data/libkml-1.3.0/src/kml/engine/update.cc
Examining data/libkml-1.3.0/src/kml/engine/update.h
Examining data/libkml-1.3.0/src/kml/engine/update_processor.cc
Examining data/libkml-1.3.0/src/kml/engine/update_processor.h
Examining data/libkml-1.3.0/src/kml/regionator/feature_list_region_handler.cc
Examining data/libkml-1.3.0/src/kml/regionator/feature_list_region_handler.h
Examining data/libkml-1.3.0/src/kml/regionator/feature_list_regionator.h
Examining data/libkml-1.3.0/src/kml/regionator/region_handler.h
Examining data/libkml-1.3.0/src/kml/regionator/regionator.cc
Examining data/libkml-1.3.0/src/kml/regionator/regionator.h
Examining data/libkml-1.3.0/src/kml/regionator/regionator_qid.h
Examining data/libkml-1.3.0/src/kml/regionator/regionator_util.cc
Examining data/libkml-1.3.0/src/kml/regionator/regionator_util.h
Examining data/libkml-1.3.0/src/kml/xsd/xsd_complex_type.cc
Examining data/libkml-1.3.0/src/kml/xsd/xsd_complex_type.h
Examining data/libkml-1.3.0/src/kml/xsd/xsd_element.cc
Examining data/libkml-1.3.0/src/kml/xsd/xsd_element.h
Examining data/libkml-1.3.0/src/kml/xsd/xsd_file.cc
Examining data/libkml-1.3.0/src/kml/xsd/xsd_file.h
Examining data/libkml-1.3.0/src/kml/xsd/xsd_handler.cc
Examining data/libkml-1.3.0/src/kml/xsd/xsd_handler.h
Examining data/libkml-1.3.0/src/kml/xsd/xsd_primitive_type.cc
Examining data/libkml-1.3.0/src/kml/xsd/xsd_primitive_type.h
Examining data/libkml-1.3.0/src/kml/xsd/xsd_schema.h
Examining data/libkml-1.3.0/src/kml/xsd/xsd_simple_type.h
Examining data/libkml-1.3.0/src/kml/xsd/xsd_type.h
Examining data/libkml-1.3.0/src/kml/xsd/xsd_util.cc
Examining data/libkml-1.3.0/src/kml/xsd/xsd_util.h
Examining data/libkml-1.3.0/src/kml/xsd/xst_parser.cc
Examining data/libkml-1.3.0/src/kml/xsd/xst_parser.h
Examining data/libkml-1.3.0/tests/kml/base/attributes_test.cc
Examining data/libkml-1.3.0/tests/kml/base/color32_test.cc
Examining data/libkml-1.3.0/tests/kml/base/csv_splitter_test.cc
Examining data/libkml-1.3.0/tests/kml/base/date_time_test.cc
Examining data/libkml-1.3.0/tests/kml/base/expat_handler_ns_test.cc
Examining data/libkml-1.3.0/tests/kml/base/expat_parser_test.cc
Examining data/libkml-1.3.0/tests/kml/base/file_test.cc
Examining data/libkml-1.3.0/tests/kml/base/google_internal_test.h
Examining data/libkml-1.3.0/tests/kml/base/math_util_test.cc
Examining data/libkml-1.3.0/tests/kml/base/net_cache_test.cc
Examining data/libkml-1.3.0/tests/kml/base/net_cache_test_util.h
Examining data/libkml-1.3.0/tests/kml/base/referent_test.cc
Examining data/libkml-1.3.0/tests/kml/base/string_util_test.cc
Examining data/libkml-1.3.0/tests/kml/base/tempfile_test.cc
Examining data/libkml-1.3.0/tests/kml/base/time_util_test.cc
Examining data/libkml-1.3.0/tests/kml/base/unit_test.h
Examining data/libkml-1.3.0/tests/kml/base/uri_parser_test.cc
Examining data/libkml-1.3.0/tests/kml/base/util_test.cc
Examining data/libkml-1.3.0/tests/kml/base/vec3_test.cc
Examining data/libkml-1.3.0/tests/kml/base/version_test.cc
Examining data/libkml-1.3.0/tests/kml/base/xml_element_test.cc
Examining data/libkml-1.3.0/tests/kml/base/xml_file_test.cc
Examining data/libkml-1.3.0/tests/kml/base/xml_namespaces_test.cc
Examining data/libkml-1.3.0/tests/kml/base/xmlns_test.cc
Examining data/libkml-1.3.0/tests/kml/base/zip_file_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/atom_util_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/convenience_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/csv_file_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/csv_parser_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/element_counter_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/feature_list_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/google_doc_list_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/google_maps_data_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/google_picasa_web_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/google_spreadsheets_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/gpx_trk_pt_handler_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/http_client_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/http_client_test_util.h
Examining data/libkml-1.3.0/tests/kml/convenience/kml_feature_list_saver_test.cc
Examining data/libkml-1.3.0/tests/kml/convenience/kmz_check_links_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/abstractlatlonbox_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/abstractview_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/atom_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/balloonstyle_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/colorstyle_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/container_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/document_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/element_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/extendeddata_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/feature_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/folder_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/geometry_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/gx_timeprimitive_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/gx_tour_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/hotspot_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/iconstyle_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/kml22_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/kml_cast_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/kml_factory_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/kml_handler_ns_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/kml_handler_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/kml_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/labelstyle_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/linestyle_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/link_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/liststyle_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/model_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/networklink_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/networklinkcontrol_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/object_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/overlay_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/parser_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/placemark_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/polystyle_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/region_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/round_trip_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/schema_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/serializer_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/snippet_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/style_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/stylemap_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/styleselector_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/substyle_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/timeprimitive_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/unknown_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/vec2_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/visitor_driver_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/visitor_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/xal_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/xml_serializer_test.cc
Examining data/libkml-1.3.0/tests/kml/dom/xsd_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/bbox_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/clone_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/entity_mapper_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/feature_balloon_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/feature_view_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/feature_visitor_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/find_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/find_xml_namespaces_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/get_link_parents_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/get_links_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/href_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/id_mapper_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/kml_cache_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/kml_file_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/kml_stream_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/kml_uri_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/kmz_cache_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/kmz_file_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/link_util_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/location_util_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/merge_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/object_id_parser_observer_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/old_schema_parser_observer_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/parse_old_schema_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/schema_parser_observer_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/shared_style_parser_observer_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/style_inliner_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/style_merger_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/style_resolver_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/style_splitter_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/update_processor_test.cc
Examining data/libkml-1.3.0/tests/kml/engine/update_test.cc
Examining data/libkml-1.3.0/tests/kml/regionator/feature_list_region_handler_test.cc
Examining data/libkml-1.3.0/tests/kml/regionator/regionator_qid_test.cc
Examining data/libkml-1.3.0/tests/kml/regionator/regionator_test.cc
Examining data/libkml-1.3.0/tests/kml/regionator/regionator_util_test.cc
Examining data/libkml-1.3.0/tests/kml/xsd/xsd_complex_type_test.cc
Examining data/libkml-1.3.0/tests/kml/xsd/xsd_element_test.cc
Examining data/libkml-1.3.0/tests/kml/xsd/xsd_file_test.cc
Examining data/libkml-1.3.0/tests/kml/xsd/xsd_handler_test.cc
Examining data/libkml-1.3.0/tests/kml/xsd/xsd_primitive_type_test.cc
Examining data/libkml-1.3.0/tests/kml/xsd/xsd_schema_test.cc
Examining data/libkml-1.3.0/tests/kml/xsd/xsd_simple_type_test.cc
Examining data/libkml-1.3.0/tests/kml/xsd/xsd_util_test.cc
Examining data/libkml-1.3.0/tests/kml/xsd/xst_parser_test.cc
Examining data/libkml-1.3.0/xcode/LibKML/LibKML.h

FINAL RESULTS:

data/libkml-1.3.0/src/kml/base/file_win32.cc:96:15:  [3] (tmpfile) GetTempFileName:
  Temporary file race condition in certain cases (e.g., if run as SYSTEM in
  many versions of Windows) (CWE-377).
  uRetVal = ::GetTempFileName(lpPathBuffer, TEXT("libkml"), 0, szTempName);
data/libkml-1.3.0/src/kml/convenience/google_doc_list.cc:65:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (const char* scope = getenv("GOOGLE_DOC_LIST_SCOPE")) {
data/libkml-1.3.0/src/kml/convenience/google_maps_data.cc:61:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (const char* scope = getenv("GOOGLE_MAPS_DATA_SCOPE")) {
data/libkml-1.3.0/src/kml/convenience/google_picasa_web.cc:67:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (const char* scope = getenv("GOOGLE_PICASA_WEB_SCOPE")) {
data/libkml-1.3.0/src/kml/convenience/google_spreadsheets.cc:55:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (const char* scope = getenv("GOOGLE_SPREADSHEETS_DATA_SCOPE")) {
data/libkml-1.3.0/examples/helloworld/parsebuf.cc:72:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    count = atoi(argv[1]);
data/libkml-1.3.0/src/kml/base/color32.h:101:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char out[9];
data/libkml-1.3.0/src/kml/base/color32.h:112:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char out[9];
data/libkml-1.3.0/src/kml/base/contrib/minizip/iomem_simple.c:151:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(buf, ((char*)handle->buffer) + handle->position, size);
data/libkml-1.3.0/src/kml/base/contrib/minizip/iomem_simple.c:171:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(((char*)handle->buffer) + handle->position, buf, size);
data/libkml-1.3.0/src/kml/base/contrib/minizip/unzip.c:891:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char szCurrentFileName[UNZ_MAXFILENAMEINZIP+1];
data/libkml-1.3.0/src/kml/base/contrib/minizip/unzip.c:1091:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char source[12];
data/libkml-1.3.0/src/kml/base/date_time.cc:93:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[N];
data/libkml-1.3.0/src/kml/base/expat_parser.cc:119:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, input.data(), input.size());
data/libkml-1.3.0/src/kml/base/file.cc:51:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[kBufferSize];
data/libkml-1.3.0/src/kml/base/file_posix.cc:66:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  int fd = mkstemp(temp_path);
data/libkml-1.3.0/src/kml/base/file_win32.cc:81:1:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
TCHAR lpPathBuffer[BUFSIZE];
data/libkml-1.3.0/src/kml/base/file_win32.cc:83:1:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
TCHAR szTempName[BUFSIZE];
data/libkml-1.3.0/src/kml/base/string_util.cc:35:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char map[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
data/libkml-1.3.0/src/kml/base/string_util.cc:94:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *out = atoi(str.c_str());
data/libkml-1.3.0/src/kml/base/string_util.cc:170:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(copy, static_cast<const void*>(input), nbytes);
data/libkml-1.3.0/src/kml/base/zip_file.cc:101:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char buf[1024];
data/libkml-1.3.0/src/kml/convenience/csv_file.cc:67:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  csv_file.open(filename);
data/libkml-1.3.0/src/kml/convenience/feature_list.cc:56:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(score.c_str());
data/libkml-1.3.0/tests/kml/base/expat_parser_test.cc:161:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, k0.data(), k0.size());
data/libkml-1.3.0/tests/kml/base/expat_parser_test.cc:166:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, k1.data(), k1.size());
data/libkml-1.3.0/tests/kml/base/expat_parser_test.cc:171:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, k2.data(), k2.size());
data/libkml-1.3.0/tests/kml/base/string_util_test.cc:36:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char a[2];
data/libkml-1.3.0/tests/kml/dom/element_test.cc:554:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  bool open;
data/libkml-1.3.0/tests/kml/dom/element_test.cc:565:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ASSERT_TRUE(field->SetBool(&open));  // SetBool deletes field.
data/libkml-1.3.0/tests/kml/dom/element_test.cc:566:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ASSERT_TRUE(open);
data/libkml-1.3.0/tests/kml/dom/element_test.cc:572:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ASSERT_TRUE(field->SetBool(&open));  // SetBool deletes field.
data/libkml-1.3.0/tests/kml/dom/element_test.cc:573:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ASSERT_FALSE(open);
data/libkml-1.3.0/tests/kml/dom/element_test.cc:579:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ASSERT_TRUE(field->SetBool(&open));  // SetBool deletes field.
data/libkml-1.3.0/tests/kml/dom/element_test.cc:580:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ASSERT_TRUE(open);
data/libkml-1.3.0/tests/kml/dom/element_test.cc:586:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ASSERT_TRUE(field->SetBool(&open));  // SetBool deletes field.
data/libkml-1.3.0/tests/kml/dom/element_test.cc:587:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ASSERT_FALSE(open);
data/libkml-1.3.0/tests/kml/dom/element_test.cc:593:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ASSERT_TRUE(field->SetBool(&open));  // SetBool deletes field.
data/libkml-1.3.0/tests/kml/dom/element_test.cc:594:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ASSERT_FALSE(open);
data/libkml-1.3.0/tests/kml/dom/feature_test.cc:147:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  feature_->set_open(open);
data/libkml-1.3.0/examples/wxregionator/wxregionator.cc:230:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (!wxFile::Access(input_file, wxFile::read)) {
data/libkml-1.3.0/src/kml/base/contrib/minizip/unzip.c:874:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(szFileName)>=UNZ_MAXFILENAMEINZIP)
data/libkml-1.3.0/src/kml/base/file.cc:53:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    input_file.read(buffer, kBufferSize);
data/libkml-1.3.0/src/kml/base/file_posix.cc:64:23:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  mode_t temp_umask = umask(S_IXUSR | S_IRWXG | S_IRWXO);
data/libkml-1.3.0/src/kml/base/file_posix.cc:67:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(temp_umask);
data/libkml-1.3.0/src/kml/base/file_posix.cc:72:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  path->assign(temp_path, strlen(temp_path));
data/libkml-1.3.0/src/kml/base/file_win32.cc:101:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  path->assign(str.c_str(), strlen(str.c_str()));
data/libkml-1.3.0/src/kml/dom/link.cc:52:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  string::size_type offset = strlen(kCdataOpen);
data/libkml-1.3.0/src/kml/engine/kml_stream.cc:57:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          input->read(static_cast<char*>(buf), kBufSize).gcount();
data/libkml-1.3.0/tests/kml/convenience/google_maps_data_test.cc:86:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ASSERT_TRUE(strlen(service_name));  // It's a null terminated C string.
data/libkml-1.3.0/tests/kml/convenience/google_maps_data_test.cc:89:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ASSERT_TRUE(strlen(metafeed_uri));  // It's a null terminated C string.
data/libkml-1.3.0/tests/kml/convenience/google_spreadsheets_test.cc:65:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ASSERT_TRUE(strlen(service_name));  // It's a null terminated C string.
data/libkml-1.3.0/tests/kml/convenience/google_spreadsheets_test.cc:68:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ASSERT_TRUE(strlen(metafeed_uri));  // It's a null terminated C string.
data/libkml-1.3.0/tests/kml/dom/geometry_test.cc:152:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ASSERT_EQ(basic_3d_point + strlen(basic_3d_point), endp);
data/libkml-1.3.0/tests/kml/engine/kml_stream_test.cc:105:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      setg(kBegin, kBegin, kBegin + strlen(kBegin));
data/libkml-1.3.0/tests/kml/engine/kml_stream_test.cc:107:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      setg(kPlacemark, kPlacemark, kPlacemark + strlen(kPlacemark));
data/libkml-1.3.0/tests/kml/engine/kml_stream_test.cc:109:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      setg(kEnd, kEnd, kEnd + strlen(kEnd));

ANALYSIS SUMMARY:

Hits = 57
Lines analyzed = 79449 in approximately 1.99 seconds (39928 lines/second)
Physical Source Lines of Code (SLOC) = 49854
Hits@level = [0]   0 [1]  17 [2]  35 [3]   5 [4]   0 [5]   0
Hits@level+ = [0+]  57 [1+]  57 [2+]  40 [3+]   5 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 1.14334 [1+] 1.14334 [2+] 0.802343 [3+] 0.100293 [4+]   0 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.