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/r-cran-s2-1.0.3/tools/version.c
Examining data/r-cran-s2-1.0.3/src/s2-bounds.cpp
Examining data/r-cran-s2-1.0.3/src/s2-lnglat.cpp
Examining data/r-cran-s2-1.0.3/src/s2-matrix.cpp
Examining data/r-cran-s2-1.0.3/src/polygon-geography.h
Examining data/r-cran-s2-1.0.3/src/init.cpp
Examining data/r-cran-s2-1.0.3/src/s2-constructors-formatters.cpp
Examining data/r-cran-s2-1.0.3/src/s2-transformers.cpp
Examining data/r-cran-s2-1.0.3/src/tests/soname.h
Examining data/r-cran-s2-1.0.3/src/s2-geography.cpp
Examining data/r-cran-s2-1.0.3/src/cpp-compat.cpp
Examining data/r-cran-s2-1.0.3/src/s2/s1interval.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2region_coverer.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2edge_tessellator.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2latlng_rect_bounder.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2shape_measures.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2edge_crosser.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2error.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2min_distance_targets.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2closest_cell_query.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2padded_cell.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2shapeutil_build_polygon_boundaries.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2builderutil_s2polyline_layer.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2lax_polygon_shape.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2builderutil_snap_functions.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2shape_index_buffered_region.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2crossing_edge_query.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2latlng.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2point_compression.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2builderutil_s2point_vector_layer.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2testing.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2builder.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2polyline_measures.cc
Examining data/r-cran-s2-1.0.3/src/s2/encoded_s2cell_id_vector.cc
Examining data/r-cran-s2-1.0.3/src/s2/base/stringprintf.cc
Examining data/r-cran-s2-1.0.3/src/s2/base/strtoint.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2builderutil_s2polyline_vector_layer.cc
Examining data/r-cran-s2-1.0.3/src/s2/id_set_lexicon.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2lax_polyline_shape.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2region.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2region_term_indexer.cc
Examining data/r-cran-s2-1.0.3/src/s2/encoded_string_vector.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2polyline_alignment.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2predicates.cc
Examining data/r-cran-s2-1.0.3/src/s2/encoded_s2point_vector.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2coords.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2edge_clipping.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2polygon.cc
Examining data/r-cran-s2-1.0.3/src/s2/s1chord_angle.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2shapeutil_coding.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2polyline.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2region_intersection.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2boolean_operation.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2cell_index.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2shapeutil_range_iterator.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2cell_union.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2max_distance_targets.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2builderutil_closed_set_normalizer.cc
Examining data/r-cran-s2-1.0.3/src/s2/mutable_s2shape_index.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2loop_measures.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2builder_graph.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2builderutil_lax_polygon_layer.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2shape_index.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2metrics.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2region_union.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2text_format.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2r2rect.cc
Examining data/r-cran-s2-1.0.3/src/s2/r2rect.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2wedge_relations.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2lax_loop_shape.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2closest_point_query.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2builderutil_s2polygon_layer.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2furthest_edge_query.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2projections.cc
Examining data/r-cran-s2-1.0.3/src/s2/util/bits/bit-interleave.cc
Examining data/r-cran-s2-1.0.3/src/s2/util/bits/bits.cc
Examining data/r-cran-s2-1.0.3/src/s2/util/math/mathutil.cc
Examining data/r-cran-s2-1.0.3/src/s2/util/math/exactfloat/exactfloat.cc
Examining data/r-cran-s2-1.0.3/src/s2/util/coding/varint.cc
Examining data/r-cran-s2-1.0.3/src/s2/util/coding/coder.cc
Examining data/r-cran-s2-1.0.3/src/s2/util/units/length-units.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2measures.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2cap.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2polyline_simplifier.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2builderutil_testing.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2pointutil.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2point_region.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2shapeutil_contains_brute_force.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2shapeutil_visit_crossing_edge_pairs.cc
Examining data/r-cran-s2-1.0.3/src/s2/strings/ostringstream.cc
Examining data/r-cran-s2-1.0.3/src/s2/strings/serialize.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2latlng_rect.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2edge_distances.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2shapeutil_edge_iterator.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2cell.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2shapeutil_get_reference_point.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2contains_vertex_query.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2earth.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/numeric/int128.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/base/dynamic_annotations.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/base/internal/raw_logging.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/base/internal/throw_delegate.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/ascii.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/internal/memutil.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/strip.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/match.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/string_view.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/str_split.cc
Examining data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/str_cat.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2builderutil_find_polygon_degeneracies.cc
Examining data/r-cran-s2-1.0.3/src/s2/encoded_s2shape_index.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2loop.cc
Examining data/r-cran-s2-1.0.3/src/s2/s1angle.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2edge_crossings.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2closest_edge_query.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2centroids.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2shape_index_measures.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2convex_hull_query.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2debug.cc
Examining data/r-cran-s2-1.0.3/src/s2/s2cell_id.cc
Examining data/r-cran-s2-1.0.3/src/wk-geography.h
Examining data/r-cran-s2-1.0.3/src/geography-operator.h
Examining data/r-cran-s2-1.0.3/src/s2-accessors.cpp
Examining data/r-cran-s2-1.0.3/src/point-geography.h
Examining data/r-cran-s2-1.0.3/src/polyline-geography.h
Examining data/r-cran-s2-1.0.3/src/s2-options.h
Examining data/r-cran-s2-1.0.3/src/s2-xptr.cpp
Examining data/r-cran-s2-1.0.3/src/RcppExports.cpp
Examining data/r-cran-s2-1.0.3/src/geography.h
Examining data/r-cran-s2-1.0.3/src/s2-point.cpp
Examining data/r-cran-s2-1.0.3/src/geography-collection.h
Examining data/r-cran-s2-1.0.3/src/s2-predicates.cpp
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2coords_internal.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shapeutil_shape_edge_id.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2loop_measures.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2metrics.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s1angle.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2error.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shapeutil_get_reference_point.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2polyline_alignment.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/encoded_s2point_vector.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2polyline_simplifier.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2max_distance_targets.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builderutil_s2point_vector_layer.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/_fp_contract_off.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2testing.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/sequence_lexicon.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2polygon.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/r1interval.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2contains_point_query.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2boolean_operation.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/r2.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2distance_target.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2closest_edge_query.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builderutil_s2polyline_vector_layer.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2lax_polyline_shape.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2point_region.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shapeutil_build_polygon_boundaries.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shape_index_measures.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/encoded_uint_vector.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2closest_cell_query_base.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2centroids.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2closest_edge_query_base.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builder_layer.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2cell_index.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shapeutil_visit_crossing_edge_pairs.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2contains_vertex_query.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2point_compression.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/base/mutex.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/base/integral_types.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/base/log_severity.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/base/strtoint.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/base/casts.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/base/spinlock.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/base/timer.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/base/stringprintf.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/base/logging.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/base/port.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/base/commandlineflags.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2padded_cell.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2cell_union.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2latlng_rect.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2coords.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2region_intersection.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2region.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2projections.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2cell.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shapeutil_count_edges.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/value_lexicon.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builderutil_graph_shape.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2cap.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shapeutil_testing.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builderutil_find_polygon_degeneracies.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2edge_crossings.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2latlng.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s1interval.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/r2rect.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2latlng_rect_bounder.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2polyline_alignment_internal.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shapeutil_contains_brute_force.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2cell_id.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shapeutil_coding.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2edge_clipping.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2point_span.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2closest_point_query.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builderutil_s2polyline_layer.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2closest_edge_query_testing.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shapeutil_range_iterator.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2r2rect.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2edge_crossings_internal.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2text_format.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2lax_loop_shape.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2edge_distances.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2wedge_relations.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2region_term_indexer.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2crossing_edge_query.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shape.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shape_index_region.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s1chord_angle.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2lax_polygon_shape.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2predicates_internal.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builder_graph.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builderutil_s2polygon_layer.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2debug.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shape_index.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2edge_crosser.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builder.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2closest_cell_query.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2closest_point_query_base.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/encoded_string_vector.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2region_coverer.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2region_union.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2measures.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builderutil_testing.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/id_set_lexicon.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/encoded_s2shape_index.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/mutable_s2shape_index.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2loop.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/bits/bit-interleave.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/bits/bits.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/btree_set.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/layout.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/btree.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/btree_container.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/btree_map.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/hashtable_common.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/container_logging.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/legacy_random_shuffle.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/dense_hash_set.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/compact_array.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/densehashtable.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/math/matrix3x3.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/math/mathutil.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/math/vector3_hash.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/math/exactfloat/exactfloat.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/math/vector.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/coding/varint.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/coding/nth-derivative.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/coding/transforms.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/coding/coder.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/endian/endian.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/hash/mix.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/units/physical-units.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/util/units/length-units.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shape_index_buffered_region.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2pointutil.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2earth.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2min_distance_targets.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2convex_hull_query.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/strings/ostringstream.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/strings/serialize.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2furthest_edge_query.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shapeutil_edge_iterator.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2predicates.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/encoded_s2cell_id_vector.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builderutil_lax_polygon_layer.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2polyline.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2point_index.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2point_vector_shape.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2point.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2edge_tessellator.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/numeric/int128.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/config.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/invoke.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/raw_logging.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/identity.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/atomic_hook.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/throw_delegate.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/inline_variable.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/attributes.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/log_severity.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/optimization.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/casts.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/thread_annotations.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/port.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/policy_checks.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/macros.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/dynamic_annotations.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/memory/memory.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/algorithm/algorithm.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/types/span.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/meta/type_traits.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/utility/utility.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/ascii_ctype.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/str_split.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/internal/memutil.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/internal/resize_uninitialized.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/internal/bits.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/numbers.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/string_view.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/match.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/strip.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/ascii.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/str_cat.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/str_join.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/container/internal/container_memory.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/container/internal/layout.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/container/internal/compressed_tuple.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/container/fixed_array.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/container/inlined_vector.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shapeutil_shape_edge.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2polyline_measures.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2shape_measures.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2edge_vector_shape.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builderutil_closed_set_normalizer.h
Examining data/r-cran-s2-1.0.3/inst/include/s2/s2builderutil_snap_functions.h
Examining data/r-cran-s2-1.0.3/inst/include/cpp-compat.h

FINAL RESULTS:

data/r-cran-s2-1.0.3/inst/include/s2/util/coding/coder.h:180:10:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
  void   gets(void* mem, size_t n);            // get a c-string no more than
data/r-cran-s2-1.0.3/inst/include/s2/util/coding/coder.h:436:22:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
inline void Decoder::gets(void* dst, size_t n) {
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/container/internal/layout.h:648:24:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    string res = absl::StrCat("@0", types[0], "(", sizes[0], ")");
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/str_cat.h:313:36:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
ABSL_MUST_USE_RESULT inline string StrCat() { return string(); }
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/str_cat.h:315:36:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
ABSL_MUST_USE_RESULT inline string StrCat(const AlphaNum& a) {
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/str_cat.h:319:29:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
ABSL_MUST_USE_RESULT string StrCat(const AlphaNum& a, const AlphaNum& b);
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/str_cat.h:320:29:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
ABSL_MUST_USE_RESULT string StrCat(const AlphaNum& a, const AlphaNum& b,
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/str_cat.h:322:29:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
ABSL_MUST_USE_RESULT string StrCat(const AlphaNum& a, const AlphaNum& b,
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/str_cat.h:327:36:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
ABSL_MUST_USE_RESULT inline string StrCat(const AlphaNum& a, const AlphaNum& b,
data/r-cran-s2-1.0.3/src/s2/base/stringprintf.cc:42:16:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  int result = vsnprintf(space, kSpaceLength, format, backup_ap);
data/r-cran-s2-1.0.3/src/s2/base/stringprintf.cc:56:16:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      result = vsnprintf(nullptr, 0, format, backup_ap);
data/r-cran-s2-1.0.3/src/s2/base/stringprintf.cc:73:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  result = vsnprintf(buf, length, format, backup_ap);
data/r-cran-s2-1.0.3/src/s2/s2cell_id.cc:36:13:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
using absl::StrCat;
data/r-cran-s2-1.0.3/src/s2/s2cell_id.cc:590:12:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    return StrCat("Invalid: ", absl::Hex(id(), absl::kZeroPad16));
data/r-cran-s2-1.0.3/src/s2/s2cell_id.cc:592:16:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
  string out = StrCat(face(), "/");
data/r-cran-s2-1.0.3/src/s2/s2region_term_indexer.cc:118:18:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    return absl::StrCat(prefix, id.ToToken());
data/r-cran-s2-1.0.3/src/s2/s2region_term_indexer.cc:120:18:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    return absl::StrCat(prefix, options_.marker(), id.ToToken());
data/r-cran-s2-1.0.3/src/s2/s2shapeutil_edge_iterator.cc:42:16:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
  return absl::StrCat("(shape=", shape_id_, ", edge=", edge_id_, ")");
data/r-cran-s2-1.0.3/src/s2/third_party/absl/base/internal/raw_logging.cc:90:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  int n = vsnprintf(*buf, *size, format, ap);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/base/internal/raw_logging.cc:125:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  int n = vsnprintf(*buf, *size, format, ap);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/str_cat.cc:96:8:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
string StrCat(const AlphaNum& a, const AlphaNum& b) {
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/str_cat.cc:108:8:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
string StrCat(const AlphaNum& a, const AlphaNum& b, const AlphaNum& c) {
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/str_cat.cc:121:8:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
string StrCat(const AlphaNum& a, const AlphaNum& b, const AlphaNum& c,
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:605:9:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
#define tempnam _tempnam
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:617:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
inline int random() { return rand(); }
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:618:13:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
inline void srandom(unsigned int seed) { srand(seed); }
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:618:42:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
inline void srandom(unsigned int seed) { srand(seed); }
data/r-cran-s2-1.0.3/src/s2/third_party/absl/base/dynamic_annotations.cc:91:35:  [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.
  char *running_on_valgrind_str = getenv("RUNNING_ON_VALGRIND");
data/r-cran-s2-1.0.3/src/s2/third_party/absl/base/dynamic_annotations.cc:120:17:  [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.
    char *env = getenv("VALGRIND_SLOWDOWN");
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:624:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bcopy(s, d, n) memcpy(d, s, n)
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:624:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bcopy(s, d, n) memcpy(d, s, n)
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:720: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:726: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:732: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:736:52:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UNALIGNED_STORE16(void *p, uint16 v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:738:52:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UNALIGNED_STORE32(void *p, uint32 v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:740:52:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UNALIGNED_STORE64(void *p, uint64 v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:818: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:822:52:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UNALIGNED_STORE64(void *p, uint64 v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:833: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:839: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:845: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:849:52:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UNALIGNED_STORE16(void *p, uint16 v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:851:52:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UNALIGNED_STORE32(void *p, uint32 v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:853:52:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UNALIGNED_STORE64(void *p, uint64 v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:954:56:  [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.
template<int size> struct AlignType<0, size> { typedef char result[size]; };
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:967:44:  [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.
    typedef BASE_PORT_H_ALIGN_ATTRIBUTE(X) char result[size]; \
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:1002:28:  [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.
struct AlignType { typedef char result[Size]; };
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/casts.h:163: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(static_cast<void*>(std::addressof(dest)),
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/dynamic_annotations.h:379:12:  [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.
  struct { char x[8] __attribute__ ((aligned (8))); } name
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:123: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:129: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:135: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:139:53:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UnalignedStore16(void *p, uint16_t v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:141:53:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UnalignedStore32(void *p, uint32_t v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:143:51:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UnalignedStore64(void *p, uint64 v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:251: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:255:51:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UnalignedStore64(void *p, uint64 v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:279: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:285: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:291: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(&t, p, sizeof t);
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:295:53:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UnalignedStore16(void *p, uint16_t v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:297:53:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UnalignedStore32(void *p, uint32_t v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/base/internal/unaligned_access.h:299:51:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void UnalignedStore64(void *p, uint64 v) { memcpy(p, &v, sizeof v); }
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/ascii.h:65:23:  [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.
extern const unsigned char kPropertyBits[256];
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/ascii.h:68:14:  [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.
extern const char kToUpper[256];
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/ascii.h:71:14:  [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.
extern const char kToLower[256];
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/internal/memutil.h:76:34:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return reinterpret_cast<char*>(memcpy(dest + destlen, src, srclen));
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/str_cat.h:274: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 digits_[numbers_internal::kFastToBufferSize];
data/r-cran-s2-1.0.3/inst/include/s2/util/coding/coder.h:253: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_, src, n);
data/r-cran-s2-1.0.3/inst/include/s2/util/coding/coder.h:294: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(*dst, *src, N);
data/r-cran-s2-1.0.3/inst/include/s2/util/coding/coder.h:422: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(dst, buf_, n);
data/r-cran-s2-1.0.3/inst/include/s2/util/endian/endian.h:237:5:  [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(&result, p, 3);
data/r-cran-s2-1.0.3/inst/include/s2/util/endian/endian.h:247:5:  [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(p, &v, 3);
data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/compact_array.h:124: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 unused_padding_[kUnusedPaddingBytes];
data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/compact_array.h:127:17:  [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.
  __extension__ char inlined_elements_[3 - kUnusedPaddingBytes];
data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/compact_array.h:134: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 more_inlined_elements_[sizeof(T*)];
data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/compact_array.h:390:11:  [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(new_array, InlinedSpace(), size() * sizeof(T));
data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/compact_array.h:403:7:  [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(new_ptr, Array(), old_capacity * sizeof(T));
data/r-cran-s2-1.0.3/src/s2/base/stringprintf.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 space[kSpaceLength];
data/r-cran-s2-1.0.3/src/s2/s1angle.cc:47: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[13];
data/r-cran-s2-1.0.3/src/s2/third_party/absl/base/internal/raw_logging.cc:137: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[kLogBufSize];
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/ascii.cc:59: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.
const unsigned char kPropertyBits[256] = {
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/ascii.cc:81:7:  [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.
const char kToLower[256] = {
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/ascii.cc:119:7:  [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.
const char kToUpper[256] = {
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/internal/memutil.cc:38: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, s, slen);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:44: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[32];
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:51: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(ptr, str.data(), str.size());
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:69: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[32];
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:76: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(ptr, str.data(), str.size());
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:107: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 const char two_ASCII_digits[100][2] = {
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:130: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, two_ASCII_digits[i], 2);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:167:7:  [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.
const char one_ASCII_final_digits[10][2] {
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:213:5:  [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(buffer, one_ASCII_final_digits[i], 2);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:293: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(buffer, one_ASCII_final_digits[u32], 2);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:385: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 digits[6];
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:523:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(out, "nan");  // NOLINT(runtime/printf)
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:537:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(out, "inf");  // NOLINT(runtime/printf)
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:548:7:  [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(out, &digits[0], 6), out += 6;
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:552:7:  [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(out, &digits[0], 5), out += 5;
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:560:7:  [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(out, &digits[0], 4), out += 4;
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:569:7:  [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(out, &digits[0], 3), out += 3;
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:571:7:  [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(out, &digits[3], 3);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:578:7:  [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(out, &digits[0], 2), out += 2;
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:580:7:  [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(out, &digits[2], 4);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:587:7:  [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(out, &digits[0], 1), out += 1;
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:589:7:  [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(out, &digits[1], 5);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:609:7:  [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(out, &digits[0], 6);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/numbers.cc:619: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(out, &digits[1], 5), out += 5;
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/str_cat.cc:92: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(out, x.data(), x.size());
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/str_cat.cc:149:5:  [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(out, piece.data(), this_size);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/str_cat.cc:179:5:  [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(out, piece.data(), this_size);
data/r-cran-s2-1.0.3/src/s2/third_party/absl/strings/string_view.cc:30: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 fill_buf[32];
data/r-cran-s2-1.0.3/src/s2/util/coding/coder.cc:61: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(new_buffer, underlying_buffer_, current_len);
data/r-cran-s2-1.0.3/src/s2/util/math/exactfloat/exactfloat.cc:395: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 exp_buf[20];
data/r-cran-s2-1.0.3/src/s2/util/math/exactfloat/exactfloat.cc:396:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(exp_buf, "e%+02d", exp10 - 1);
data/r-cran-s2-1.0.3/src/s2/util/math/exactfloat/exactfloat.cc:498: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 prec_buf[20];
data/r-cran-s2-1.0.3/src/s2/util/math/exactfloat/exactfloat.cc:499:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(prec_buf, "<%d>", prec());
data/r-cran-s2-1.0.3/inst/include/s2/base/port.h:907:10:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
  return memalign(minimum_alignment, size);
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/algorithm/algorithm.h:71:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
         std::equal(first1, last1, first2);
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/internal/memutil.h:120:57:  [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).
  return int_memmatch<true>(phaystack, haylen, pneedle, strlen(pneedle));
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/internal/memutil.h:125:58:  [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).
  return int_memmatch<false>(phaystack, haylen, pneedle, strlen(pneedle));
data/r-cran-s2-1.0.3/inst/include/s2/third_party/absl/strings/string_view.h:210:54:  [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).
      : ptr_(str), length_(CheckLengthInternal(str ? strlen(str) : 0)) {}
data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/btree_container.h:125:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    return std::equal(x.begin(), x.end(), y.begin());
data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/compact_array.h:596:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
         std::equal(x.begin(), x.end(), y.begin());
data/r-cran-s2-1.0.3/inst/include/s2/util/gtl/densehashtable.h:148:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((x=getc(fp)) == EOF)                                              \
data/r-cran-s2-1.0.3/inst/include/s2/util/math/vector.h:97:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    return std::equal(ap, ap + this->Size(), b.Data());
data/r-cran-s2-1.0.3/src/s2/third_party/absl/base/internal/raw_logging.cc:171:59:  [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).
    absl::raw_logging_internal::SafeWriteToStderr(buffer, strlen(buffer));
data/r-cran-s2-1.0.3/src/s2/util/math/exactfloat/exactfloat.cc:461:20:  [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).
  int num_digits = strlen(all_digits);

ANALYSIS SUMMARY:

Hits = 129
Lines analyzed = 93029 in approximately 1.91 seconds (48759 lines/second)
Physical Source Lines of Code (SLOC) = 49695
Hits@level = [0]   1 [1]  11 [2]  89 [3]   6 [4]  21 [5]   2
Hits@level+ = [0+] 130 [1+] 129 [2+] 118 [3+]  29 [4+]  23 [5+]   2
Hits/KSLOC@level+ = [0+] 2.61596 [1+] 2.59583 [2+] 2.37448 [3+] 0.58356 [4+] 0.462823 [5+] 0.0402455
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.