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/spatialindex-1.9.3/include/spatialindex/LineSegment.h
Examining data/spatialindex-1.9.3/include/spatialindex/MVRTree.h
Examining data/spatialindex-1.9.3/include/spatialindex/MovingPoint.h
Examining data/spatialindex-1.9.3/include/spatialindex/MovingRegion.h
Examining data/spatialindex-1.9.3/include/spatialindex/Point.h
Examining data/spatialindex-1.9.3/include/spatialindex/RTree.h
Examining data/spatialindex-1.9.3/include/spatialindex/Region.h
Examining data/spatialindex-1.9.3/include/spatialindex/SpatialIndex.h
Examining data/spatialindex-1.9.3/include/spatialindex/TPRTree.h
Examining data/spatialindex-1.9.3/include/spatialindex/TimePoint.h
Examining data/spatialindex-1.9.3/include/spatialindex/TimeRegion.h
Examining data/spatialindex-1.9.3/include/spatialindex/Version.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/BoundsQuery.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/CountVisitor.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/CustomStorage.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/DataStream.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/Error.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/IdVisitor.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/Index.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/LeafQuery.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/ObjVisitor.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/Utility.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/sidx_api.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/sidx_config.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/sidx_export.h
Examining data/spatialindex-1.9.3/include/spatialindex/capi/sidx_impl.h
Examining data/spatialindex-1.9.3/include/spatialindex/tools/PointerPool.h
Examining data/spatialindex-1.9.3/include/spatialindex/tools/PoolPointer.h
Examining data/spatialindex-1.9.3/include/spatialindex/tools/Tools.h
Examining data/spatialindex-1.9.3/include/spatialindex/tools/rand48.h
Examining data/spatialindex-1.9.3/src/capi/BoundsQuery.cc
Examining data/spatialindex-1.9.3/src/capi/CountVisitor.cc
Examining data/spatialindex-1.9.3/src/capi/CustomStorage.cc
Examining data/spatialindex-1.9.3/src/capi/DataStream.cc
Examining data/spatialindex-1.9.3/src/capi/Error.cc
Examining data/spatialindex-1.9.3/src/capi/IdVisitor.cc
Examining data/spatialindex-1.9.3/src/capi/Index.cc
Examining data/spatialindex-1.9.3/src/capi/LeafQuery.cc
Examining data/spatialindex-1.9.3/src/capi/ObjVisitor.cc
Examining data/spatialindex-1.9.3/src/capi/Utility.cc
Examining data/spatialindex-1.9.3/src/capi/sidx_api.cc
Examining data/spatialindex-1.9.3/src/mvrtree/Index.cc
Examining data/spatialindex-1.9.3/src/mvrtree/Index.h
Examining data/spatialindex-1.9.3/src/mvrtree/Leaf.cc
Examining data/spatialindex-1.9.3/src/mvrtree/Leaf.h
Examining data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc
Examining data/spatialindex-1.9.3/src/mvrtree/MVRTree.h
Examining data/spatialindex-1.9.3/src/mvrtree/Node.cc
Examining data/spatialindex-1.9.3/src/mvrtree/Node.h
Examining data/spatialindex-1.9.3/src/mvrtree/PointerPoolNode.h
Examining data/spatialindex-1.9.3/src/mvrtree/Statistics.cc
Examining data/spatialindex-1.9.3/src/mvrtree/Statistics.h
Examining data/spatialindex-1.9.3/src/rtree/BulkLoader.cc
Examining data/spatialindex-1.9.3/src/rtree/BulkLoader.h
Examining data/spatialindex-1.9.3/src/rtree/Index.cc
Examining data/spatialindex-1.9.3/src/rtree/Index.h
Examining data/spatialindex-1.9.3/src/rtree/Leaf.cc
Examining data/spatialindex-1.9.3/src/rtree/Leaf.h
Examining data/spatialindex-1.9.3/src/rtree/Node.cc
Examining data/spatialindex-1.9.3/src/rtree/Node.h
Examining data/spatialindex-1.9.3/src/rtree/PointerPoolNode.h
Examining data/spatialindex-1.9.3/src/rtree/RTree.cc
Examining data/spatialindex-1.9.3/src/rtree/RTree.h
Examining data/spatialindex-1.9.3/src/rtree/Statistics.cc
Examining data/spatialindex-1.9.3/src/rtree/Statistics.h
Examining data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc
Examining data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc
Examining data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc
Examining data/spatialindex-1.9.3/src/spatialindex/Point.cc
Examining data/spatialindex-1.9.3/src/spatialindex/Region.cc
Examining data/spatialindex-1.9.3/src/spatialindex/SpatialIndexImpl.cc
Examining data/spatialindex-1.9.3/src/spatialindex/TimePoint.cc
Examining data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc
Examining data/spatialindex-1.9.3/src/storagemanager/Buffer.cc
Examining data/spatialindex-1.9.3/src/storagemanager/Buffer.h
Examining data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc
Examining data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.h
Examining data/spatialindex-1.9.3/src/storagemanager/MemoryStorageManager.cc
Examining data/spatialindex-1.9.3/src/storagemanager/MemoryStorageManager.h
Examining data/spatialindex-1.9.3/src/storagemanager/RandomEvictionsBuffer.cc
Examining data/spatialindex-1.9.3/src/storagemanager/RandomEvictionsBuffer.h
Examining data/spatialindex-1.9.3/src/tools/Tools.cc
Examining data/spatialindex-1.9.3/src/tools/rand48.cc
Examining data/spatialindex-1.9.3/src/tprtree/Index.cc
Examining data/spatialindex-1.9.3/src/tprtree/Index.h
Examining data/spatialindex-1.9.3/src/tprtree/Leaf.cc
Examining data/spatialindex-1.9.3/src/tprtree/Leaf.h
Examining data/spatialindex-1.9.3/src/tprtree/Node.cc
Examining data/spatialindex-1.9.3/src/tprtree/Node.h
Examining data/spatialindex-1.9.3/src/tprtree/PointerPoolNode.h
Examining data/spatialindex-1.9.3/src/tprtree/Statistics.cc
Examining data/spatialindex-1.9.3/src/tprtree/Statistics.h
Examining data/spatialindex-1.9.3/src/tprtree/TPRTree.cc
Examining data/spatialindex-1.9.3/src/tprtree/TPRTree.h
Examining data/spatialindex-1.9.3/test/geometry/Intersection.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest-death-test.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest-matchers.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest-message.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest-param-test.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest-printers.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest-spi.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest-test-part.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest-typed-test.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest_pred_impl.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest_prod.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/custom/gtest-port.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/custom/gtest-printers.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/custom/gtest.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-death-test-internal.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-filepath.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-internal.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-param-util.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-port-arch.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-port.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-string.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-type-util.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/prime_tables.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample1.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample1.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample10_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample1_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample2.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample2.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample2_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample3-inl.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample3_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample4.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample4.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample4_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample5_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample6_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample7_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample8_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample9_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-all.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-death-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-filepath.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-internal-inl.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-matchers.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-port.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-printers.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-test-part.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-typed-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest_main.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-break-on-failure-unittest_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-catch-exceptions-test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-color-test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-death-test-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-death-test_ex_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-env-var-test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-filepath-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-filter-unittest_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-list-tests-unittest_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-listener-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-message-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-options-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-output-test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-param-test-invalid-name1-test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-param-test-invalid-name2-test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-param-test-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-param-test-test.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-param-test2-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-port-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-printers-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-shuffle-test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-test-part-test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-test2_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-throw-on-failure-test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-uninitialized-test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest-typed-test2_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest-typed-test_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest-typed-test_test.h
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest-unittest-api_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_all_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_assert_by_exception_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_environment_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_help_test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_list_output_unittest_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_main_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_no_test_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_pred_impl_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_premature_exit_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_prod_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_repeat_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_skip_in_environment_setup_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_skip_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_sole_header_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_stress_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_test_macro_stack_footprint_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_testbridge_test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_throw_on_failure_ex_test.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_xml_outfile1_test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_xml_outfile2_test_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_xml_output_unittest_.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/production.cc
Examining data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/production.h
Examining data/spatialindex-1.9.3/test/gtest/main.cc
Examining data/spatialindex-1.9.3/test/gtest/sidx_api_test.h
Examining data/spatialindex-1.9.3/test/gtest/test.h
Examining data/spatialindex-1.9.3/test/mvrtree/Exhaustive.cc
Examining data/spatialindex-1.9.3/test/mvrtree/Generator.cc
Examining data/spatialindex-1.9.3/test/mvrtree/MVRTreeLoad.cc
Examining data/spatialindex-1.9.3/test/mvrtree/MVRTreeQuery.cc
Examining data/spatialindex-1.9.3/test/rtree/CRTree.cc
Examining data/spatialindex-1.9.3/test/rtree/Exhaustive.cc
Examining data/spatialindex-1.9.3/test/rtree/Generator.cc
Examining data/spatialindex-1.9.3/test/rtree/RTreeBulkLoad.cc
Examining data/spatialindex-1.9.3/test/rtree/RTreeLoad.cc
Examining data/spatialindex-1.9.3/test/rtree/RTreeParallel.cc
Examining data/spatialindex-1.9.3/test/rtree/RTreeQuery.cc
Examining data/spatialindex-1.9.3/test/tprtree/Exhaustive.cc
Examining data/spatialindex-1.9.3/test/tprtree/Generator.cc
Examining data/spatialindex-1.9.3/test/tprtree/RandomGenerator.cc
Examining data/spatialindex-1.9.3/test/tprtree/RandomGenerator.h
Examining data/spatialindex-1.9.3/test/tprtree/TPRTreeLoad.cc
Examining data/spatialindex-1.9.3/test/tprtree/TPRTreeQuery.cc

FINAL RESULTS:

data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-death-test-internal.h:194:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(\
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-port.h:2016:20:  [4] (buffer) StrNCpy:
  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).
inline const char* StrNCpy(char* dest, const char* src, size_t n) {
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-port.h:2086:26:  [4] (format) _snprintf:
  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.
# define GTEST_SNPRINTF_ _snprintf
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-port.h:2088:26:  [4] (format) snprintf:
  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.
# define GTEST_SNPRINTF_ snprintf
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:125:10:  [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.
# define vsnprintf _vsnprintf
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:3044:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, args);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:3065:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(fmt, args);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:3072:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(fmt, args);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-death-test-test.cc:1352:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, InDeathTestChild() ? "Inside" : "Outside");
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-death-test-test.cc:1362:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, InDeathTestChild() ? "Inside" : "Outside");
data/spatialindex-1.9.3/include/spatialindex/tools/rand48.h:70:24:  [3] (random) seed48:
  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.
extern unsigned short *seed48(unsigned short xseed[3]) __THROW;
data/spatialindex-1.9.3/include/spatialindex/tools/rand48.h:72:13:  [3] (random) nrand48:
  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.
extern long nrand48(unsigned short xseed[3]) __THROW;
data/spatialindex-1.9.3/include/spatialindex/tools/rand48.h:74:13:  [3] (random) mrand48:
  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.
extern long mrand48(void) __THROW;
data/spatialindex-1.9.3/include/spatialindex/tools/rand48.h:76:13:  [3] (random) lrand48:
  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.
extern long lrand48(void) __THROW;
data/spatialindex-1.9.3/include/spatialindex/tools/rand48.h:78:13:  [3] (random) lcong48:
  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.
extern void lcong48(unsigned short p[7]) __THROW;
data/spatialindex-1.9.3/include/spatialindex/tools/rand48.h:80:13:  [3] (random) jrand48:
  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.
extern long jrand48(unsigned short xseed[3]) __THROW;
data/spatialindex-1.9.3/include/spatialindex/tools/rand48.h:82:15:  [3] (random) erand48:
  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.
extern double erand48(unsigned short xseed[3]) __THROW;
data/spatialindex-1.9.3/include/spatialindex/tools/rand48.h:84:15:  [3] (random) drand48:
  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.
extern double drand48(void) __THROW;
data/spatialindex-1.9.3/src/storagemanager/RandomEvictionsBuffer.cc:84: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.
    double random;
data/spatialindex-1.9.3/src/storagemanager/RandomEvictionsBuffer.cc:86:14:  [3] (random) drand48:
  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.
    random = drand48();
data/spatialindex-1.9.3/src/storagemanager/RandomEvictionsBuffer.cc:88:76:  [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.
	uint32_t entry = static_cast<uint32_t>(floor(((double) m_buffer.size()) * random));
data/spatialindex-1.9.3/src/tools/Tools.cc:578:9:  [3] (random) jrand48:
  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.
	return jrand48(m_pBuffer);
data/spatialindex-1.9.3/src/tools/Tools.cc:633:9:  [3] (random) erand48:
  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.
	return erand48(xsubi);
data/spatialindex-1.9.3/src/tools/Tools.cc:1064:15:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    tmpName = tmpnam( NULL );
data/spatialindex-1.9.3/src/tools/rand48.cc:80:1:  [3] (random) seed48:
  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.
seed48(unsigned short xseed[3]) __THROW
data/spatialindex-1.9.3/src/tools/rand48.cc:98:1:  [3] (random) nrand48:
  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.
nrand48(unsigned short xseed[3]) __THROW
data/spatialindex-1.9.3/src/tools/rand48.cc:104:1:  [3] (random) mrand48:
  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.
mrand48(void) __THROW
data/spatialindex-1.9.3/src/tools/rand48.cc:111:1:  [3] (random) lrand48:
  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.
lrand48(void) __THROW
data/spatialindex-1.9.3/src/tools/rand48.cc:118:1:  [3] (random) lcong48:
  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.
lcong48(unsigned short p[7]) __THROW
data/spatialindex-1.9.3/src/tools/rand48.cc:129:1:  [3] (random) jrand48:
  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.
jrand48(unsigned short xseed[3]) __THROW
data/spatialindex-1.9.3/src/tools/rand48.cc:136:1:  [3] (random) erand48:
  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.
erand48(unsigned short xseed[3]) __THROW
data/spatialindex-1.9.3/src/tools/rand48.cc:145:1:  [3] (random) drand48:
  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.
drand48(void) __THROW
data/spatialindex-1.9.3/src/tools/rand48.cc:147:9:  [3] (random) erand48:
  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.
	return erand48(__rand48_Seed);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/gtest.h:996:39:  [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.
  void ShuffleTests(internal::Random* random);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-port.h:2055: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.
  const char* const env = getenv(name);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-port.h:2058:10:  [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.
  return getenv(name);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-internal-inl.h:310:37:  [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.
void ShuffleRange(internal::Random* random, int begin, int end,
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-internal-inl.h:334:39:  [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 void Shuffle(internal::Random* random, std::vector<E>* v) {
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-internal-inl.h:335:16:  [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.
  ShuffleRange(random, 0, static_cast<int>(v->size()), v);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-internal-inl.h:817:21:  [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.
  internal::Random* random() { return &random_; }
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-port.cc:345:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  ::InitializeCriticalSection(critical_section_);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-port.cc:360:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  ::EnterCriticalSection(critical_section_);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-port.cc:433:11:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
        ::InitializeCriticalSection(critical_section_);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:2841:48:  [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.
void TestSuite::ShuffleTests(internal::Random* random) {
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:2842:11:  [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.
  Shuffle(random, &test_indices_);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:5302:7:  [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.
      random()->Reseed(static_cast<UInt32>(random_seed_));
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:5661:16:  [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.
  ShuffleRange(random(), 0, last_death_test_suite_ + 1, &test_suite_indices_);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:5664:16:  [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.
  ShuffleRange(random(), last_death_test_suite_ + 1,
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:5669:30:  [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.
    test_suite->ShuffleTests(random());
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:441:9:  [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 (getenv("TZ"))
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:442:26:  [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.
      saved_tz_ = strdup(getenv("TZ"));
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:780:29:  [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.
  testing::internal::Random random(42);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:782:7:  [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.
      random.Generate(0),
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:785:7:  [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.
      random.Generate(testing::internal::Random::kMaxRange + 1),
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:792:29:  [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.
  testing::internal::Random random(12345);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:794:15:  [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.
    EXPECT_LT(random.Generate(kRange), kRange) << " for iteration " << i;
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:809:29:  [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.
  testing::internal::Random random(kSeed);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:811:17:  [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.
    values[i] = random.Generate(kRange);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:814:3:  [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.
  random.Reseed(kSeed);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:816:26:  [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.
    EXPECT_EQ(values[i], random.Generate(kRange)) << " for iteration " << i;
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:881:29:  [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.
  testing::internal::Random random(1);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:884:21:  [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.
      ShuffleRange(&random, -1, 1, &a),
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:887:21:  [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.
      ShuffleRange(&random, 4, 4, &a),
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:890:21:  [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.
      ShuffleRange(&random, 3, 2, &a),
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:893:21:  [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.
      ShuffleRange(&random, 3, 4, &a),
data/spatialindex-1.9.3/include/spatialindex/tools/Tools.h:431: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).
		virtual void open(const std::string& sFileName);
data/spatialindex-1.9.3/include/spatialindex/tools/Tools.h:453: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).
		virtual void open(const std::string& sFileName, FileMode mode = CREATE);
data/spatialindex-1.9.3/src/capi/sidx_api.cc:48: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 message[LAST_ERROR_BUFFER_SIZE];
data/spatialindex-1.9.3/src/capi/sidx_api.cc:49: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 method[LAST_ERROR_BUFFER_SIZE];
data/spatialindex-1.9.3/src/capi/sidx_api.cc:2021:2:  [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(*data, p_data, *length);
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:47: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(m_pData, pData, m_dataLength);
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:79: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(*data, m_pData, m_dataLength);
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:94:2:  [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(&m_id, ptr, sizeof(id_type));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:100:2:  [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(&m_dataLength, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:106: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(m_pData, ptr, m_dataLength);
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:125:2:  [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, &m_id, sizeof(id_type));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:127:2:  [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, &m_dataLength, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:132: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, m_pData, m_dataLength);
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:136:2:  [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, regiondata, regionsize);
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:265:2:  [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(mbr->m_pLow, mbrold.m_pLow, mbrold.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:266:2:  [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(mbr->m_pHigh, mbrold.m_pHigh, mbrold.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:275: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, pData, len);
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:294:2:  [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(mbr->m_pLow, mbrold.m_pLow, mbrold.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:295:2:  [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(mbr->m_pHigh, mbrold.m_pHigh, mbrold.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:877:2:  [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, &u32I, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:883: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, &(e.m_id), sizeof(id_type));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:885: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, &(e.m_startTime), sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:887: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, &(e.m_endTime), sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:891:2:  [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, &m_treeVariant, sizeof(MVRTreeVariant));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:893:2:  [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, &m_fillFactor, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:895:2:  [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, &m_indexCapacity, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:897:2:  [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, &m_leafCapacity, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:899:2:  [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, &m_nearMinimumOverlapFactor, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:901:2:  [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, &m_splitDistributionFactor, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:903:2:  [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, &m_reinsertFactor, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:905:2:  [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, &m_dimension, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:908:2:  [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, &c, sizeof(uint8_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:910:2:  [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, &(m_stats.m_u32Nodes), sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:912:2:  [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, &(m_stats.m_u64TotalData), sizeof(uint64_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:914:2:  [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, &(m_stats.m_u32DeadIndexNodes), sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:916:2:  [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, &(m_stats.m_u32DeadLeafNodes), sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:918:2:  [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, &(m_stats.m_u64Data), sizeof(uint64_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:922:2:  [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, &u32I, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:928: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, &u32I, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:932:2:  [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, &m_strongVersionOverflow, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:936:2:  [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, &m_versionUnderflow, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:938:2:  [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, &m_currentTime, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:942:2:  [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, &u32I, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:948: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, &u32I, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:966:2:  [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(&rootsSize, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:972: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(&(e.m_id), ptr, sizeof(id_type));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:974: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(&(e.m_startTime), ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:976: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(&(e.m_endTime), ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:981:2:  [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(&m_treeVariant, ptr, sizeof(MVRTreeVariant));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:983:2:  [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(&m_fillFactor, ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:985:2:  [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(&m_indexCapacity, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:987:2:  [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(&m_leafCapacity, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:989:2:  [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(&m_nearMinimumOverlapFactor, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:991:2:  [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(&m_splitDistributionFactor, ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:993:2:  [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(&m_reinsertFactor, ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:995:2:  [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(&m_dimension, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:998:2:  [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(&c, ptr, sizeof(uint8_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1001:2:  [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(&(m_stats.m_u32Nodes), ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1003:2:  [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(&(m_stats.m_u64TotalData), ptr, sizeof(uint64_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1005:2:  [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(&(m_stats.m_u32DeadIndexNodes), ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1007:2:  [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(&(m_stats.m_u32DeadLeafNodes), ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1009:2:  [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(&(m_stats.m_u64Data), ptr, sizeof(uint64_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1013:2:  [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(&treeHeightSize, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1019: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(&u32I, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1024:2:  [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(&m_strongVersionOverflow, ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1028:2:  [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(&m_versionUnderflow, ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1030:2:  [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(&m_currentTime, ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1034:2:  [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(&nodesInLevelSize, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1040: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(&u32I, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/MVRTree.cc:1173: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(&nodeType, buffer, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:73:2:  [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(&m_level, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:76:2:  [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(&m_children, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:79:2:  [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(&(m_nodeMBR.m_startTime), ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:81:2:  [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(&(m_nodeMBR.m_endTime), ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:89: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(m_ptrMBR[cChild]->m_pLow, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:91: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(m_ptrMBR[cChild]->m_pHigh, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:93: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(&(m_pIdentifier[cChild]), ptr, sizeof(id_type));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:95: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(&(m_ptrMBR[cChild]->m_startTime), ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:97: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(&(m_ptrMBR[cChild]->m_endTime), ptr, sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:100: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(&(m_pDataLength[cChild]), ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:107: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(m_pData[cChild], ptr, m_pDataLength[cChild]);
data/spatialindex-1.9.3/src/mvrtree/Node.cc:118:2:  [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(m_nodeMBR.m_pLow, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:120:2:  [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(m_nodeMBR.m_pHigh, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:136:2:  [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, &nodeType, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:139:2:  [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, &m_level, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:142:2:  [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, &m_children, sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:145:2:  [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, &(m_nodeMBR.m_startTime), sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:147:2:  [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, &(m_nodeMBR.m_endTime), sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:152: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, m_ptrMBR[cChild]->m_pLow, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:154: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, m_ptrMBR[cChild]->m_pHigh, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:156: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, &(m_pIdentifier[cChild]), sizeof(id_type));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:158: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, &(m_ptrMBR[cChild]->m_startTime), sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:160: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, &(m_ptrMBR[cChild]->m_endTime), sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc: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(ptr, &(m_pDataLength[cChild]), sizeof(uint32_t));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:168: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(ptr, m_pData[cChild], m_pDataLength[cChild]);
data/spatialindex-1.9.3/src/mvrtree/Node.cc:174:2:  [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, m_nodeMBR.m_pLow, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:176:2:  [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, m_nodeMBR.m_pHigh, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/mvrtree/Node.cc:436:6:  [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(data, m_pData[cChild], m_pDataLength[cChild] * sizeof(uint8_t));
data/spatialindex-1.9.3/src/rtree/Node.cc:70:2:  [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(&m_level, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/Node.cc:73:2:  [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(&m_children, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/Node.cc:81: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(m_ptrMBR[u32Child]->m_pLow, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/rtree/Node.cc:83: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(m_ptrMBR[u32Child]->m_pHigh, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/rtree/Node.cc:85: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(&(m_pIdentifier[u32Child]), ptr, sizeof(id_type));
data/spatialindex-1.9.3/src/rtree/Node.cc:88: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(&(m_pDataLength[u32Child]), ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/Node.cc:95: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(m_pData[u32Child], ptr, m_pDataLength[u32Child]);
data/spatialindex-1.9.3/src/rtree/Node.cc:106:2:  [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(m_nodeMBR.m_pLow, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/rtree/Node.cc:108:2:  [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(m_nodeMBR.m_pHigh, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/rtree/Node.cc:124:2:  [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, &nodeType, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/Node.cc:127:2:  [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, &m_level, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/Node.cc:130:2:  [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, &m_children, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/Node.cc: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(ptr, m_ptrMBR[u32Child]->m_pLow, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/rtree/Node.cc:137: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, m_ptrMBR[u32Child]->m_pHigh, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/rtree/Node.cc:139: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, &(m_pIdentifier[u32Child]), sizeof(id_type));
data/spatialindex-1.9.3/src/rtree/Node.cc:142: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, &(m_pDataLength[u32Child]), sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/Node.cc:147: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(ptr, m_pData[u32Child], m_pDataLength[u32Child]);
data/spatialindex-1.9.3/src/rtree/Node.cc:153:2:  [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, m_nodeMBR.m_pLow, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/rtree/Node.cc:155:2:  [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, m_nodeMBR.m_pHigh, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/rtree/RTree.cc:49: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(m_pData, pData, m_dataLength);
data/spatialindex-1.9.3/src/rtree/RTree.cc:81: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(*data, m_pData, m_dataLength);
data/spatialindex-1.9.3/src/rtree/RTree.cc:96:2:  [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(&m_id, ptr, sizeof(id_type));
data/spatialindex-1.9.3/src/rtree/RTree.cc:102:2:  [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(&m_dataLength, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:108: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(m_pData, ptr, m_dataLength);
data/spatialindex-1.9.3/src/rtree/RTree.cc:127:2:  [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, &m_id, sizeof(id_type));
data/spatialindex-1.9.3/src/rtree/RTree.cc:129:2:  [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, &m_dataLength, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:134: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, m_pData, m_dataLength);
data/spatialindex-1.9.3/src/rtree/RTree.cc:138:2:  [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, regiondata, regionsize);
data/spatialindex-1.9.3/src/rtree/RTree.cc:417: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, pData, len);
data/spatialindex-1.9.3/src/rtree/RTree.cc:1149:2:  [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, &m_rootID, sizeof(id_type));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1151:2:  [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, &m_treeVariant, sizeof(RTreeVariant));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1153:2:  [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, &m_fillFactor, sizeof(double));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1155:2:  [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, &m_indexCapacity, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1157:2:  [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, &m_leafCapacity, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1159:2:  [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, &m_nearMinimumOverlapFactor, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1161:2:  [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, &m_splitDistributionFactor, sizeof(double));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1163:2:  [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, &m_reinsertFactor, sizeof(double));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1165:2:  [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, &m_dimension, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1168:2:  [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, &c, sizeof(char));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1170:2:  [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, &(m_stats.m_u32Nodes), sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1172:2:  [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, &(m_stats.m_u64Data), sizeof(uint64_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1174:2:  [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, &(m_stats.m_u32TreeHeight), sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1179: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, &(m_stats.m_nodesInLevel[cLevel]), sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1196:2:  [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(&m_rootID, ptr, sizeof(id_type));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1198:2:  [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(&m_treeVariant, ptr, sizeof(RTreeVariant));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1200:2:  [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(&m_fillFactor, ptr, sizeof(double));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1202:2:  [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(&m_indexCapacity, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1204:2:  [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(&m_leafCapacity, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1206:2:  [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(&m_nearMinimumOverlapFactor, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1208:2:  [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(&m_splitDistributionFactor, ptr, sizeof(double));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1210:2:  [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(&m_reinsertFactor, ptr, sizeof(double));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1212:2:  [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(&m_dimension, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1215:2:  [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(&c, ptr, sizeof(char));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1218:2:  [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(&(m_stats.m_u32Nodes), ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1220:2:  [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(&(m_stats.m_u64Data), ptr, sizeof(uint64_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1222:2:  [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(&(m_stats.m_u32TreeHeight), ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1228: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(&cNodes, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/rtree/RTree.cc:1379: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(&nodeType, buffer, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:46:2:  [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(m_pStartPoint, pStartPoint, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:47:2:  [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(m_pEndPoint, pEndPoint, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:62:2:  [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(m_pStartPoint, startPoint.m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:63:2:  [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(m_pEndPoint, endPoint.m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:73:2:  [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(m_pStartPoint, l.m_pStartPoint, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:74:2:  [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(m_pEndPoint, l.m_pEndPoint, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:88: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(m_pStartPoint, l.m_pStartPoint, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:89: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(m_pEndPoint, l.m_pEndPoint, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:135:2:  [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(&dimension, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:139:2:  [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(m_pStartPoint, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:141:2:  [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(m_pEndPoint, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:151:2:  [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, &m_dimension, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:153:2:  [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, m_pStartPoint, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/LineSegment.cc:155:2:  [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, m_pEndPoint, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:105:2:  [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(m_pCoords, p.m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:106:2:  [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(m_pVCoords, p.m_pVCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:138:2:  [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(m_pCoords, pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:139:2:  [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(m_pVCoords, pVCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:147: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(m_pCoords, p.m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:148: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(m_pVCoords, p.m_pVCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:230:2:  [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(&dimension, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:232:2:  [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(&m_startTime, ptr, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:234:2:  [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(&m_endTime, ptr, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:238:2:  [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(m_pCoords, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:240:2:  [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(m_pVCoords, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:250:2:  [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, &m_dimension, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:252:2:  [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, &m_startTime, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:254:2:  [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, &m_endTime, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:256:2:  [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, m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:258:2:  [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, m_pVCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:268:2:  [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.m_pLow, m_pVCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingPoint.cc:269:2:  [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.m_pHigh, m_pVCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:135:2:  [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(m_pLow, low.m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:136:2:  [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(m_pHigh, high.m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:137:2:  [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(m_pVLow, low.m_pVCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:138:2:  [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(m_pVHigh, high.m_pVCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:166:2:  [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(m_pLow, r.m_pLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:167:2:  [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(m_pHigh, r.m_pHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:168:2:  [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(m_pVLow, r.m_pVLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:169:2:  [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(m_pVHigh, r.m_pVHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:209:2:  [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(m_pLow, pLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:210:2:  [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(m_pHigh, pHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:211:2:  [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(m_pVLow, pVLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:212:2:  [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(m_pVHigh, pVHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:226: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(m_pLow, r.m_pLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:227: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(m_pHigh, r.m_pHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:228: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(m_pVLow, r.m_pVLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:229: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(m_pVHigh, r.m_pVHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1039:2:  [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(&dimension, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1041:2:  [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(&m_startTime, ptr, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1043:2:  [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(&m_endTime, ptr, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1047:2:  [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(m_pLow, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1049:2:  [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(m_pHigh, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1051:2:  [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(m_pVLow, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1053:2:  [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(m_pVHigh, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1063:2:  [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, &m_dimension, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1065:2:  [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, &m_startTime, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1067:2:  [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, &m_endTime, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1070:2:  [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, m_pLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1072:2:  [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, m_pHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1074:2:  [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, m_pVLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1076:2:  [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, m_pVHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1086:2:  [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.m_pLow, m_pVLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/MovingRegion.cc:1087:2:  [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.m_pHigh, m_pVHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Point.cc:45:2:  [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(m_pCoords, pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Point.cc:54:2:  [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(m_pCoords, p.m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Point.cc:67: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(m_pCoords, p.m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Point.cc:109:2:  [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(&dimension, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/Point.cc:113:2:  [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(m_pCoords, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Point.cc:123:2:  [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, &m_dimension, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/Point.cc:125:2:  [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, m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Region.cc:91:2:  [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(m_pLow, pLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Region.cc:92:2:  [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(m_pHigh, pHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Region.cc:106: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(m_pLow, r.m_pLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Region.cc:107: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(m_pHigh, r.m_pHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Region.cc:151:2:  [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(&dimension, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/Region.cc:155:2:  [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(m_pLow, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Region.cc:157:2:  [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(m_pHigh, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Region.cc:167:2:  [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, &m_dimension, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/Region.cc:169:2:  [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, m_pLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/Region.cc:171:2:  [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, m_pHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimePoint.cc:66:2:  [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(m_pCoords, p.m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimePoint.cc:77: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(m_pCoords, p.m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimePoint.cc:124:2:  [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(&dimension, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/TimePoint.cc:126:2:  [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(&m_startTime, ptr, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimePoint.cc:128:2:  [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(&m_endTime, ptr, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimePoint.cc:132:2:  [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(m_pCoords, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimePoint.cc:142:2:  [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, &m_dimension, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/TimePoint.cc:144:2:  [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, &m_startTime, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimePoint.cc:146:2:  [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, &m_endTime, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimePoint.cc:148:2:  [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, m_pCoords, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:92:2:  [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(m_pLow, r.m_pLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:93:2:  [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(m_pHigh, r.m_pHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:104: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(m_pLow, r.m_pLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:105: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(m_pHigh, r.m_pHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:217:2:  [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(&dimension, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:219:2:  [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(&m_startTime, ptr, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:221:2:  [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(&m_endTime, ptr, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:225:2:  [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(m_pLow, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:227:2:  [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(m_pHigh, ptr, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:237:2:  [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, &m_dimension, sizeof(uint32_t));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:239:2:  [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, &m_startTime, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:241:2:  [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, &m_endTime, sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:244:2:  [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, m_pLow, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/spatialindex/TimeRegion.cc:246:2:  [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, m_pHigh, m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/storagemanager/Buffer.cc:81: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(*data, (*it).second->m_pData, len);
data/spatialindex-1.9.3/src/storagemanager/Buffer.h:65:6:  [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(m_pData, d, m_length);
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:174: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).
			m_indexFile.open(sIndexFile.c_str(), mode);
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:175: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).
			m_dataFile.open(sDataFile.c_str(), mode);
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:183: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).
			m_indexFile.open(sIndexFile.c_str(), mode);
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:184: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).
			m_dataFile.open(sDataFile.c_str(), mode);
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:383: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, m_buffer, cLen);
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:418: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(m_buffer, ptr, cLen);
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:476: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(m_buffer, ptr, cLen);
data/spatialindex-1.9.3/src/storagemanager/MemoryStorageManager.cc:78:2:  [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(*data, e->m_pData, len);
data/spatialindex-1.9.3/src/storagemanager/MemoryStorageManager.h:58:6:  [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(m_pData, d, m_length);
data/spatialindex-1.9.3/src/tools/Tools.cc:124:2:  [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(&numberOfProperties, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:133: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(&(v.m_varType), ptr, sizeof(VariantType));
data/spatialindex-1.9.3/src/tools/Tools.cc:140: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(&st, ptr, sizeof(int16_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:146: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(&l, ptr, sizeof(int32_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:152: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(&ll, ptr, sizeof(int64_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:158: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(&b, ptr, sizeof(uint8_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:164: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(&f, ptr, sizeof(float));
data/spatialindex-1.9.3/src/tools/Tools.cc:170: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(&d, ptr, sizeof(double));
data/spatialindex-1.9.3/src/tools/Tools.cc:176: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(&c, ptr, sizeof(char));
data/spatialindex-1.9.3/src/tools/Tools.cc:182: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(&us, ptr, sizeof(uint16_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:188: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(&ul, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:194: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(&ull, ptr, sizeof(uint64_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:200: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(&bl, ptr, sizeof(uint8_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:273:2:  [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, &numberOfProperties, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:280: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, (*it).first.c_str(), strSize);
data/spatialindex-1.9.3/src/tools/Tools.cc: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(ptr, &((*it).second.m_varType), sizeof(VariantType));
data/spatialindex-1.9.3/src/tools/Tools.cc:291: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(ptr, &((*it).second.m_val.iVal), sizeof(int16_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:295: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(ptr, &((*it).second.m_val.lVal), sizeof(int32_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:299: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(ptr, &((*it).second.m_val.llVal), sizeof(int64_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:303: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(ptr, &((*it).second.m_val.bVal), sizeof(uint8_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:307: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(ptr, &((*it).second.m_val.fltVal), sizeof(float));
data/spatialindex-1.9.3/src/tools/Tools.cc:311: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(ptr, &((*it).second.m_val.dblVal), sizeof(double));
data/spatialindex-1.9.3/src/tools/Tools.cc:315: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(ptr, &((*it).second.m_val.cVal), sizeof(char));
data/spatialindex-1.9.3/src/tools/Tools.cc:319: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(ptr, &((*it).second.m_val.uiVal), sizeof(uint16_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:323: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(ptr, &((*it).second.m_val.ulVal), sizeof(uint32_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:327: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(ptr, &((*it).second.m_val.ullVal), sizeof(uint64_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:333: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(ptr, &bl, sizeof(uint8_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:745:2:  [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).
	open(sFileName);
data/spatialindex-1.9.3/src/tools/Tools.cc:748:33:  [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).
void Tools::BufferedFileReader::open(const std::string& sFileName)
data/spatialindex-1.9.3/src/tools/Tools.cc:754:9:  [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).
	m_file.open(sFileName.c_str(), std::ios_base::in | std::ios_base::binary);
data/spatialindex-1.9.3/src/tools/Tools.cc:927:2:  [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).
	open("");
data/spatialindex-1.9.3/src/tools/Tools.cc:933:2:  [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).
	open(sFileName, mode);
data/spatialindex-1.9.3/src/tools/Tools.cc:941:33:  [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).
void Tools::BufferedFileWriter::open(const std::string& sFileName, FileMode mode)
data/spatialindex-1.9.3/src/tools/Tools.cc:948:10:  [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).
		m_file.open(sFileName.c_str(), std::ios_base::out | std::ios_base::binary | std::ios_base::trunc);
data/spatialindex-1.9.3/src/tools/Tools.cc:958:10:  [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).
		m_file.open(sFileName.c_str(), std::ios_base::in | std::ios_base::out | std::ios_base::binary);
data/spatialindex-1.9.3/src/tools/Tools.cc:962:11:  [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).
			m_file.open(sFileName.c_str(), std::ios_base::out | std::ios_base::binary);
data/spatialindex-1.9.3/src/tools/Tools.cc:1070:2:  [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 tmpName[L_tmpnam_s];
data/spatialindex-1.9.3/src/tools/Tools.cc:1082:2:  [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 tmpName[7] = "XXXXXX";
data/spatialindex-1.9.3/src/tools/Tools.cc:1083:6:  [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).
	if (mkstemp(tmpName) == -1)
data/spatialindex-1.9.3/src/tprtree/Node.cc:71:2:  [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(&m_level, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/Node.cc:74:2:  [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(&m_children, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/Node.cc:77:2:  [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(&(m_nodeMBR.m_startTime), ptr, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:88: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(m_ptrMBR[cChild]->m_pLow, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:90: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(m_ptrMBR[cChild]->m_pHigh, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.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(m_ptrMBR[cChild]->m_pVLow, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:94: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(m_ptrMBR[cChild]->m_pVHigh, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:96: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(&(m_ptrMBR[cChild]->m_startTime), ptr, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:100: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(&(m_pIdentifier[cChild]), ptr, sizeof(id_type));
data/spatialindex-1.9.3/src/tprtree/Node.cc:103: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(&(m_pDataLength[cChild]), ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/Node.cc:110: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(m_pData[cChild], ptr, m_pDataLength[cChild]);
data/spatialindex-1.9.3/src/tprtree/Node.cc:121:2:  [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(m_nodeMBR.m_pLow, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:123:2:  [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(m_nodeMBR.m_pHigh, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:125:2:  [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(m_nodeMBR.m_pVLow, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:127:2:  [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(m_nodeMBR.m_pVHigh, ptr, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:143:2:  [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, &nodeType, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/Node.cc:146:2:  [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, &m_level, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/Node.cc:149:2:  [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, &m_children, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/Node.cc:152:2:  [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, &(m_nodeMBR.m_startTime), sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:157: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, m_ptrMBR[cChild]->m_pLow, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:159: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, m_ptrMBR[cChild]->m_pHigh, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.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(ptr, m_ptrMBR[cChild]->m_pVLow, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc: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(ptr, m_ptrMBR[cChild]->m_pVHigh, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:165: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, &(m_ptrMBR[cChild]->m_startTime), sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:168: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, &(m_pIdentifier[cChild]), sizeof(id_type));
data/spatialindex-1.9.3/src/tprtree/Node.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(ptr, &(m_pDataLength[cChild]), sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/Node.cc:176: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(ptr, m_pData[cChild], m_pDataLength[cChild]);
data/spatialindex-1.9.3/src/tprtree/Node.cc:182:2:  [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, m_nodeMBR.m_pLow, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:184:2:  [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, m_nodeMBR.m_pHigh, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:186:2:  [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, m_nodeMBR.m_pVLow, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/Node.cc:188:2:  [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, m_nodeMBR.m_pVHigh, m_pTree->m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:46: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(m_pData, pData, m_dataLength);
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:78: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(*data, m_pData, m_dataLength);
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:93:2:  [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(&m_id, ptr, sizeof(id_type));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:99:2:  [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(&m_dataLength, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:105: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(m_pData, ptr, m_dataLength);
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:124:2:  [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, &m_id, sizeof(id_type));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:126:2:  [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, &m_dataLength, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:131: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, m_pData, m_dataLength);
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:135:2:  [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, regiondata, regionsize);
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:271:2:  [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(mr->m_pLow, mbr.m_pLow, mbr.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:272:2:  [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(mr->m_pHigh, mbr.m_pHigh, mbr.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:273:2:  [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(mr->m_pVLow, vbr.m_pLow, vbr.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:274:2:  [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(mr->m_pVHigh, vbr.m_pHigh, vbr.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:283: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, pData, len);
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:310:2:  [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(mr->m_pLow, mbr.m_pLow, mbr.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:311:2:  [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(mr->m_pHigh, mbr.m_pHigh, mbr.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:312:2:  [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(mr->m_pVLow, vbr.m_pLow, vbr.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:313:2:  [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(mr->m_pVHigh, vbr.m_pHigh, vbr.m_dimension * sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:902:2:  [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, &m_rootID, sizeof(id_type));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:904:2:  [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, &m_treeVariant, sizeof(TPRTreeVariant));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:906:2:  [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, &m_fillFactor, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:908:2:  [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, &m_indexCapacity, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:910:2:  [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, &m_leafCapacity, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:912:2:  [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, &m_nearMinimumOverlapFactor, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:914:2:  [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, &m_splitDistributionFactor, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:916:2:  [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, &m_reinsertFactor, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:918:2:  [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, &m_dimension, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:921:2:  [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, &c, sizeof(char));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:923:2:  [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, &(m_stats.m_nodes), sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:925:2:  [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, &(m_stats.m_data), sizeof(uint64_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:927:2:  [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, &m_currentTime, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:929:2:  [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, &m_horizon, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:931:2:  [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, &(m_stats.m_treeHeight), sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:936: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, &(m_stats.m_nodesInLevel[cLevel]), sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:953:2:  [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(&m_rootID, ptr, sizeof(id_type));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:955:2:  [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(&m_treeVariant, ptr, sizeof(TPRTreeVariant));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:957:2:  [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(&m_fillFactor, ptr, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:959:2:  [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(&m_indexCapacity, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:961:2:  [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(&m_leafCapacity, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:963:2:  [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(&m_nearMinimumOverlapFactor, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:965:2:  [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(&m_splitDistributionFactor, ptr, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:967:2:  [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(&m_reinsertFactor, ptr, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:969:2:  [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(&m_dimension, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:972:2:  [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(&c, ptr, sizeof(char));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:975:2:  [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(&(m_stats.m_nodes), ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:977:2:  [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(&(m_stats.m_data), ptr, sizeof(uint64_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:979:2:  [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(&m_currentTime, ptr, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:981:2:  [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(&m_horizon, ptr, sizeof(double));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:983:2:  [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(&(m_stats.m_treeHeight), ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:989: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(&cNodes, ptr, sizeof(uint32_t));
data/spatialindex-1.9.3/src/tprtree/TPRTree.cc:1144: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(&nodeType, buffer, sizeof(uint32_t));
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-port.h:2028:10:  [2] (misc) fopen:
  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).
  return fopen(path, mode);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample2.cc:42: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(clone, a_c_string, len + 1);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-death-test.cc:348: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[256];
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-death-test.cc:771: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 executable_path[_MAX_PATH + 1];  // NOLINT
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-death-test.cc:1320: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).
  const int cwd_fd = open(".", O_RDONLY);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-filepath.cc:101: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-filepath.cc:104: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-port.cc:222:18:  [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).
  const int fd = open("/proc/self/as", O_RDONLY);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-port.cc:1003: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, regex, len);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-port.cc:1077: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 temp_dir_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-port.cc:1078: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 temp_file_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-port.cc:1112:29:  [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).
    const int captured_fd = mkstemp(name_template);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-printers.cc:66: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 text[5] = "";
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:881:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      MultiByteToWideChar(CP_ACP, 0, ansi, length, nullptr, 0);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:883:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:1685: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 error_text[kBufSize] = { '\0' };
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:1769: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 str[5];  // Big enough for the largest valid code point.
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:4460: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 tmp[1024];
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:4466: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 line[1024];
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-filepath-test.cc:358: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 current_drive[_MAX_PATH];  // NOLINT
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-filepath-test.cc:375: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.
      char non_drive[_MAX_PATH];  // NOLINT
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-printers-test.cc:120:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  UnprintableInFoo() : z_(0) { memcpy(xy_, "\xEF\x12\x0\x0\x34\xAB\x0\x0", 8); }
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-printers-test.cc:123: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 xy_[8];
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-printers-test.cc:1038: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 array[257];
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:7247: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.
  const char a[3] = "hi";
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/gtest_unittest.cc:7331: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.
  const char a[2][3] = { "hi", "lo" };
data/spatialindex-1.9.3/test/gtest/sidx_api_test.h:14:1:  [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 pszData[5];
data/spatialindex-1.9.3/test/gtest/sidx_api_test.h:26:7:  [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(pszData, "TEST");
data/spatialindex-1.9.3/test/mvrtree/Generator.cc:65:27:  [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).
	size_t numberOfObjects = atoi(argv[1]);
data/spatialindex-1.9.3/test/mvrtree/MVRTreeLoad.cc:97:67:  [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).
		ISpatialIndex* tree = MVRTree::createNewMVRTree(*diskfile, 0.7, atoi(argv[3]), atoi(argv[3]), 2, SpatialIndex::MVRTree::RV_RSTAR, indexIdentifier);
data/spatialindex-1.9.3/test/mvrtree/MVRTreeLoad.cc:97:82:  [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).
		ISpatialIndex* tree = MVRTree::createNewMVRTree(*diskfile, 0.7, atoi(argv[3]), atoi(argv[3]), 2, SpatialIndex::MVRTree::RV_RSTAR, indexIdentifier);
data/spatialindex-1.9.3/test/rtree/Generator.cc:61:28:  [2] (integer) atol:
  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).
	size_t simulationLength = atol(argv[2]);
data/spatialindex-1.9.3/test/rtree/Generator.cc:62:27:  [2] (integer) atol:
  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).
	size_t numberOfObjects = atol(argv[1]);
data/spatialindex-1.9.3/test/rtree/RTreeBulkLoad.cc:44:9:  [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).
		m_fin.open(inputFile.c_str());
data/spatialindex-1.9.3/test/rtree/RTreeBulkLoad.cc:143:48:  [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).
			RTree::BLM_STR, stream, *file, utilization, atoi(argv[3]), atoi(argv[3]), 2, SpatialIndex::RTree::RV_RSTAR, indexIdentifier);
data/spatialindex-1.9.3/test/rtree/RTreeBulkLoad.cc:143:63:  [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).
			RTree::BLM_STR, stream, *file, utilization, atoi(argv[3]), atoi(argv[3]), 2, SpatialIndex::RTree::RV_RSTAR, indexIdentifier);
data/spatialindex-1.9.3/test/rtree/RTreeLoad.cc:97:59:  [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).
		ISpatialIndex* tree = RTree::createNewRTree(*file, 0.7, atoi(argv[3]), atoi(argv[3]), 2, SpatialIndex::RTree::RV_RSTAR, indexIdentifier);
data/spatialindex-1.9.3/test/rtree/RTreeLoad.cc:97:74:  [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).
		ISpatialIndex* tree = RTree::createNewRTree(*file, 0.7, atoi(argv[3]), atoi(argv[3]), 2, SpatialIndex::RTree::RV_RSTAR, indexIdentifier);
data/spatialindex-1.9.3/test/tprtree/Generator.cc:50:9:  [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).
			ds = atoi(argv[i]);
data/spatialindex-1.9.3/test/tprtree/Generator.cc:60:9:  [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).
			sl = atoi(argv[i]);
data/spatialindex-1.9.3/test/tprtree/Generator.cc:80:10:  [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).
			mui = atoi(argv[i]);
data/spatialindex-1.9.3/test/tprtree/TPRTreeLoad.cc:87:63:  [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).
		ISpatialIndex* tree = TPRTree::createNewTPRTree(*file, 0.7, atoi(argv[3]), atoi(argv[3]), 2, SpatialIndex::TPRTree::TPRV_RSTAR, 20, indexIdentifier);
data/spatialindex-1.9.3/test/tprtree/TPRTreeLoad.cc:87:78:  [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).
		ISpatialIndex* tree = TPRTree::createNewTPRTree(*file, 0.7, atoi(argv[3]), atoi(argv[3]), 2, SpatialIndex::TPRTree::TPRV_RSTAR, 20, indexIdentifier);
data/spatialindex-1.9.3/src/capi/sidx_api.cc:151:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(last_error.message, message, LAST_ERROR_BUFFER_SIZE - 1);
data/spatialindex-1.9.3/src/capi/sidx_api.cc:152:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(last_error.method, method, LAST_ERROR_BUFFER_SIZE - 1);
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:220:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		m_indexFile.read(reinterpret_cast<char*>(&m_pageSize), sizeof(uint32_t));
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:224:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		m_indexFile.read(reinterpret_cast<char*>(&m_nextPage), sizeof(id_type));
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:239:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		m_indexFile.read(reinterpret_cast<char*>(&count), sizeof(uint32_t));
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:245:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			m_indexFile.read(reinterpret_cast<char*>(&page), sizeof(id_type));
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:252:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		m_indexFile.read(reinterpret_cast<char*>(&count), sizeof(uint32_t));
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:260:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			m_indexFile.read(reinterpret_cast<char*>(&id), sizeof(id_type));
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:264:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			m_indexFile.read(reinterpret_cast<char*>(&(e->m_length)), sizeof(uint32_t));
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:269:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			m_indexFile.read(reinterpret_cast<char*>(&count2), sizeof(uint32_t));
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:275:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				m_indexFile.read(reinterpret_cast<char*>(&page), sizeof(id_type));
data/spatialindex-1.9.3/src/storagemanager/DiskStorageManager.cc:378:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		m_dataFile.read(reinterpret_cast<char*>(m_buffer), m_pageSize);
data/spatialindex-1.9.3/src/tools/Tools.cc:788:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_file.read(reinterpret_cast<char*>(&ret), sizeof(uint8_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:802:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_file.read(reinterpret_cast<char*>(&ret), sizeof(uint16_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:816:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_file.read(reinterpret_cast<char*>(&ret), sizeof(uint32_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:830:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_file.read(reinterpret_cast<char*>(&ret), sizeof(uint64_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:844:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_file.read(reinterpret_cast<char*>(&ret), sizeof(float));
data/spatialindex-1.9.3/src/tools/Tools.cc:858:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_file.read(reinterpret_cast<char*>(&ret), sizeof(double));
data/spatialindex-1.9.3/src/tools/Tools.cc:872:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_file.read(reinterpret_cast<char*>(&ret), sizeof(bool));
data/spatialindex-1.9.3/src/tools/Tools.cc:886:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_file.read(reinterpret_cast<char*>(&len), sizeof(uint32_t));
data/spatialindex-1.9.3/src/tools/Tools.cc:894:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_file.read(reinterpret_cast<char*>(buf), len * sizeof(std::string::value_type));
data/spatialindex-1.9.3/src/tools/Tools.cc:913:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_file.read(reinterpret_cast<char*>(*pData), u32Len);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-port.h:2017:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  return strncpy(dest, src, n);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-port.h:2039:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return static_cast<int>(read(fd, buf, count));
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-type-util.h:66: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).
  if (s.compare(0, strlen(prefix), prefix) == 0) {
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-type-util.h:67:47:  [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).
    std::string::size_type end = s.find("::", strlen(prefix));
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-type-util.h:70: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).
      s.erase(strlen("std"), end - strlen("std"));
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/include/gtest/internal/gtest-type-util.h:70:36:  [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).
      s.erase(strlen("std"), end - strlen("std"));
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample2.cc:40:22:  [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).
  const size_t len = strlen(a_c_string);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/samples/sample2.h:74:61:  [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).
  size_t Length() const { return c_string_ == nullptr ? 0 : strlen(c_string_); }
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-death-test.cc:934:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          status_zx = stderr_socket_.read(
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-port.cc:741:33:  [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).
  const size_t full_regex_len = strlen(regex) + 10;
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-port.cc:991:22:  [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).
  const size_t len = strlen(regex);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-printers.cc:337: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).
    PrintCharsAsStringTo(s, strlen(s), os);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest-printers.cc:354:29:  [1] (buffer) wcslen:
  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).
    PrintCharsAsStringTo(s, wcslen(s), os);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:879:22:  [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).
  const int length = strlen(ansi);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:1833:34:  [1] (buffer) wcslen:
  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).
    num_chars = static_cast<int>(wcslen(str));
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:3756:32:  [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).
      segment = next_segment + strlen("]]>");
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:4364:18:  [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).
  result.reserve(strlen(str) + 1);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:5722: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).
  const size_t prefix_len = strlen(prefix);
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/src/gtest.cc:6147:21:  [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).
  else if (temp_dir[strlen(temp_dir) - 1] == '\\')
data/spatialindex-1.9.3/test/gtest/gtest-1.10.0/test/googletest-printers-test.cc:845:20:  [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.
  EXPECT_TRUE(std::equal(a, a + kSize, numbers.begin()));
data/spatialindex-1.9.3/test/gtest/sidx_api_test.h:33:71:  [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).
      Index_InsertData(idx, nId, min, max, nDims, (uint8_t *)pszData, strlen(pszData) + 1);

ANALYSIS SUMMARY:

Hits = 544
Lines analyzed = 83181 in approximately 1.94 seconds (42785 lines/second)
Physical Source Lines of Code (SLOC) = 53313
Hits@level = [0] 180 [1]  43 [2] 436 [3]  55 [4]  10 [5]   0
Hits@level+ = [0+] 724 [1+] 544 [2+] 501 [3+]  65 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 13.5802 [1+] 10.2039 [2+] 9.39733 [3+] 1.21921 [4+] 0.187572 [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.