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/python-pyclustering-0.10.1.2/ccore/bvt/shared-test.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/bvt/static-test.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/external/include/gtest/gtest.h
Examining data/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/agglomerative.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/bsas.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/bsas_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/center_initializer.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/clique.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/clique_block.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/clique_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/cluster_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/cure.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/cure_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/dbscan.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/dbscan_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/elbow.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/elbow_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/fcm.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/fcm_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/gmeans.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/gmeans_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/hsyncnet.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/kmeans.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/kmeans_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/kmeans_plus_plus.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/kmedians.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/kmedians_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/kmedoids.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/kmedoids_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/mbsas.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/mbsas_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/optics.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/optics_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/optics_descriptor.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/ordering_analyser.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/random_center_initializer.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/rock.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/silhouette.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/silhouette_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/silhouette_ksearch.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/silhouette_ksearch_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/somsc.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/somsc_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/syncnet.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/ttsas.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/ttsas_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/xmeans.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/cluster/xmeans_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/adjacency.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/adjacency_bit_matrix.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/adjacency_connector.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/adjacency_factory.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/adjacency_list.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/adjacency_matrix.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/adjacency_weight_list.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/dynamic_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/ensemble_data.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/kdnode.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/kdtree.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/kdtree_balanced.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/container/kdtree_searcher.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/definitions.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/differential/differ_factor.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/differential/differ_state.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/differential/equation.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/differential/runge_kutta_4.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/differential/runge_kutta_fehlberg_45.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/differential/solve_type.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/agglomerative_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/bsas_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/clique_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/cure_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/dbscan_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/elbow_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/fcm_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/gmeans_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/hhn_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/hsyncnet_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/interface_property.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/kmeans_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/kmedians_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/kmedoids_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/legion_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/mbsas_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/metric_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/optics_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/pcnn_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/pyclustering_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/pyclustering_package.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/rock_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/silhouette_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/som_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/sync_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/syncnet_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/syncpr_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/ttsas_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/interface/xmeans_interface.h
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/nnet/dynamic_analyser.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/nnet/hhn.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/nnet/legion.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/nnet/network.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/nnet/pcnn.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/nnet/som.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/nnet/sync.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/nnet/syncpr.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/parallel/parallel.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/parallel/spinlock.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/parallel/task.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/parallel/thread_executor.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/parallel/thread_pool.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/utils/algorithm.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/utils/linalg.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/utils/math.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/utils/metric.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/utils/random.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/utils/stats.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/utils/traits.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/agglomerative.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/bsas.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/clique.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/clique_block.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/cluster_data.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/cure.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/dbscan.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/fcm.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/gmeans.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/hsyncnet.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/kmeans.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/kmeans_data.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/kmeans_plus_plus.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/kmedians.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/kmedoids.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/mbsas.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/optics.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/optics_descriptor.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/ordering_analyser.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/random_center_initializer.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/rock.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/silhouette.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/silhouette_ksearch.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/silhouette_ksearch_data.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/somsc.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/syncnet.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/ttsas.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/cluster/xmeans.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/container/adjacency_bit_matrix.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/container/adjacency_connector.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/container/adjacency_factory.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/container/adjacency_list.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/container/adjacency_matrix.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/container/adjacency_weight_list.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/container/kdnode.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/container/kdtree.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/container/kdtree_balanced.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/container/kdtree_searcher.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/differential/differ_factor.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/agglomerative_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/bsas_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/clique_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/cure_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/dbscan_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/elbow_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/fcm_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/gmeans_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/hhn_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/hsyncnet_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/interface_property.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/kmeans_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/kmedians_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/kmedoids_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/legion_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/mbsas_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/metric_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/optics_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/pcnn_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/pyclustering_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/pyclustering_package.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/rock_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/silhouette_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/som_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/sync_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/syncnet_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/syncpr_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/ttsas_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/interface/xmeans_interface.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/nnet/dynamic_analyser.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/nnet/hhn.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/nnet/legion.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/nnet/pcnn.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/nnet/som.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/nnet/sync.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/nnet/syncpr.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/parallel/spinlock.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/parallel/task.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/parallel/thread_executor.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/parallel/thread_pool.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/utils/linalg.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/utils/math.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/utils/metric.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/utils/random.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/src/utils/stats.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/answer.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/answer_reader.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/answer_reader.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/main.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/samples.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/samples.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utenv_check.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utenv_check.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utenv_utils.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utenv_utils.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-adjacency.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-adjacency.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-adjacency_bit_matrix.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-adjacency_connector.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-adjacency_list.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-adjacency_matrix.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-adjacency_weight_list.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-agglomerative.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-bsas.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-clique.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-cure.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-dbscan.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-differential.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-dynamic_analyser.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-elbow.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-elbow.hpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-fcm.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-hhn.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-hsyncnet.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-agglomerative.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-bsas.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-clique.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-cure.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-dbscan.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-elbow.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-fcm.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-gmeans.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-hhn.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-hsyncnet.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-kmeans.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-kmedians.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-kmedoids.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-legion.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-mbsas.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-metric.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-optics.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-pcnn.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-pyclustering.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-silhouette.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-som.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-sync.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-syncnet.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-syncpr.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-ttsas.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-xmeans.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-kdtree.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-kmeans.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-kmeans_plus_plus.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-kmedians.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-kmedoids.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-legion.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-linalg.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-mbsas.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-optics.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-ordering_analyser.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-parallel_for.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-pcnn.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-random_center_initializer.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-rock.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-som.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-somsc.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-spinlock.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-stats.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-sync.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-syncnet.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-syncpr.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-thread_pool.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-ttsas.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-utils-algorithm.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-utils-metric.cpp
Examining data/python-pyclustering-0.10.1.2/ccore/tst/utest-xmeans.cpp

FINAL RESULTS:

data/python-pyclustering-0.10.1.2/ccore/external/include/gtest/gtest.h:2868: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/python-pyclustering-0.10.1.2/ccore/external/include/gtest/gtest.h:2940: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/python-pyclustering-0.10.1.2/ccore/external/include/gtest/gtest.h:2942: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/python-pyclustering-0.10.1.2/ccore/external/include/gtest/gtest.h:8322: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:1623: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:4119: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:4138: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:4145: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/python-pyclustering-0.10.1.2/ccore/bvt/shared-test.cpp:73:12:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    return LoadLibrary("pyclustering.dll");
data/python-pyclustering-0.10.1.2/ccore/external/include/gtest/gtest.h:2906: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/python-pyclustering-0.10.1.2/ccore/external/include/gtest/gtest.h:2909: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/python-pyclustering-0.10.1.2/ccore/external/include/gtest/gtest.h:18306: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:712: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:733: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:734: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:1202: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:3947:47:  [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 TestCase::ShuffleTests(internal::Random* random) {
data/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:3948: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:5777: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(random_seed_);
data/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:6087: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_case_ + 1, &test_case_indices_);
data/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:6090: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_case_ + 1,
data/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:6095:34:  [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_cases_[i]->ShuffleTests(random());
data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/nnet/hhn.hpp:29:38:  [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.
using namespace pyclustering::utils::random;
data/python-pyclustering-0.10.1.2/ccore/include/pyclustering/utils/random.hpp:17: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.
namespace random {
data/python-pyclustering-0.10.1.2/ccore/src/utils/random.cpp:19: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.
namespace random {
data/python-pyclustering-0.10.1.2/ccore/external/include/gtest/gtest.h:2880: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:2328:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:2331:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:2841: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:2925: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:6808: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:7224: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:7503: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:7941: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:7944: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:8321: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:8651: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:8728: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:8729: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:8766: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:9074: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/python-pyclustering-0.10.1.2/ccore/src/nnet/hhn.cpp:363:19:  [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_stream.open(m_filename.c_str(), std::ifstream::in);
data/python-pyclustering-0.10.1.2/ccore/bvt/shared-test.cpp:132:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(version) == 0) {
data/python-pyclustering-0.10.1.2/ccore/external/include/gtest/gtest.h:2869: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/python-pyclustering-0.10.1.2/ccore/external/include/gtest/gtest.h:2891: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:2326: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:2986: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:4740: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:4905: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:6148: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:8385: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:8639: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:9328: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/python-pyclustering-0.10.1.2/ccore/external/src/gtest/gtest-all.cpp:9345: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/python-pyclustering-0.10.1.2/ccore/include/pyclustering/nnet/hhn.hpp:547:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(hhn_dynamic & p_dynamic);
data/python-pyclustering-0.10.1.2/ccore/src/interface/hhn_interface.cpp:115:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    hhn_dynamic_reader(p_filename).read(*output_dynamic);
data/python-pyclustering-0.10.1.2/ccore/src/nnet/hhn.cpp:362:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void hhn_dynamic_reader::read(hhn_dynamic & p_dynamic) {
data/python-pyclustering-0.10.1.2/ccore/tst/answer_reader.cpp:47:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
answer answer_reader::read(const std::string & p_path) {
data/python-pyclustering-0.10.1.2/ccore/tst/answer_reader.cpp:84:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
answer answer_reader::read(const SAMPLE_SIMPLE p_sample) {
data/python-pyclustering-0.10.1.2/ccore/tst/answer_reader.cpp:85:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read(SIMPLE_ANSWER_MAP.at(p_sample));
data/python-pyclustering-0.10.1.2/ccore/tst/answer_reader.hpp:26:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    static answer read(const std::string & p_path);
data/python-pyclustering-0.10.1.2/ccore/tst/answer_reader.hpp:28:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    static answer read(const SAMPLE_SIMPLE p_sample);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:155:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:166:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01), 2);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:171:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01), 10);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:176:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:193:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02), 3);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:198:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02), 4);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:203:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02), 10);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:208:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_03));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:213:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_05));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:218:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_06));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:223:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_07));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:228:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_08));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:233:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_09));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:238:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_10));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:243:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_11));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:248:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_12));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-gmeans.cpp:253:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_13));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-hhn.cpp:255:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    hhn_dynamic_reader(filename).read(loaded_dynamic);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-pyclustering.cpp:91: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).
    ASSERT_EQ(std::strlen(message) + 1, package->size);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-pyclustering.cpp:102: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).
    ASSERT_EQ(std::strlen(message) + 1, package->size);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-pyclustering.cpp:113:20:  [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).
    ASSERT_EQ(std::wcslen(message) + 1, package->size);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-pyclustering.cpp:124:20:  [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).
    ASSERT_EQ(std::wcslen(message) + 1, package->size);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-interface-silhouette.cpp:30:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    answer ans = answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01);
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:55:115:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_scores(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:59:115:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_scores(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:63:115:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_scores(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_03), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_03));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:67:115:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_scores(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_04), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_04));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:71:115:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_scores(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_05), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_05));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:75:115:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_scores(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_06), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_06));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:79:115:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_scores(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_07), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_07));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:83:115:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_scores(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_08), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_08));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:88:125:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_score_data_types(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:92:125:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_score_data_types(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:96:125:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_score_data_types(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_03), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_03));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:100:125:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_score_data_types(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_04), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_04));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:104:125:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_score_data_types(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_05), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_05));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:108:125:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_score_data_types(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_06), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_06));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:112:125:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_score_data_types(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_07), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_07));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette.cpp:116:125:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_score_data_types(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_08), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_08));
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:60:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:65:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:70:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_01),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:75:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:80:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:85:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_02),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:90:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_03), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_03),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:95:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_05), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_05),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:100:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_06), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_06),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:105:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_07), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_07),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:110:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_08), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_08),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:115:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_10), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_10),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:120:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_11), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_11),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:125:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_12), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_12),
data/python-pyclustering-0.10.1.2/ccore/tst/utest-silhouette_ksearch.cpp:130:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template_correct_ksearch(simple_sample_factory::create_sample(SAMPLE_SIMPLE::SAMPLE_SIMPLE_13), answer_reader::read(SAMPLE_SIMPLE::SAMPLE_SIMPLE_13),

ANALYSIS SUMMARY:

Hits = 116
Lines analyzed = 69133 in approximately 1.71 seconds (40471 lines/second)
Physical Source Lines of Code (SLOC) = 38907
Hits@level = [0]  54 [1]  74 [2]  17 [3]  17 [4]   8 [5]   0
Hits@level+ = [0+] 170 [1+] 116 [2+]  42 [3+]  25 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 4.36939 [1+] 2.98147 [2+] 1.0795 [3+] 0.642558 [4+] 0.205619 [5+]   0
Dot directories skipped = 2 (--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.