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/ensmallen-2.15.1/include/ensmallen.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ada_bound/ada_bound.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ada_bound/ada_bound_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ada_bound/ada_bound_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ada_bound/ams_bound_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ada_delta/ada_delta.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ada_delta/ada_delta_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ada_delta/ada_delta_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ada_grad/ada_grad.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ada_grad/ada_grad_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ada_grad/ada_grad_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/adam/adam.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/adam/adam_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/adam/adam_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/adam/adamax_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/adam/amsgrad_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/adam/nadam_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/adam/nadamax_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/adam/optimisticadam_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/bigbatch_sgd/backtracking_line_search.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/bigbatch_sgd/bigbatch_sgd.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/bigbatch_sgd/bigbatch_sgd_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/callbacks/callbacks.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/callbacks/early_stop_at_min_loss.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/callbacks/print_loss.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/callbacks/progress_bar.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/callbacks/report.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/callbacks/store_best_coordinates.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/callbacks/timer_stop.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/callbacks/traits.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/cmaes/cmaes.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/cmaes/cmaes_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/cmaes/full_selection.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/cmaes/random_selection.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/cne/cne.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/cne/cne_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/config.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/de/de.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/de/de_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ens_version.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/eve/eve.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/eve/eve_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ftml/ftml.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ftml/ftml_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/ftml/ftml_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/function/add_evaluate.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/function/add_gradient.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/function/add_separable_evaluate.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/function/add_separable_evaluate_with_gradient.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/function/add_separable_gradient.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/function/arma_traits.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/function/sfinae_utility.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/function/static_checks.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/function/traits.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/atoms.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/constr_lpball.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/constr_structure_group.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/frank_wolfe.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/frank_wolfe_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/func_sq.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/line_search/line_search.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/line_search/line_search_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/proximal/proximal.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/proximal/proximal_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/update_classic.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/update_full_correction.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/update_linesearch.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/fw/update_span.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/gradient_descent/gradient_descent.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/gradient_descent/gradient_descent_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/grid_search/grid_search.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/grid_search/grid_search_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/iqn/iqn.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/iqn/iqn_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/katyusha/katyusha.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/katyusha/katyusha_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/lbfgs/lbfgs.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/log.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/lookahead/lookahead.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/lookahead/lookahead_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/nsga2/nsga2.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/nsga2/nsga2_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/padam/padam.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/padam/padam_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/parallel_sgd/decay_policies/constant_step.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/parallel_sgd/decay_policies/exponential_backoff.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/parallel_sgd/parallel_sgd.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/parallel_sgd/parallel_sgd_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/ackley_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/ackley_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/aug_lagrangian_test_functions.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/beale_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/beale_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/booth_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/booth_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/bukin_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/bukin_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/colville_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/colville_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/cross_in_tray_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/cross_in_tray_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/drop_wave_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/drop_wave_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/easom_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/easom_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/eggholder_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/eggholder_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/fonseca_fleming_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/fw_test_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/generalized_rosenbrock_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/goldstein_price_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/goldstein_price_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/gradient_descent_test_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/gradient_descent_test_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/himmelblau_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/himmelblau_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/holder_table_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/holder_table_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/levy_function_n13.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/levy_function_n13_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/logistic_regression_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/logistic_regression_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/matyas_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/matyas_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/mc_cormick_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/mc_cormick_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/problems.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/rastrigin_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/rastrigin_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/rosenbrock_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/rosenbrock_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/rosenbrock_wood_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/rosenbrock_wood_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/schaffer_function_n1.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/schaffer_function_n2.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/schaffer_function_n2_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/schaffer_function_n4.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/schaffer_function_n4_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/schwefel_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/schwefel_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/sgd_test_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/sgd_test_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/softmax_regression_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/softmax_regression_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/sparse_test_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/sparse_test_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/sphere_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/sphere_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/styblinski_tang_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/three_hump_camel_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/three_hump_camel_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/wood_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/problems/wood_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/pso/init_policies/default_init.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/pso/pso.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/pso/pso_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/pso/update_policies/lbest_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/qhadam/qhadam.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/qhadam/qhadam_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/qhadam/qhadam_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/rmsprop/rmsprop.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/rmsprop/rmsprop_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sa/exponential_schedule.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sa/sa.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sa/sa_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sarah/sarah.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sarah/sarah_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sarah/sarah_plus_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sarah/sarah_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/scd/descent_policies/cyclic_descent.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/scd/descent_policies/greedy_descent.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/scd/descent_policies/random_descent.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/scd/scd.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/scd/scd_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sdp/lin_alg.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sdp/lrsdp.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sdp/lrsdp_function.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sdp/lrsdp_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sdp/primal_dual.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sdp/primal_dual_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sdp/sdp.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sdp/sdp_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgd/decay_policies/no_decay.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgd/sgd.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgd/sgd_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgd/update_policies/gradient_clipping.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgd/update_policies/momentum_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgd/update_policies/nesterov_momentum_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgd/update_policies/quasi_hyperbolic_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgd/update_policies/vanilla_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgdr/cyclical_decay.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgdr/sgdr.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgdr/sgdr_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgdr/snapshot_sgdr.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/sgdr/snapshot_sgdr_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/smorms3/smorms3.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/smorms3/smorms3_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/smorms3/smorms3_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/spalera_sgd/spalera_sgd.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/spalera_sgd/spalera_sgd_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/spalera_sgd/spalera_stepsize.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/spsa/spsa.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/spsa/spsa_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/svrg/barzilai_borwein_decay.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/svrg/svrg.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/svrg/svrg_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/svrg/svrg_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/swats/swats.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/swats/swats_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/swats/swats_update.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/utility/any.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/utility/arma_traits.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/wn_grad/wn_grad.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/wn_grad/wn_grad_impl.hpp Examining data/ensmallen-2.15.1/include/ensmallen_bits/wn_grad/wn_grad_update.hpp Examining data/ensmallen-2.15.1/tests/ada_bound_test.cpp Examining data/ensmallen-2.15.1/tests/ada_delta_test.cpp Examining data/ensmallen-2.15.1/tests/ada_grad_test.cpp Examining data/ensmallen-2.15.1/tests/adam_test.cpp Examining data/ensmallen-2.15.1/tests/aug_lagrangian_test.cpp Examining data/ensmallen-2.15.1/tests/bigbatch_sgd_test.cpp Examining data/ensmallen-2.15.1/tests/callbacks_test.cpp Examining data/ensmallen-2.15.1/tests/catch.hpp Examining data/ensmallen-2.15.1/tests/cmaes_test.cpp Examining data/ensmallen-2.15.1/tests/cne_test.cpp Examining data/ensmallen-2.15.1/tests/de_test.cpp Examining data/ensmallen-2.15.1/tests/eve_test.cpp Examining data/ensmallen-2.15.1/tests/frankwolfe_test.cpp Examining data/ensmallen-2.15.1/tests/ftml_test.cpp Examining data/ensmallen-2.15.1/tests/function_test.cpp Examining data/ensmallen-2.15.1/tests/gradient_descent_test.cpp Examining data/ensmallen-2.15.1/tests/grid_search_test.cpp Examining data/ensmallen-2.15.1/tests/iqn_test.cpp Examining data/ensmallen-2.15.1/tests/katyusha_test.cpp Examining data/ensmallen-2.15.1/tests/lbfgs_test.cpp Examining data/ensmallen-2.15.1/tests/line_search_test.cpp Examining data/ensmallen-2.15.1/tests/lookahead_test.cpp Examining data/ensmallen-2.15.1/tests/lrsdp_test.cpp Examining data/ensmallen-2.15.1/tests/main.cpp Examining data/ensmallen-2.15.1/tests/momentum_sgd_test.cpp Examining data/ensmallen-2.15.1/tests/nesterov_momentum_sgd_test.cpp Examining data/ensmallen-2.15.1/tests/nsga2_test.cpp Examining data/ensmallen-2.15.1/tests/parallel_sgd_test.cpp Examining data/ensmallen-2.15.1/tests/proximal_test.cpp Examining data/ensmallen-2.15.1/tests/pso_test.cpp Examining data/ensmallen-2.15.1/tests/quasi_hyperbolic_momentum_sgd_test.cpp Examining data/ensmallen-2.15.1/tests/rmsprop_test.cpp Examining data/ensmallen-2.15.1/tests/sa_test.cpp Examining data/ensmallen-2.15.1/tests/sarah_test.cpp Examining data/ensmallen-2.15.1/tests/scd_test.cpp Examining data/ensmallen-2.15.1/tests/sdp_primal_dual_test.cpp Examining data/ensmallen-2.15.1/tests/sgd_test.cpp Examining data/ensmallen-2.15.1/tests/sgdr_test.cpp Examining data/ensmallen-2.15.1/tests/smorms3_test.cpp Examining data/ensmallen-2.15.1/tests/snapshot_ensembles.cpp Examining data/ensmallen-2.15.1/tests/spalera_sgd_test.cpp Examining data/ensmallen-2.15.1/tests/spsa_test.cpp Examining data/ensmallen-2.15.1/tests/svrg_test.cpp Examining data/ensmallen-2.15.1/tests/swats_test.cpp Examining data/ensmallen-2.15.1/tests/test_function_tools.hpp Examining data/ensmallen-2.15.1/tests/wn_grad_test.cpp FINAL RESULTS: data/ensmallen-2.15.1/include/ensmallen_bits/cne/cne_impl.hpp:228:9: [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. if (random > 0.5) data/ensmallen-2.15.1/tests/catch.hpp:3159:10: [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. auto random( T const& first, T const& last ) -> Generator<T> { data/ensmallen-2.15.1/tests/catch.hpp:3166:10: [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. auto random( size_t size ) -> Generator<T> { data/ensmallen-2.15.1/tests/catch.hpp:9077:18: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. std::srand( config.rngSeed() ); data/ensmallen-2.15.1/tests/catch.hpp:1432:13: [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 timeStamp[timeStampSize]; data/ensmallen-2.15.1/tests/catch.hpp:4045:29: [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. alignas(alignof(T)) char storage[sizeof(T)]; data/ensmallen-2.15.1/tests/catch.hpp:4504:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char line[CATCH_CONFIG_CONSOLE_WIDTH] = {0}; data/ensmallen-2.15.1/tests/catch.hpp:5065:14: [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 open(); data/ensmallen-2.15.1/tests/catch.hpp:8539:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&i, &f, sizeof(f)); data/ensmallen-2.15.1/tests/catch.hpp:8548:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&i, &d, sizeof(d)); data/ensmallen-2.15.1/tests/catch.hpp:8911:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m_buffer[L_tmpnam] = { 0 }; data/ensmallen-2.15.1/tests/catch.hpp:8988:13: [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[100]; data/ensmallen-2.15.1/tests/catch.hpp:8997:23: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). m_file = std::tmpfile(); data/ensmallen-2.15.1/tests/catch.hpp:9021:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[100] = {}; data/ensmallen-2.15.1/tests/catch.hpp:9415:30: [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). tracker->open(); data/ensmallen-2.15.1/tests/catch.hpp:10168:31: [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 **utf8Argv = new char *[ argc ]; data/ensmallen-2.15.1/tests/catch.hpp:10316:13: [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 data[bufferSize]; data/ensmallen-2.15.1/tests/catch.hpp:10365:23: [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_ofs.open( filename.c_str() ); data/ensmallen-2.15.1/tests/catch.hpp:10596:13: [2] (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_data, m_start, m_size ); data/ensmallen-2.15.1/tests/catch.hpp:11109:23: [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 TrackerBase::open() { data/ensmallen-2.15.1/tests/catch.hpp:11198:13: [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/ensmallen-2.15.1/tests/catch.hpp:11237: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). tracker->open(); data/ensmallen-2.15.1/tests/catch.hpp:11527:21: [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 asChar[sizeof (int)]; data/ensmallen-2.15.1/tests/catch.hpp:12182:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[maxDoubleSize]; data/ensmallen-2.15.1/tests/catch.hpp:12189:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%.3f", duration); data/ensmallen-2.15.1/tests/catch.hpp:12755: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). void open() { data/ensmallen-2.15.1/tests/catch.hpp:12784:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tp.open(); data/ensmallen-2.15.1/tests/catch.hpp:13130:13: [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 timeStamp[timeStampSize]; data/ensmallen-2.15.1/tests/catch.hpp:10191:36: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static_cast<void>(std::getchar()); data/ensmallen-2.15.1/tests/catch.hpp:10196:36: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static_cast<void>(std::getchar()); data/ensmallen-2.15.1/tests/catch.hpp:10487:50: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin()); data/ensmallen-2.15.1/tests/catch.hpp:10493:50: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin()); data/ensmallen-2.15.1/tests/catch.hpp:10564:67: [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). : StringRef( rawChars, static_cast<StringRef::size_type>(std::strlen(rawChars) ) ) ANALYSIS SUMMARY: Hits = 33 Lines analyzed = 58577 in approximately 1.50 seconds (39125 lines/second) Physical Source Lines of Code (SLOC) = 33473 Hits@level = [0] 0 [1] 5 [2] 24 [3] 4 [4] 0 [5] 0 Hits@level+ = [0+] 33 [1+] 33 [2+] 28 [3+] 4 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 0.985869 [1+] 0.985869 [2+] 0.836495 [3+] 0.119499 [4+] 0 [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.