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/ceres-solver-1.14.0/examples/helloworld_analytic_diff.cc Examining data/ceres-solver-1.14.0/examples/nist.cc Examining data/ceres-solver-1.14.0/examples/fields_of_experts.cc Examining data/ceres-solver-1.14.0/examples/bal_problem.h Examining data/ceres-solver-1.14.0/examples/bal_problem.cc Examining data/ceres-solver-1.14.0/examples/curve_fitting.c Examining data/ceres-solver-1.14.0/examples/helloworld.cc Examining data/ceres-solver-1.14.0/examples/simple_bundle_adjuster.cc Examining data/ceres-solver-1.14.0/examples/pgm_image.h Examining data/ceres-solver-1.14.0/examples/more_garbow_hillstrom.cc Examining data/ceres-solver-1.14.0/examples/bundle_adjuster.cc Examining data/ceres-solver-1.14.0/examples/denoising.cc Examining data/ceres-solver-1.14.0/examples/libmv_bundle_adjuster.cc Examining data/ceres-solver-1.14.0/examples/libmv_homography.cc Examining data/ceres-solver-1.14.0/examples/fields_of_experts.h Examining data/ceres-solver-1.14.0/examples/helloworld_numeric_diff.cc Examining data/ceres-solver-1.14.0/examples/circle_fit.cc Examining data/ceres-solver-1.14.0/examples/powell.cc Examining data/ceres-solver-1.14.0/examples/rosenbrock.cc Examining data/ceres-solver-1.14.0/examples/curve_fitting.cc Examining data/ceres-solver-1.14.0/examples/sampled_function/sampled_function.cc Examining data/ceres-solver-1.14.0/examples/robust_curve_fitting.cc Examining data/ceres-solver-1.14.0/examples/slam/common/read_g2o.h Examining data/ceres-solver-1.14.0/examples/slam/pose_graph_2d/types.h Examining data/ceres-solver-1.14.0/examples/slam/pose_graph_2d/angle_local_parameterization.h Examining data/ceres-solver-1.14.0/examples/slam/pose_graph_2d/normalize_angle.h Examining data/ceres-solver-1.14.0/examples/slam/pose_graph_2d/pose_graph_2d_error_term.h Examining data/ceres-solver-1.14.0/examples/slam/pose_graph_2d/pose_graph_2d.cc Examining data/ceres-solver-1.14.0/examples/slam/pose_graph_3d/types.h Examining data/ceres-solver-1.14.0/examples/slam/pose_graph_3d/pose_graph_3d.cc Examining data/ceres-solver-1.14.0/examples/slam/pose_graph_3d/pose_graph_3d_error_term.h Examining data/ceres-solver-1.14.0/examples/ellipse_approximation.cc Examining data/ceres-solver-1.14.0/examples/snavely_reprojection_error.h Examining data/ceres-solver-1.14.0/examples/random.h Examining data/ceres-solver-1.14.0/examples/robot_pose_mle.cc Examining data/ceres-solver-1.14.0/internal/ceres/wall_time.h Examining data/ceres-solver-1.14.0/internal/ceres/thread_token_provider.h Examining data/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_sparse_matrix.cc Examining data/ceres-solver-1.14.0/internal/ceres/small_blas_gemv_benchmark.cc Examining data/ceres-solver-1.14.0/internal/ceres/schur_complement_solver.h Examining data/ceres-solver-1.14.0/internal/ceres/trust_region_minimizer_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/line_search.h Examining data/ceres-solver-1.14.0/internal/ceres/line_search_minimizer.h Examining data/ceres-solver-1.14.0/internal/ceres/compressed_row_sparse_matrix.h Examining data/ceres-solver-1.14.0/internal/ceres/covariance.cc Examining data/ceres-solver-1.14.0/internal/ceres/dense_sparse_matrix_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/ordered_groups_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/inner_product_computer.h Examining data/ceres-solver-1.14.0/internal/ceres/residual_block_utils_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/cxsparse.h Examining data/ceres-solver-1.14.0/internal/ceres/conjugate_gradients_solver.h Examining data/ceres-solver-1.14.0/internal/ceres/block_evaluate_preparer.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_user_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_auto_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cxsparse_user_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_user_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cxsparse_auto_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_user_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_auto_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_auto_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_auto_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_user_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_auto_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cxsparse_user_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_user_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_auto_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_user_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cxsparse_user_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cxsparse_auto_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_user_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_user_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_user_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_auto_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_user_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cxsparse_user_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cxsparse_auto_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_user_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_user_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_user_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_auto_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cxsparse_auto_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_auto_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_auto_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_auto_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_auto_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_user_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_auto_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_user_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_auto_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_user_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_auto_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_user_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_auto_threads_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_user_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_auto_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_auto_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/is_close_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/visibility_based_preconditioner.h Examining data/ceres-solver-1.14.0/internal/ceres/reorder_program_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/linear_least_squares_problems.h Examining data/ceres-solver-1.14.0/internal/ceres/trust_region_preprocessor.cc Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_numeric_diff_cost_function_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/context.cc Examining data/ceres-solver-1.14.0/internal/ceres/is_close.cc Examining data/ceres-solver-1.14.0/internal/ceres/dense_qr_solver.cc Examining data/ceres-solver-1.14.0/internal/ceres/parameter_block_ordering_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/linear_solver.cc Examining data/ceres-solver-1.14.0/internal/ceres/bundle_adjustment_test_util.h Examining data/ceres-solver-1.14.0/internal/ceres/conjugate_gradients_solver.cc Examining data/ceres-solver-1.14.0/internal/ceres/single_linkage_clustering_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/gmock_main.cc Examining data/ceres-solver-1.14.0/internal/ceres/graph.h Examining data/ceres-solver-1.14.0/internal/ceres/thread_pool_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/low_rank_inverse_hessian.h Examining data/ceres-solver-1.14.0/internal/ceres/covariance_impl.cc Examining data/ceres-solver-1.14.0/internal/ceres/coordinate_descent_minimizer.cc Examining data/ceres-solver-1.14.0/internal/ceres/residual_block_utils.h Examining data/ceres-solver-1.14.0/internal/ceres/implicit_schur_complement.h Examining data/ceres-solver-1.14.0/internal/ceres/subset_preconditioner_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_structure.cc Examining data/ceres-solver-1.14.0/internal/ceres/detect_structure.h Examining data/ceres-solver-1.14.0/internal/ceres/line_search_minimizer_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/sparse_cholesky_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_sparse_normal_cholesky_solver_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/gradient_problem_solver.cc Examining data/ceres-solver-1.14.0/internal/ceres/suitesparse.h Examining data/ceres-solver-1.14.0/internal/ceres/sparse_normal_cholesky_solver_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/visibility.cc Examining data/ceres-solver-1.14.0/internal/ceres/covariance_impl.h Examining data/ceres-solver-1.14.0/internal/ceres/cxsparse.cc Examining data/ceres-solver-1.14.0/internal/ceres/triplet_sparse_matrix.h Examining data/ceres-solver-1.14.0/internal/ceres/lapack.cc Examining data/ceres-solver-1.14.0/internal/ceres/partitioned_matrix_view.cc Examining data/ceres-solver-1.14.0/internal/ceres/implicit_schur_complement_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/invert_psd_matrix.h Examining data/ceres-solver-1.14.0/internal/ceres/parallel_for_tbb.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_jacobi_preconditioner_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/solver_utils.cc Examining data/ceres-solver-1.14.0/internal/ceres/mutex.h Examining data/ceres-solver-1.14.0/internal/ceres/numeric_diff_test_utils.cc Examining data/ceres-solver-1.14.0/internal/ceres/inner_product_computer.cc Examining data/ceres-solver-1.14.0/internal/ceres/preprocessor.cc Examining data/ceres-solver-1.14.0/internal/ceres/compressed_row_sparse_matrix.cc Examining data/ceres-solver-1.14.0/internal/ceres/file.cc Examining data/ceres-solver-1.14.0/internal/ceres/array_utils_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/cgnr_solver.cc Examining data/ceres-solver-1.14.0/internal/ceres/compressed_col_sparse_matrix_utils_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/dense_sparse_matrix.h Examining data/ceres-solver-1.14.0/internal/ceres/test_util.h Examining data/ceres-solver-1.14.0/internal/ceres/iterative_schur_complement_solver_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/line_search_preprocessor.cc Examining data/ceres-solver-1.14.0/internal/ceres/program.h Examining data/ceres-solver-1.14.0/internal/ceres/detect_structure_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/casts.h Examining data/ceres-solver-1.14.0/internal/ceres/trust_region_minimizer.cc Examining data/ceres-solver-1.14.0/internal/ceres/evaluator.h Examining data/ceres-solver-1.14.0/internal/ceres/file.h Examining data/ceres-solver-1.14.0/internal/ceres/c_api_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/sparse_matrix.h Examining data/ceres-solver-1.14.0/internal/ceres/partitioned_matrix_view_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/problem_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/schur_complement_solver_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/thread_pool.h Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_compressed_row_sparse_matrix_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/linear_least_squares_problems.cc Examining data/ceres-solver-1.14.0/internal/ceres/execution_summary.h Examining data/ceres-solver-1.14.0/internal/ceres/line_search_minimizer.cc Examining data/ceres-solver-1.14.0/internal/ceres/gradient_problem_evaluator.h Examining data/ceres-solver-1.14.0/internal/ceres/gradient_problem_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/gradient_checking_cost_function_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/dense_normal_cholesky_solver.h Examining data/ceres-solver-1.14.0/internal/ceres/gradient_checking_cost_function.cc Examining data/ceres-solver-1.14.0/internal/ceres/schur_complement_solver.cc Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_sparse_normal_cholesky_solver.cc Examining data/ceres-solver-1.14.0/internal/ceres/sparse_cholesky.h Examining data/ceres-solver-1.14.0/internal/ceres/loss_function_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/thread_token_provider.cc Examining data/ceres-solver-1.14.0/internal/ceres/preconditioner.h Examining data/ceres-solver-1.14.0/internal/ceres/program_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/parameter_block_ordering.cc Examining data/ceres-solver-1.14.0/internal/ceres/blas.cc Examining data/ceres-solver-1.14.0/internal/ceres/cgnr_linear_operator.h Examining data/ceres-solver-1.14.0/internal/ceres/problem.cc Examining data/ceres-solver-1.14.0/internal/ceres/types.cc Examining data/ceres-solver-1.14.0/internal/ceres/subset_preconditioner.h Examining data/ceres-solver-1.14.0/internal/ceres/local_parameterization.cc Examining data/ceres-solver-1.14.0/internal/ceres/sparse_normal_cholesky_solver.cc Examining data/ceres-solver-1.14.0/internal/ceres/suitesparse.cc Examining data/ceres-solver-1.14.0/internal/ceres/compressed_row_jacobian_writer.h Examining data/ceres-solver-1.14.0/internal/ceres/eigensparse.h Examining data/ceres-solver-1.14.0/internal/ceres/block_sparse_matrix_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/compressed_col_sparse_matrix_utils.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_random_access_diagonal_matrix_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/residual_block.h Examining data/ceres-solver-1.14.0/internal/ceres/collections_port.h Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_compressed_row_finalizer.h Examining data/ceres-solver-1.14.0/internal/ceres/levenberg_marquardt_strategy.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_jacobian_writer.cc Examining data/ceres-solver-1.14.0/internal/ceres/split.h Examining data/ceres-solver-1.14.0/internal/ceres/local_parameterization_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_random_access_dense_matrix.h Examining data/ceres-solver-1.14.0/internal/ceres/visibility.h Examining data/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h Examining data/ceres-solver-1.14.0/internal/ceres/corrector.cc Examining data/ceres-solver-1.14.0/internal/ceres/stringprintf.cc Examining data/ceres-solver-1.14.0/internal/ceres/array_utils.cc Examining data/ceres-solver-1.14.0/internal/ceres/system_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/partitioned_matrix_view_impl.h Examining data/ceres-solver-1.14.0/internal/ceres/compressed_row_jacobian_writer.cc Examining data/ceres-solver-1.14.0/internal/ceres/single_linkage_clustering.h Examining data/ceres-solver-1.14.0/internal/ceres/graph_algorithms.h Examining data/ceres-solver-1.14.0/internal/ceres/parallel_for.h Examining data/ceres-solver-1.14.0/internal/ceres/problem_impl.cc Examining data/ceres-solver-1.14.0/internal/ceres/triplet_sparse_matrix_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/polynomial.h Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_compressed_row_sparse_matrix.cc Examining data/ceres-solver-1.14.0/internal/ceres/parameter_block_ordering.h Examining data/ceres-solver-1.14.0/internal/ceres/map_util.h Examining data/ceres-solver-1.14.0/internal/ceres/low_rank_inverse_hessian.cc Examining data/ceres-solver-1.14.0/internal/ceres/scoped_thread_token.h Examining data/ceres-solver-1.14.0/internal/ceres/solver_utils.h Examining data/ceres-solver-1.14.0/internal/ceres/parallel_utils_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/schur_templates.h Examining data/ceres-solver-1.14.0/internal/ceres/array_utils.h Examining data/ceres-solver-1.14.0/internal/ceres/parallel_for_cxx.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_jacobi_preconditioner.cc Examining data/ceres-solver-1.14.0/internal/ceres/polynomial.cc Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_autodiff_cost_function_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/canonical_views_clustering_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/schur_eliminator_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_compressed_row_sparse_matrix.h Examining data/ceres-solver-1.14.0/internal/ceres/loss_function.cc Examining data/ceres-solver-1.14.0/internal/ceres/c_api.cc Examining data/ceres-solver-1.14.0/internal/ceres/solver_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/cost_function_to_functor_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/wall_time.cc Examining data/ceres-solver-1.14.0/internal/ceres/subset_preconditioner.cc Examining data/ceres-solver-1.14.0/internal/ceres/polynomial_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/triplet_sparse_matrix.cc Examining data/ceres-solver-1.14.0/internal/ceres/visibility_based_preconditioner.cc Examining data/ceres-solver-1.14.0/internal/ceres/gradient_problem_solver_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/schur_eliminator.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_structure.h Examining data/ceres-solver-1.14.0/internal/ceres/parallel_utils.cc Examining data/ceres-solver-1.14.0/internal/ceres/autodiff_local_parameterization_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/line_search_preprocessor_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/schur_templates.cc Examining data/ceres-solver-1.14.0/internal/ceres/trust_region_preprocessor.h Examining data/ceres-solver-1.14.0/internal/ceres/context_impl.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_random_access_diagonal_matrix.cc Examining data/ceres-solver-1.14.0/internal/ceres/sparse_matrix.cc Examining data/ceres-solver-1.14.0/internal/ceres/dogleg_strategy_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_compressed_row_jacobian_writer.cc Examining data/ceres-solver-1.14.0/internal/ceres/parallel_utils.h Examining data/ceres-solver-1.14.0/internal/ceres/visibility_based_preconditioner_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/parameter_block_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/levenberg_marquardt_strategy_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/parameter_block.h Examining data/ceres-solver-1.14.0/internal/ceres/is_close.h Examining data/ceres-solver-1.14.0/internal/ceres/line_search_preprocessor.h Examining data/ceres-solver-1.14.0/internal/ceres/invert_psd_matrix_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/iterative_schur_complement_solver.cc Examining data/ceres-solver-1.14.0/internal/ceres/conjugate_gradients_solver_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/partitioned_matrix_view.h Examining data/ceres-solver-1.14.0/internal/ceres/cubic_interpolation_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/cgnr_solver.h Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_3_3.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_d_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_4_3.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_2_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_3_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_2_3.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_2_4.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_4_9.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_4_8.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_4_4_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_3_9.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_3_9.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_3_6.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_4_4_2.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_4_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_2_3.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_4_4.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_4_4_2.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_d_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_4_9.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_3_6.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_4_3.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_2_2.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_3_4.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_4_4_3.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_4_6.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_3_4.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_d_d_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_4_4_4.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_2_2.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_4_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_4_4_3.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_2_4.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_4_4_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_4_4.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_4_6.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_d_d_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_3_3.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_4_8.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_4_4_4.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/partitioned_matrix_view_2_2_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/generated/schur_eliminator_2_3_d.cc Examining data/ceres-solver-1.14.0/internal/ceres/schur_jacobi_preconditioner.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_jacobian_writer.h Examining data/ceres-solver-1.14.0/internal/ceres/schur_eliminator_impl.h Examining data/ceres-solver-1.14.0/internal/ceres/line_search_direction.cc Examining data/ceres-solver-1.14.0/internal/ceres/minimizer.h Examining data/ceres-solver-1.14.0/internal/ceres/residual_block_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_random_access_sparse_matrix.cc Examining data/ceres-solver-1.14.0/internal/ceres/minimizer_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/residual_block.cc Examining data/ceres-solver-1.14.0/internal/ceres/autodiff_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/function_sample.cc Examining data/ceres-solver-1.14.0/internal/ceres/split.cc Examining data/ceres-solver-1.14.0/internal/ceres/trust_region_step_evaluator.cc Examining data/ceres-solver-1.14.0/internal/ceres/evaluator_test_utils.h Examining data/ceres-solver-1.14.0/internal/ceres/schur_eliminator.h Examining data/ceres-solver-1.14.0/internal/ceres/reorder_program.cc Examining data/ceres-solver-1.14.0/internal/ceres/dense_qr_solver.h Examining data/ceres-solver-1.14.0/internal/ceres/context_impl.h Examining data/ceres-solver-1.14.0/internal/ceres/levenberg_marquardt_strategy.h Examining data/ceres-solver-1.14.0/internal/ceres/block_sparse_matrix.h Examining data/ceres-solver-1.14.0/internal/ceres/trust_region_step_evaluator.h Examining data/ceres-solver-1.14.0/internal/ceres/trust_region_preprocessor_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/dense_jacobian_writer.h Examining data/ceres-solver-1.14.0/internal/ceres/canonical_views_clustering.h Examining data/ceres-solver-1.14.0/internal/ceres/linear_solver.h Examining data/ceres-solver-1.14.0/internal/ceres/line_search_direction.h Examining data/ceres-solver-1.14.0/internal/ceres/dense_sparse_matrix.cc Examining data/ceres-solver-1.14.0/internal/ceres/sparse_cholesky.cc Examining data/ceres-solver-1.14.0/internal/ceres/conditioned_cost_function_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/linear_operator.h Examining data/ceres-solver-1.14.0/internal/ceres/gmock/gmock.h Examining data/ceres-solver-1.14.0/internal/ceres/gmock/mock-log.h Examining data/ceres-solver-1.14.0/internal/ceres/minimizer.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_random_access_sparse_matrix.h Examining data/ceres-solver-1.14.0/internal/ceres/rotation_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_jacobi_preconditioner.h Examining data/ceres-solver-1.14.0/internal/ceres/concurrent_queue_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/lapack.h Examining data/ceres-solver-1.14.0/internal/ceres/dense_normal_cholesky_solver.cc Examining data/ceres-solver-1.14.0/internal/ceres/dense_linear_solver_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_random_access_diagonal_matrix.h Examining data/ceres-solver-1.14.0/internal/ceres/small_blas_gemm_benchmark.cc Examining data/ceres-solver-1.14.0/internal/ceres/canonical_views_clustering.cc Examining data/ceres-solver-1.14.0/internal/ceres/test_util.cc Examining data/ceres-solver-1.14.0/internal/ceres/eigensparse.cc Examining data/ceres-solver-1.14.0/internal/ceres/callbacks.h Examining data/ceres-solver-1.14.0/internal/ceres/autodiff_cost_function_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/numeric_diff_test_utils.h Examining data/ceres-solver-1.14.0/internal/ceres/block_random_access_matrix.cc Examining data/ceres-solver-1.14.0/internal/ceres/implicit_schur_complement.cc Examining data/ceres-solver-1.14.0/internal/ceres/residual_block_utils.cc Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_compressed_row_jacobian_writer.h Examining data/ceres-solver-1.14.0/internal/ceres/corrector.h Examining data/ceres-solver-1.14.0/internal/ceres/corrector_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/householder_vector.h Examining data/ceres-solver-1.14.0/internal/ceres/sparse_normal_cholesky_solver.h Examining data/ceres-solver-1.14.0/internal/ceres/scratch_evaluate_preparer.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_random_access_dense_matrix_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/coordinate_descent_minimizer.h Examining data/ceres-solver-1.14.0/internal/ceres/gradient_problem.cc Examining data/ceres-solver-1.14.0/internal/ceres/normal_prior_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/householder_vector_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/detect_structure.cc Examining data/ceres-solver-1.14.0/internal/ceres/blas.h Examining data/ceres-solver-1.14.0/internal/ceres/block_random_access_matrix.h Examining data/ceres-solver-1.14.0/internal/ceres/concurrent_queue.h Examining data/ceres-solver-1.14.0/internal/ceres/random.h Examining data/ceres-solver-1.14.0/internal/ceres/conditioned_cost_function.cc Examining data/ceres-solver-1.14.0/internal/ceres/reorder_program.h Examining data/ceres-solver-1.14.0/internal/ceres/autodiff_cost_function_benchmark.cc Examining data/ceres-solver-1.14.0/internal/ceres/small_blas_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/line_search.cc Examining data/ceres-solver-1.14.0/internal/ceres/schur_jacobi_preconditioner.h Examining data/ceres-solver-1.14.0/internal/ceres/solver.cc Examining data/ceres-solver-1.14.0/internal/ceres/miniglog/glog/logging.cc Examining data/ceres-solver-1.14.0/internal/ceres/miniglog/glog/logging.h Examining data/ceres-solver-1.14.0/internal/ceres/visibility_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/stl_util.h Examining data/ceres-solver-1.14.0/internal/ceres/evaluator.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_random_access_sparse_matrix_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/evaluator_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/linear_operator.cc Examining data/ceres-solver-1.14.0/internal/ceres/stringprintf.h Examining data/ceres-solver-1.14.0/internal/ceres/gradient_checking_cost_function.h Examining data/ceres-solver-1.14.0/internal/ceres/trust_region_strategy.cc Examining data/ceres-solver-1.14.0/internal/ceres/program_evaluator.h Examining data/ceres-solver-1.14.0/internal/ceres/block_evaluate_preparer.h Examining data/ceres-solver-1.14.0/internal/ceres/iterative_schur_complement_solver.h Examining data/ceres-solver-1.14.0/internal/ceres/preconditioner.cc Examining data/ceres-solver-1.14.0/internal/ceres/inner_product_computer_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/function_sample.h Examining data/ceres-solver-1.14.0/internal/ceres/tiny_solver_cost_function_adapter_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_sparse_normal_cholesky_solver.h Examining data/ceres-solver-1.14.0/internal/ceres/dynamic_sparsity_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/evaluator_test_utils.cc Examining data/ceres-solver-1.14.0/internal/ceres/graph_algorithms_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/preprocessor.h Examining data/ceres-solver-1.14.0/internal/ceres/parallel_for_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/tiny_solver_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/dogleg_strategy.cc Examining data/ceres-solver-1.14.0/internal/ceres/program.cc Examining data/ceres-solver-1.14.0/internal/ceres/scratch_evaluate_preparer.h Examining data/ceres-solver-1.14.0/internal/ceres/normal_prior.cc Examining data/ceres-solver-1.14.0/internal/ceres/thread_pool.cc Examining data/ceres-solver-1.14.0/internal/ceres/single_linkage_clustering.cc Examining data/ceres-solver-1.14.0/internal/ceres/gradient_checker_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/trust_region_minimizer.h Examining data/ceres-solver-1.14.0/internal/ceres/callbacks.cc Examining data/ceres-solver-1.14.0/internal/ceres/trust_region_strategy.h Examining data/ceres-solver-1.14.0/internal/ceres/graph_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/tiny_solver_autodiff_function_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/compressed_col_sparse_matrix_utils.h Examining data/ceres-solver-1.14.0/internal/ceres/gradient_checker.cc Examining data/ceres-solver-1.14.0/internal/ceres/covariance_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/compressed_row_sparse_matrix_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/numeric_diff_cost_function_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/dogleg_strategy.h Examining data/ceres-solver-1.14.0/internal/ceres/jet_test.cc Examining data/ceres-solver-1.14.0/internal/ceres/block_random_access_dense_matrix.cc Examining data/ceres-solver-1.14.0/internal/ceres/small_blas.h Examining data/ceres-solver-1.14.0/internal/ceres/problem_impl.h Examining data/ceres-solver-1.14.0/internal/ceres/integral_types.h Examining data/ceres-solver-1.14.0/internal/ceres/evaluation_callback_test.cc Examining data/ceres-solver-1.14.0/include/ceres/loss_function.h Examining data/ceres-solver-1.14.0/include/ceres/dynamic_cost_function.h Examining data/ceres-solver-1.14.0/include/ceres/problem.h Examining data/ceres-solver-1.14.0/include/ceres/covariance.h Examining data/ceres-solver-1.14.0/include/ceres/version.h Examining data/ceres-solver-1.14.0/include/ceres/types.h Examining data/ceres-solver-1.14.0/include/ceres/crs_matrix.h Examining data/ceres-solver-1.14.0/include/ceres/jet.h Examining data/ceres-solver-1.14.0/include/ceres/fpclassify.h Examining data/ceres-solver-1.14.0/include/ceres/ordered_groups.h Examining data/ceres-solver-1.14.0/include/ceres/iteration_callback.h Examining data/ceres-solver-1.14.0/include/ceres/gradient_checker.h Examining data/ceres-solver-1.14.0/include/ceres/dynamic_cost_function_to_functor.h Examining data/ceres-solver-1.14.0/include/ceres/solver.h Examining data/ceres-solver-1.14.0/include/ceres/tiny_solver.h Examining data/ceres-solver-1.14.0/include/ceres/dynamic_autodiff_cost_function.h Examining data/ceres-solver-1.14.0/include/ceres/cubic_interpolation.h Examining data/ceres-solver-1.14.0/include/ceres/cost_function_to_functor.h Examining data/ceres-solver-1.14.0/include/ceres/normal_prior.h Examining data/ceres-solver-1.14.0/include/ceres/gradient_problem_solver.h Examining data/ceres-solver-1.14.0/include/ceres/context.h Examining data/ceres-solver-1.14.0/include/ceres/ceres.h Examining data/ceres-solver-1.14.0/include/ceres/gradient_problem.h Examining data/ceres-solver-1.14.0/include/ceres/tiny_solver_cost_function_adapter.h Examining data/ceres-solver-1.14.0/include/ceres/evaluation_callback.h Examining data/ceres-solver-1.14.0/include/ceres/tiny_solver_autodiff_function.h Examining data/ceres-solver-1.14.0/include/ceres/internal/scoped_ptr.h Examining data/ceres-solver-1.14.0/include/ceres/internal/fixed_array.h Examining data/ceres-solver-1.14.0/include/ceres/internal/eigen.h Examining data/ceres-solver-1.14.0/include/ceres/internal/disable_warnings.h Examining data/ceres-solver-1.14.0/include/ceres/internal/macros.h Examining data/ceres-solver-1.14.0/include/ceres/internal/variadic_evaluate.h Examining data/ceres-solver-1.14.0/include/ceres/internal/port.h Examining data/ceres-solver-1.14.0/include/ceres/internal/reenable_warnings.h Examining data/ceres-solver-1.14.0/include/ceres/internal/autodiff.h Examining data/ceres-solver-1.14.0/include/ceres/internal/manual_constructor.h Examining data/ceres-solver-1.14.0/include/ceres/internal/numeric_diff.h Examining data/ceres-solver-1.14.0/include/ceres/numeric_diff_cost_function.h Examining data/ceres-solver-1.14.0/include/ceres/numeric_diff_options.h Examining data/ceres-solver-1.14.0/include/ceres/c_api.h Examining data/ceres-solver-1.14.0/include/ceres/conditioned_cost_function.h Examining data/ceres-solver-1.14.0/include/ceres/autodiff_local_parameterization.h Examining data/ceres-solver-1.14.0/include/ceres/autodiff_cost_function.h Examining data/ceres-solver-1.14.0/include/ceres/sized_cost_function.h Examining data/ceres-solver-1.14.0/include/ceres/cost_function.h Examining data/ceres-solver-1.14.0/include/ceres/dynamic_numeric_diff_cost_function.h Examining data/ceres-solver-1.14.0/include/ceres/rotation.h Examining data/ceres-solver-1.14.0/include/ceres/local_parameterization.h Examining data/ceres-solver-1.14.0/config/ceres/internal/config.h FINAL RESULTS: data/ceres-solver-1.14.0/examples/bal_problem.cc:51:21: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. int num_scanned = fscanf(fptr, format, value); data/ceres-solver-1.14.0/examples/simple_bundle_adjuster.cc:101:23: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. int num_scanned = fscanf(fptr, format, value); data/ceres-solver-1.14.0/internal/ceres/bundle_adjustment_test_util.h:173:23: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. int num_scanned = fscanf(fptr, format, value); data/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:1594: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:4419: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:4439: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:4446: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/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:3641: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/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:3712: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/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:3714: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/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:9187: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/ceres-solver-1.14.0/internal/ceres/stringprintf.cc:77:16: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int result = vsnprintf(space, sizeof(space), format, backup_ap); data/ceres-solver-1.14.0/internal/ceres/stringprintf.cc:91:14: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. result = vsnprintf(NULL, 0, format, backup_ap); data/ceres-solver-1.14.0/internal/ceres/stringprintf.cc:108:12: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. result = vsnprintf(buf, length, format, backup_ap); data/ceres-solver-1.14.0/examples/bundle_adjuster.cc:306:3: [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. srand(FLAGS_random_seed); data/ceres-solver-1.14.0/internal/ceres/autodiff_test.cc:160:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/autodiff_test.cc:281:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/corrector_test.cc:168:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/corrector_test.cc:236:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:719: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:740: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:741: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:1199: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:1642:44: [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 testbridge_test_only = getenv(GTEST_TEST_FILTER_ENV_VAR_); data/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:4241: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:4242: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:6075: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:6389: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:6392: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:6397: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:8792:5: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. ::InitializeCriticalSection(critical_section_); data/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:8810:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. ::EnterCriticalSection(critical_section_); data/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:8842:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. ::InitializeCriticalSection(critical_section_); data/ceres-solver-1.14.0/internal/ceres/gradient_checker_test.cc:198:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/gradient_checking_cost_function_test.cc:132:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/gradient_checking_cost_function_test.cc:190:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:3680: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/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:3683: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/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:19534: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/ceres-solver-1.14.0/internal/ceres/mutex.h:216:30: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSafe(); } data/ceres-solver-1.14.0/internal/ceres/mutex.h:218:44: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. void Mutex::Lock() { if (is_safe_) EnterCriticalSection(&mutex_); } data/ceres-solver-1.14.0/internal/ceres/normal_prior_test.cc:56:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/normal_prior_test.cc:93:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/numeric_diff_test_utils.cc:249:3: [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. srand(random_seed_); data/ceres-solver-1.14.0/internal/ceres/partitioned_matrix_view_test.cc:52:5: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/random.h:42:3: [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. srand(state); data/ceres-solver-1.14.0/internal/ceres/rotation_test.cc:342:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/rotation_test.cc:375:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/rotation_test.cc:452:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/rotation_test.cc:547:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/rotation_test.cc:580:3: [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. srand(5); data/ceres-solver-1.14.0/internal/ceres/rotation_test.cc:665:3: [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. srand(5); data/ceres-solver-1.14.0/examples/bal_problem.cc:73:16: [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). FILE* fptr = fopen(filename.c_str(), "r"); data/ceres-solver-1.14.0/examples/bal_problem.cc:138:16: [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). FILE* fptr = fopen(filename.c_str(), "w"); data/ceres-solver-1.14.0/examples/bal_problem.cc:160:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(angleaxis + 3, parameters_ + 10 * i + 4, 6 * sizeof(double)); data/ceres-solver-1.14.0/examples/bal_problem.cc:162:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(angleaxis, parameters_ + 9 * i, 9 * sizeof(double)); data/ceres-solver-1.14.0/examples/libmv_bundle_adjuster.cc:98:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open _open data/ceres-solver-1.14.0/examples/libmv_bundle_adjuster.cc:267: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. unsigned char bytes[4]; data/ceres-solver-1.14.0/examples/libmv_bundle_adjuster.cc:281:24: [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). file_descriptor_ = open(file_name.c_str(), O_RDONLY | O_BINARY); data/ceres-solver-1.14.0/examples/nist.cc:142:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). using std::atoi; data/ceres-solver-1.14.0/examples/nist.cc:170:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/ceres-solver-1.14.0/examples/nist.cc:177:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/ceres-solver-1.14.0/examples/nist.cc:192:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). const int kNumResponses = atoi(pieces[1].c_str()); data/ceres-solver-1.14.0/examples/nist.cc:195:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). const int kNumPredictors = atoi(pieces[0].c_str()); data/ceres-solver-1.14.0/examples/nist.cc:198:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). const int kNumObservations = atoi(pieces[0].c_str()); data/ceres-solver-1.14.0/examples/nist.cc:202:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). const int kNumParameters = atoi(pieces[0].c_str()); data/ceres-solver-1.14.0/examples/simple_bundle_adjuster.cc:68:18: [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). FILE* fptr = fopen(filename, "r"); data/ceres-solver-1.14.0/examples/slam/pose_graph_2d/pose_graph_2d.cc:137:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). outfile.open(filename.c_str(), std::istream::out); data/ceres-solver-1.14.0/examples/slam/pose_graph_3d/pose_graph_3d.cc:124:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). outfile.open(filename.c_str(), std::istream::out); data/ceres-solver-1.14.0/include/ceres/dynamic_numeric_diff_cost_function.h:123:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(parameters_references_copy[block], data/ceres-solver-1.14.0/include/ceres/internal/manual_constructor.h:56:56: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. template<int size> struct AlignType<0, size> { typedef char result[size]; }; data/ceres-solver-1.14.0/include/ceres/internal/manual_constructor.h:64:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef CERES_ALIGN_ATTRIBUTE(X) char result[size]; \ data/ceres-solver-1.14.0/include/ceres/numeric_diff_cost_function.h:256:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (N ## block) memcpy(parameters_reference_copy[block], \ data/ceres-solver-1.14.0/internal/ceres/bundle_adjustment_test_util.h:98:19: [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). FILE * fptr = fopen(filename.c_str(), "r"); data/ceres-solver-1.14.0/internal/ceres/cxsparse.cc:261: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(solution, rhs, num_cols * sizeof(*solution)); data/ceres-solver-1.14.0/internal/ceres/dynamic_compressed_row_sparse_matrix.cc:90:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mutable_cols() + index_into_values_and_cols, data/ceres-solver-1.14.0/internal/ceres/dynamic_compressed_row_sparse_matrix.cc:93:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mutable_values() + index_into_values_and_cols, data/ceres-solver-1.14.0/internal/ceres/dynamic_sparse_normal_cholesky_solver.cc:269:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/ceres-solver-1.14.0/internal/ceres/file.cc:44:27: [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). FILE* file_descriptor = fopen(filename.c_str(), "wb"); data/ceres-solver-1.14.0/internal/ceres/file.cc:53:27: [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). FILE* file_descriptor = fopen(filename.c_str(), "r"); data/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:2310:7: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:2313:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:3128: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:3212: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:7155: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:7571: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:7857: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:8273: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:8276: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:8688: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:9414: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:9487: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:9488: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:9525: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:9871: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/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:3653: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/ceres-solver-1.14.0/internal/ceres/linear_least_squares_problems.cc:391: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(A->mutable_values(), values.get(), nnz * sizeof(*A->values())); data/ceres-solver-1.14.0/internal/ceres/linear_least_squares_problems.cc:495: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(A->mutable_values(), values.get(), nnz * sizeof(*A->values())); data/ceres-solver-1.14.0/internal/ceres/linear_least_squares_problems.cc:596: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(A->mutable_values(), values.get(), nnz * sizeof(*A->values())); data/ceres-solver-1.14.0/internal/ceres/linear_least_squares_problems.cc:641:16: [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). FILE* fptr = fopen(filename.c_str(), "w"); data/ceres-solver-1.14.0/internal/ceres/linear_least_squares_problems.cc:668:18: [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). FILE* fptr = fopen(filename.c_str(), "w"); data/ceres-solver-1.14.0/internal/ceres/parameter_block.h:111:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(x, state_, sizeof(*state_) * size_); data/ceres-solver-1.14.0/internal/ceres/stringprintf.cc:70:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char space[1024]; data/ceres-solver-1.14.0/internal/ceres/suitesparse.cc:129:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v->x, x, in_size * sizeof(*x)); data/ceres-solver-1.14.0/internal/ceres/suitesparse.cc:408: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(solution, cholmod_dense_solution->x, num_cols * sizeof(*solution)); data/ceres-solver-1.14.0/examples/libmv_bundle_adjuster.cc:301:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). CHECK_GT(read(file_descriptor_, &value, sizeof(value)), 0); data/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:2308: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:3273: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:5046: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:5211: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:6450: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:9148: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:9402: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:9614:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (temp_dir[strlen(temp_dir) - 1] == '\\') data/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:10131: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/ceres-solver-1.14.0/internal/ceres/gmock_gtest_all.cc:10148: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). PrintCharsAsStringTo(s, std::wcslen(s), os); data/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:3642: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/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:3664: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)); ANALYSIS SUMMARY: Hits = 118 Lines analyzed = 140168 in approximately 3.05 seconds (45917 lines/second) Physical Source Lines of Code (SLOC) = 82369 Hits@level = [0] 82 [1] 13 [2] 53 [3] 38 [4] 14 [5] 0 Hits@level+ = [0+] 200 [1+] 118 [2+] 105 [3+] 52 [4+] 14 [5+] 0 Hits/KSLOC@level+ = [0+] 2.4281 [1+] 1.43258 [2+] 1.27475 [3+] 0.631305 [4+] 0.169967 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.