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/strongswan-5.9.1/src/libtnccs/tnc/tnccs/tnccs_manager.h Examining data/strongswan-5.9.1/src/libtnccs/tnc/tnccs/tnccs_manager.c Examining data/strongswan-5.9.1/src/libtnccs/tnc/tnccs/tnccs.h Examining data/strongswan-5.9.1/src/libtnccs/tnc/tnccs/tnccs.c Examining data/strongswan-5.9.1/src/libtnccs/tnc/tnc.c Examining data/strongswan-5.9.1/src/libtnccs/tnc/imv/imv.h Examining data/strongswan-5.9.1/src/libtnccs/tnc/imv/imv_recommendations.c Examining data/strongswan-5.9.1/src/libtnccs/tnc/imv/imv_manager.h Examining data/strongswan-5.9.1/src/libtnccs/tnc/imv/imv_recommendations.h Examining data/strongswan-5.9.1/src/libtnccs/tnc/imc/imc.h Examining data/strongswan-5.9.1/src/libtnccs/tnc/imc/imc_manager.h Examining data/strongswan-5.9.1/src/libtnccs/tnc/tnc.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/tnccs_11_plugin.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/tnccs_11_plugin.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/tnccs_11.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_recommendation_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_tncs_contact_info_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_preferred_language_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_tncs_contact_info_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_reason_strings_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_error_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_preferred_language_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_recommendation_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_error_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/imc_imv_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_reason_strings_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/imc_imv_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/batch/tnccs_batch.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/batch/tnccs_batch.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/tnccs_11.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_dynamic/tnccs_dynamic.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_dynamic/tnccs_dynamic_plugin.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_dynamic/tnccs_dynamic.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_dynamic/tnccs_dynamic_plugin.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20_server.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/state_machine/pb_tnc_state_machine.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/state_machine/pb_tnc_state_machine.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20_plugin.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20_plugin.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20_server.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20_client.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20_client.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/pb_tnc_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/tcg/pb_pdp_referral_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/tcg/pb_pdp_referral_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_language_preference_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_assessment_result_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_pa_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_language_preference_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_access_recommendation_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_assessment_result_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_access_recommendation_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_reason_string_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_experimental_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_error_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_experimental_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_remediation_parameters_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_reason_string_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_error_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_pa_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_remediation_parameters_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/pb_tnc_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ita/pb_mutual_capability_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ita/pb_mutual_capability_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ita/pb_noskip_test_msg.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ita/pb_noskip_test_msg.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/batch/pb_tnc_batch.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/batch/pb_tnc_batch.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20_handler.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv_recommendations.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv_bind_function.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv_plugin.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv_manager.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv_recommendations.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv_plugin.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv_manager.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imc/tnc_imc_manager.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imc/tnc_imc_manager.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imc/tnc_imc_bind_function.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imc/tnc_imc.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imc/tnc_imc_plugin.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imc/tnc_imc.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imc/tnc_imc_plugin.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_tnccs/tnc_tnccs_manager.h Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_tnccs/tnc_tnccs_plugin.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_tnccs/tnc_tnccs_manager.c Examining data/strongswan-5.9.1/src/libtnccs/plugins/tnc_tnccs/tnc_tnccs_plugin.h Examining data/strongswan-5.9.1/src/libsimaka/simaka_message.c Examining data/strongswan-5.9.1/src/libsimaka/simaka_manager.h Examining data/strongswan-5.9.1/src/libsimaka/simaka_hooks.h Examining data/strongswan-5.9.1/src/libsimaka/simaka_message.h Examining data/strongswan-5.9.1/src/libsimaka/simaka_crypto.h Examining data/strongswan-5.9.1/src/libsimaka/simaka_crypto.c Examining data/strongswan-5.9.1/src/libsimaka/simaka_manager.c Examining data/strongswan-5.9.1/src/libsimaka/simaka_provider.h Examining data/strongswan-5.9.1/src/libsimaka/simaka_card.h Examining data/strongswan-5.9.1/src/stroke/stroke.c Examining data/strongswan-5.9.1/src/stroke/stroke_keywords.c Examining data/strongswan-5.9.1/src/stroke/stroke_msg.h Examining data/strongswan-5.9.1/src/stroke/stroke_keywords.h Examining data/strongswan-5.9.1/src/starter/invokecharon.c Examining data/strongswan-5.9.1/src/starter/starter.c Examining data/strongswan-5.9.1/src/starter/confread.h Examining data/strongswan-5.9.1/src/starter/args.h Examining data/strongswan-5.9.1/src/starter/keywords.c Examining data/strongswan-5.9.1/src/starter/tests/starter_tests.h Examining data/strongswan-5.9.1/src/starter/tests/suites/test_parser.c Examining data/strongswan-5.9.1/src/starter/tests/starter_tests.c Examining data/strongswan-5.9.1/src/starter/invokecharon.h Examining data/strongswan-5.9.1/src/starter/parser/conf_parser.h Examining data/strongswan-5.9.1/src/starter/parser/conf_parser.c Examining data/strongswan-5.9.1/src/starter/parser/lexer.c Examining data/strongswan-5.9.1/src/starter/parser/parser.h Examining data/strongswan-5.9.1/src/starter/parser/parser.c Examining data/strongswan-5.9.1/src/starter/cmp.h Examining data/strongswan-5.9.1/src/starter/keywords.h Examining data/strongswan-5.9.1/src/starter/cmp.c Examining data/strongswan-5.9.1/src/starter/files.h Examining data/strongswan-5.9.1/src/starter/args.c Examining data/strongswan-5.9.1/src/starter/confread.c Examining data/strongswan-5.9.1/src/starter/starterstroke.c Examining data/strongswan-5.9.1/src/starter/starterstroke.h Examining data/strongswan-5.9.1/src/libimcv/pwg/pwg_attr.c Examining data/strongswan-5.9.1/src/libimcv/pwg/pwg_attr_vendor_smi_code.h Examining data/strongswan-5.9.1/src/libimcv/pwg/pwg_attr.h Examining data/strongswan-5.9.1/src/libimcv/pwg/pwg_attr_vendor_smi_code.c Examining data/strongswan-5.9.1/src/libimcv/imcv.c Examining data/strongswan-5.9.1/src/libimcv/suites/test_imcv_seg.c Examining data/strongswan-5.9.1/src/libimcv/suites/test_imcv_swima.c Examining data/strongswan-5.9.1/src/libimcv/tcg/tcg_attr.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_gen_attest_evid.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_unix_file_meta.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_proto_caps.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_gen_attest_evid.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_simple_evid_final.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_simple_comp_evid.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_dh_nonce_params_req.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_dh_nonce_params_resp.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_get_aik.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_aik.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_req_func_comp_evid.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_dh_nonce_finish.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_aik.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_req_file_meas.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_dh_nonce_finish.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_tpm_version_info.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_unix_file_meta.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_get_tpm_version_info.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_proto_caps.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_tpm_version_info.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_req_file_meta.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_req_file_meas.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_req_func_comp_evid.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_file_meas.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_dh_nonce_params_req.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_file_meas.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_meas_algo.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_meas_algo.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_dh_nonce_params_resp.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_simple_comp_evid.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_req_file_meta.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_get_tpm_version_info.h Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_get_aik.c Examining data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_simple_evid_final.c Examining data/strongswan-5.9.1/src/libimcv/tcg/seg/tcg_seg_attr_next_seg.c Examining data/strongswan-5.9.1/src/libimcv/tcg/seg/tcg_seg_attr_max_size.c Examining data/strongswan-5.9.1/src/libimcv/tcg/seg/tcg_seg_attr_seg_env.c Examining data/strongswan-5.9.1/src/libimcv/tcg/seg/tcg_seg_attr_seg_env.h Examining data/strongswan-5.9.1/src/libimcv/tcg/seg/tcg_seg_attr_next_seg.h Examining data/strongswan-5.9.1/src/libimcv/tcg/seg/tcg_seg_attr_max_size.h Examining data/strongswan-5.9.1/src/libimcv/tcg/tcg_attr.c Examining data/strongswan-5.9.1/src/libimcv/pa_tnc/pa_tnc_attr.h Examining data/strongswan-5.9.1/src/libimcv/pa_tnc/pa_tnc_msg.c Examining data/strongswan-5.9.1/src/libimcv/pa_tnc/pa_tnc_msg.h Examining data/strongswan-5.9.1/src/libimcv/pa_tnc/pa_tnc_attr_manager.h Examining data/strongswan-5.9.1/src/libimcv/pa_tnc/pa_tnc_attr_manager.c Examining data/strongswan-5.9.1/src/libimcv/rest/rest.h Examining data/strongswan-5.9.1/src/libimcv/rest/rest.c Examining data/strongswan-5.9.1/src/libimcv/imcv_tests.h Examining data/strongswan-5.9.1/src/libimcv/imcv.h Examining data/strongswan-5.9.1/src/libimcv/generic/generic_attr_string.c Examining data/strongswan-5.9.1/src/libimcv/generic/generic_attr_chunk.h Examining data/strongswan-5.9.1/src/libimcv/generic/generic_attr_chunk.c Examining data/strongswan-5.9.1/src/libimcv/generic/generic_attr_string.h Examining data/strongswan-5.9.1/src/libimcv/generic/generic_attr_bool.h Examining data/strongswan-5.9.1/src/libimcv/generic/generic_attr_bool.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts_meas_algo.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_req_func_comp_evid.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_error.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts_proto_caps.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_file_type.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts_pcr.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts_pcr.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_ima_bios_list.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_error.h Examining data/strongswan-5.9.1/src/libimcv/pts/components/pts_comp_evidence.c Examining data/strongswan-5.9.1/src/libimcv/pts/components/pts_component_manager.c Examining data/strongswan-5.9.1/src/libimcv/pts/components/tcg/tcg_comp_func_name.h Examining data/strongswan-5.9.1/src/libimcv/pts/components/tcg/tcg_comp_func_name.c Examining data/strongswan-5.9.1/src/libimcv/pts/components/pts_comp_evidence.h Examining data/strongswan-5.9.1/src/libimcv/pts/components/pts_comp_func_name.c Examining data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_tboot.c Examining data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_tgrub.c Examining data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_func_name.c Examining data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.c Examining data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.h Examining data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_func_name.h Examining data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_tgrub.h Examining data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_tboot.h Examining data/strongswan-5.9.1/src/libimcv/pts/components/pts_comp_func_name.h Examining data/strongswan-5.9.1/src/libimcv/pts/components/pts_component_manager.h Examining data/strongswan-5.9.1/src/libimcv/pts/components/pts_component.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_dh_group.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_file_meas.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts_dh_group.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_creds.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_file_meta.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_database.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_file_meas.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts_database.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts_file_type.h Examining data/strongswan-5.9.1/src/libimcv/pts/pts_ima_bios_list.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts_meas_algo.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts_creds.c Examining data/strongswan-5.9.1/src/libimcv/pts/pts_file_meta.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_scanner/imv_scanner_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_scanner/imv_scanner_agent.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_scanner/imv_scanner.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_scanner/imv_scanner_agent.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_scanner/imv_scanner_state.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_attestation/imc_attestation.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_attestation/imc_attestation_state.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_attestation/imc_attestation_process.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_attestation/imc_attestation_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_attestation/imc_attestation_process.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_scanner/imc_scanner_state.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_scanner/imc_scanner_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_scanner/imc_scanner.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_state.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_agent.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_agent.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_process.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_process.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_usage.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_build.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_build.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_usage.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_os/imv_os_agent.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_os/imv_os_database.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_os/imv_os_database.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_os/imv_os.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_os/imv_os_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_os/imv_os_state.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_os/imv_os_agent.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_hcd/imc_hcd_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_hcd/imc_hcd_state.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_hcd/imc_hcd.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_swima/imc_swima_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_swima/imc_swima_state.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_swima/imc_swima.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_test/imv_test_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_test/imv_test_agent.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_test/imv_test_agent.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_test/imv_test_state.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_test/imv_test.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_test/imc_test_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_test/imc_test.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_test/imc_test_state.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_swima/imv_swima_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_swima/imv_swima_agent.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_swima/imv_swima_agent.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_swima/imv_swima_state.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_swima/imv_swima.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_os/imc_os_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_os/imc_os_state.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imc_os/imc_os.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_hcd/imv_hcd_agent.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_hcd/imv_hcd.c Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_hcd/imv_hcd_agent.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_hcd/imv_hcd_state.h Examining data/strongswan-5.9.1/src/libimcv/plugins/imv_hcd/imv_hcd_state.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_reason_string.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_os_info.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_policy_manager_usage.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_lang_string.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_if.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_session.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_policy_manager.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_workitem.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_session_manager.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_workitem.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_agent.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_reason_string.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_msg.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_policy_manager_usage.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_state.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_agent_if.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_agent.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_lang_string.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_database.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_session_manager.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_database.h Examining data/strongswan-5.9.1/src/libimcv/imv/imv_os_info.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_msg.c Examining data/strongswan-5.9.1/src/libimcv/imv/imv_session.h Examining data/strongswan-5.9.1/src/libimcv/seg/seg_contract_manager.h Examining data/strongswan-5.9.1/src/libimcv/seg/seg_contract_manager.c Examining data/strongswan-5.9.1/src/libimcv/seg/seg_contract.h Examining data/strongswan-5.9.1/src/libimcv/seg/seg_contract.c Examining data/strongswan-5.9.1/src/libimcv/seg/seg_env.c Examining data/strongswan-5.9.1/src/libimcv/seg/seg_env.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_port_filter.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_installed_packages.c Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_fwd_enabled.c Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_product_info.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr.c Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_pa_tnc_error.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_attr_request.c Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_port_filter.c Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_numeric_version.c Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_pa_tnc_error.c Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_fwd_enabled.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_op_status.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_product_info.c Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_string_version.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_attr_request.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_assess_result.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_remediation_instr.c Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_string_version.c Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_installed_packages.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_remediation_instr.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_op_status.c Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_numeric_version.h Examining data/strongswan-5.9.1/src/libimcv/ietf/swima/ietf_swima_attr_sw_inv.c Examining data/strongswan-5.9.1/src/libimcv/ietf/swima/ietf_swima_attr_req.h Examining data/strongswan-5.9.1/src/libimcv/ietf/swima/ietf_swima_attr_sw_ev.h Examining data/strongswan-5.9.1/src/libimcv/ietf/swima/ietf_swima_attr_sw_ev.c Examining data/strongswan-5.9.1/src/libimcv/ietf/swima/ietf_swima_attr_req.c Examining data/strongswan-5.9.1/src/libimcv/ietf/swima/ietf_swima_attr_sw_inv.h Examining data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_assess_result.c Examining data/strongswan-5.9.1/src/libimcv/imc/imc_agent.c Examining data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.h Examining data/strongswan-5.9.1/src/libimcv/imc/imc_agent.h Examining data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c Examining data/strongswan-5.9.1/src/libimcv/imc/imc_msg.h Examining data/strongswan-5.9.1/src/libimcv/imc/imc_msg.c Examining data/strongswan-5.9.1/src/libimcv/imc/imc_state.h Examining data/strongswan-5.9.1/src/libimcv/os_info/os_info.h Examining data/strongswan-5.9.1/src/libimcv/os_info/os_info.c Examining data/strongswan-5.9.1/src/libimcv/imcv_tests.c Examining data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen.h Examining data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen_info.c Examining data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen_info.h Examining data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen.c Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr_get_settings.c Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr.c Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr.h Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr_settings.c Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr_get_settings.h Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr_dummy.h Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr_command.c Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr_angel.c Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr_angel.h Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr_settings.h Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr_dummy.c Examining data/strongswan-5.9.1/src/libimcv/ita/ita_attr_command.h Examining data/strongswan-5.9.1/src/libimcv/swima/swima_data_model.c Examining data/strongswan-5.9.1/src/libimcv/swima/swima_inventory.c Examining data/strongswan-5.9.1/src/libimcv/swima/swima_event.c Examining data/strongswan-5.9.1/src/libimcv/swima/swima_record.h Examining data/strongswan-5.9.1/src/libimcv/swima/swima_collector.h Examining data/strongswan-5.9.1/src/libimcv/swima/swima_events.h Examining data/strongswan-5.9.1/src/libimcv/swima/swima_collector.c Examining data/strongswan-5.9.1/src/libimcv/swima/swima_events.c Examining data/strongswan-5.9.1/src/libimcv/swima/swima_data_model.h Examining data/strongswan-5.9.1/src/libimcv/swima/swima_error.h Examining data/strongswan-5.9.1/src/libimcv/swima/swima_record.c Examining data/strongswan-5.9.1/src/libimcv/swima/swima_event.h Examining data/strongswan-5.9.1/src/libimcv/swima/swima_error.c Examining data/strongswan-5.9.1/src/libimcv/swima/swima_inventory.h Examining data/strongswan-5.9.1/src/medsrv/controller/user_controller.c Examining data/strongswan-5.9.1/src/medsrv/controller/peer_controller.h Examining data/strongswan-5.9.1/src/medsrv/controller/peer_controller.c Examining data/strongswan-5.9.1/src/medsrv/controller/user_controller.h Examining data/strongswan-5.9.1/src/medsrv/filter/auth_filter.h Examining data/strongswan-5.9.1/src/medsrv/filter/auth_filter.c Examining data/strongswan-5.9.1/src/medsrv/user.c Examining data/strongswan-5.9.1/src/medsrv/user.h Examining data/strongswan-5.9.1/src/medsrv/main.c Examining data/strongswan-5.9.1/src/libradius/radius_config.c Examining data/strongswan-5.9.1/src/libradius/radius_message.h Examining data/strongswan-5.9.1/src/libradius/radius_config.h Examining data/strongswan-5.9.1/src/libradius/radius_mppe.h Examining data/strongswan-5.9.1/src/libradius/radius_client.h Examining data/strongswan-5.9.1/src/libradius/radius_message.c Examining data/strongswan-5.9.1/src/libradius/radius_client.c Examining data/strongswan-5.9.1/src/libradius/radius_socket.h Examining data/strongswan-5.9.1/src/libradius/radius_socket.c Examining data/strongswan-5.9.1/src/charon-svc/charon-svc.c Examining data/strongswan-5.9.1/src/conftest/actions.h Examining data/strongswan-5.9.1/src/conftest/conftest.c Examining data/strongswan-5.9.1/src/conftest/config.h Examining data/strongswan-5.9.1/src/conftest/actions.c Examining data/strongswan-5.9.1/src/conftest/config.c Examining data/strongswan-5.9.1/src/conftest/hooks/set_critical.c Examining data/strongswan-5.9.1/src/conftest/hooks/log_proposals.c Examining data/strongswan-5.9.1/src/conftest/hooks/hook.h Examining data/strongswan-5.9.1/src/conftest/hooks/log_ts.c Examining data/strongswan-5.9.1/src/conftest/hooks/custom_proposal.c Examining data/strongswan-5.9.1/src/conftest/hooks/log_id.c Examining data/strongswan-5.9.1/src/conftest/hooks/log_ke.c Examining data/strongswan-5.9.1/src/conftest/hooks/set_ike_request.c Examining data/strongswan-5.9.1/src/conftest/hooks/pretend_auth.c Examining data/strongswan-5.9.1/src/conftest/hooks/force_cookie.c Examining data/strongswan-5.9.1/src/conftest/hooks/set_ike_spi.c Examining data/strongswan-5.9.1/src/conftest/hooks/set_proposal_number.c Examining data/strongswan-5.9.1/src/conftest/hooks/add_notify.c Examining data/strongswan-5.9.1/src/conftest/hooks/set_ike_version.c Examining data/strongswan-5.9.1/src/conftest/hooks/unsort_message.c Examining data/strongswan-5.9.1/src/conftest/hooks/set_reserved.c Examining data/strongswan-5.9.1/src/conftest/hooks/ike_auth_fill.c Examining data/strongswan-5.9.1/src/conftest/hooks/ignore_message.c Examining data/strongswan-5.9.1/src/conftest/hooks/unencrypted_notify.c Examining data/strongswan-5.9.1/src/conftest/hooks/rebuild_auth.c Examining data/strongswan-5.9.1/src/conftest/hooks/add_payload.c Examining data/strongswan-5.9.1/src/conftest/hooks/reset_seq.c Examining data/strongswan-5.9.1/src/conftest/hooks/set_ike_initiator.c Examining data/strongswan-5.9.1/src/conftest/hooks/set_length.c Examining data/strongswan-5.9.1/src/conftest/conftest.h Examining data/strongswan-5.9.1/src/tpm_extendpcr/tpm_extendpcr.c Examining data/strongswan-5.9.1/src/libstrongswan/pen/pen.h Examining data/strongswan-5.9.1/src/libstrongswan/pen/pen.c Examining data/strongswan-5.9.1/src/libstrongswan/resolver/resolver_manager.h Examining data/strongswan-5.9.1/src/libstrongswan/resolver/rr_set.c Examining data/strongswan-5.9.1/src/libstrongswan/resolver/resolver_manager.c Examining data/strongswan-5.9.1/src/libstrongswan/resolver/rr_set.h Examining data/strongswan-5.9.1/src/libstrongswan/resolver/rr.h Examining data/strongswan-5.9.1/src/libstrongswan/resolver/resolver.h Examining data/strongswan-5.9.1/src/libstrongswan/resolver/resolver_response.h Examining data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.h Examining data/strongswan-5.9.1/src/libstrongswan/asn1/oid.h Examining data/strongswan-5.9.1/src/libstrongswan/asn1/asn1_parser.c Examining data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c Examining data/strongswan-5.9.1/src/libstrongswan/asn1/asn1_parser.h Examining data/strongswan-5.9.1/src/libstrongswan/asn1/oid.c Examining data/strongswan-5.9.1/src/libstrongswan/collections/hashtable_profiler.h Examining data/strongswan-5.9.1/src/libstrongswan/collections/hashtable.c Examining data/strongswan-5.9.1/src/libstrongswan/collections/dictionary.h Examining data/strongswan-5.9.1/src/libstrongswan/collections/array.c Examining data/strongswan-5.9.1/src/libstrongswan/collections/enumerator.c Examining data/strongswan-5.9.1/src/libstrongswan/collections/linked_list.h Examining data/strongswan-5.9.1/src/libstrongswan/collections/hashtable.h Examining data/strongswan-5.9.1/src/libstrongswan/collections/array.h Examining data/strongswan-5.9.1/src/libstrongswan/collections/linked_list.c Examining data/strongswan-5.9.1/src/libstrongswan/collections/enumerator.h Examining data/strongswan-5.9.1/src/libstrongswan/collections/blocking_queue.h Examining data/strongswan-5.9.1/src/libstrongswan/collections/hashlist.c Examining data/strongswan-5.9.1/src/libstrongswan/collections/blocking_queue.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/auth_cfg.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/cert_validator.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/credential_factory.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/auth_cfg.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/sets/cert_cache.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/sets/mem_cred.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/sets/ocsp_response_wrapper.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/sets/callback_cred.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/sets/ocsp_response_wrapper.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/sets/auth_cfg_wrapper.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/sets/mem_cred.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/sets/cert_cache.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/sets/auth_cfg_wrapper.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/sets/callback_cred.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/credential_set.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/credential_factory.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/certificate_printer.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/ocsp_response.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/crl.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/certificate_printer.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/ocsp_request.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/pkcs10.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/pgp_certificate.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/x509.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/ac.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/ocsp_response.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/certificate.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/crl.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/x509.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/certificates/certificate.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/cred_encoding.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/builder.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/cred_encoding.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/credential_manager.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/builder.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/keys/private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/keys/signature_params.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/keys/private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/keys/shared_key.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/keys/signature_params.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/keys/public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/keys/public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/keys/shared_key.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/credential_manager.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/containers/container.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/containers/container.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/containers/pkcs12.c Examining data/strongswan-5.9.1/src/libstrongswan/credentials/containers/pkcs7.h Examining data/strongswan-5.9.1/src/libstrongswan/credentials/containers/pkcs12.h Examining data/strongswan-5.9.1/src/libstrongswan/tests/tests.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_iv_gen.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_threading.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_settings.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_vectors.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_utils.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_printf.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_pen.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_asn1_parser.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_ed448.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_mgf1.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_crypto_factory.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_rsa.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_ed25519.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_host.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_watcher.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_ntru.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_certnames.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_ecdsa.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_asn1.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_identification.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enumerator.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_linked_list_enumerator.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_rng_tester.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_hashtable.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_array.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_traffic_selector.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_chunk.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_prf_plus.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_proposal.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_linked_list.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_writer.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_certpolicy.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_auth_cfg.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_signature_params.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/test_runner.h Examining data/strongswan-5.9.1/src/libstrongswan/tests/test_suite.h Examining data/strongswan-5.9.1/src/libstrongswan/tests/test_suite.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/test_runner.c Examining data/strongswan-5.9.1/src/libstrongswan/tests/tests.h Examining data/strongswan-5.9.1/src/libstrongswan/threading/rwlock.h Examining data/strongswan-5.9.1/src/libstrongswan/threading/thread_value.c Examining data/strongswan-5.9.1/src/libstrongswan/threading/semaphore.c Examining data/strongswan-5.9.1/src/libstrongswan/threading/thread.c Examining data/strongswan-5.9.1/src/libstrongswan/threading/spinlock.h Examining data/strongswan-5.9.1/src/libstrongswan/threading/lock_profiler.h Examining data/strongswan-5.9.1/src/libstrongswan/threading/semaphore.h Examining data/strongswan-5.9.1/src/libstrongswan/threading/rwlock.c Examining data/strongswan-5.9.1/src/libstrongswan/threading/condvar.h Examining data/strongswan-5.9.1/src/libstrongswan/threading/mutex.c Examining data/strongswan-5.9.1/src/libstrongswan/threading/mutex.h Examining data/strongswan-5.9.1/src/libstrongswan/threading/rwlock_condvar.h Examining data/strongswan-5.9.1/src/libstrongswan/threading/thread.h Examining data/strongswan-5.9.1/src/libstrongswan/threading/thread_value.h Examining data/strongswan-5.9.1/src/libstrongswan/threading/spinlock.c Examining data/strongswan-5.9.1/src/libstrongswan/threading/windows/thread_value.c Examining data/strongswan-5.9.1/src/libstrongswan/threading/windows/semaphore.c Examining data/strongswan-5.9.1/src/libstrongswan/threading/windows/thread.c Examining data/strongswan-5.9.1/src/libstrongswan/threading/windows/rwlock.c Examining data/strongswan-5.9.1/src/libstrongswan/threading/windows/mutex.c Examining data/strongswan-5.9.1/src/libstrongswan/threading/windows/thread.h Examining data/strongswan-5.9.1/src/libstrongswan/threading/windows/spinlock.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/signers/mac_signer.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/signers/mac_signer.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/signers/signer.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/signers/signer.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/prf_plus.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/transform.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/aead.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/diffie_hellman.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/iv/iv_gen_seq.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/iv/iv_gen_seq.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/iv/iv_gen.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/iv/iv_gen_null.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/iv/iv_gen_rand.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/iv/iv_gen_rand.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/iv/iv_gen_null.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/iv/iv_gen.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/xofs/mgf1.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/xofs/xof_bitspender.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/xofs/xof_bitspender.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/xofs/xof.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/xofs/xof.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/aead.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/nonce_gen.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/transform.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/prfs/prf.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/prfs/mac_prf.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/prfs/mac_prf.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/prfs/prf.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/proposal/proposal_keywords_static.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/proposal/proposal_keywords_static.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/proposal/proposal_keywords.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/proposal/proposal.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/proposal/proposal_keywords.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/proposal/proposal.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/prf_plus.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/hashers/hash_algorithm_set.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/hashers/hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/hashers/hash_algorithm_set.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/hashers/hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_factory.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/crypters/crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/crypters/crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/pkcs5.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/pkcs5.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/diffie_hellman.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_factory.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/rngs/rng.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/rngs/rng.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/rngs/rng_tester.c Examining data/strongswan-5.9.1/src/libstrongswan/crypto/rngs/rng_tester.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/mac.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/drbgs/drbg.h Examining data/strongswan-5.9.1/src/libstrongswan/crypto/drbgs/drbg.c Examining data/strongswan-5.9.1/src/libstrongswan/processing/jobs/callback_job.h Examining data/strongswan-5.9.1/src/libstrongswan/processing/jobs/job.c Examining data/strongswan-5.9.1/src/libstrongswan/processing/jobs/job.h Examining data/strongswan-5.9.1/src/libstrongswan/processing/jobs/callback_job.c Examining data/strongswan-5.9.1/src/libstrongswan/processing/scheduler.c Examining data/strongswan-5.9.1/src/libstrongswan/processing/processor.h Examining data/strongswan-5.9.1/src/libstrongswan/processing/scheduler.h Examining data/strongswan-5.9.1/src/libstrongswan/processing/processor.c Examining data/strongswan-5.9.1/src/libstrongswan/processing/watcher.c Examining data/strongswan-5.9.1/src/libstrongswan/processing/watcher.h Examining data/strongswan-5.9.1/src/libstrongswan/library.c Examining data/strongswan-5.9.1/src/libstrongswan/eap/eap.h Examining data/strongswan-5.9.1/src/libstrongswan/eap/eap.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_ed_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_x_diffie_hellman.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_ed_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_aead.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_ec_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_x_diffie_hellman.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_util.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_diffie_hellman.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_ec_diffie_hellman.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_rsa_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_hmac.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_rng.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_ec_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_common.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_ec_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_sha1_prf.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_sha1_prf.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_ed_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_diffie_hellman.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_hmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_rng.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_ec_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_rsa_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_util.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_ec_diffie_hellman.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_ed_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_aead.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_rsa_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_rsa_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha1/sha1_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha1/sha1_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha1/sha1_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha1/sha1_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha1/sha1_prf.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha1/sha1_prf.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/random/random_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/random/random_rng.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/random/random_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/random/random_rng.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_loader.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_feature.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/xcbc/xcbc.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/xcbc/xcbc_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/xcbc/xcbc.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/xcbc/xcbc_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/soup/soup_fetcher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/soup/soup_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/soup/soup_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/soup/soup_fetcher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/mgf1/mgf1_xof.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/mgf1/mgf1_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/mgf1/mgf1_xof.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/mgf1/mgf1_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_library.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_creds.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_dh.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_creds.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_library.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_rng.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_dh.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_rng.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_manager.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_fetcher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_fetcher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/cmac/cmac.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/cmac/cmac_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/cmac/cmac_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/cmac/cmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/rc2/rc2_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/rc2/rc2_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/rc2/rc2_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/rc2/rc2_crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ctr/ctr_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ctr/ctr_ipsec_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ctr/ctr_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ctr/ctr_ipsec_crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha3/sha3_keccak.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha3/sha3_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha3/sha3_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha3/sha3_shake.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha3/sha3_keccak.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha3/sha3_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha3/sha3_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha3/sha3_shake.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_rsa_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_rsa_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_rsa_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/mysql/mysql_database.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/mysql/mysql_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/mysql/mysql_database.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/mysql/mysql_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs12/pkcs12_decode.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs12/pkcs12_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs12/pkcs12_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs12/pkcs12_decode.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/nonce/nonce_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/nonce/nonce_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/nonce/nonce_nonceg.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/nonce/nonce_nonceg.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/dnskey/dnskey_encoder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/dnskey/dnskey_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/dnskey/dnskey_builder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/dnskey/dnskey_encoder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/dnskey/dnskey_builder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/dnskey/dnskey_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs1/pkcs1_encoder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs1/pkcs1_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs1/pkcs1_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs1/pkcs1_builder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs1/pkcs1_builder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_rng.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_aes_crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_aes_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_sha1_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_rng.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_sha1_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_loader.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/acert/acert_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/acert/acert_validator.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/acert/acert_validator.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/acert/acert_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/constraints/constraints_validator.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/constraints/constraints_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/constraints/constraints_validator.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/constraints/constraints_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_crl.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_pkcs10.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_cert.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ocsp_response.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_cert.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ocsp_request.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ocsp_request.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ac.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_pkcs10.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ocsp_response.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_crl.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/unbound/unbound_resolver.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/unbound/unbound_response.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/unbound/unbound_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/unbound/unbound_rr.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/unbound/unbound_response.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/unbound/unbound_resolver.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/unbound/unbound_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/unbound/unbound_rr.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_enveloped_data.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_generic.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_attributes.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_signed_data.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_generic.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_encrypted_data.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_data.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_signed_data.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_data.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_encrypted_data.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_attributes.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_enveloped_data.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_xcbc.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_gcm.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_gcm.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_cbc.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_xcbc.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_cmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ecb.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_cmac.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ecb.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_cbc.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sqlite/sqlite_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sqlite/sqlite_database.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sqlite/sqlite_database.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sqlite/sqlite_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_identity_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_dh.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_dh.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_identity_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_drv.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_drv_portable.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/base2.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/ref10.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/ref10.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/base.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_drv_portable.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_drv.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_hmac.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_ctr.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_ctr.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_hmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/hmac/hmac_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/hmac/hmac_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/hmac/hmac.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/hmac/hmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_feature.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_util_keys.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_hmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_x25519.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_rsa_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_util_keys.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_aead.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_rsa_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ec_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ed_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_util.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_rng.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ec_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_util.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_hmac.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_x25519.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_diffie_hellman.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ed_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ec_diffie_hellman.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ed_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_rsa_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_rng.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ec_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ec_diffie_hellman.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_aead.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ed_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_diffie_hellman.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ec_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_rsa_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/agent/agent_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/agent/agent_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/agent/agent_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/agent/agent_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sshkey/sshkey_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sshkey/sshkey_builder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sshkey/sshkey_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sshkey/sshkey_encoder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sshkey/sshkey_builder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sshkey/sshkey_encoder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_builder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_encoder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_builder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_encoder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_rng.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_x509.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_ec_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_hmac.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_pkcs7.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_ec_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_util.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_xof.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_sha1_prf.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_rng.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_pkcs12.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_x_diffie_hellman.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_x509.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_ec_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_hmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_pkcs7.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_aead.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_pkcs12.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_crl.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_crl.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_aead.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_ed_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_xof.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_x_diffie_hellman.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_ed_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_sha1_prf.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_ec_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_rsa_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_ed_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_rsa_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_util.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_ed_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_rsa_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_signature.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_signature.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_huffman_code_4.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_bitpacker.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_sampler.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_utils.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_huffman_code.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_param_set.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/tests/suites/test_bliss_keys.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/tests/suites/test_bliss_huffman.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/tests/suites/test_bliss_sampler.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/tests/suites/test_bliss_bitpacker.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/tests/suites/test_bliss_signature.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/tests/suites/test_bliss_sign.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/tests/bliss_tests.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/tests/bliss_tests.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_huffman_coder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_huffman_code.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_huffman_code_3.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_bitpacker.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_sampler.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_huffman_coder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_utils.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_huffman.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_param_set.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_huffman_code_1.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_utils.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_encoder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_cert.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_builder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_cert.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_utils.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_builder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_encoder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/files/files_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/files/files_fetcher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/files/files_fetcher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/files/files_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/newhope_ke.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/newhope_reconciliation.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/newhope_ke.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/newhope_reconciliation.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/tests/newhope_tests.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/tests/suites/test_newhope_reconciliation.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/tests/suites/test_newhope_noise.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/tests/suites/test_newhope_ke.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/tests/newhope_tests.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/newhope_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/newhope_noise.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/newhope_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/newhope_noise.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/revocation/revocation_validator.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/revocation/revocation_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/revocation/revocation_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/revocation/revocation_validator.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_prf.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_signer.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_prf.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_ops.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_signer.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_ops.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ldap/ldap_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ldap/ldap_fetcher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ldap/ldap_fetcher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ldap/ldap_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_rng.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_dh.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_dh.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_rng.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_poly.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_param_set.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_private_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_convert.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_ke.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_param_set.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_trits.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_convert.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_public_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_public_key.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_poly.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_ke.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_private_key.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_trits.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/keychain/keychain_creds.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/keychain/keychain_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/keychain/keychain_creds.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/keychain/keychain_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_xof.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_xof.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_aead.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_drv.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_drv.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_drv_ssse3.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_drv_ssse3.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_drv_portable.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_aead.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_drv_portable.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/fips_prf/fips_prf.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/fips_prf/fips_prf_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/fips_prf/fips_prf.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/fips_prf/fips_prf_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/md5/md5_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/md5/md5_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/md5/md5_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/md5/md5_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/rdrand/rdrand_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/rdrand/rdrand_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/rdrand/rdrand_rng.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/rdrand/rdrand_rng.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/blowfish/bf_enc.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/blowfish/bf_pi.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/blowfish/blowfish_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/blowfish/blowfish_crypter.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/blowfish/bf_locl.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/blowfish/bf_skey.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/blowfish/blowfish_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/blowfish/blowfish.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/blowfish/blowfish_crypter.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/md4/md4_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/md4/md4_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/md4/md4_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/md4/md4_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha2/sha2_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha2/sha2_hasher.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha2/sha2_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/sha2/sha2_hasher.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/ecp.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/chacha20_xof.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/sha2.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/sha3_shake.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/null.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/blowfish.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/aes_gcm.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/rng.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/sha3.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/rc2.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/modpsub.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/aes_cbc.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/camellia_cbc.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/aes_xcbc.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/ecpbp.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/serpent_cbc.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/curve25519.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/idea.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/sha1_hmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/des.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/fips_prf.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/md5_hmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/curve448.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/aes_ecb.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/drbg_ctr.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/chacha20poly1305.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/twofish_cbc.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/sha1.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/aes_ctr.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/cast.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/sha2_hmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/md5.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/drbg_hmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/aes_ccm.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/3des_cbc.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/aes_cmac.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/camellia_xcbc.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/rc5.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/md4.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/md2.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/camellia_ctr.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/test_vectors/test_vectors/modp.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs8/pkcs8_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs8/pkcs8_builder.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs8/pkcs8_builder.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs8/pkcs8_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pubkey/pubkey_plugin.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pubkey/pubkey_cert.c Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pubkey/pubkey_cert.h Examining data/strongswan-5.9.1/src/libstrongswan/plugins/pubkey/pubkey_plugin.c Examining data/strongswan-5.9.1/src/libstrongswan/math/libnttfft/ntt_fft_params.h Examining data/strongswan-5.9.1/src/libstrongswan/math/libnttfft/tests/suites/test_ntt_fft.c Examining data/strongswan-5.9.1/src/libstrongswan/math/libnttfft/tests/ntt_fft_tests.h Examining data/strongswan-5.9.1/src/libstrongswan/math/libnttfft/tests/ntt_fft_tests.c Examining data/strongswan-5.9.1/src/libstrongswan/math/libnttfft/ntt_fft.h Examining data/strongswan-5.9.1/src/libstrongswan/math/libnttfft/ntt_fft_reduce.h Examining data/strongswan-5.9.1/src/libstrongswan/math/libnttfft/ntt_fft.c Examining data/strongswan-5.9.1/src/libstrongswan/math/libnttfft/ntt_fft_params.c Examining data/strongswan-5.9.1/src/libstrongswan/settings/settings_types.h Examining data/strongswan-5.9.1/src/libstrongswan/settings/settings.h Examining data/strongswan-5.9.1/src/libstrongswan/settings/settings.c Examining data/strongswan-5.9.1/src/libstrongswan/settings/settings_parser.c Examining data/strongswan-5.9.1/src/libstrongswan/settings/settings_parser.h Examining data/strongswan-5.9.1/src/libstrongswan/settings/settings_lexer.c Examining data/strongswan-5.9.1/src/libstrongswan/settings/settings_types.c Examining data/strongswan-5.9.1/src/libstrongswan/bio/bio_reader.c Examining data/strongswan-5.9.1/src/libstrongswan/bio/bio_writer.h Examining data/strongswan-5.9.1/src/libstrongswan/bio/bio_reader.h Examining data/strongswan-5.9.1/src/libstrongswan/bio/bio_writer.c Examining data/strongswan-5.9.1/src/libstrongswan/fetcher/fetcher.c Examining data/strongswan-5.9.1/src/libstrongswan/fetcher/fetcher_manager.c Examining data/strongswan-5.9.1/src/libstrongswan/fetcher/fetcher.h Examining data/strongswan-5.9.1/src/libstrongswan/fetcher/fetcher_manager.h Examining data/strongswan-5.9.1/src/libstrongswan/database/database_factory.c Examining data/strongswan-5.9.1/src/libstrongswan/database/database_factory.h Examining data/strongswan-5.9.1/src/libstrongswan/database/database.c Examining data/strongswan-5.9.1/src/libstrongswan/database/database.h Examining data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c Examining data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/leak_detective.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/capabilities.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_glibc.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/parser_helper.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/cpu_feature.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/optionsfrom.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/lexparser.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/process.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/chunk.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/compat/apple.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/compat/android.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/enum.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/enum.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/capabilities.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/process.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/integrity_checker.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/leak_detective.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/integrity_checker.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/parser_helper.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/debug.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/identification.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/identification.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/debug.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/test.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/optionsfrom.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/strerror.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/tty.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/path.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/align.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/path.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/strerror.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/tty.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/atomics.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/time.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/object.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/time.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/atomics.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/status.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/align.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/status.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/memory.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/memory.c Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/byteorder.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/utils/types.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/test.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/cpu_feature.h Examining data/strongswan-5.9.1/src/libstrongswan/utils/lexparser.h Examining data/strongswan-5.9.1/src/libstrongswan/library.h Examining data/strongswan-5.9.1/src/libstrongswan/ipsec/ipsec_types.c Examining data/strongswan-5.9.1/src/libstrongswan/ipsec/ipsec_types.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/host_resolver.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/host.c Examining data/strongswan-5.9.1/src/libstrongswan/networking/packet.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service_tcp.c Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_tcp.c Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_tcp.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream.c Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service_tcp.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_manager.c Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service_unix.c Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_unix.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_manager.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service_unix.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service_systemd.c Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service_systemd.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service.c Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_unix.c Examining data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/host.h Examining data/strongswan-5.9.1/src/libstrongswan/networking/host_resolver.c Examining data/strongswan-5.9.1/src/libstrongswan/networking/packet.c Examining data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c Examining data/strongswan-5.9.1/src/libtncif/tncifimv.h Examining data/strongswan-5.9.1/src/libtncif/tncif_names.c Examining data/strongswan-5.9.1/src/libtncif/tncif_pa_subtypes.c Examining data/strongswan-5.9.1/src/libtncif/tncif_policy.c Examining data/strongswan-5.9.1/src/libtncif/tncif_names.h Examining data/strongswan-5.9.1/src/libtncif/tncif_identity.c Examining data/strongswan-5.9.1/src/libtncif/tncif_identity.h Examining data/strongswan-5.9.1/src/libtncif/tncifimc.h Examining data/strongswan-5.9.1/src/libtncif/tncif_pa_subtypes.h Examining data/strongswan-5.9.1/src/libtncif/tncif.h Examining data/strongswan-5.9.1/src/libtncif/tncif_policy.h Examining data/strongswan-5.9.1/src/charon/charon.c Examining data/strongswan-5.9.1/src/libpttls/pt_tls_dispatcher.c Examining data/strongswan-5.9.1/src/libpttls/sasl/sasl_mechanism.h Examining data/strongswan-5.9.1/src/libpttls/sasl/sasl_mechanism.c Examining data/strongswan-5.9.1/src/libpttls/sasl/sasl_plain/sasl_plain.h Examining data/strongswan-5.9.1/src/libpttls/sasl/sasl_plain/sasl_plain.c Examining data/strongswan-5.9.1/src/libpttls/pt_tls.h Examining data/strongswan-5.9.1/src/libpttls/pt_tls_client.h Examining data/strongswan-5.9.1/src/libpttls/pt_tls_dispatcher.h Examining data/strongswan-5.9.1/src/libpttls/pt_tls_server.c Examining data/strongswan-5.9.1/src/libpttls/pt_tls_client.c Examining data/strongswan-5.9.1/src/libpttls/pt_tls_server.h Examining data/strongswan-5.9.1/src/libpttls/pt_tls.c Examining data/strongswan-5.9.1/src/pt-tls-client/pt-tls-client.c Examining data/strongswan-5.9.1/src/pki/pki.c Examining data/strongswan-5.9.1/src/pki/pki.h Examining data/strongswan-5.9.1/src/pki/command.h Examining data/strongswan-5.9.1/src/pki/command.c Examining data/strongswan-5.9.1/src/pki/commands/verify.c Examining data/strongswan-5.9.1/src/pki/commands/issue.c Examining data/strongswan-5.9.1/src/pki/commands/acert.c Examining data/strongswan-5.9.1/src/pki/commands/req.c Examining data/strongswan-5.9.1/src/pki/commands/print.c Examining data/strongswan-5.9.1/src/pki/commands/keyid.c Examining data/strongswan-5.9.1/src/pki/commands/self.c Examining data/strongswan-5.9.1/src/pki/commands/pkcs7.c Examining data/strongswan-5.9.1/src/pki/commands/pkcs12.c Examining data/strongswan-5.9.1/src/pki/commands/signcrl.c Examining data/strongswan-5.9.1/src/pki/commands/pub.c Examining data/strongswan-5.9.1/src/pki/commands/gen.c Examining data/strongswan-5.9.1/src/pki/commands/dn.c Examining data/strongswan-5.9.1/src/scepclient/scepclient.c Examining data/strongswan-5.9.1/src/scepclient/scep.h Examining data/strongswan-5.9.1/src/scepclient/scep.c Examining data/strongswan-5.9.1/src/sw-collector/sw_collector_db.c Examining data/strongswan-5.9.1/src/sw-collector/sw_collector_rest_api.h Examining data/strongswan-5.9.1/src/sw-collector/sw_collector_rest_api.c Examining data/strongswan-5.9.1/src/sw-collector/sw_collector_dpkg.h Examining data/strongswan-5.9.1/src/sw-collector/sw-collector.c Examining data/strongswan-5.9.1/src/sw-collector/sw_collector_history.c Examining data/strongswan-5.9.1/src/sw-collector/sw_collector_dpkg.c Examining data/strongswan-5.9.1/src/sw-collector/sw_collector_db.h Examining data/strongswan-5.9.1/src/sw-collector/sw_collector_history.h Examining data/strongswan-5.9.1/src/charon-nm/charon-nm.c Examining data/strongswan-5.9.1/src/charon-nm/nm/nm_service.h Examining data/strongswan-5.9.1/src/charon-nm/nm/nm_creds.h Examining data/strongswan-5.9.1/src/charon-nm/nm/nm_backend.c Examining data/strongswan-5.9.1/src/charon-nm/nm/nm_handler.h Examining data/strongswan-5.9.1/src/charon-nm/nm/nm_handler.c Examining data/strongswan-5.9.1/src/charon-nm/nm/nm_service.c Examining data/strongswan-5.9.1/src/charon-nm/nm/nm_backend.h Examining data/strongswan-5.9.1/src/charon-nm/nm/nm_creds.c Examining data/strongswan-5.9.1/src/include/sys/queue.h Examining data/strongswan-5.9.1/src/include/linux/if_alg.h Examining data/strongswan-5.9.1/src/include/linux/udp.h Examining data/strongswan-5.9.1/src/include/linux/socket.h Examining data/strongswan-5.9.1/src/include/linux/pfkeyv2.h Examining data/strongswan-5.9.1/src/include/linux/xfrm.h Examining data/strongswan-5.9.1/src/include/linux/ipsec.h Examining data/strongswan-5.9.1/src/include/linux/netlink.h Examining data/strongswan-5.9.1/src/include/linux/rtnetlink.h Examining data/strongswan-5.9.1/src/sec-updater/sec-updater.c Examining data/strongswan-5.9.1/src/libfast/fast_session.c Examining data/strongswan-5.9.1/src/libfast/fast_dispatcher.h Examining data/strongswan-5.9.1/src/libfast/fast_context.h Examining data/strongswan-5.9.1/src/libfast/fast_request.c Examining data/strongswan-5.9.1/src/libfast/fast_controller.h Examining data/strongswan-5.9.1/src/libfast/fast_smtp.h Examining data/strongswan-5.9.1/src/libfast/fast_filter.h Examining data/strongswan-5.9.1/src/libfast/fast_request.h Examining data/strongswan-5.9.1/src/libfast/fast_smtp.c Examining data/strongswan-5.9.1/src/libfast/fast_dispatcher.c Examining data/strongswan-5.9.1/src/libfast/fast_session.h Examining data/strongswan-5.9.1/src/libipsec/ipsec_processor.c Examining data/strongswan-5.9.1/src/libipsec/ipsec_event_listener.h Examining data/strongswan-5.9.1/src/libipsec/esp_context.c Examining data/strongswan-5.9.1/src/libipsec/ipsec_processor.h Examining data/strongswan-5.9.1/src/libipsec/esp_packet.c Examining data/strongswan-5.9.1/src/libipsec/ipsec_sa.c Examining data/strongswan-5.9.1/src/libipsec/ipsec_event_relay.c Examining data/strongswan-5.9.1/src/libipsec/tests/ipsec_tests.c Examining data/strongswan-5.9.1/src/libipsec/tests/suites/test_chapoly.c Examining data/strongswan-5.9.1/src/libipsec/tests/ipsec_tests.h Examining data/strongswan-5.9.1/src/libipsec/esp_context.h Examining data/strongswan-5.9.1/src/libipsec/ipsec_sa.h Examining data/strongswan-5.9.1/src/libipsec/esp_packet.h Examining data/strongswan-5.9.1/src/libipsec/ipsec_policy.h Examining data/strongswan-5.9.1/src/libipsec/ipsec.h Examining data/strongswan-5.9.1/src/libipsec/ipsec_sa_mgr.c Examining data/strongswan-5.9.1/src/libipsec/ipsec_policy.c Examining data/strongswan-5.9.1/src/libipsec/ip_packet.c Examining data/strongswan-5.9.1/src/libipsec/ipsec_policy_mgr.c Examining data/strongswan-5.9.1/src/libipsec/ipsec_event_relay.h Examining data/strongswan-5.9.1/src/libipsec/ipsec.c Examining data/strongswan-5.9.1/src/libipsec/ipsec_policy_mgr.h Examining data/strongswan-5.9.1/src/libipsec/ipsec_sa_mgr.h Examining data/strongswan-5.9.1/src/libipsec/ip_packet.h Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss_trousers.h Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_names_v1.c Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_names_v2.c Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss.c Examining data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_plugin.h Examining data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_rng.c Examining data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_cert.c Examining data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_rng.h Examining data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_cert.h Examining data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_plugin.c Examining data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_private_key.h Examining data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_private_key.c Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2.h Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss.h Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_names.h Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss_quote_info.c Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss_trousers.c Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c Examining data/strongswan-5.9.1/src/libtpmtss/tpm_tss_quote_info.h Examining data/strongswan-5.9.1/src/aikgen/aikgen.c Examining data/strongswan-5.9.1/src/charon-systemd/charon-systemd.c Examining data/strongswan-5.9.1/src/manager/xml.c Examining data/strongswan-5.9.1/src/manager/controller/control_controller.c Examining data/strongswan-5.9.1/src/manager/controller/config_controller.c Examining data/strongswan-5.9.1/src/manager/controller/ikesa_controller.c Examining data/strongswan-5.9.1/src/manager/controller/gateway_controller.c Examining data/strongswan-5.9.1/src/manager/controller/gateway_controller.h Examining data/strongswan-5.9.1/src/manager/controller/auth_controller.h Examining data/strongswan-5.9.1/src/manager/controller/control_controller.h Examining data/strongswan-5.9.1/src/manager/controller/ikesa_controller.h Examining data/strongswan-5.9.1/src/manager/controller/auth_controller.c Examining data/strongswan-5.9.1/src/manager/controller/config_controller.h Examining data/strongswan-5.9.1/src/manager/gateway.h Examining data/strongswan-5.9.1/src/manager/manager.h Examining data/strongswan-5.9.1/src/manager/manager.c Examining data/strongswan-5.9.1/src/manager/gateway.c Examining data/strongswan-5.9.1/src/manager/storage.c Examining data/strongswan-5.9.1/src/manager/main.c Examining data/strongswan-5.9.1/src/manager/storage.h Examining data/strongswan-5.9.1/src/manager/xml.h Examining data/strongswan-5.9.1/src/xfrmi/xfrmi.c Examining data/strongswan-5.9.1/src/libcharon/network/socket_manager.c Examining data/strongswan-5.9.1/src/libcharon/network/receiver.c Examining data/strongswan-5.9.1/src/libcharon/network/receiver.h Examining data/strongswan-5.9.1/src/libcharon/network/socket.c Examining data/strongswan-5.9.1/src/libcharon/network/socket.h Examining data/strongswan-5.9.1/src/libcharon/network/sender.h Examining data/strongswan-5.9.1/src/libcharon/network/sender.c Examining data/strongswan-5.9.1/src/libcharon/network/socket_manager.h Examining data/strongswan-5.9.1/src/libcharon/daemon.h Examining data/strongswan-5.9.1/src/libcharon/tests/libcharon_tests.h Examining data/strongswan-5.9.1/src/libcharon/tests/libcharon_tests.c Examining data/strongswan-5.9.1/src/libcharon/tests/suites/test_ike_cfg.c Examining data/strongswan-5.9.1/src/libcharon/tests/suites/test_ike_delete.c Examining data/strongswan-5.9.1/src/libcharon/tests/suites/test_childless.c Examining data/strongswan-5.9.1/src/libcharon/tests/suites/test_child_create.c Examining data/strongswan-5.9.1/src/libcharon/tests/suites/test_child_rekey.c Examining data/strongswan-5.9.1/src/libcharon/tests/suites/test_ike_rekey.c Examining data/strongswan-5.9.1/src/libcharon/tests/suites/test_message_chapoly.c Examining data/strongswan-5.9.1/src/libcharon/tests/suites/test_ike_mid_sync.c Examining data/strongswan-5.9.1/src/libcharon/tests/suites/test_child_delete.c Examining data/strongswan-5.9.1/src/libcharon/tests/suites/test_peer_cfg.c Examining data/strongswan-5.9.1/src/libcharon/tests/suites/test_mem_pool.c Examining data/strongswan-5.9.1/src/libcharon/tests/exchange_tests.c Examining data/strongswan-5.9.1/src/libcharon/tests/utils/job_asserts.h Examining data/strongswan-5.9.1/src/libcharon/tests/utils/mock_net.c Examining data/strongswan-5.9.1/src/libcharon/tests/utils/mock_dh.h Examining data/strongswan-5.9.1/src/libcharon/tests/utils/exchange_test_helper.c Examining data/strongswan-5.9.1/src/libcharon/tests/utils/mock_ipsec.c Examining data/strongswan-5.9.1/src/libcharon/tests/utils/exchange_test_asserts.c Examining data/strongswan-5.9.1/src/libcharon/tests/utils/mock_net.h Examining data/strongswan-5.9.1/src/libcharon/tests/utils/exchange_test_helper.h Examining data/strongswan-5.9.1/src/libcharon/tests/utils/mock_nonce_gen.h Examining data/strongswan-5.9.1/src/libcharon/tests/utils/mock_ipsec.h Examining data/strongswan-5.9.1/src/libcharon/tests/utils/sa_asserts.h Examining data/strongswan-5.9.1/src/libcharon/tests/utils/mock_sender.h Examining data/strongswan-5.9.1/src/libcharon/tests/utils/mock_sender.c Examining data/strongswan-5.9.1/src/libcharon/tests/utils/mock_nonce_gen.c Examining data/strongswan-5.9.1/src/libcharon/tests/utils/mock_dh.c Examining data/strongswan-5.9.1/src/libcharon/tests/utils/exchange_test_asserts.h Examining data/strongswan-5.9.1/src/libcharon/tests/exchange_tests.h Examining data/strongswan-5.9.1/src/libcharon/encoding/generator.h Examining data/strongswan-5.9.1/src/libcharon/encoding/message.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/ts_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/traffic_selector_substructure.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/ke_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/nonce_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/proposal_substructure.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/nonce_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/endpoint_notify.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/eap_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/cp_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/ke_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/fragment_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/certreq_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/eap_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/encodings.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/notify_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/vendor_id_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/transform_attribute.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/transform_substructure.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/vendor_id_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/encodings.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/configuration_attribute.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/cert_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/transform_substructure.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/notify_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/proposal_substructure.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/endpoint_notify.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/id_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_fragment_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/unknown_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/ike_header.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/configuration_attribute.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/hash_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/certreq_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/ike_header.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/auth_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/delete_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/traffic_selector_substructure.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/transform_attribute.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/unknown_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/id_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/cert_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/fragment_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/sa_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/auth_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/delete_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/hash_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/ts_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/sa_payload.c Examining data/strongswan-5.9.1/src/libcharon/encoding/payloads/cp_payload.h Examining data/strongswan-5.9.1/src/libcharon/encoding/parser.h Examining data/strongswan-5.9.1/src/libcharon/encoding/parser.c Examining data/strongswan-5.9.1/src/libcharon/encoding/generator.c Examining data/strongswan-5.9.1/src/libcharon/encoding/message.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/acquire_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/start_action_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/mediation_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/retry_initiate_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/acquire_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/dpd_timeout_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/migrate_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/retry_initiate_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/process_message_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/initiate_tasks_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/adopt_children_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/retransmit_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/delete_child_sa_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/rekey_ike_sa_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/delete_ike_sa_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/initiate_mediation_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/process_message_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/retransmit_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/inactivity_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/delete_child_sa_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/send_dpd_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/delete_ike_sa_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/rekey_child_sa_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/update_sa_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/roam_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/send_keepalive_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/rekey_child_sa_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/redirect_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/dpd_timeout_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/send_dpd_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/redirect_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/inactivity_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/start_action_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/send_keepalive_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/mediation_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/initiate_mediation_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/roam_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/adopt_children_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/rekey_ike_sa_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/migrate_job.h Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/update_sa_job.c Examining data/strongswan-5.9.1/src/libcharon/processing/jobs/initiate_tasks_job.c Examining data/strongswan-5.9.1/src/libcharon/daemon.c Examining data/strongswan-5.9.1/src/libcharon/config/child_cfg.h Examining data/strongswan-5.9.1/src/libcharon/config/backend_manager.c Examining data/strongswan-5.9.1/src/libcharon/config/backend_manager.h Examining data/strongswan-5.9.1/src/libcharon/config/child_cfg.c Examining data/strongswan-5.9.1/src/libcharon/config/peer_cfg.h Examining data/strongswan-5.9.1/src/libcharon/config/peer_cfg.c Examining data/strongswan-5.9.1/src/libcharon/config/backend.h Examining data/strongswan-5.9.1/src/libcharon/config/ike_cfg.c Examining data/strongswan-5.9.1/src/libcharon/config/ike_cfg.h Examining data/strongswan-5.9.1/src/libcharon/attributes/mem_pool.c Examining data/strongswan-5.9.1/src/libcharon/attributes/attribute_manager.c Examining data/strongswan-5.9.1/src/libcharon/attributes/attribute_manager.h Examining data/strongswan-5.9.1/src/libcharon/attributes/attributes.h Examining data/strongswan-5.9.1/src/libcharon/attributes/mem_pool.h Examining data/strongswan-5.9.1/src/libcharon/attributes/attributes.c Examining data/strongswan-5.9.1/src/libcharon/attributes/attribute_provider.h Examining data/strongswan-5.9.1/src/libcharon/attributes/attribute_handler.h Examining data/strongswan-5.9.1/src/libcharon/plugins/led/led_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/led/led_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/led/led_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/led/led_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/connmark/connmark_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/connmark/connmark_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/connmark/connmark_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/connmark/connmark_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/save_keys/save_keys_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/save_keys/save_keys_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/save_keys/save_keys_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/save_keys/save_keys_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/medcli/medcli_config.c Examining data/strongswan-5.9.1/src/libcharon/plugins/medcli/medcli_config.h Examining data/strongswan-5.9.1/src/libcharon/plugins/medcli/medcli_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/medcli/medcli_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/medcli/medcli_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/medcli/medcli_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/medcli/medcli_creds.c Examining data/strongswan-5.9.1/src/libcharon/plugins/medcli/medcli_creds.h Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_pam/xauth_pam_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_pam/xauth_pam_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_pam/xauth_pam_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_pam/xauth_pam.h Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_pam/xauth_pam.c Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_pam/xauth_pam_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_pdp/tnc_pdp.c Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_pdp/tnc_pdp_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_pdp/tnc_pdp.h Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_pdp/tnc_pdp_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_pdp/tnc_pdp_connections.h Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_pdp/tnc_pdp_connections.c Examining data/strongswan-5.9.1/src/libcharon/plugins/unity/unity_narrow.h Examining data/strongswan-5.9.1/src/libcharon/plugins/unity/unity_handler.h Examining data/strongswan-5.9.1/src/libcharon/plugins/unity/unity_narrow.c Examining data/strongswan-5.9.1/src/libcharon/plugins/unity/unity_handler.c Examining data/strongswan-5.9.1/src/libcharon/plugins/unity/unity_provider.c Examining data/strongswan-5.9.1/src/libcharon/plugins/unity/unity_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/unity/unity_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/unity/unity_provider.h Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_counter.h Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_handler.c Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_handler.h Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_counter.c Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_socket.h Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_socket.c Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_config.c Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_control.h Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_control.c Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_config.h Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_ca.h Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_attribute.c Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_attribute.h Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.h Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_list.h Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_list.c Examining data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_ca.c Examining data/strongswan-5.9.1/src/libcharon/plugins/android_dns/android_dns_handler.c Examining data/strongswan-5.9.1/src/libcharon/plugins/android_dns/android_dns_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/android_dns/android_dns_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/android_dns/android_dns_handler.h Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_win/socket_win_socket.h Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_win/socket_win_socket.c Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_win/socket_win_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_win/socket_win_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_cron.h Examining data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_export.c Examining data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_cron.c Examining data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_export.h Examining data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_forwarder.h Examining data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_forwarder.c Examining data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_gtc/eap_gtc_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_gtc/eap_gtc.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_gtc/eap_gtc_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_gtc/eap_gtc.c Examining data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify_msg.h Examining data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify_socket.h Examining data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify.c Examining data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify_socket.c Examining data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_handler.h Examining data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_handler.c Examining data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/attr/attr_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/attr/attr_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/attr/attr_provider.h Examining data/strongswan-5.9.1/src/libcharon/plugins/attr/attr_provider.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_router.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_ipsec.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_router.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_ipsec.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/tests/tests.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/tests/suites/test_vectors.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/tests/tests.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.h Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_noauth/xauth_noauth_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_noauth/xauth_noauth_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_noauth/xauth_noauth.c Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_noauth/xauth_noauth.h Examining data/strongswan-5.9.1/src/libcharon/plugins/android_log/android_log_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/android_log/android_log_logger.c Examining data/strongswan-5.9.1/src/libcharon/plugins/android_log/android_log_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/android_log/android_log_logger.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_functions.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_functions.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_dae.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_forward.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_xauth.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_accounting.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_provider.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_accounting.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_dae.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_forward.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_provider.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_xauth.h Examining data/strongswan-5.9.1/src/libcharon/plugins/coupling/coupling_validator.c Examining data/strongswan-5.9.1/src/libcharon/plugins/coupling/coupling_validator.h Examining data/strongswan-5.9.1/src/libcharon/plugins/coupling/coupling_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/coupling/coupling_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_spoofer.h Examining data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_spoofer.c Examining data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/addrblock/addrblock_narrow.c Examining data/strongswan-5.9.1/src/libcharon/plugins/addrblock/addrblock_narrow.h Examining data/strongswan-5.9.1/src/libcharon/plugins/addrblock/addrblock_validator.h Examining data/strongswan-5.9.1/src/libcharon/plugins/addrblock/addrblock_validator.c Examining data/strongswan-5.9.1/src/libcharon/plugins/addrblock/addrblock_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/addrblock/addrblock_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/smp/smp.c Examining data/strongswan-5.9.1/src/libcharon/plugins/smp/smp.h Examining data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_socket.c Examining data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip.c Examining data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_socket.h Examining data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_msg.h Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.h Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c Examining data/strongswan-5.9.1/src/libcharon/plugins/medsrv/medsrv_creds.c Examining data/strongswan-5.9.1/src/libcharon/plugins/medsrv/medsrv_config.h Examining data/strongswan-5.9.1/src/libcharon/plugins/medsrv/medsrv_config.c Examining data/strongswan-5.9.1/src/libcharon/plugins/medsrv/medsrv_creds.h Examining data/strongswan-5.9.1/src/libcharon/plugins/medsrv/medsrv_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/medsrv/medsrv_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_provider.h Examining data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_transaction.c Examining data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_provider.c Examining data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_transaction.h Examining data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.h Examining data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c Examining data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_config.c Examining data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_parser.c Examining data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_control.c Examining data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_creds.c Examining data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_control.h Examining data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_config.h Examining data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_creds.h Examining data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_parser.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist_control.c Examining data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist.c Examining data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist_msg.h Examining data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist_control.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/tests.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_shared.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/suites/test_socket.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/tests.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_shared.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.h Examining data/strongswan-5.9.1/src/libcharon/plugins/dnscert/dnscert_cred.h Examining data/strongswan-5.9.1/src/libcharon/plugins/dnscert/dnscert.c Examining data/strongswan-5.9.1/src/libcharon/plugins/dnscert/dnscert_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/dnscert/dnscert_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/dnscert/dnscert_cred.c Examining data/strongswan-5.9.1/src/libcharon/plugins/dnscert/dnscert.h Examining data/strongswan-5.9.1/src/libcharon/plugins/p_cscf/p_cscf_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/p_cscf/p_cscf_handler.h Examining data/strongswan-5.9.1/src/libcharon/plugins/p_cscf/p_cscf_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/p_cscf/p_cscf_handler.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ext_auth/ext_auth_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ext_auth/ext_auth_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ext_auth/ext_auth_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ext_auth/ext_auth_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_peap/eap_peap.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_peap/eap_peap_peer.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_peap/eap_peap_avp.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_peap/eap_peap_avp.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_peap/eap_peap.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_peap/eap_peap_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_peap/eap_peap_server.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_peap/eap_peap_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_peap/eap_peap_peer.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_peap/eap_peap_server.h Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_generic/xauth_generic_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_generic/xauth_generic.h Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_generic/xauth_generic_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_generic/xauth_generic.c Examining data/strongswan-5.9.1/src/libcharon/plugins/osx_attr/osx_attr_handler.h Examining data/strongswan-5.9.1/src/libcharon/plugins/osx_attr/osx_attr_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/osx_attr/osx_attr_handler.c Examining data/strongswan-5.9.1/src/libcharon/plugins/osx_attr/osx_attr_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_dynamic/eap_dynamic_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_dynamic/eap_dynamic.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_dynamic/eap_dynamic.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_dynamic/eap_dynamic_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim/eap_sim_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim/eap_sim_server.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim/eap_sim_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim/eap_sim_peer.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim/eap_sim_server.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim/eap_sim_peer.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_logger.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_authority.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_cred.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_message.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/libvici.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_query.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_logger.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/suites/test_request.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/suites/test_event.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/suites/test_socket.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/suites/test_message.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_query.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_message.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_dispatcher.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_cred.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_cert_info.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_control.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_cert_info.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_attribute.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_builder.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_tests.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_dispatcher.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_attribute.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_socket.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_control.h Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_builder.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_tests.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_socket.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_authority.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/libvici.c Examining data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c Examining data/strongswan-5.9.1/src/libcharon/plugins/updown/updown_handler.h Examining data/strongswan-5.9.1/src/libcharon/plugins/updown/updown_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/updown/updown_handler.c Examining data/strongswan-5.9.1/src/libcharon/plugins/updown/updown_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/updown/updown_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/updown/updown_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.h Examining data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck_notify.c Examining data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck_msg.h Examining data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck.c Examining data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck_notify.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c Examining data/strongswan-5.9.1/src/libcharon/plugins/systime_fix/systime_fix_validator.h Examining data/strongswan-5.9.1/src/libcharon/plugins/systime_fix/systime_fix_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/systime_fix/systime_fix_validator.c Examining data/strongswan-5.9.1/src/libcharon/plugins/systime_fix/systime_fix_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/bypass_lan/bypass_lan_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/bypass_lan/bypass_lan_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/bypass_lan/bypass_lan_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/bypass_lan/bypass_lan_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_iph/kernel_iph_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_iph/kernel_iph_net.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_iph/kernel_iph_net.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_iph/kernel_iph_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/kernel_wfp_compat.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/kernel_wfp_compat.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/kernel_wfp_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/ipsecdump.c Examining data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/kernel_wfp_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_md5/eap_md5_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_md5/eap_md5.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_md5/eap_md5_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_md5/eap_md5.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ipseckey/ipseckey_cred.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ipseckey/ipseckey_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ipseckey/ipseckey.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ipseckey/ipseckey_cred.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ipseckey/ipseckey_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ipseckey/ipseckey.h Examining data/strongswan-5.9.1/src/libcharon/plugins/sql/sql_logger.h Examining data/strongswan-5.9.1/src/libcharon/plugins/sql/sql_cred.c Examining data/strongswan-5.9.1/src/libcharon/plugins/sql/sql_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/sql/sql_logger.c Examining data/strongswan-5.9.1/src/libcharon/plugins/sql/sql_cred.h Examining data/strongswan-5.9.1/src/libcharon/plugins/sql/sql_config.h Examining data/strongswan-5.9.1/src/libcharon/plugins/sql/sql_config.c Examining data/strongswan-5.9.1/src/libcharon/plugins/sql/sql_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_provider.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_provider.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_triplets.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_triplets.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_provider.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_provider.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ike.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_segments.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_attribute.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_child.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_tunnel.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_cache.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_segments.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_kernel.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_dispatcher.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_message.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_socket.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_tunnel.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_attribute.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_message.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_socket.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_child.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_dispatcher.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ctl.h Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ike.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ctl.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_kernel.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_cache.c Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester.c Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_control.h Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_ipsec.h Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_control.c Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_ipsec.c Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_creds.c Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_diffie_hellman.c Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.h Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_diffie_hellman.h Examining data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_creds.h Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap_msg.h Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_renew_session_job.c Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap_msg.c Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.h Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_http.h Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_renew_session_job.h Examining data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_http.c Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_eap/xauth_eap.c Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_eap/xauth_eap_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_eap/xauth_eap.h Examining data/strongswan-5.9.1/src/libcharon/plugins/xauth_eap/xauth_eap_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_socket.c Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_socket.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_identity/eap_identity.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_identity/eap_identity_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_identity/eap_identity.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_identity/eap_identity_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/counters/counters_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/counters/counters_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/counters/counters_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/counters/counters_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/counters/counters_query.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_tls/eap_tls.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_tls/eap_tls_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_tls/eap_tls_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_tls/eap_tls.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_server.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_server.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_peer.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_peer.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_server.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_avp.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_server.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_peer.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c Examining data/strongswan-5.9.1/src/libcharon/plugins/attr_sql/attr_sql_provider.c Examining data/strongswan-5.9.1/src/libcharon/plugins/attr_sql/attr_sql_provider.h Examining data/strongswan-5.9.1/src/libcharon/plugins/attr_sql/attr_sql_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/attr_sql/attr_sql_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_card.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_card.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_provider.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_provider.h Examining data/strongswan-5.9.1/src/libcharon/plugins/radattr/radattr_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/radattr/radattr_listener.h Examining data/strongswan-5.9.1/src/libcharon/plugins/radattr/radattr_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/radattr/radattr_listener.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_tnc/eap_tnc_plugin.c Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_tnc/eap_tnc_plugin.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_tnc/eap_tnc.h Examining data/strongswan-5.9.1/src/libcharon/plugins/eap_tnc/eap_tnc.c Examining data/strongswan-5.9.1/src/libcharon/control/controller.c Examining data/strongswan-5.9.1/src/libcharon/control/controller.h Examining data/strongswan-5.9.1/src/libcharon/sa/ike_sa_id.h Examining data/strongswan-5.9.1/src/libcharon/sa/shunt_manager.c Examining data/strongswan-5.9.1/src/libcharon/sa/task.c Examining data/strongswan-5.9.1/src/libcharon/sa/authenticator.h Examining data/strongswan-5.9.1/src/libcharon/sa/redirect_manager.h Examining data/strongswan-5.9.1/src/libcharon/sa/ike_sa_manager.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/keymat_v1.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/phase1.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/task_manager_v1.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/phase1.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/task_manager_v1.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/keymat_v1.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/iv_manager.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/authenticators/pubkey_v1_authenticator.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/authenticators/hybrid_authenticator.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/authenticators/psk_v1_authenticator.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/authenticators/hybrid_authenticator.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/authenticators/psk_v1_authenticator.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/authenticators/pubkey_v1_authenticator.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/iv_manager.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_vendor.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/informational.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_cert_pre.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/quick_delete.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_vendor.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/xauth.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_cert_post.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_delete.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/aggressive_mode.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/informational.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_cert_post.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/mode_config.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_delete.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/quick_mode.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_dpd.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/aggressive_mode.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_natd.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_dpd.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/quick_delete.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/main_mode.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/xauth.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/mode_config.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_natd.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/quick_mode.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/main_mode.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev1/tasks/isakmp_cert_pre.c Examining data/strongswan-5.9.1/src/libcharon/sa/ike_sa.c Examining data/strongswan-5.9.1/src/libcharon/sa/child_sa.c Examining data/strongswan-5.9.1/src/libcharon/sa/ike_sa.h Examining data/strongswan-5.9.1/src/libcharon/sa/keymat.h Examining data/strongswan-5.9.1/src/libcharon/sa/child_sa_manager.c Examining data/strongswan-5.9.1/src/libcharon/sa/shunt_manager.h Examining data/strongswan-5.9.1/src/libcharon/sa/keymat.c Examining data/strongswan-5.9.1/src/libcharon/sa/authenticator.c Examining data/strongswan-5.9.1/src/libcharon/sa/task_manager.c Examining data/strongswan-5.9.1/src/libcharon/sa/task_manager.h Examining data/strongswan-5.9.1/src/libcharon/sa/task.h Examining data/strongswan-5.9.1/src/libcharon/sa/eap/eap_inner_method.h Examining data/strongswan-5.9.1/src/libcharon/sa/eap/eap_method.h Examining data/strongswan-5.9.1/src/libcharon/sa/eap/eap_method.c Examining data/strongswan-5.9.1/src/libcharon/sa/eap/eap_manager.h Examining data/strongswan-5.9.1/src/libcharon/sa/eap/eap_manager.c Examining data/strongswan-5.9.1/src/libcharon/sa/redirect_provider.h Examining data/strongswan-5.9.1/src/libcharon/sa/ike_sa_id.c Examining data/strongswan-5.9.1/src/libcharon/sa/trap_manager.c Examining data/strongswan-5.9.1/src/libcharon/sa/trap_manager.h Examining data/strongswan-5.9.1/src/libcharon/sa/redirect_manager.c Examining data/strongswan-5.9.1/src/libcharon/sa/child_sa_manager.h Examining data/strongswan-5.9.1/src/libcharon/sa/xauth/xauth_manager.c Examining data/strongswan-5.9.1/src/libcharon/sa/xauth/xauth_method.c Examining data/strongswan-5.9.1/src/libcharon/sa/xauth/xauth_method.h Examining data/strongswan-5.9.1/src/libcharon/sa/xauth/xauth_manager.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/task_manager_v2.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/mediation_manager.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/connect_manager.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/keymat_v2.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/connect_manager.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/task_manager_v2.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/psk_authenticator.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/psk_authenticator.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/eap_authenticator.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/keymat_v2.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_natd.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_config.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_cert_pre.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_rekey.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/child_rekey.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_dpd.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_reauth.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_reauth_complete.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/child_rekey.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_cert_post.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_verify_peer_cert.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_config.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_delete.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_verify_peer_cert.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_mobike.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_cert_pre.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_cert_post.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_redirect.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_auth_lifetime.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_auth_lifetime.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_vendor.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_redirect.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_reauth.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_delete.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_me.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_vendor.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_mobike.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/child_create.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/child_create.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_auth.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/child_delete.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_mid_sync.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/child_delete.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_natd.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_mid_sync.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_rekey.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_auth.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_init.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_init.c Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_dpd.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_reauth_complete.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_me.h Examining data/strongswan-5.9.1/src/libcharon/sa/ikev2/mediation_manager.h Examining data/strongswan-5.9.1/src/libcharon/sa/ike_sa_manager.h Examining data/strongswan-5.9.1/src/libcharon/sa/child_sa.h Examining data/strongswan-5.9.1/src/libcharon/bus/bus.c Examining data/strongswan-5.9.1/src/libcharon/bus/listeners/file_logger.c Examining data/strongswan-5.9.1/src/libcharon/bus/listeners/logger.h Examining data/strongswan-5.9.1/src/libcharon/bus/listeners/sys_logger.c Examining data/strongswan-5.9.1/src/libcharon/bus/listeners/sys_logger.h Examining data/strongswan-5.9.1/src/libcharon/bus/listeners/file_logger.h Examining data/strongswan-5.9.1/src/libcharon/bus/listeners/listener.h Examining data/strongswan-5.9.1/src/libcharon/bus/listeners/custom_logger.h Examining data/strongswan-5.9.1/src/libcharon/bus/bus.h Examining data/strongswan-5.9.1/src/libcharon/kernel/kernel_ipsec.h Examining data/strongswan-5.9.1/src/libcharon/kernel/kernel_listener.h Examining data/strongswan-5.9.1/src/libcharon/kernel/kernel_ipsec.c Examining data/strongswan-5.9.1/src/libcharon/kernel/kernel_handler.h Examining data/strongswan-5.9.1/src/libcharon/kernel/kernel_interface.c Examining data/strongswan-5.9.1/src/libcharon/kernel/kernel_net.h Examining data/strongswan-5.9.1/src/libcharon/kernel/kernel_net.c Examining data/strongswan-5.9.1/src/libcharon/kernel/kernel_handler.c Examining data/strongswan-5.9.1/src/libcharon/kernel/kernel_interface.h Examining data/strongswan-5.9.1/src/libtls/tls_cache.c Examining data/strongswan-5.9.1/src/libtls/tls_prf.c Examining data/strongswan-5.9.1/src/libtls/tls_peer.c Examining data/strongswan-5.9.1/src/libtls/tls_protection.h Examining data/strongswan-5.9.1/src/libtls/tls.h Examining data/strongswan-5.9.1/src/libtls/tls_server.c Examining data/strongswan-5.9.1/src/libtls/tls_eap.h Examining data/strongswan-5.9.1/src/libtls/tls_aead_expl.c Examining data/strongswan-5.9.1/src/libtls/tls_aead.h Examining data/strongswan-5.9.1/src/libtls/tls_crypto.c Examining data/strongswan-5.9.1/src/libtls/tls_application.h Examining data/strongswan-5.9.1/src/libtls/tls_peer.h Examining data/strongswan-5.9.1/src/libtls/tls_prf.h Examining data/strongswan-5.9.1/src/libtls/tls_aead.c Examining data/strongswan-5.9.1/src/libtls/tls_fragmentation.h Examining data/strongswan-5.9.1/src/libtls/tls_eap.c Examining data/strongswan-5.9.1/src/libtls/tests/tls_tests.c Examining data/strongswan-5.9.1/src/libtls/tests/suites/test_suites.c Examining data/strongswan-5.9.1/src/libtls/tests/suites/test_socket.c Examining data/strongswan-5.9.1/src/libtls/tests/tls_tests.h Examining data/strongswan-5.9.1/src/libtls/tls_server.h Examining data/strongswan-5.9.1/src/libtls/tls_handshake.h Examining data/strongswan-5.9.1/src/libtls/tls_aead_null.c Examining data/strongswan-5.9.1/src/libtls/tls_compression.h Examining data/strongswan-5.9.1/src/libtls/tls_socket.h Examining data/strongswan-5.9.1/src/libtls/tls_fragmentation.c Examining data/strongswan-5.9.1/src/libtls/tls_alert.c Examining data/strongswan-5.9.1/src/libtls/tls_protection.c Examining data/strongswan-5.9.1/src/libtls/tls_alert.h Examining data/strongswan-5.9.1/src/libtls/tls_cache.h Examining data/strongswan-5.9.1/src/libtls/tls_socket.c Examining data/strongswan-5.9.1/src/libtls/tls.c Examining data/strongswan-5.9.1/src/libtls/tls_crypto.h Examining data/strongswan-5.9.1/src/libtls/tls_aead_impl.c Examining data/strongswan-5.9.1/src/libtls/tls_compression.c Examining data/strongswan-5.9.1/src/checksum/checksum_builder.c Examining data/strongswan-5.9.1/src/swanctl/swanctl.h Examining data/strongswan-5.9.1/src/swanctl/swanctl.c Examining data/strongswan-5.9.1/src/swanctl/command.h Examining data/strongswan-5.9.1/src/swanctl/command.c Examining data/strongswan-5.9.1/src/swanctl/commands/load_creds.c Examining data/strongswan-5.9.1/src/swanctl/commands/list_authorities.c Examining data/strongswan-5.9.1/src/swanctl/commands/version.c Examining data/strongswan-5.9.1/src/swanctl/commands/list_sas.c Examining data/strongswan-5.9.1/src/swanctl/commands/reload_settings.c Examining data/strongswan-5.9.1/src/swanctl/commands/counters.c Examining data/strongswan-5.9.1/src/swanctl/commands/load_creds.h Examining data/strongswan-5.9.1/src/swanctl/commands/redirect.c Examining data/strongswan-5.9.1/src/swanctl/commands/load_pools.h Examining data/strongswan-5.9.1/src/swanctl/commands/load_authorities.c Examining data/strongswan-5.9.1/src/swanctl/commands/initiate.c Examining data/strongswan-5.9.1/src/swanctl/commands/load_conns.h Examining data/strongswan-5.9.1/src/swanctl/commands/load_authorities.h Examining data/strongswan-5.9.1/src/swanctl/commands/load_all.c Examining data/strongswan-5.9.1/src/swanctl/commands/terminate.c Examining data/strongswan-5.9.1/src/swanctl/commands/list_pols.c Examining data/strongswan-5.9.1/src/swanctl/commands/list_conns.c Examining data/strongswan-5.9.1/src/swanctl/commands/log.c Examining data/strongswan-5.9.1/src/swanctl/commands/stats.c Examining data/strongswan-5.9.1/src/swanctl/commands/flush_certs.c Examining data/strongswan-5.9.1/src/swanctl/commands/list_pools.c Examining data/strongswan-5.9.1/src/swanctl/commands/rekey.c Examining data/strongswan-5.9.1/src/swanctl/commands/load_conns.c Examining data/strongswan-5.9.1/src/swanctl/commands/list_algs.c Examining data/strongswan-5.9.1/src/swanctl/commands/install.c Examining data/strongswan-5.9.1/src/swanctl/commands/load_pools.c Examining data/strongswan-5.9.1/src/swanctl/commands/list_certs.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_utils.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_encoder.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_keymat.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_kernel_sad.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_nonceg.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_nonceg.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_private_key.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_keymat.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_id_manager.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_listener.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_kernel_ipsec.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_diffie_hellman.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_encoder.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_id_manager.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_kernel_ipsec.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_private_key.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_public_key.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_kernel_sad.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_cred.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_listener.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_public_key.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_cred.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_types.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_utils.h Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_diffie_hellman.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_chunk_map.c Examining data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_chunk_map.h Examining data/strongswan-5.9.1/src/charon-tkm/src/ees/ees_callbacks.c Examining data/strongswan-5.9.1/src/charon-tkm/src/ees/ees_callbacks.h Examining data/strongswan-5.9.1/src/charon-tkm/src/charon-tkm.c Examining data/strongswan-5.9.1/src/charon-tkm/src/ehandler/eh_callbacks.h Examining data/strongswan-5.9.1/src/charon-tkm/src/ehandler/eh_callbacks.c Examining data/strongswan-5.9.1/src/charon-tkm/tests/tests.c Examining data/strongswan-5.9.1/src/charon-tkm/tests/keymat_tests.c Examining data/strongswan-5.9.1/src/charon-tkm/tests/kernel_sad_tests.c Examining data/strongswan-5.9.1/src/charon-tkm/tests/utils_tests.c Examining data/strongswan-5.9.1/src/charon-tkm/tests/nonceg_tests.c Examining data/strongswan-5.9.1/src/charon-tkm/tests/diffie_hellman_tests.c Examining data/strongswan-5.9.1/src/charon-tkm/tests/chunk_map_tests.c Examining data/strongswan-5.9.1/src/charon-tkm/tests/tests.h Examining data/strongswan-5.9.1/src/charon-tkm/tests/id_manager_tests.c Examining data/strongswan-5.9.1/src/_copyright/_copyright.c Examining data/strongswan-5.9.1/src/charon-cmd/cmd/cmd_creds.h Examining data/strongswan-5.9.1/src/charon-cmd/cmd/cmd_creds.c Examining data/strongswan-5.9.1/src/charon-cmd/cmd/cmd_options.c Examining data/strongswan-5.9.1/src/charon-cmd/cmd/cmd_connection.h Examining data/strongswan-5.9.1/src/charon-cmd/cmd/cmd_connection.c Examining data/strongswan-5.9.1/src/charon-cmd/cmd/cmd_options.h Examining data/strongswan-5.9.1/src/charon-cmd/charon-cmd.c Examining data/strongswan-5.9.1/src/pool/pool.c Examining data/strongswan-5.9.1/src/pool/pool_attributes.c Examining data/strongswan-5.9.1/src/pool/pool_usage.h Examining data/strongswan-5.9.1/src/pool/pool_usage.c Examining data/strongswan-5.9.1/src/pool/pool_attributes.h Examining data/strongswan-5.9.1/fuzz/libFuzzerLocal.c Examining data/strongswan-5.9.1/scripts/thread_analysis.c Examining data/strongswan-5.9.1/scripts/malloc_speed.c Examining data/strongswan-5.9.1/scripts/bin2array.c Examining data/strongswan-5.9.1/scripts/id2sql.c Examining data/strongswan-5.9.1/scripts/timeattack.c Examining data/strongswan-5.9.1/scripts/pubkey_speed.c Examining data/strongswan-5.9.1/scripts/keyid2sql.c Examining data/strongswan-5.9.1/scripts/dnssec.c Examining data/strongswan-5.9.1/scripts/tls_test.c Examining data/strongswan-5.9.1/scripts/dh_speed.c Examining data/strongswan-5.9.1/scripts/aes-test.c Examining data/strongswan-5.9.1/scripts/key2keyid.c Examining data/strongswan-5.9.1/scripts/crypt_burn.c Examining data/strongswan-5.9.1/scripts/oid2der.c Examining data/strongswan-5.9.1/scripts/bin2sql.c Examining data/strongswan-5.9.1/scripts/hash_burn.c Examining data/strongswan-5.9.1/scripts/fetch.c Examining data/strongswan-5.9.1/scripts/settings-test.c FINAL RESULTS: data/strongswan-5.9.1/src/libcharon/bus/listeners/file_logger.c:268:8: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (chown(this->filename, lib->caps->get_uid(lib->caps), data/strongswan-5.9.1/src/libcharon/bus/listeners/file_logger.c:277:8: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (chown(this->filename, -1, lib->caps->get_gid(lib->caps)) != 0) data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ctl.c:59:6: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (chown(HA_FIFO, lib->caps->get_uid(lib->caps), data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_kernel.c:336:8: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (chown(file, lib->caps->get_uid(lib->caps), data/strongswan-5.9.1/src/libcharon/plugins/smp/smp.c:785:6: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (chown(unix_addr.sun_path, lib->caps->get_uid(lib->caps), data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service_unix.c:69:7: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (chown(addr.sun_path, lib->caps->get_uid(lib->caps), data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service_unix.c:78:7: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (chown(addr.sun_path, -1, lib->caps->get_gid(lib->caps)) != 0) data/strongswan-5.9.1/scripts/dnssec.c:33:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/scripts/tls_test.c:233:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/aikgen/aikgen.c:67:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/aikgen/aikgen.c:75:4: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/strongswan-5.9.1/src/aikgen/aikgen.c:134:3: [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. vsnprintf(m, sizeof(m), message, args); data/strongswan-5.9.1/src/charon-cmd/charon-cmd.c:68:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/charon-cmd/cmd/cmd_creds.c:99:8: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. pwd = getpass(label); data/strongswan-5.9.1/src/charon-nm/charon-nm.c:59:3: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/strongswan-5.9.1/src/charon-svc/charon-svc.c:64:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/charon-systemd/charon-systemd.c:68:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/charon-systemd/charon-systemd.c:106:8: [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. len = vsnprintf(msg, sizeof(buf), fmt, copy); data/strongswan-5.9.1/src/charon-systemd/charon-systemd.c:114:9: [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. len = vsnprintf(msg, len, fmt, copy); data/strongswan-5.9.1/src/charon-tkm/src/charon-tkm.c:84:3: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/strongswan-5.9.1/src/charon/charon.c:77:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/conftest/conftest.c:70:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(suite_file, R_OK) != 0) data/strongswan-5.9.1/src/conftest/conftest.c:76:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(test_file, R_OK) != 0) data/strongswan-5.9.1/src/libcharon/bus/bus.c:398:9: [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. len = vsnprintf(data.message, sizeof(buf), format, data.args); data/strongswan-5.9.1/src/libcharon/bus/bus.c:405: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. len = vsnprintf(data.message, len, format, data.args); data/strongswan-5.9.1/src/libcharon/daemon.c:789:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. cmd = popen(script->path, "r"); data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:437:28: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. chunk_t iv, padding, icv, crypt; data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:494:27: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. if (!aead->encrypt(aead, crypt, assoc, iv, NULL)) data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:498:33: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. DBG3(DBG_ENC, "encrypted %B", &crypt); data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:622:28: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. chunk_t iv, padding, icv, crypt; data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:637:2: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. crypt.ptr = iv.ptr + iv.len; data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:638:2: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. crypt.len = encrypted.len - iv.len; data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:641:4: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. (crypt.len - icv.len) % bs) data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:649:33: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. DBG3(DBG_ENC, "encrypted %B", &crypt); data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:653:27: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. if (!aead->decrypt(aead, crypt, assoc, iv, NULL)) data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:659:24: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. *plain = chunk_create(crypt.ptr, crypt.len - icv.len); data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:659:35: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. *plain = chunk_create(crypt.ptr, crypt.len - icv.len); data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:664:6: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. &crypt); data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck.c:51:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(addr.un.sun_path, DUPLICHECK_SOCKET); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius.c:200:3: [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. snprintf(buf, sizeof(buf), station_id_fmt, host); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius.c:203:3: [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. snprintf(buf, sizeof(buf), station_id_fmt, host); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_accounting.c:435:2: [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. snprintf(buf, sizeof(buf), this->station_id_fmt, host); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_accounting.c:438:2: [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. snprintf(buf, sizeof(buf), this->station_id_fmt, host); data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify.c:50:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(addr.un.sun_path, ERROR_NOTIFY_SOCKET); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ctl.c:179:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. else if (access(HA_FIFO, R_OK|W_OK) != 0) data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester.c:37:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(addr.sun_path, LOAD_TESTER_SOCKET); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c:332:5: [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. snprintf(buf, sizeof(buf), this->initiator_match, rnd); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c:337:5: [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. snprintf(buf, sizeof(buf), this->initiator_id, num, rnd); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c:345:5: [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. snprintf(buf, sizeof(buf), this->responder_id, num, rnd); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_control.c:147:4: [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(this->stream, state == IKE_ESTABLISHED ? "+" : "-"); data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip.c:50:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(addr.un.sun_path, LOOKIP_SOCKET); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:125:6: [4] (buffer) sscanf: 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 (sscanf(smartcard, "%%smartcard%u@%255s", slot, buf) == 2) data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:137:6: [4] (buffer) sscanf: 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 (sscanf(smartcard, "%%smartcard%u:%127s", slot, keyid) == 2) data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:141:6: [4] (buffer) sscanf: 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 (sscanf(smartcard, "%%smartcard:%127s", keyid) == 1) data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_list.c:485:3: [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(out, "Status of IKE charon daemon (%sSwan "VERSION, this->swan); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_list.c:825:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. alg_name_len = sprintf(alg_name, " %N[%s]", alg_names, alg_type, data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_list.c:830:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. alg_name_len = sprintf(alg_name, " [%s]", plugin_name); data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_http.c:64:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(host, this->uri); data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_control.c:59:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(out, format, args); data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_builder.c:142:8: [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. len = vsnprintf(buf, sizeof(buf), fmt, copy); data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_builder.c:147:9: [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. len = vsnprintf(value.ptr, value.len, fmt, args); data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_message.c:241:2: [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. vsnprintf(buf, sizeof(buf), fmt, args); data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist.c:51:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(addr.un.sun_path, WHITELIST_SOCKET); data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_cert_post.c:83:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(url, base); data/strongswan-5.9.1/src/libcharon/tests/suites/test_mem_pool.c:61:3: [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. snprintf(expected, sizeof(expected), pattern, first + i); data/strongswan-5.9.1/src/libfast/fast_request.c:307:2: [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. snprintf(buf, sizeof(buf), "%"PRId64, (int64_t)data->len); data/strongswan-5.9.1/src/libfast/fast_smtp.c:81:2: [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. vsnprintf(buf, sizeof(buf), fmt, args); data/strongswan-5.9.1/src/libfast/fast_smtp.c:118:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(this->f, fmt, args); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:348:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. file = popen(command, "r"); data/strongswan-5.9.1/src/libimcv/imcv.c:94:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/libimcv/imcv.c:107:4: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/strongswan-5.9.1/src/libimcv/imv/imv_database.c:306:10: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. shell = popen(command, "r"); data/strongswan-5.9.1/src/libimcv/imv/imv_policy_manager.c:49:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/libimcv/imv/imv_policy_manager.c:377:3: [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. snprintf(command, sizeof(command), format, ip_address, ip_address); data/strongswan-5.9.1/src/libimcv/imv/imv_policy_manager.c:378:13: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. success = system(command) == 0; data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:85:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(header, header_format, s_itemsheader); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:111:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. pos += sprintf(pos, " <item>%s</item>\n", item); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:126:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. pos += sprintf(pos, "\n %s", item); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:153:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(instruction, format, s_title, s_description, header ? header : "", data/strongswan-5.9.1/src/libimcv/plugins/imc_scanner/imc_scanner.c:111:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. file = popen("/bin/netstat -n -l -p -4 -6 --inet", "r"); data/strongswan-5.9.1/src/libimcv/plugins/imc_swima/imc_swima.c:331:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(SW_COLLECTOR) != 0) data/strongswan-5.9.1/src/libimcv/plugins/imc_swima/imc_swima.c:443:10: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(SW_COLLECTOR) != 0) data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:54:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:67:4: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/strongswan-5.9.1/src/libimcv/plugins/imv_swima/imv_swima_agent.c:642:18: [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. written = snprintf(result_str, BUF_LEN, format, data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.c:432:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(uri + algo_len, name); data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen.c:83:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. file = popen(command, "r"); data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen.c:235:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. file = popen(command, "r"); data/strongswan-5.9.1/src/libradius/radius_message.c:398:26: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. METHOD(radius_message_t, crypt, bool, data/strongswan-5.9.1/src/libradius/radius_message.c:487:8: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. if (!crypt(this, chunk_empty, this->password, this->password, data/strongswan-5.9.1/src/libradius/radius_message.h:305:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. bool (*crypt)(radius_message_t *this, chunk_t salt, chunk_t in, chunk_t out, data/strongswan-5.9.1/src/libradius/radius_socket.c:308:16: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. if (!request->crypt(request, chunk_from_thing(salt), C, decrypted, data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:395:7: [4] (buffer) sscanf: 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. if (sscanf(buf, format, &tm_year, &tm_mon, &tm_day, data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:506:2: [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. snprintf(buf, BUF_LEN, format, t.tm_year + offset, data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_cbc.c:538:13: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. static bool crypt(aesni_cbc_fn_t fn, aesni_key_t *key, data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_cbc.c:563:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this->encrypt, this->ekey, data, iv, encrypted); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_cbc.c:569:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this->decrypt, this->dkey, data, iv, decrypted); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c:56:17: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. aesni_ctr_fn_t crypt; data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c:525:19: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. METHOD(crypter_t, crypt, bool, data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c:543:8: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. this->crypt(this, in.len, in.ptr, buf); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ecb.c:703:13: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. static bool crypt(aesni_ecb_fn_t fn, aesni_key_t *key, chunk_t data, data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ecb.c:728:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this->encrypt, this->ekey, data, encrypted); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ecb.c:734:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this->decrypt, this->dkey, data, decrypted); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_crypter.c:146:21: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return this->ops->crypt(this->ops, ALG_OP_DECRYPT, iv, data, dst->ptr); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_crypter.c:148:20: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return this->ops->crypt(this->ops, ALG_OP_DECRYPT, iv, data, data.ptr); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_crypter.c:157:21: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return this->ops->crypt(this->ops, ALG_OP_ENCRYPT, iv, data, dst->ptr); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_crypter.c:159:20: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return this->ops->crypt(this->ops, ALG_OP_ENCRYPT, iv, data, data.ptr); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_ops.h:67:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. bool (*crypt)(af_alg_ops_t *this, uint32_t type, chunk_t iv, chunk_t data, data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_crypter.c:60:13: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. static bool crypt(private_botan_crypter_t *this, chunk_t data, chunk_t iv, data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_crypter.c:102:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this, data, iv, dst, BOTAN_CIPHER_INIT_FLAG_DECRYPT); data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_crypter.c:109:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this, data, iv, dst, BOTAN_CIPHER_INIT_FLAG_ENCRYPT); data/strongswan-5.9.1/src/libstrongswan/plugins/ctr/ctr_ipsec_crypter.c:84:19: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. METHOD(crypter_t, crypt, bool, data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:207:13: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. static bool crypt(private_gcm_aead_t *this, char *j, chunk_t in, chunk_t out) data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:225:73: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. static bool create_icv(private_gcm_aead_t *this, chunk_t assoc, chunk_t crypt, data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:233:29: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. crypt_pad = (BLOCK_SIZE - (crypt.len % BLOCK_SIZE)) % BLOCK_SIZE; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:237:7: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. crypt.len + crypt_pad + BLOCK_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:245:14: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. memcpy(pos, crypt.ptr, crypt.len); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:245:25: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. memcpy(pos, crypt.ptr, crypt.len); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:246:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. pos += crypt.len; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:257:15: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. htoun32(pos, crypt.len * 8); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:273:73: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. static bool verify_icv(private_gcm_aead_t *this, chunk_t assoc, chunk_t crypt, data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:278:33: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return create_icv(this, assoc, crypt, j, tmp) && data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:293:10: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this, j, plain, *encrypted) && data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:298:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this, j, plain, plain) && data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:323:10: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this, j, encrypted, *plain); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:325:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this, j, encrypted, encrypted); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_aead.c:78:13: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. static bool crypt(private_aead_t *this, chunk_t data, chunk_t assoc, chunk_t iv, data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_aead.c:135:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this, plain, assoc, iv, out, 1); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_aead.c:156:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this, encrypted, assoc, iv, out, 0); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_crypter.c:93:13: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. static bool crypt(private_openssl_crypter_t *this, chunk_t data, chunk_t iv, data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_crypter.c:125:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this, data, iv, dst, 0); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_crypter.c:131:9: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypt(this, data, iv, dst, 1); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_crypter.c:257:19: [4] (crypto) EVP_des_ecb: DES only supports a 56-bit keysize, which is too small given today's computers (CWE-327). Use a different patent-free encryption algorithm with a larger keysize, such as 3DES or AES. this->cipher = EVP_des_ecb(); data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_aes_crypter.c:84:13: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. static void crypt(private_padlock_aes_crypter_t *this, char *iv, data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_aes_crypter.c:115:2: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. crypt(this, iv.ptr, data, dst, TRUE); data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_aes_crypter.c:122:2: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. crypt(this, iv.ptr, data, dst, FALSE); data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_private_key.c:391:10: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. chunk_t crypt, chunk_t *plain) data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_private_key.c:427:40: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. rv = this->lib->f->C_Decrypt(session, crypt.ptr, crypt.len, buf, &len); data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_private_key.c:427:51: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. rv = this->lib->f->C_Decrypt(session, crypt.ptr, crypt.len, buf, &len); data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c:310:26: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. chunk_t plain, chunk_t *crypt) data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:113:8: [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. res = vsnprintf(buf, len, key, copy) < len; data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:949:17: [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. if (section && vsnprintf(buf, sizeof(buf), fallback, args) < sizeof(buf)) data/strongswan-5.9.1/src/libstrongswan/settings/settings_parser.c:661:21: [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. # define YYFPRINTF fprintf data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_host.c:679:2: [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. snprintf(buf, sizeof(buf), format, host); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_printf.c:28:2: [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. vsnprintf(buf, sizeof(buf), format, args); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_printf.c:38:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mem, format, args); data/strongswan-5.9.1/src/libstrongswan/tests/test_suite.c:431:2: [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. vsnprintf(failure_buf, sizeof(failure_buf), fmt, args); data/strongswan-5.9.1/src/libstrongswan/tests/test_suite.c:446:2: [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. vsnprintf(warning_buf, sizeof(warning_buf), fmt, args); data/strongswan-5.9.1/src/libstrongswan/tests/test_suite.c:460:2: [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. vsnprintf(failure_buf, sizeof(failure_buf), fmt, args); data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:89:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(file, format, args); data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:94:3: [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. vsnprintf(buf, sizeof(buf), format, args); data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:401:11: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. output = popen(buf, "r"); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:218:16: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!force && access(path, F_OK) == 0) data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c:258:7: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. char* getpass(const char *prompt) data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.h:278:7: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. char* getpass(const char *prompt); data/strongswan-5.9.1/src/libstrongswan/utils/debug.c:88:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(default_stream, fmt, args); data/strongswan-5.9.1/src/libstrongswan/utils/parser_helper.c:222:2: [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. vsnprintf(msg, sizeof(msg), fmt, args); data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:39:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #ifdef printf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:40:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef printf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:42:8: [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. #ifdef fprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:43:8: [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. #undef fprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:45:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #ifdef sprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:46:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:48:8: [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. #ifdef snprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:49:8: [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. #undef snprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:54:8: [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. #ifdef vprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:55:8: [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. #undef vprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:57:8: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #ifdef vfprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:58:8: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef vfprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:60:8: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #ifdef vsprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:61:8: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef vsprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:63:8: [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. #ifdef vsnprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:64:8: [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. #undef vsnprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:70:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define printf builtin_printf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:71:9: [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. #define fprintf builtin_fprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:72:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define sprintf builtin_sprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:73:9: [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 snprintf builtin_snprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:76:9: [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. #define vprintf builtin_vprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:77:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define vfprintf builtin_vfprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:78:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define vsprintf builtin_vsprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.h:79:9: [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 builtin_vsnprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_glibc.c:87:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. written = vfprintf(data->stream, fmt, args); data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c:96:8: [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. #undef vprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c:97:8: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef vfprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c:98:8: [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. #undef vsnprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c:314:9: [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. return vprintf(format, args); data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c:326:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return vfprintf(stream, format, args); data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c:347:9: [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. return vsnprintf(str, size, format, args); data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:40:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #ifdef printf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:41:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef printf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:43:8: [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. #ifdef fprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:44:8: [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. #undef fprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:46:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #ifdef sprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:47:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:49:8: [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. #ifdef snprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:50:8: [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. #undef snprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:55:8: [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. #ifdef vprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:56:8: [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. #undef vprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:58:8: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #ifdef vfprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:59:8: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef vfprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:61:8: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #ifdef vsprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:62:8: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef vsprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:64:8: [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. #ifdef vsnprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:65:8: [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. #undef vsnprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:71:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define printf vstr_wrapper_printf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:72:9: [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. #define fprintf vstr_wrapper_fprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:73:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define sprintf vstr_wrapper_sprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:74:9: [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 snprintf vstr_wrapper_snprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:77:9: [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. #define vprintf vstr_wrapper_vprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:78:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define vfprintf vstr_wrapper_vfprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:79:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define vsprintf vstr_wrapper_vsprintf data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_vstr.h:80:9: [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 vstr_wrapper_vsnprintf data/strongswan-5.9.1/src/libstrongswan/utils/utils/path.c:152:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(full, F_OK) < 0) data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.c:89:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dst, pos); data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_private_key.c:108:10: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. chunk_t crypt, chunk_t *plain) data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1472:2: [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. snprintf(tcti_lib, BUF_LEN, tcti_lib_format, tcti_name); data/strongswan-5.9.1/src/manager/gateway.c:118:9: [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. len = vsnprintf(buf, sizeof(buf), xml, args); data/strongswan-5.9.1/src/medsrv/controller/peer_controller.c:217:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pem, begin); data/strongswan-5.9.1/src/medsrv/controller/peer_controller.c:225:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(pem, end); data/strongswan-5.9.1/src/pki/commands/dn.c:111:4: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(fmt, (int)chunk.len, chunk.ptr); data/strongswan-5.9.1/src/pki/commands/dn.c:116:4: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(fmt, (int)chunk.len, chunk.ptr); data/strongswan-5.9.1/src/pki/pki.c:382:11: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. secret = getpass(buf); data/strongswan-5.9.1/src/pt-tls-client/pt-tls-client.c:182:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/pt-tls-client/pt-tls-client.c:194:4: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/strongswan-5.9.1/src/scepclient/scepclient.c:172:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/scepclient/scepclient.c:180:4: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/strongswan-5.9.1/src/scepclient/scepclient.c:241:2: [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. vsnprintf(suffix, sizeof(suffix), suffix_fmt, args); data/strongswan-5.9.1/src/scepclient/scepclient.c:302:3: [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. vsnprintf(m, sizeof(m), message, args); data/strongswan-5.9.1/src/scepclient/scepclient.c:1109:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. int n = sprintf(default_distinguished_name, DEFAULT_DN); data/strongswan-5.9.1/src/sec-updater/sec-updater.c:76:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/sec-updater/sec-updater.c:83:3: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/strongswan-5.9.1/src/sec-updater/sec-updater.c:187:8: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(command) == 0) data/strongswan-5.9.1/src/sec-updater/sec-updater.c:418:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(command) != 0) data/strongswan-5.9.1/src/sec-updater/sec-updater.c:456:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(command) != 0) data/strongswan-5.9.1/src/sec-updater/sec-updater.c:462:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(command) != 0) data/strongswan-5.9.1/src/starter/invokecharon.c:201:4: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(arg[0], arg); data/strongswan-5.9.1/src/starter/parser/parser.c:651:21: [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. # define YYFPRINTF fprintf data/strongswan-5.9.1/src/starter/starter.c:82:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/starter/starter.c:90:4: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/strongswan-5.9.1/src/starter/starterstroke.c:73:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char*)*msg + cur_len, string); data/strongswan-5.9.1/src/stroke/stroke.c:72:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char*)*msg + cur_len, string); data/strongswan-5.9.1/src/stroke/stroke.c:125:11: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. pass = getpass(buffer); data/strongswan-5.9.1/src/sw-collector/sw-collector.c:68:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/sw-collector/sw-collector.c:81:4: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/strongswan-5.9.1/src/sw-collector/sw_collector_dpkg.c:112:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. file = popen(cmd, "r"); data/strongswan-5.9.1/src/swanctl/command.c:215:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(out, error, args); data/strongswan-5.9.1/src/swanctl/commands/load_creds.c:242:8: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. pwd = getpass(data->prompt); data/strongswan-5.9.1/src/swanctl/commands/load_creds.c:638:22: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. pin = strdupnull(getpass(prompt)); data/strongswan-5.9.1/src/tpm_extendpcr/tpm_extendpcr.c:51:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/strongswan-5.9.1/src/tpm_extendpcr/tpm_extendpcr.c:59:4: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/strongswan-5.9.1/src/tpm_extendpcr/tpm_extendpcr.c:114:3: [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. vsnprintf(m, sizeof(m), message, args); data/strongswan-5.9.1/scripts/aes-test.c:574:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. switch (getopt_long(argc, argv, "hd:m:txi:o:", long_opts, NULL)) data/strongswan-5.9.1/scripts/crypt_burn.c:185:35: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lib->plugins->load(lib->plugins, getenv("PLUGINS") ?: PLUGINS); data/strongswan-5.9.1/scripts/settings-test.c:139:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. switch (getopt_long(argc, argv, "hdf:r", long_opts, NULL)) data/strongswan-5.9.1/scripts/timeattack.c:220:2: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(time(NULL)); data/strongswan-5.9.1/scripts/timeattack.c:223:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. exp[i] = random(); data/strongswan-5.9.1/scripts/timeattack.c:262:2: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(time(NULL)); data/strongswan-5.9.1/scripts/timeattack.c:265:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. exp[i] = random(); data/strongswan-5.9.1/scripts/timeattack.c:397:35: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lib->plugins->load(lib->plugins, getenv("PLUGINS") ?: PLUGINS); data/strongswan-5.9.1/scripts/tls_test.c:290:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. switch (getopt_long(argc, argv, "", long_opts, NULL)) data/strongswan-5.9.1/src/_copyright/_copyright.c:82:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt_long(argc, argv, "", opts, NULL)) != EOF) data/strongswan-5.9.1/src/aikgen/aikgen.c:230:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long(argc, argv, "ho:c:b:p:fqd:", long_opts, NULL); data/strongswan-5.9.1/src/charon-cmd/charon-cmd.c:265:9: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. opt = getopt_long(argc, argv, "", long_opts, NULL); data/strongswan-5.9.1/src/charon-cmd/cmd/cmd_creds.c:247:25: [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. this->agent = arg ?: getenv("SSH_AUTH_SOCK"); data/strongswan-5.9.1/src/charon/charon.c:368:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long(argc, argv, "", long_opts, NULL); data/strongswan-5.9.1/src/conftest/conftest.c:479:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. switch (getopt_long(argc, argv, "", long_opts, NULL)) data/strongswan-5.9.1/src/libcharon/config/child_cfg.c:421:27: [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. return rekey - jitter * (random() / (RAND_MAX + 1.0)); data/strongswan-5.9.1/src/libcharon/config/peer_cfg.c:500:29: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return this->rekey_time - (random() % this->jitter_time); data/strongswan-5.9.1/src/libcharon/config/peer_cfg.c:514:30: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return this->reauth_time - (random() % this->jitter_time); data/strongswan-5.9.1/src/libcharon/daemon.c:998:2: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(time(NULL) + getpid()); data/strongswan-5.9.1/src/libcharon/network/receiver.c:632:20: [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. .secret_offset = random() % now, data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck.c:41:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("TCP_PORT")) data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck.c:45:33: [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. addr.in.sin_port = htons(atoi(getenv("TCP_PORT"))); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_server.c:728:22: [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. this->identifier = random(); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/tests/tests.c:40:13: [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. plugins = getenv("TESTS_PLUGINS") ?: data/strongswan-5.9.1/src/libcharon/plugins/eap_gtc/eap_gtc.c:265:22: [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. this->identifier = random(); data/strongswan-5.9.1/src/libcharon/plugins/eap_md5/eap_md5.c:272:22: [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. this->identifier = random(); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:1414:22: [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. this->identifier = random(); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_plugin.c:380:25: [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. (current == best && random() % 2 == 0)) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim/eap_sim_server.c:642:22: [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. this->identifier = random(); data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify.c:40:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("TCP_PORT")) data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify.c:44:33: [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. addr.in.sin_port = htons(atoi(getenv("TCP_PORT"))); data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip.c:40:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("TCP_PORT")) data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip.c:44:33: [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. addr.in.sin_port = htons(atoi(getenv("TCP_PORT"))); data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip.c:279:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. switch (getopt_long(argc, argv, "", long_opts, NULL)) data/strongswan-5.9.1/src/libcharon/plugins/updown/updown_listener.c:273:43: [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. push_env(envp, countof(envp), "PATH=%s", getenv("PATH")); data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist.c:41:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("TCP_PORT")) data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist.c:45:33: [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. addr.in.sin_port = htons(atoi(getenv("TCP_PORT"))); data/strongswan-5.9.1/src/libcharon/processing/jobs/rekey_ike_sa_job.c:61:29: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. retry = RETRY_INTERVAL - (random() % RETRY_JITTER); data/strongswan-5.9.1/src/libcharon/processing/jobs/rekey_ike_sa_job.c:73:31: [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. retry = RETRY_INTERVAL - (random() % RETRY_JITTER); data/strongswan-5.9.1/src/libcharon/sa/ikev1/task_manager_v1.c:388:22: [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. t -= max_jitter * (random() / (RAND_MAX + 1.0)); data/strongswan-5.9.1/src/libcharon/sa/ikev2/task_manager_v2.c:395:30: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. timeout -= max_jitter * (random() / (RAND_MAX + 1.0)); data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/child_create.c:205:28: [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. retry = RETRY_INTERVAL - (random() % RETRY_JITTER); data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/child_rekey.c:98:28: [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. retry = RETRY_INTERVAL - (random() % RETRY_JITTER); data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_rekey.c:85:28: [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. retry = RETRY_INTERVAL - (random() % RETRY_JITTER); data/strongswan-5.9.1/src/libcharon/tests/exchange_tests.c:45:13: [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. plugins = getenv("TESTS_PLUGINS") ?: data/strongswan-5.9.1/src/libcharon/tests/libcharon_tests.c:40:14: [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. verbosity = getenv("TESTS_VERBOSITY"); data/strongswan-5.9.1/src/libcharon/tests/libcharon_tests.c:60:13: [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. plugins = getenv("TESTS_PLUGINS") ?: data/strongswan-5.9.1/src/libcharon/tests/utils/exchange_test_helper.c:305:14: [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. verbosity = getenv("TESTS_VERBOSITY"); data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:178:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "", long_opts, NULL); data/strongswan-5.9.1/src/libradius/radius_socket.c:419: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. this->identifier = random(); data/strongswan-5.9.1/src/libstrongswan/credentials/sets/cert_cache.c:154:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. offset = random(); data/strongswan-5.9.1/src/libstrongswan/library.c:319:36: [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. .conf = strdupnull(settings ?: (getenv("STRONGSWAN_CONF") ?: STRONGSWAN_CONF)), data/strongswan-5.9.1/src/libstrongswan/library.c:335:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. log = getenv("LEAK_DETECTIVE_LOG"); data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_diffie_hellman.c:173: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. chunk_t random; data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_diffie_hellman.c:203:50: [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 (!rng || !rng->allocate_bytes(rng, exp_len, &random)) data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_diffie_hellman.c:211:30: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (!load_private_key(this, random)) data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_diffie_hellman.c:213: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. chunk_clear(&random); data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_diffie_hellman.c:217:15: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. chunk_clear(&random); data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_crypter.c:219:9: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define srandom(s) srand(s) data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_crypter.c:219:20: [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. #define srandom(s) srand(s) data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_crypter.c:220: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. #define random rand data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_dh.c:203: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. chunk_t random; data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_dh.c:237:48: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (rng && rng->allocate_bytes(rng, exp_len, &random)) data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_dh.c:241:8: [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.ptr, random.len, NULL); data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_dh.c:241:20: [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.ptr, random.len, NULL); data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_dh.c:242: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. chunk_clear(&random); data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c:215: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. chunk_t random; data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c:250:42: [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 (!rng->allocate_bytes(rng, exp_len, &random)) data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c:262:4: [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.ptr &= 0x7F; data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c:264:23: [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. mpz_import(this->xa, random.len, 1, 1, 1, 0, random.ptr); data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c:264: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. mpz_import(this->xa, random.len, 1, 1, 1, 0, random.ptr); data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c:265:15: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. chunk_clear(&random); data/strongswan-5.9.1/src/libstrongswan/settings/settings_parser.c:1795:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("DEBUG_SETTINGS_PARSER")) data/strongswan-5.9.1/src/libstrongswan/settings/settings_parser.c:1832:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("DEBUG_SETTINGS_PARSER")) data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_ecdsa.c:349:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("TESTS_REDUCED_KEYLENGTHS") != NULL) data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_hashtable.c:598:2: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(666); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_hashtable.c:601: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. r = random() % count; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_hashtable.c:630:2: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(666); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_hashtable.c:633: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. r = random() % count; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_hashtable.c:650:2: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(666); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_hashtable.c:653: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. r = random() % count + count; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_hashtable.c:670:2: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(666); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_hashtable.c:673: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. r = random() % count; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_rsa.c:5500:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("TESTS_REDUCED_KEYLENGTHS") != NULL) data/strongswan-5.9.1/src/libstrongswan/tests/test_runner.c:188:11: [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. filter = getenv(sel); data/strongswan-5.9.1/src/libstrongswan/tests/test_runner.c:193:11: [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. filter = getenv(exc); data/strongswan-5.9.1/src/libstrongswan/tests/test_runner.c:533:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!getenv("TESTS_TIMING")) data/strongswan-5.9.1/src/libstrongswan/tests/test_runner.c:732:12: [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. runners = getenv("TESTS_RUNNERS"); data/strongswan-5.9.1/src/libstrongswan/tests/test_runner.c:738:8: [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. cfg = getenv("TESTS_STRONGSWAN_CONF"); data/strongswan-5.9.1/src/libstrongswan/tests/test_runner.c:746:14: [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. verbosity = getenv("TESTS_VERBOSITY"); data/strongswan-5.9.1/src/libstrongswan/tests/tests.c:40:13: [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. plugins = getenv("TESTS_PLUGINS") ?: data/strongswan-5.9.1/src/libstrongswan/threading/windows/mutex.c:66:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&this->cs); data/strongswan-5.9.1/src/libstrongswan/threading/windows/mutex.c:100:2: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&this->cs); data/strongswan-5.9.1/src/libstrongswan/threading/windows/mutex.c:126:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mutex->cs); data/strongswan-5.9.1/src/libstrongswan/threading/windows/spinlock.c:40:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&this->cs); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:974:3: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(time(NULL) + getpid()); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:977:29: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. hash_key[done] = (u_char)random(); data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c:75:9: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. return LoadLibrary(filename); data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.h:59:20: [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. static inline long random(void) data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.h:67:20: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. static inline void srandom(unsigned int seed) data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.h:69:2: [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(seed); data/strongswan-5.9.1/src/libstrongswan/utils/leak_detective.c:1135:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("LEAK_DETECTIVE_DISABLE") != NULL) data/strongswan-5.9.1/src/libstrongswan/utils/leak_detective.c:1140:19: [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. ignore_unknown = getenv("LEAK_DETECTIVE_IGNORE_UNKNOWN") != NULL; data/strongswan-5.9.1/src/libtls/tls_eap.c:496:23: [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. this->identifier = random(); data/strongswan-5.9.1/src/libtls/tls_peer.c:146: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. chunk_t random, session, ext = chunk_empty; data/strongswan-5.9.1/src/libtls/tls_peer.c:153:60: [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. !reader->read_data(reader, sizeof(this->server_random), &random) || data/strongswan-5.9.1/src/libtls/tls_peer.c:164:30: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. memcpy(this->server_random, random.ptr, sizeof(this->server_random)); data/strongswan-5.9.1/src/libtls/tls_server.c:217: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. chunk_t random, session, ciphers, compression, ext = chunk_empty; data/strongswan-5.9.1/src/libtls/tls_server.c:227:60: [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. !reader->read_data(reader, sizeof(this->client_random), &random) || data/strongswan-5.9.1/src/libtls/tls_server.c:270:30: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. memcpy(this->client_random, random.ptr, sizeof(this->client_random)); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1304:60: [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. rval = Tss2_Sys_GetRandom(this->sys_context, NULL, len, &random, NULL); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1311:15: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. memcpy(pos, random.t.buffer, random.t.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1311:32: [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. memcpy(pos, random.t.buffer, random.t.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1312:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. pos += random.t.size; data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1313:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. bytes -= random.t.size; data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1226:60: [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. rval = Tss2_Sys_GetRandom(this->sys_context, NULL, len, &random, NULL); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1233:15: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. memcpy(pos, random.buffer, random.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1233:30: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. memcpy(pos, random.buffer, random.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1234:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. pos += random.size; data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1235:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. bytes -= random.size; data/strongswan-5.9.1/src/pki/command.c:116:8: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. op = getopt_long(argc, argv, command_optstring, command_opts, NULL); data/strongswan-5.9.1/src/pki/command.c:274:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. op = getopt_long(c, v, command_optstring, command_opts, NULL); data/strongswan-5.9.1/src/pki/pki.c:443:12: [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. plugins = getenv("PKI_PLUGINS"); data/strongswan-5.9.1/src/pool/pool.c:1016:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "", long_opts, NULL); data/strongswan-5.9.1/src/pt-tls-client/pt-tls-client.c:310:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. switch (getopt_long(argc, argv, "hc:i:s:p:x:K:k:t:mqd:+:", long_opts, data/strongswan-5.9.1/src/scepclient/scepclient.c:550:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long(argc, argv, "hv+:ql:i:o:fT:k:d:s:p:a:u:c:m:t:x:APRCMS", long_opts, NULL); data/strongswan-5.9.1/src/sec-updater/sec-updater.c:500:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "ha:d:f:o:qsu:", long_opts, NULL); data/strongswan-5.9.1/src/starter/parser/parser.c:1692:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("DEBUG_CONF_PARSER")) data/strongswan-5.9.1/src/stroke/stroke.c:495:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. switch (getopt_long(argc, argv, "hd:", long_opts, NULL)) data/strongswan-5.9.1/src/sw-collector/sw-collector.c:160:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "hCc:d:fgilmqru", long_opts, NULL); data/strongswan-5.9.1/src/swanctl/command.c:123:8: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. op = getopt_long(argc, argv, command_optstring, command_opts, NULL); data/strongswan-5.9.1/src/swanctl/command.c:275:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. switch (getopt_long(argc, argv, command_optstring, command_opts, NULL)) data/strongswan-5.9.1/src/swanctl/command.c:339:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. op = getopt_long(c, v, command_optstring, command_opts, NULL); data/strongswan-5.9.1/src/swanctl/swanctl.c:94:23: [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. swanctl_dir = strdup(getenv("SWANCTL_DIR") ?: SWANCTLDIR); data/strongswan-5.9.1/src/tpm_extendpcr/tpm_extendpcr.c:198:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long(argc, argv, "ha:p:d:i:xo:ql:", long_opts, NULL); data/strongswan-5.9.1/src/xfrmi/xfrmi.c:273:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. switch (getopt_long(argc, argv, "hvln:i:d:", long_opts, NULL)) data/strongswan-5.9.1/scripts/aes-test.c:163:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[512]; data/strongswan-5.9.1/scripts/aes-test.c:200:18: [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). ctx.ivlen = atoi(line + strlen("[IVlen = ")); data/strongswan-5.9.1/scripts/aes-test.c:204:19: [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). ctx.icvlen = atoi(line + strlen("[Taglen = ")); data/strongswan-5.9.1/scripts/aes-test.c:352:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(key.ptr, test->key.ptr, test->key.len); data/strongswan-5.9.1/scripts/aes-test.c:353:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(key.ptr + test->key.len, test->iv.ptr, saltlen); data/strongswan-5.9.1/scripts/aes-test.c:355:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(iv.ptr, test->iv.ptr + saltlen, iv.len); data/strongswan-5.9.1/scripts/aes-test.c:381: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(test->icv.ptr, test->cipher.ptr + test->cipher.len, data/strongswan-5.9.1/scripts/aes-test.c:479:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(prev.ptr, output->ptr, prev.len); data/strongswan-5.9.1/scripts/aes-test.c:489: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(test->iv.ptr, input->ptr, test->iv.len); data/strongswan-5.9.1/scripts/aes-test.c:493: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(test->iv.ptr, output->ptr, test->iv.len); data/strongswan-5.9.1/scripts/aes-test.c:496:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(input->ptr, prev.ptr, input->len); data/strongswan-5.9.1/scripts/aes-test.c:516: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(test->iv.ptr, output->ptr, test->iv.len); data/strongswan-5.9.1/scripts/aes-test.c:582:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dbg_default_set_level(atoi(optarg)); data/strongswan-5.9.1/scripts/aes-test.c:602:14: [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). ctx.in = fopen(optarg, "r"); data/strongswan-5.9.1/scripts/aes-test.c:612:15: [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). ctx.out = fopen(optarg, "w"); data/strongswan-5.9.1/scripts/crypt_burn.c:198:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). len = atoi(argv[2]); data/strongswan-5.9.1/scripts/crypt_burn.c:207:11: [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). limit = atoi(argv[3]); data/strongswan-5.9.1/scripts/dh_speed.c:132:11: [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). rounds = atoi(argv[2]); data/strongswan-5.9.1/scripts/hash_burn.c:25:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/strongswan-5.9.1/scripts/hash_burn.c:43:11: [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). limit = atoi(argv[2]); data/strongswan-5.9.1/scripts/key2keyid.c:30:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8096]; data/strongswan-5.9.1/scripts/keyid2sql.c:30:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8096]; data/strongswan-5.9.1/scripts/pubkey_speed.c:48:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8096], *pos = buf; data/strongswan-5.9.1/scripts/pubkey_speed.c:58:11: [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). rounds = atoi(argv[3]); data/strongswan-5.9.1/scripts/settings-test.c:34:24: [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 void get_indent(char indent[BUF_LEN], int level) data/strongswan-5.9.1/scripts/settings-test.c:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char indent[BUF_LEN]; data/strongswan-5.9.1/scripts/settings-test.c:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char indent[BUF_LEN], buf[BUF_LEN], *key, *value; data/strongswan-5.9.1/scripts/thread_analysis.c:87:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[LINE_LEN]; data/strongswan-5.9.1/scripts/thread_analysis.c:102:7: [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). fd = fopen(LOGFILE, "r"); data/strongswan-5.9.1/scripts/thread_analysis.c:176:8: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). th = atol(p_thread); data/strongswan-5.9.1/scripts/timeattack.c:411:33: [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). return !attack_memeq(argv[1], atoi(argv[2]), atoi(argv[3])); data/strongswan-5.9.1/scripts/timeattack.c:411:48: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return !attack_memeq(argv[1], atoi(argv[2]), atoi(argv[3])); data/strongswan-5.9.1/scripts/timeattack.c:415:33: [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). return !attack_chunk(argv[1], atoi(argv[2]), atoi(argv[3])); data/strongswan-5.9.1/scripts/timeattack.c:415:48: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return !attack_chunk(argv[1], atoi(argv[2]), atoi(argv[3])); data/strongswan-5.9.1/scripts/timeattack.c:417:36: [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). return !attack_transform(argv[1], atoi(argv[2]), atoi(argv[3])); data/strongswan-5.9.1/scripts/timeattack.c:417:51: [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). return !attack_transform(argv[1], atoi(argv[2]), atoi(argv[3])); data/strongswan-5.9.1/scripts/tls_test.c:321: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). port = atoi(optarg); data/strongswan-5.9.1/scripts/tls_test.c:324:13: [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). times = atoi(optarg); data/strongswan-5.9.1/scripts/tls_test.c:327:17: [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). tls_level = atoi(optarg); data/strongswan-5.9.1/src/aikgen/aikgen.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[8192]; data/strongswan-5.9.1/src/aikgen/aikgen.c:131: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 m[8192]; data/strongswan-5.9.1/src/aikgen/aikgen.c:276:24: [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). default_loglevel = atoi(optarg); data/strongswan-5.9.1/src/charon-cmd/charon-cmd.c:197:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmd[64], *pre, *post; data/strongswan-5.9.1/src/charon-cmd/charon-cmd.c:277:24: [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). default_loglevel = atoi(optarg); data/strongswan-5.9.1/src/charon-cmd/cmd/cmd_options.h:71:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *lines[12]; data/strongswan-5.9.1/src/charon-nm/charon-nm.c:54: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[8192], groupstr[4]; data/strongswan-5.9.1/src/charon-systemd/charon-systemd.c:101:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096], *msg = buf; data/strongswan-5.9.1/src/charon-systemd/charon-systemd.c:119: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 unique[64] = "", name[256] = ""; data/strongswan-5.9.1/src/charon-tkm/src/charon-tkm.c:79: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[8192]; data/strongswan-5.9.1/src/charon-tkm/src/charon-tkm.c:179:13: [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). pidfile = fopen(pidfile_name, "r"); data/strongswan-5.9.1/src/charon-tkm/src/charon-tkm.c:182:4: [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[64]; data/strongswan-5.9.1/src/charon-tkm/src/charon-tkm.c:189:11: [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). pid = atoi(buf); data/strongswan-5.9.1/src/charon-tkm/src/charon-tkm.c:205:12: [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). pidfile = fopen(pidfile_name, "w"); data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_diffie_hellman.c:78:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&othervalue.data, value.ptr, value.len); data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_keymat.c:388:52: [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. chunk_t nonce, chunk_t ppk, identification_t *id, char reserved[3], data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_keymat.c:431:53: [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. chunk_t secret, chunk_t ppk, identification_t *id, char reserved[3], data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_nonceg.c:59:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, &nonce.data, size); data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_utils.c:32:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(chunk->ptr, first, len); data/strongswan-5.9.1/src/charon-tkm/src/tkm/tkm_utils.c:52:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(seq->data, chunk->ptr, seq->size); data/strongswan-5.9.1/src/charon/charon.c:191:13: [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). pidfile = fopen(PID_FILE, "r"); data/strongswan-5.9.1/src/charon/charon.c:194:4: [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[64]; data/strongswan-5.9.1/src/charon/charon.c:201:11: [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). pid = atoi(buf); data/strongswan-5.9.1/src/charon/charon.c:216:12: [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). pidfile = fopen(PID_FILE, "w"); data/strongswan-5.9.1/src/charon/charon.c:386:21: [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). levels[group] = atoi(optarg); data/strongswan-5.9.1/src/checksum/checksum_builder.c:75:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *plugin, path[256], under[128], sname[128], name[128]; data/strongswan-5.9.1/src/checksum/checksum_builder.c:96:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *binary, *pos, name[128], sname[128]; data/strongswan-5.9.1/src/conftest/conftest.c:136:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wd[PATH_MAX]; data/strongswan-5.9.1/src/conftest/conftest.c:171:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *type, *value, wd[PATH_MAX]; data/strongswan-5.9.1/src/conftest/conftest.c:282:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *name, *pos, buf[64]; data/strongswan-5.9.1/src/conftest/conftest.c:420: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). logger->open(logger, FALSE, FALSE); data/strongswan-5.9.1/src/conftest/conftest.c:463: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). logger->open(logger, FALSE, FALSE); data/strongswan-5.9.1/src/conftest/hooks/add_notify.c:73:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). type = atoi(this->type); data/strongswan-5.9.1/src/conftest/hooks/add_payload.c:77:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). type = atoi(this->type); data/strongswan-5.9.1/src/conftest/hooks/custom_proposal.c:71:37: [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). proposal = proposal_create(proto, atoi(number)); data/strongswan-5.9.1/src/conftest/hooks/pretend_auth.c:46:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved[3]; data/strongswan-5.9.1/src/conftest/hooks/rebuild_auth.c:67:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved[3]; data/strongswan-5.9.1/src/conftest/hooks/rebuild_auth.c:89:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(reserved, data.ptr + 5, 3); data/strongswan-5.9.1/src/conftest/hooks/reset_seq.c:172:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&data->usersa.daddr, chunk.ptr, data/strongswan-5.9.1/src/conftest/hooks/set_critical.c:65:11: [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). type = atoi(name); data/strongswan-5.9.1/src/conftest/hooks/set_length.c:63:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). type = atoi(this->type); data/strongswan-5.9.1/src/conftest/hooks/set_reserved.c:181:11: [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). type = atoi(name); data/strongswan-5.9.1/src/conftest/hooks/set_reserved.c:195: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). set_bit(this, message, type, atoi(nr)); data/strongswan-5.9.1/src/conftest/hooks/set_reserved.c:206:35: [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). set_byte(this, message, type, atoi(nr), byteval); data/strongswan-5.9.1/src/conftest/hooks/unencrypted_notify.c:68:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). type = atoi(this->type); data/strongswan-5.9.1/src/include/linux/socket.h:16:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __data[_K_SS_MAXSIZE - sizeof(unsigned short)]; data/strongswan-5.9.1/src/include/linux/xfrm.h:33:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ctx_str[0]; data/strongswan-5.9.1/src/include/linux/xfrm.h:100:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char alg_name[64]; data/strongswan-5.9.1/src/include/linux/xfrm.h:102:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char alg_key[0]; data/strongswan-5.9.1/src/include/linux/xfrm.h:106:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char alg_name[64]; data/strongswan-5.9.1/src/include/linux/xfrm.h:109:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char alg_key[0]; data/strongswan-5.9.1/src/include/linux/xfrm.h:113:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char alg_name[64]; data/strongswan-5.9.1/src/include/linux/xfrm.h:116:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char alg_key[0]; data/strongswan-5.9.1/src/libcharon/bus/bus.c:388: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[1024]; data/strongswan-5.9.1/src/libcharon/bus/listeners/file_logger.c:97:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char groupstr[5], timestr[128], namestr[128] = ""; data/strongswan-5.9.1/src/libcharon/bus/listeners/file_logger.c:258: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). file = fopen(this->filename, append ? "a" : "w"); data/strongswan-5.9.1/src/libcharon/bus/listeners/file_logger.h:65:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void (*open) (file_logger_t *this, bool flush_line, bool append); data/strongswan-5.9.1/src/libcharon/bus/listeners/sys_logger.c:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char groupstr[5], namestr[128] = ""; data/strongswan-5.9.1/src/libcharon/config/child_cfg.c:429:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(lft, &this->lifetime, sizeof(lifetime_cfg_t)); data/strongswan-5.9.1/src/libcharon/daemon.c:519:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file_logger->open(file_logger, flush_line, append); data/strongswan-5.9.1/src/libcharon/daemon.c:605:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file_logger->open(file_logger, FALSE, FALSE); data/strongswan-5.9.1/src/libcharon/daemon.c:768:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *key, *value, *pos, buf[1024]; data/strongswan-5.9.1/src/libcharon/encoding/message.c:1340:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char method[64] = ""; data/strongswan-5.9.1/src/libcharon/encoding/message.c:1670:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/encoding/message.c:1904:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((private_message_t*)message)->reserved, this->reserved, data/strongswan-5.9.1/src/libcharon/encoding/message.c:2633:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/encoding/parser.c:188: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(output_pos, this->byte_pos, sizeof(uint16_t)); data/strongswan-5.9.1/src/libcharon/encoding/parser.c:213: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(output_pos, this->byte_pos, sizeof(uint16_t)); data/strongswan-5.9.1/src/libcharon/encoding/parser.c:236: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(output_pos, this->byte_pos, sizeof(uint32_t)); data/strongswan-5.9.1/src/libcharon/encoding/parser.c:260: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(output_pos, this->byte_pos, bytes); data/strongswan-5.9.1/src/libcharon/encoding/parser.c:358: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(output_pos->ptr, this->byte_pos, length); data/strongswan-5.9.1/src/libcharon/encoding/payloads/delete_payload.c:293:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(spi_i, this->spis.ptr, sizeof(uint64_t)); data/strongswan-5.9.1/src/libcharon/encoding/payloads/delete_payload.c:294:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(spi_r, this->spis.ptr + sizeof(uint64_t), sizeof(uint64_t)); data/strongswan-5.9.1/src/libcharon/encoding/payloads/delete_payload.c:317: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(spi, this->spis.ptr, sizeof(*spi)); data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:471:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(iv.ptr + iv.len, plain.ptr, plain.len); data/strongswan-5.9.1/src/libcharon/encoding/payloads/encrypted_payload.c:551:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->encrypted.ptr, plain.ptr, plain.len); data/strongswan-5.9.1/src/libcharon/encoding/payloads/transform_attribute.c:201:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char*)&value) + sizeof(value) - this->attribute_value.len, data/strongswan-5.9.1/src/libcharon/network/receiver.c:74:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char secret[SECRET_LENGTH]; data/strongswan-5.9.1/src/libcharon/network/receiver.c:79:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char secret_old[SECRET_LENGTH]; data/strongswan-5.9.1/src/libcharon/network/receiver.c:351:4: [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 secret[SECRET_LENGTH]; data/strongswan-5.9.1/src/libcharon/network/receiver.c:357: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(this->secret_old, this->secret, SECRET_LENGTH); data/strongswan-5.9.1/src/libcharon/network/receiver.c:358: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(this->secret, secret, SECRET_LENGTH); data/strongswan-5.9.1/src/libcharon/network/receiver.c:679:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->secret_old, this->secret, SECRET_LENGTH); data/strongswan-5.9.1/src/libcharon/plugins/android_dns/android_dns_handler.c:82:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[10], value[PROPERTY_VALUE_MAX], data/strongswan-5.9.1/src/libcharon/plugins/android_dns/android_dns_handler.c:103:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[10], value[PROPERTY_VALUE_MAX], data/strongswan-5.9.1/src/libcharon/plugins/android_log/android_log_logger.c:53:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sgroup[16]; data/strongswan-5.9.1/src/libcharon/plugins/attr/attr_provider.c:233:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). type = atoi(key); data/strongswan-5.9.1/src/libcharon/plugins/attr/attr_provider.c:257: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). mask = atoi(pos); data/strongswan-5.9.1/src/libcharon/plugins/bypass_lan/bypass_lan_listener.c:167:4: [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 name[128]; data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_export.c:108:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[128]; data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_export.c:136:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[PATH_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_export.c:147:9: [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 = fopen(buf, "a"); data/strongswan-5.9.1/src/libcharon/plugins/connmark/connmark_listener.c:66: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(&addr->s_addr, net->get_address(net).ptr, 4); data/strongswan-5.9.1/src/libcharon/plugins/connmark/connmark_listener.c:81:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&addr->s_addr, host->get_address(host).ptr, 4); data/strongswan-5.9.1/src/libcharon/plugins/coupling/coupling_validator.c:66:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAX_HASH_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/coupling/coupling_validator.c:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[256]; data/strongswan-5.9.1/src/libcharon/plugins/coupling/coupling_validator.c:111:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[256]; data/strongswan-5.9.1/src/libcharon/plugins/coupling/coupling_validator.c:143:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hash[MAX_HASH_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/coupling/coupling_validator.c:245:12: [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). this->f = fopen(path, "a+"); data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:177:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char client_hw_addr[6]; data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:178:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char client_hw_padding[10]; data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:179:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_hostname[64]; data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:180:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char boot_filename[128]; data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:247:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&dhcp->client_hw_addr[2], &id, sizeof(id)); data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:266: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(option->data, chunk.ptr, option->len); data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:277: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(option->data, chunk.ptr, option->len); data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:359:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(option->data, chunk.ptr, min(chunk.len, option->len)); data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:366:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(option->data, chunk.ptr, min(chunk.len, option->len)); data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:462:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char*)&dhcp.client_address, chunk.ptr, data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:469:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(option->data, chunk.ptr, min(chunk.len, option->len)); data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck.c:45:28: [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). addr.in.sin_port = htons(atoi(getenv("TCP_PORT"))); data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck.c:72:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck_notify.c:79:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_peer.c:75:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mk[HASH_SIZE_SHA1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_peer.c:298:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->mk, mk.ptr, mk.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_server.c:174:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], xres[AKA_RES_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_server.c:175:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], ik[AKA_IK_LEN], autn[AKA_AUTN_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_server.c:241:11: [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 mk[HASH_SIZE_SHA1], uint16_t counter, data/strongswan-5.9.1/src/libcharon/plugins/eap_aka/eap_aka_server.c:343: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 mk[HASH_SIZE_SHA1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c:72:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c:72:27: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c:72:52: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c:73:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c:88:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sqn, autn, AKA_SQN_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c:132:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->sqn, sqn, AKA_SQN_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c:139:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c:139:27: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c:160:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(auts, this->sqn, AKA_SQN_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.c:162:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(auts + AKA_AK_LEN, macs, AKA_MAC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:81:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(k, key.ptr, AKA_K_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:87: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(k, key.ptr, AKA_K_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:88:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(opc, key.ptr + AKA_K_LEN, AKA_OPC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:114:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sqn, (uint8_t*)&time.tv_sec + sizeof(time_t) - 4, 4); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:115:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sqn + 4, &time.tv_usec, 2); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:141:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(in, sqn, 6); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:142:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&in[6], amf, 2); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:143:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&in[8], in, 8); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:157:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mac, data, 16); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:176:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(maca, mac, AKA_MAC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:195:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(macs, &mac[8], AKA_MAC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:242:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ak, data, 6); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:244:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(res, &data[8], 8); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:264:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ck, data, 16); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:283:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ik, data, 16); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_functions.c:328:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(aks, data, 6); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c:81:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char xres[AKA_RES_MAX], int *xres_len, data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c:81:27: [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 rand[AKA_RAND_LEN], char xres[AKA_RES_MAX], int *xres_len, data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c:82:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c:82:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c:82:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c:115:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(autn, this->sqn, AKA_SQN_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c:117:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(autn + AKA_SQN_LEN, amf, AKA_AMF_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c:118:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(autn + AKA_SQN_LEN + AKA_AMF_LEN, maca, AKA_MAC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c:128:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c:128:27: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_provider.c:167:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->sqn, sqn, AKA_SQN_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:45:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sqn[AKA_SQN_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:51:48: [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. bool eap_aka_3gpp2_get_k(identification_t *id, char k[AKA_K_LEN]); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:52:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void eap_aka_3gpp2_get_sqn(char sqn[AKA_SQN_LEN], int offset); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:56:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:56:27: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:56:52: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:57:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:60:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char k[AKA_K_LEN], ak[AKA_AK_LEN], sqn[AKA_SQN_LEN], xmac[AKA_MAC_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:72:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sqn, autn, AKA_SQN_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:105:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->sqn, sqn, AKA_SQN_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:121:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:121:27: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:123:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char amf[AKA_AMF_LEN], k[AKA_K_LEN], aks[AKA_AK_LEN], macs[AKA_MAC_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:139:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(auts, this->sqn, AKA_SQN_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c:141:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(auts + AKA_AK_LEN, macs, AKA_MAC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_functions.c:238:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out + i * 8, h, 8); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_functions.c:269:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mac, h, AKA_MAC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_functions.c:292:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ak, h, AKA_AK_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:41:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sqn[AKA_SQN_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:45:8: [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 amf_def[AKA_AMF_LEN] = {0x00, 0x01}; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:50:48: [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. bool eap_aka_3gpp2_get_k(identification_t *id, char k[AKA_K_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:62:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(k, key.ptr, min(key.len, AKA_K_LEN)); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:70:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void eap_aka_3gpp2_get_sqn(char sqn[AKA_SQN_LEN], int offset) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:79:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sqn, (char*)&time.tv_sec + sizeof(time_t) - 4, 4); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:80:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sqn + 4, &time.tv_usec, 2); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:85:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char xres[AKA_RES_MAX], int *xres_len, data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:85:27: [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 rand[AKA_RAND_LEN], char xres[AKA_RES_MAX], int *xres_len, data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:86:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:86:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:86:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mac[AKA_MAC_LEN], ak[AKA_AK_LEN], k[AKA_K_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:119:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(autn, this->sqn, AKA_SQN_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:121:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(autn + AKA_SQN_LEN, amf_def, AKA_AMF_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:122:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(autn + AKA_SQN_LEN + AKA_AMF_LEN, mac, AKA_MAC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:136:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:136:27: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:139:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char aks[AKA_AK_LEN], k[AKA_K_LEN], amf[AKA_AMF_LEN], xmacs[AKA_MAC_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_provider.c:170:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->sqn, sqn, AKA_SQN_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_gtc/eap_gtc.c:89:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(req->data, GTC_REQUEST_MSG, len); data/strongswan-5.9.1/src/libcharon/plugins/eap_gtc/eap_gtc.c:123:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(res->data, key.ptr, len); data/strongswan-5.9.1/src/libcharon/plugins/eap_identity/eap_identity.c:85:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(hdr->data, id.ptr, id.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_md5/eap_md5.c:139:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(req->value, this->challenge.ptr, this->challenge.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_md5/eap_md5.c:170:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(req->value, response.ptr, response.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:356:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(z_password_hash.ptr, password_hash.ptr, password_hash.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:372: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(&response->ptr[i * 8], encrypted.ptr, encrypted.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:467:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char master_key[HASH_SIZE_SHA1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:468:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char master_receive_key[HASH_SIZE_SHA1], master_send_key[HASH_SIZE_SHA1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:706:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&eap->ms_length, &len, sizeof(uint16_t)); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:745:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cha->challenge, this->challenge.ptr, this->challenge.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:746:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cha->name, name, sizeof(MSCHAPV2_HOST_NAME) - 1); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:864:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(res->response.peer_challenge, peer_challenge.ptr, peer_challenge.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:865:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(res->response.nt_response, this->nt_response.ptr, this->nt_response.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:866:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(res->name, userid.ptr, userid.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:898:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message, eap->data, message_len); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:983:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message, eap->data, message_len); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:993: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). error = atoi(token); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:1116:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[FAILURE_MESSAGE_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:1158:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(eap->data, msg, FAILURE_MESSAGE_LEN - 1); /* no null byte */ data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:1180:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:1232: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 msg[AUTH_RESPONSE_LEN + sizeof(SUCCESS_MESSAGE)]; data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:1248: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(eap->data, msg, AUTH_RESPONSE_LEN + sizeof(SUCCESS_MESSAGE)); data/strongswan-5.9.1/src/libcharon/plugins/eap_peap/eap_peap_avp.c:124:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data->ptr + 4, avp_data.ptr, len); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius.c:112:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(hdr->data, prefix.ptr, prefix.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius.c:113:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(hdr->data + prefix.len, id.ptr, id.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius.c:159:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[40], *station_id_fmt, *session_id; data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius.c:471:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[256], *token, *slash; data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_accounting.c:163:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sid[24]; data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_accounting.c:407:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAX_RADIUS_ATTRIBUTE_SIZE + 1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_dae.c:387:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048]; data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_forward.c:362:13: [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). vendor = atoi(token); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_forward.c:367:11: [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). type = atoi(token); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim/eap_sim_peer.c:97:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mk[HASH_SIZE_SHA1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_sim/eap_sim_peer.c:355:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->mk, mk.ptr, mk.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim/eap_sim_server.c:166:11: [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 mk[HASH_SIZE_SHA1], uint16_t counter, data/strongswan-5.9.1/src/libcharon/plugins/eap_sim/eap_sim_server.c:330:4: [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 mk[HASH_SIZE_SHA1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.c:40:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.c:40:27: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.c:40:52: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.c:58: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(sres, c_sres, SIM_SRES_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.c:59: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(kc, c_kc, SIM_KC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.c:71:27: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.c:71:52: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.c:72:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_card.c:72:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_provider.c:40: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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_provider.c:40:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_provider.c:40:53: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_provider.c:51:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rand, c_rand, SIM_RAND_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_provider.c:52:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sres, c_sres, SIM_SRES_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_provider.c:53:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(kc, c_kc, SIM_KC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_triplets.c:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[SIM_RAND_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_triplets.c:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sres[SIM_SRES_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_triplets.c:56:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char kc[SIM_KC_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_triplets.c:148:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to + len - chunk.len, chunk.ptr, chunk.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_triplets.c:157:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[512]; data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_triplets.c:161:9: [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 = fopen(path, "r"); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:92:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:92:27: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:92:52: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:100:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char full_nai[128]; data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:141: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 imsi[SIM_IMSI_MAX_LEN + 1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:166: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(pbRunGSMAlgorithm + 5, rand, SIM_RAND_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:321:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sres, pbRecvBuffer, SIM_SRES_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:322:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(kc, pbRecvBuffer+4, SIM_KC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:362:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:362:27: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:362:52: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:363:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:363:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_card.c:108:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_card.c:108:27: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_card.c:108:52: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_card.c:109:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_card.c:109:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_pseudonym/eap_simaka_pseudonym_provider.c:84:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8], hex[sizeof(buf) * 2 + 1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.c:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mk[HASH_SIZE_SHA1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mk[HASH_SIZE_SHA1], uint16_t *counter) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.c:83:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mk, data->mk, HASH_SIZE_SHA1); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.c:92:26: [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. identification_t* next, char mk[HASH_SIZE_SHA1], uint16_t counter) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.c:109:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data->mk, mk, HASH_SIZE_SHA1); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.c:114:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.c:114:27: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.c:114:52: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.c:115:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_card.c:115:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_provider.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mk[HASH_SIZE_SHA1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_provider.c:82:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8], hex[sizeof(buf) * 2 + 1]; data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_provider.c:95:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mk[HASH_SIZE_SHA1], uint16_t *counter) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_provider.c:113:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mk, data->mk, HASH_SIZE_SHA1); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_provider.c:119:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mk[HASH_SIZE_SHA1]) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_reauth/eap_simaka_reauth_provider.c:155:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data->mk, mk, HASH_SIZE_SHA1); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:50:27: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:50:52: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:70: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(sres, sres_chunk.ptr, SIM_SRES_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:71: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(kc, kc_chunk.ptr, SIM_KC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:98:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:98:27: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:98:52: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:99:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:99:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ik[AKA_IK_LEN], char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:104:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:120: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(ck, ck_chunk.ptr, AKA_CK_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:121: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(ik, ik_chunk.ptr, AKA_IK_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_card.c:122: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(res, res_chunk.ptr, res_chunk.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:47:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:47:27: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:47:52: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:52:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:66: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(rand, rand_chunk.ptr, SIM_RAND_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:67: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(sres, sres_chunk.ptr, SIM_SRES_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:68: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(kc, kc_chunk.ptr, SIM_KC_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:95:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char xres[AKA_RES_MAX], int *xres_len, data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:95:27: [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 rand[AKA_RAND_LEN], char xres[AKA_RES_MAX], int *xres_len, data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:96:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:96:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:96:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:101:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:118: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(rand, rand_chunk.ptr, AKA_RAND_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:119: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(xres, xres_chunk.ptr, xres_chunk.len); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:121: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(ck, ck_chunk.ptr, AKA_CK_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:122: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(ik, ik_chunk.ptr, AKA_IK_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_simaka_sql/eap_simaka_sql_provider.c:123: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(autn, autn_chunk.ptr, AKA_AUTN_LEN); data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c:98:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->input.ptr, buf.ptr, len); data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c:103:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->input.ptr + this->inpos, buf.ptr, len); data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c:142:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->input.ptr + this->inpos, buf.ptr, len); data/strongswan-5.9.1/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c:143: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(eap_data.ptr + eap_pos, avp_data.ptr, avp_data.len); data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify.c:44:28: [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). addr.in.sin_port = htons(atoi(getenv("TCP_PORT"))); data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify_msg.h:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[384]; data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify_msg.h:63:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[64]; data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify_msg.h:65:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[256]; data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify_msg.h:67:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ip[60]; data/strongswan-5.9.1/src/libcharon/plugins/ext_auth/ext_auth_listener.c:99: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 *envp[32] = {}; data/strongswan-5.9.1/src/libcharon/plugins/ext_auth/ext_auth_listener.c:135:6: [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 resp[128], *e; data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_spoofer.c:75:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[4]; data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_spoofer.c:82: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(arp->target_mac, arp->sender_mac, 6); data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_spoofer.c:83:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(arp->sender_mac, req.ifr_hwaddr.sa_data, 6); data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_spoofer.c:85:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, arp->sender_ip, 4); data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_spoofer.c:86: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(arp->sender_ip, arp->target_ip, 4); data/strongswan-5.9.1/src/libcharon/plugins/farp/farp_spoofer.c:87: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(arp->target_ip, tmp, 4); data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_forwarder.c:161: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 data[2048]; data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_forwarder.c:267: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(&mreq.imr_multiaddr.s_addr, host->get_address(host).ptr, 4); data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_forwarder.c:271:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&mreq.imr_address, &in->sin_addr.s_addr, data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_listener.c:124: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(&addr->s_addr, net->get_address(net).ptr, 4); data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_listener.c:139:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&addr->s_addr, host->get_address(host).ptr, 4); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_attribute.c:331:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mask = atoi(bits); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ctl.c:96:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8]; data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ctl.c:101:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fifo = open(HA_FIFO, O_RDONLY); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ctl.c:125:13: [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). segment = atoi(&buf[1]); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_kernel.c:222:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmd[8]; data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_kernel.c:227:7: [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). fd = open(file, O_WRONLY); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_kernel.c:247:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_kernel.c:252:7: [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). fd = open(file, O_RDONLY); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_kernel.c:276:14: [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). segment = atoi(token); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_message.c:182:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(enc->encoding, data.ptr, data.len); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_message.c:203:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(enc->encoding, data.ptr, data.len); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_message.c:214:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->buf.ptr + this->buf.len, str, len); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_message.c:283:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->buf.ptr + this->buf.len + sizeof(uint16_t), data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_message.c:307:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(enc->encoding, data.ptr, data.len); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_segments.c:106:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64] = "none", *pos = buf; data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_socket.c:129: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[this->buflen]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_iph/kernel_iph_net.c:256: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 desc[128] = ""; data/strongswan-5.9.1/src/libcharon/plugins/kernel_iph/kernel_iph_net.c:666:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&row.DestinationPrefix.Prefix.Ipv4.sin_addr, data/strongswan-5.9.1/src/libcharon/plugins/kernel_iph/kernel_iph_net.c:671:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&row.DestinationPrefix.Prefix.Ipv6.sin6_addr, data/strongswan-5.9.1/src/libcharon/plugins/kernel_iph/kernel_iph_net.c:679: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(&row.NextHop, gtw->get_sockaddr(gtw), data/strongswan-5.9.1/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_router.c:181:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:721:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(xfrm, chunk.ptr, min(chunk.len, sizeof(xfrm_address_t))); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:756:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(net, net_chunk.ptr, net_chunk.len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1079:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char response[netlink_get_buflen()]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1516:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char markstr[32] = ""; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1712:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(algo->alg_key, data->enc_key.ptr, data->enc_key.len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1739:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(algo->alg_key, data->enc_key.ptr, data->enc_key.len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1787:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(algo->alg_key, data->int_key.ptr, data->int_key.len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1802:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(algo->alg_key, data->int_key.ptr, data->int_key.len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2043: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(*lifetime, RTA_DATA(rta), RTA_PAYLOAD(rta)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2050: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(*replay, RTA_DATA(rta), RTA_PAYLOAD(rta)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2058: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(*replay_esn, RTA_DATA(rta), RTA_PAYLOAD(rta)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2077:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char markstr[32] = ""; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2171:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char markstr[32] = ""; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2247:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char markstr[32] = ""; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2349:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sa, NLMSG_DATA(out_hdr), sizeof(struct xfrm_usersa_info)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2446: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(state, replay_esn, replay_esn_len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2458: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(state, replay, sizeof(*state)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2475: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(state, lifetime, sizeof(*state)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2598:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(route->dst_net.ptr, &policy->sel.daddr, route->dst_net.len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2680:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&clone, policy, sizeof(policy_entry_t)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2826:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char markstr[32] = ""; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:2958:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char markstr[32] = ""; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:3054:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char markstr[32] = ""; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c:150:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ifname[IFNAMSIZ]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c:1459:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char response[netlink_get_buflen()]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c:2183:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ifname[IFNAMSIZ]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c:2663: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(RTA_DATA(rta), &this->mtu, sizeof(uint32_t)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c:2671: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(RTA_DATA(rta), &this->mss, sizeof(uint32_t)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_plugin.c:61:6: [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). f = fopen("/proc/sys/net/core/xfrm_acq_expires", "w"); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_shared.c:245: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(hdr, buf, buf->nlmsg_len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_shared.c:268:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[this->buflen]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_shared.c:397:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, hdr, hdr->nlmsg_len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_shared.c:708:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(RTA_DATA(rta), data.ptr, data.len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:175:54: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define PFKEY_EXT_COPY(msg, ext) (PFKEY_EXT_ADD(msg, memcpy(PFKEY_EXT_ADD_NEXT(msg), ext, PFKEY_USER_LEN(((struct sadb_ext*)ext)->sadb_ext_len)))) data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:1039:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, addr, *len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:1179:11: [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 buf[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:1298:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*out, buf, len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:1535:11: [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 buf[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:1607:11: [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 request[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:1702:11: [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 request[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:1890: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(key + 1, data->enc_key.ptr, data->enc_key.len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:1910: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(key + 1, data->int_key.ptr, data->int_key.len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:1945:11: [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 request[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:2040: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(&sa_2->sa, response.sa, sizeof(struct sadb_sa)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:2116:11: [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 request[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:2195:11: [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 request[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:2259:11: [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 request[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:2582:11: [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 request[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:2843:11: [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 request[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:2947:11: [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 request[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:3106:11: [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 request[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c:3142:11: [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 request[PFKEY_BUFFER_SIZE]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:95:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ifname[IFNAMSIZ]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:961: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[sizeof(struct sockaddr_storage) * RTAX_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:1045: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(this->reply, &msg, msg.rtm.rtm_msglen); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:1358: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((char*)hdr + hdr->rtm_msglen, addr->get_sockaddr(addr), len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:1392: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(sdl.sdl_data, name, sdl.sdl_nlen); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:1393: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((char*)hdr + hdr->rtm_msglen, &sdl, sdl.sdl_len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:1408: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[sizeof(struct sockaddr_storage) * RTAX_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:1560: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[sizeof(struct sockaddr_storage) * RTAX_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:1740: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(&ss, sockaddr, sockaddr->sa_len); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:1975:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(iface->ifname, ifa->ifa_name, IFNAMSIZ); data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/ipsecdump.c:84: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. static char buf[64]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/ipsecdump.c:533:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c:431: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(addr, from, sizeof(*addr)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c:479: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(addr, from, sizeof(*addr)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c:482: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(addr, to, sizeof(*addr)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c:1195:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(spi.inboundIpsecTraffic.localV6Address, traffic.localV6Address, data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c:1197:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(spi.inboundIpsecTraffic.remoteV6Address, traffic.remoteV6Address, data/strongswan-5.9.1/src/libcharon/plugins/led/led_listener.c:67:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/led/led_listener.c:77:6: [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). f = fopen(path, "r"); data/strongswan-5.9.1/src/libcharon/plugins/led/led_listener.c:94:6: [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). f = fopen(path, "w"); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester.c:100:19: [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). return initiate(atoi(argv[2]), argc > 3 ? atoi(argv[3]) : 0); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester.c:100:45: [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). return initiate(atoi(argv[2]), argc > 3 ? atoi(argv[3]) : 0); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c:317:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c:690:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char local[32]; data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_control.c:185:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16] = ""; data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_creds.c:314:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip.c:44:28: [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). addr.in.sin_port = htons(atoi(getenv("TCP_PORT"))); data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip.c:142:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *label, name[32]; data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip.c:202: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 line[64], *pos; data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_msg.h:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char vip[40]; data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_msg.h:85:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char vip[40]; data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_msg.h:87:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ip[40]; data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_msg.h:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[256]; data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip_msg.h:91:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[40]; data/strongswan-5.9.1/src/libcharon/plugins/osx_attr/osx_attr_handler.c:132:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/strongswan-5.9.1/src/libcharon/plugins/radattr/radattr_listener.c:111: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 path[PATH_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_handler.c:116:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_handler.c:120:7: [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). in = fopen(this->file, "r"); data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_handler.c:123:8: [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). out = fopen(this->file, "w"); data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_handler.c:153:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024], matcher[512]; data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_handler.c:155:7: [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). in = fopen(this->file, "r"); data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_handler.c:160:9: [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). out = fopen(this->file, "w"); data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_handler.c:231:4: [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 resp[128], *e; data/strongswan-5.9.1/src/libcharon/plugins/save_keys/save_keys_listener.c:300:9: [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 = fopen(path, "a"); data/strongswan-5.9.1/src/libcharon/plugins/save_keys/save_keys_listener.c:354:9: [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 = fopen(path, "a"); data/strongswan-5.9.1/src/libcharon/plugins/smp/smp.c:392:8: [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). id = atoi(str); data/strongswan-5.9.1/src/libcharon/plugins/smp/smp.c:633:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[4096]; data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_socket.c:243:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[this->max_packet]; data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_socket.c:288: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 ancillary[64]; data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_socket.c:398:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[CMSG_SPACE(sizeof(struct in_pktinfo))] = {}; data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_socket.c:419:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr, &sin->sin_addr, sizeof(struct in_addr)); data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_socket.c:428:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[CMSG_SPACE(sizeof(struct in_addr))] = {}; data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_socket.c:443:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr, &sin->sin_addr, sizeof(struct in_addr)); data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_socket.c:465:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[CMSG_SPACE(sizeof(struct in6_pktinfo))] = {}; data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_socket.c:482:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pktinfo->ipi6_addr, &sin->sin6_addr, sizeof(struct in6_addr)); data/strongswan-5.9.1/src/libcharon/plugins/socket_default/socket_default_socket.c:684:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&addr.sin6.sin6_addr, &in6addr_any, sizeof(in6addr_any)); data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c:187:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[this->max_packet]; data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c:193:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ancillary[64]; data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c:303:4: [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[1]; data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c:540:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[CMSG_SPACE(sizeof(struct in_pktinfo))] = {}; data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c:557:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr, &sin->sin_addr, sizeof(struct in_addr)); data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c:566:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[CMSG_SPACE(sizeof(struct in6_pktinfo))] = {}; data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c:579:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pktinfo->ipi6_addr, &sin->sin6_addr, sizeof(struct in6_addr)); data/strongswan-5.9.1/src/libcharon/plugins/socket_win/socket_win_socket.c:87:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[this->max_packet], cbuf[128]; data/strongswan-5.9.1/src/libcharon/plugins/socket_win/socket_win_socket.c:227:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[WSA_CMSG_SPACE(max(sizeof(struct in6_pktinfo), data/strongswan-5.9.1/src/libcharon/plugins/socket_win/socket_win_socket.c:260:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr.sin6_addr.u.Byte + sizeof(addr.sin6_addr) - len, data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_config.c:265:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char me[256], other[256]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_config.c:1372: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/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_control.c:255:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *id = atoi(pos + 1); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:123:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2 * SC_PART_LEN], *pos; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:189:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:194: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 module[SC_PART_LEN], keyid[SC_PART_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:236:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:328:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:333: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 module[SC_PART_LEN], keyid[SC_PART_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:576:4: [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[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:701:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:773:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:822:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char smartcard[BUF_LEN], keyid[SC_PART_LEN], module[SC_PART_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:1052:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:1080:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:1214:4: [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 **expanded, *dir, pattern[PATH_MAX]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_list.c:189:4: [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[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_list.c:820:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char alg_name[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/systime_fix/systime_fix_plugin.c:208:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *str, *fmt, buf[32]; data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_http.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *host, *path, *request, auth[128]; data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c:192:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c:209:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN], *id_type; data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c:279:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c:328:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c:391:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap_msg.c:83:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096] = { 0 }; data/strongswan-5.9.1/src/libcharon/plugins/tnc_pdp/tnc_pdp.c:187:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&sin6->sin6_addr, &in6addr_any, sizeof(in6addr_any)); data/strongswan-5.9.1/src/libcharon/plugins/tnc_pdp/tnc_pdp.c:262:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&sin6->sin6_addr, &in6addr_any, sizeof(in6addr_any)); data/strongswan-5.9.1/src/libcharon/plugins/tnc_pdp/tnc_pdp.c:368:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&mppe_key->key[1], key.ptr, key.len); data/strongswan-5.9.1/src/libcharon/plugins/tnc_pdp/tnc_pdp.c:705:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_PACKET]; data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_config.c:110:11: [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). rekey = atoi(string); data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_control.c:55:8: [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). out = fopen(FIFO_FILE, "w"); data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_control.c:79:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048]; data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_control.c:238:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[128]; data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_control.c:245:7: [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). in = fopen(FIFO_FILE, "r"); data/strongswan-5.9.1/src/libcharon/plugins/unity/unity_handler.c:213:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[128]; data/strongswan-5.9.1/src/libcharon/plugins/unity/unity_handler.c:294:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[128]; data/strongswan-5.9.1/src/libcharon/plugins/updown/updown_listener.c:267:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char port_buf[PORT_BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/updown/updown_listener.c:268:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *envp[128] = {}; data/strongswan-5.9.1/src/libcharon/plugins/updown/updown_listener.c:397: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 resp[128]; data/strongswan-5.9.1/src/libcharon/plugins/vici/libvici.c:148:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[257], *buf; data/strongswan-5.9.1/src/libcharon/plugins/vici/suites/test_socket.c:83:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[m.len]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_attribute.c:428:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_attribute.c:444:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). type = atoi(name); data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_attribute.c:528: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[128]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_attribute.c:677:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32], *filter; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_authority.c:338:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16], *end; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:597:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:660:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN], *protoport, *sep, *port = "", *end; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:814:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1050:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16], *end; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1090:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16], *end; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1112:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16], *end; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1178:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16], *end; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1225:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1240:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1255:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1298:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64], *pos; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1362:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1432:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1662:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_config.c:1684:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_cred.c:87:4: [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[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_cred.c:264:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN], *hex, *msg = NULL; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_cred.c:321:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN], *hex, *module, *pin, *unique = NULL; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_cred.c:398: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/strongswan-5.9.1/src/libcharon/plugins/vici/vici_cred.c:415:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *unique, *str, buf[512] = ""; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_dispatcher.c:312:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[257]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_message.c:126:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[257]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_message.c:235:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128], *name, *key, *dot, *next; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_message.c:353:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32], *pos; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_message.c:394:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_query.c:511:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_query.c:569:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_query.c:613:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_query.c:736:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_query.c:1252:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char alg_name[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_query.c:1254:2: [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(alg_name, "%N", alg_names, alg_type); data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_query.c:1387:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_query.c:1605: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[16]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_query.c:1763:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_socket.c:98:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hdr[sizeof(uint32_t)]; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_socket.c:379:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errmsg[256] = ""; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_socket.c:520:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errmsg[256] = ""; data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_socket.c:663:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errmsg[256] = ""; data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist.c:45:28: [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). addr.in.sin_port = htons(atoi(getenv("TCP_PORT"))); data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist.c:174:7: [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). f = fopen(file, "r"); data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist_msg.h:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[128]; data/strongswan-5.9.1/src/libcharon/plugins/xauth_pam/xauth_pam.c:130:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *service, user[128] = "", pass[128] = "", *pos; data/strongswan-5.9.1/src/libcharon/sa/authenticator.c:59:10: [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 reserved[3]) data/strongswan-5.9.1/src/libcharon/sa/authenticator.c:87:10: [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 reserved[3]) data/strongswan-5.9.1/src/libcharon/sa/authenticator.h:202:10: [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 reserved[3]); data/strongswan-5.9.1/src/libcharon/sa/authenticator.h:220:10: [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 reserved[3]); data/strongswan-5.9.1/src/libcharon/sa/ike_sa.c:2238:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gw[BUF_LEN]; data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c:65:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved[3]; data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c:759:10: [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 reserved[3]) data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c:790:10: [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 reserved[3]) data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/eap_authenticator.h:84:10: [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 reserved[3]); data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/eap_authenticator.h:100:10: [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 reserved[3]); data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/psk_authenticator.c:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved[3]; data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/psk_authenticator.c:212:10: [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 reserved[3]) data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/psk_authenticator.c:240:10: [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 reserved[3]) data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/psk_authenticator.h:50:10: [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 reserved[3]); data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/psk_authenticator.h:63:10: [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 reserved[3]); data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved[3]; data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c:705:10: [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 reserved[3]) data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c:733:10: [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 reserved[3]) data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.h:51:10: [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 reserved[3]); data/strongswan-5.9.1/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.h:64:10: [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 reserved[3]); data/strongswan-5.9.1/src/libcharon/sa/ikev2/keymat_v2.c:722:52: [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. chunk_t nonce, chunk_t ppk, identification_t *id, char reserved[3], data/strongswan-5.9.1/src/libcharon/sa/ikev2/keymat_v2.c:742:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(chunk.ptr + 1, reserved, 3); data/strongswan-5.9.1/src/libcharon/sa/ikev2/keymat_v2.c:767:53: [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. chunk_t secret, chunk_t ppk, identification_t *id, char reserved[3], data/strongswan-5.9.1/src/libcharon/sa/ikev2/keymat_v2.h:122:8: [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 reserved[3], chunk_t *octets, data/strongswan-5.9.1/src/libcharon/sa/ikev2/keymat_v2.h:143: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. identification_t *id, char reserved[3], chunk_t *sig); data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/child_create.c:1692: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(&group, data.ptr, data.len); data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_auth.c:86:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved[3]; data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_init.c:159:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[len]; data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_init.c:239:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[len]; data/strongswan-5.9.1/src/libcharon/tests/libcharon_tests.c:43:11: [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). level = atoi(verbosity); data/strongswan-5.9.1/src/libcharon/tests/suites/test_mem_pool.c:56:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expected[16]; data/strongswan-5.9.1/src/libcharon/tests/suites/test_message_chapoly.c:49:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, "\x10\x11\x12\x13\x14\x15\x16\x17", 8); data/strongswan-5.9.1/src/libcharon/tests/utils/exchange_test_helper.c:308:11: [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). level = atoi(verbosity); data/strongswan-5.9.1/src/libfast/fast_request.c:299:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[24]; data/strongswan-5.9.1/src/libfast/fast_session.c:43:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sid[COOKIE_LEN * 2 + 1]; data/strongswan-5.9.1/src/libfast/fast_session.c:83:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[COOKIE_LEN]; data/strongswan-5.9.1/src/libfast/fast_session.c:126:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *pos, *start, *param[6] = {NULL, NULL, NULL, NULL, NULL, NULL}; data/strongswan-5.9.1/src/libfast/fast_smtp.c:46:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256], *end; data/strongswan-5.9.1/src/libfast/fast_smtp.c:77:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_op_status.c:142:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char last_use[24]; data/strongswan-5.9.1/src/libimcv/ietf/ietf_attr_op_status.c:173:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/imc/imc_agent.c:300:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/strongswan-5.9.1/src/libimcv/imc/imc_agent.c:314:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/imc/imc_agent.c:332:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/strongswan-5.9.1/src/libimcv/imc/imc_msg.c:318: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[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:78:12: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *major = atol(this->version.ptr); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:83:18: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *minor = pos ? atol(pos + 1) : 0; data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:134:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:170:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2]; data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:175:9: [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 = fopen(ip_forward, "r"); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:214:9: [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 = fopen(proc_uptime, "r"); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:250:9: [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 = fopen(name, "r"); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:413: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). file = fopen(releases[i], "r"); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:574:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, os_version.ptr, os_version.len); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:577:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, uninfo.machine, strlen(uninfo.machine)); data/strongswan-5.9.1/src/libimcv/imcv.c:102:4: [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[8192]; data/strongswan-5.9.1/src/libimcv/imv/imv_agent.c:323:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/strongswan-5.9.1/src/libimcv/imv/imv_agent.c:337:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/imv/imv_agent.c:355:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/strongswan-5.9.1/src/libimcv/imv/imv_agent.c:374:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048]; data/strongswan-5.9.1/src/libimcv/imv/imv_agent.c:628:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lang_buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/imv/imv_database.c:274:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[512], resp[128], *last; data/strongswan-5.9.1/src/libimcv/imv/imv_msg.c:354: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[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/imv/imv_policy_manager.c:284:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[512]; data/strongswan-5.9.1/src/libimcv/imv/imv_policy_manager.c:430:15: [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). session_id = atoi(argv[2]); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:106:11: [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. pos += sprintf(pos, " <items>\n"); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:115:11: [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. pos += sprintf(pos, " </items>\n"); data/strongswan-5.9.1/src/libimcv/plugins/imc_hcd/imc_hcd.c:384:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version[version_len]; data/strongswan-5.9.1/src/libimcv/plugins/imc_scanner/imc_scanner.c:102:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/plugins/imc_scanner/imc_scanner.c:195:14: [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). new_port = atoi(pos+1); data/strongswan-5.9.1/src/libimcv/plugins/imc_swima/imc_swima.c:229:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error_msg[msg_len], *id_str; data/strongswan-5.9.1/src/libimcv/plugins/imc_swima/imc_swima.c:315:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:62:4: [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[8192]; data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:334: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). attest->set_sequence(attest, atoi(optarg)); data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:358: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). if (!attest->set_did(attest, atoi(optarg))) data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:364: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). if (!attest->set_fid(attest, atoi(optarg))) data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:370: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). if (!attest->set_pid(attest, atoi(optarg))) data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:376: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). if (!attest->set_cid(attest, atoi(optarg))) data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:382: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). if (!attest->set_kid(attest, atoi(optarg))) data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:388: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). if (!attest->set_gid(attest, atoi(optarg))) data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.c:185: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. static char buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.c:186:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char flags[8]; data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.c:244:14: [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). vid = atoi(comp); data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.c:245:14: [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). name = atoi(pos1 + 1); data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.c:246:14: [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). qualifier = atoi(pos2 + 1); data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_agent.c:481: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[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_agent.c:575:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result_str[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_agent.c:668:6: [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 result_str[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/imv_attestation_process.c:235:4: [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 result_str[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/plugins/imv_hcd/imv_hcd_agent.c:540: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[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/plugins/imv_os/imv_os_agent.c:538: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[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/plugins/imv_os/imv_os_agent.c:679: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 result_str[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/plugins/imv_scanner/imv_scanner_agent.c:217:23: [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). port_range->start = atoi(port_item.ptr); data/strongswan-5.9.1/src/libimcv/plugins/imv_scanner/imv_scanner_agent.c:221:23: [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). port_range->stop = atoi(port_item.ptr); data/strongswan-5.9.1/src/libimcv/plugins/imv_scanner/imv_scanner_agent.c:342: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 result_str[BUF_LEN], *pos, *protocol_str; data/strongswan-5.9.1/src/libimcv/plugins/imv_scanner/imv_scanner_agent.c:391: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 buf[20]; data/strongswan-5.9.1/src/libimcv/plugins/imv_swima/imv_swima_agent.c:484: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[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/plugins/imv_swima/imv_swima_agent.c:588: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 result_str[BUF_LEN], *format = NULL, *cmd = NULL, *command; data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.c:431: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(uri, algo, algo_len); data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.c:485: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(algo_buf, uri, pos - uri + 1); data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.c:608: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 algo_buf[IMA_ALGO_LEN_MAX]; data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.c:785:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result_buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_tboot.c:277:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result_buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/pts/components/pts_comp_func_name.c:99:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clone, this, sizeof(private_pts_comp_func_name_t)); data/strongswan-5.9.1/src/libimcv/pts/components/pts_comp_func_name.c:108:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char flags[8]; data/strongswan-5.9.1/src/libimcv/pts/pts_file_meas.c:311:9: [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 = fopen(pathname, "rb"); data/strongswan-5.9.1/src/libimcv/pts/pts_ima_bios_list.c:219:7: [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). fd = open(file, O_RDONLY); data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:133:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char type[IMA_TYPE_LEN_MAX]; data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:134:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char algo_digest[IMA_ALGO_DIGEST_LEN_MAX]; data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:141:7: [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). fd = open(file, O_RDONLY); data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:272:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(entry->algo, algo_digest, algo_len); data/strongswan-5.9.1/src/libimcv/pts/pts_pcr.c:188: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(this->pcrs[pcr].ptr, value.ptr, this->pcr_len); data/strongswan-5.9.1/src/libimcv/pts/pts_pcr.c:232:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pcr_composite->pcr_select.ptr, this->pcr_select, selection_size); data/strongswan-5.9.1/src/libimcv/pts/pts_pcr.c:238: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(pos, this->pcrs[pcr].ptr, this->pcr_len); data/strongswan-5.9.1/src/libimcv/seg/seg_contract.c:322:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clone, this, sizeof(private_seg_contract_t)); data/strongswan-5.9.1/src/libimcv/suites/test_imcv_seg.c:362:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char info[512]; data/strongswan-5.9.1/src/libimcv/suites/test_imcv_seg.c:634:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen.c:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tag_buf[tag_buf_len], command[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen.c:135: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 line[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen.c:161: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 line[line_len]; data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen.c:216:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_file_meas.c:200:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_file_meas.c:239:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, filename.ptr, len); data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_simple_comp_evid.c:172:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(utc_time->ptr, "%04d-%02d-%02dT%02d:%02d:%02dZ", data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_simple_comp_evid.c:183:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char utc_time_buf[25], *policy_uri; data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_simple_comp_evid.c:267:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_simple_comp_evid.c:435: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[BUF_LEN]; data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_simple_comp_evid.c:439:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, policy_uri.ptr, len); data/strongswan-5.9.1/src/libimcv/tcg/seg/tcg_seg_attr_seg_env.c:220:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->value.ptr + TCG_SEG_ATTR_SEG_ENV_HEADER, data/strongswan-5.9.1/src/libipsec/tests/suites/test_chapoly.c:36:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, "\x10\x11\x12\x13\x14\x15\x16\x17", 8); data/strongswan-5.9.1/src/libpttls/pt_tls_client.c:282:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[21]; data/strongswan-5.9.1/src/libpttls/pt_tls_client.c:364: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[buflen]; data/strongswan-5.9.1/src/libpttls/pt_tls_server.c:268:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[21]; data/strongswan-5.9.1/src/libpttls/pt_tls_server.c:407:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[buflen]; data/strongswan-5.9.1/src/libpttls/sasl/sasl_plain/sasl_plain.c:104:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/strongswan-5.9.1/src/libradius/radius_message.c:384: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(this->password.ptr, data.ptr, data.len); data/strongswan-5.9.1/src/libradius/radius_message.c:394:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attribute->value, data.ptr, data.len); data/strongswan-5.9.1/src/libradius/radius_message.c:402:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b[HASH_SIZE_MD5]; data/strongswan-5.9.1/src/libradius/radius_message.c:426:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out.ptr, in.ptr, in.len); data/strongswan-5.9.1/src/libradius/radius_message.c:476:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->msg->authenticator, req_auth, HASH_SIZE_MD5); data/strongswan-5.9.1/src/libradius/radius_message.c:498:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[HASH_SIZE_MD5]; data/strongswan-5.9.1/src/libradius/radius_message.c:530:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[HASH_SIZE_MD5], res_auth[HASH_SIZE_MD5]; data/strongswan-5.9.1/src/libradius/radius_message.c:541: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(res_auth, this->msg->authenticator, HASH_SIZE_MD5); data/strongswan-5.9.1/src/libradius/radius_message.c:544:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->msg->authenticator, req_auth, HASH_SIZE_MD5); data/strongswan-5.9.1/src/libradius/radius_message.c:573:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, data.ptr, data.len); data/strongswan-5.9.1/src/libradius/radius_message.c:579: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(data.ptr, buf, data.len); data/strongswan-5.9.1/src/libradius/radius_message.c:600: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(this->msg->authenticator, res_auth, HASH_SIZE_MD5); data/strongswan-5.9.1/src/libradius/radius_message.c:701:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->msg, data.ptr, data.len); data/strongswan-5.9.1/src/libradius/radius_socket.c:173:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; data/strongswan-5.9.1/src/libsimaka/simaka_card.h:50:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_card.h:50:32: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_card.h:51:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char kc[SIM_KC_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_card.h:73:11: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_card.h:73:36: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_card.h:74:11: [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 ck[AKA_CK_LEN], char ik[AKA_IK_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_card.h:74:32: [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 ck[AKA_CK_LEN], char ik[AKA_IK_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_card.h:75:11: [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 res[AKA_RES_MAX], int *res_len); data/strongswan-5.9.1/src/libsimaka/simaka_card.h:86:8: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_card.h:86:33: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_card.h:114:33: [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. identification_t *next, char mk[HASH_SIZE_SHA1], data/strongswan-5.9.1/src/libsimaka/simaka_card.h:126:10: [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 mk[HASH_SIZE_SHA1], uint16_t *counter); data/strongswan-5.9.1/src/libsimaka/simaka_crypto.c:210:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char xkey[HASH_SIZE_SHA1]; data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:81:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:81:27: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:81:52: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:107: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. private_simaka_manager_t *this, identification_t *id, char rand[AKA_RAND_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:108:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:108:27: [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 autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:108:48: [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 autn[AKA_AUTN_LEN], char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:109:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char res[AKA_RES_MAX], int *res_len) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:144:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:144:27: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:210:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mk[HASH_SIZE_SHA1], uint16_t counter) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:229: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. private_simaka_manager_t *this, identification_t *id, char mk[HASH_SIZE_SHA1], data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:271:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:271:27: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:271:52: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], char kc[SIM_KC_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:298:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char xres[AKA_RES_MAX], int *xres_len, data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:298:27: [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 rand[AKA_RAND_LEN], char xres[AKA_RES_MAX], int *xres_len, data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:299:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:299:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:299:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], char autn[AKA_AUTN_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:326:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:326:27: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:395: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. private_simaka_manager_t *this, identification_t *id, char mk[HASH_SIZE_SHA1], data/strongswan-5.9.1/src/libsimaka/simaka_manager.c:420: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. private_simaka_manager_t *this, identification_t *id, char mk[HASH_SIZE_SHA1]) data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:75: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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:75:34: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:76: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 kc[SIM_KC_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:91: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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:91:34: [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 rand[AKA_RAND_LEN], char autn[AKA_AUTN_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:92: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 ck[AKA_CK_LEN], char ik[AKA_IK_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:92:30: [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 ck[AKA_CK_LEN], char ik[AKA_IK_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:93: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 res[AKA_RES_MAX], int *res_len); data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:104:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:104:32: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:133:32: [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. identification_t *next, char mk[HASH_SIZE_SHA1], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:145: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. identification_t *id, char mk[HASH_SIZE_SHA1], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:172:8: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:172:33: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:173:8: [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 kc[SIM_KC_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:187:8: [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 rand[AKA_RAND_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:188:8: [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 xres[AKA_RES_MAX], int *xres_len, data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:189:8: [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 ck[AKA_CK_LEN], char ik[AKA_IK_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:189: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. char ck[AKA_CK_LEN], char ik[AKA_IK_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:190:8: [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 autn[AKA_AUTN_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:201:8: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:201:33: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:230: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. identification_t *id, char mk[HASH_SIZE_SHA1], data/strongswan-5.9.1/src/libsimaka/simaka_manager.h:241: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. identification_t *id, char mk[HASH_SIZE_SHA1]); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:259:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr->data, data.ptr, data.len); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:380: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(&len, in.ptr + 2, 2); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:613:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char out_buf[1024], encr_buf[512]; data/strongswan-5.9.1/src/libsimaka/simaka_message.c:627:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out.ptr, this->hdr, sizeof(hdr_t)); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:681: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(target->ptr + 2, data.ptr, 2); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:699: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(target->ptr + 2, &len, sizeof(len)); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:700: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(target->ptr + 4, data.ptr, data.len); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:718: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(target->ptr + 4, data.ptr, data.len); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:727: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(target->ptr + 4, data.ptr, data.len); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:735: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(target->ptr + 2, data.ptr, data.len); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:800:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out.ptr + 4, encr.ptr, encr.len); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:832:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out.ptr + 2, &len, sizeof(len)); data/strongswan-5.9.1/src/libsimaka/simaka_message.c:903:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->hdr, hdr, data.len); data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:51:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:51:32: [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 rand[SIM_RAND_LEN], char sres[SIM_SRES_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:52:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char kc[SIM_KC_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:72:10: [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 rand[AKA_RAND_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:73:10: [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 xres[AKA_RES_MAX], int *xres_len, data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:74:10: [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 ck[AKA_CK_LEN], char ik[AKA_IK_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:74: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 ck[AKA_CK_LEN], char ik[AKA_IK_LEN], data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:75:10: [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 autn[AKA_AUTN_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:86:8: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:86:33: [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 rand[AKA_RAND_LEN], char auts[AKA_AUTS_LEN]); data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:115:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mk[HASH_SIZE_SHA1], uint16_t *counter); data/strongswan-5.9.1/src/libsimaka/simaka_provider.h:125:10: [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 mk[HASH_SIZE_SHA1]); data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:203:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[len], *pos = buf; data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:361:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN], *eot = NULL; data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:486:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:813:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, length.ptr, length.len); data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:827:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, content.ptr, content.len); data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:841:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, content.ptr, content.len); data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:876:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, content.ptr, content.len); data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:916: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(pos, ch.ptr, ch.len); data/strongswan-5.9.1/src/libstrongswan/bio/bio_reader.c:133:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&tmp, get_ptr_end(this, 3, from_end), 3); data/strongswan-5.9.1/src/libstrongswan/bio/bio_writer.c:88:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->buf.ptr + this->used, ((char*)&value) + 1, 3); data/strongswan-5.9.1/src/libstrongswan/bio/bio_writer.c:112:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->buf.ptr + this->used, value.ptr, value.len); data/strongswan-5.9.1/src/libstrongswan/bio/bio_writer.c:175:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->buf.ptr, ((char*)&len) + 1, 3); data/strongswan-5.9.1/src/libstrongswan/collections/array.c:335:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, data, get_size(array, 1)); data/strongswan-5.9.1/src/libstrongswan/collections/array.c:365:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, array->data + get_size(array, array->head + idx), data/strongswan-5.9.1/src/libstrongswan/collections/array.c:495:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, item, get_size(array, 1)); data/strongswan-5.9.1/src/libstrongswan/collections/enumerator.c:83:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char full[PATH_MAX]; data/strongswan-5.9.1/src/libstrongswan/collections/enumerator.c:205:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char full[PATH_MAX]; data/strongswan-5.9.1/src/libstrongswan/credentials/auth_cfg.c:615:15: [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). strength = atoi(token); data/strongswan-5.9.1/src/libstrongswan/credentials/containers/pkcs12.c:128:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out.ptr, Ai.ptr, min(out.len, Ai.len)); data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:165: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 iv[crypter->get_iv_size(crypter)]; data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:166: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 key[crypter->get_key_size(crypter)]; data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:341: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 iv[aead->get_iv_size(aead)]; data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:342: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 key[aead->get_key_size(aead)]; data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:343: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 assoc[4]; data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:536: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 key[signer->get_key_size(signer)]; data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:537: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 mac[signer->get_block_size(signer)]; data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:718: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 hash[hasher->get_hash_size(hasher)]; data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:874: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 bytes[prf->get_block_size(prf)], key[prf->get_block_size(prf)]; data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:1060: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 seed[xof->get_seed_size(xof)]; data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:1061: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 bytes[xof->get_block_size(xof)]; data/strongswan-5.9.1/src/libstrongswan/crypto/crypto_tester.c:1209: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 out_buf[out_len]; data/strongswan-5.9.1/src/libstrongswan/crypto/iv/iv_gen_seq.c:93:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer + size - len, iv + sizeof(uint64_t) - len, len); data/strongswan-5.9.1/src/libstrongswan/crypto/pkcs5.c:194:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(block.ptr, u.ptr, block.len); data/strongswan-5.9.1/src/libstrongswan/crypto/pkcs5.c:239:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(key.ptr, keymat.ptr, key.len); data/strongswan-5.9.1/src/libstrongswan/crypto/pkcs5.c:268:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(key.ptr, hash.ptr, key.len); data/strongswan-5.9.1/src/libstrongswan/crypto/prf_plus.c:115: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 + written, this->buffer.ptr + this->used, round); data/strongswan-5.9.1/src/libstrongswan/crypto/rngs/rng_tester.c:43:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, this->entropy.ptr, bytes); data/strongswan-5.9.1/src/libstrongswan/crypto/rngs/rng_tester.c:58:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(chunk->ptr, this->entropy.ptr, bytes); data/strongswan-5.9.1/src/libstrongswan/crypto/signers/mac_signer.c:54: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, mac, this->truncation); data/strongswan-5.9.1/src/libstrongswan/crypto/signers/mac_signer.c:72: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(chunk->ptr, mac, this->truncation); data/strongswan-5.9.1/src/libstrongswan/fetcher/fetcher.c:28: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(&accu->ptr[accu->len], chunk.ptr, chunk.len); data/strongswan-5.9.1/src/libstrongswan/library.c:77:8: [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 *namespaces[MAX_NAMESPACES]; data/strongswan-5.9.1/src/libstrongswan/library.c:338: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). out = fopen(log, "a"); data/strongswan-5.9.1/src/libstrongswan/networking/host.c:108:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[INET6_ADDRSTRLEN + 16]; data/strongswan-5.9.1/src/libstrongswan/networking/host.c:242:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new, this, sizeof(private_host_t)); data/strongswan-5.9.1/src/libstrongswan/networking/host.c:434:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->address4, (struct sockaddr_in*)sockaddr, data/strongswan-5.9.1/src/libstrongswan/networking/host.c:442:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->address6, (struct sockaddr_in6*)sockaddr, data/strongswan-5.9.1/src/libstrongswan/networking/host.c:518:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->address4.sin_addr.s_addr, address.ptr, address.len); data/strongswan-5.9.1/src/libstrongswan/networking/host.c:523:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->address6.sin6_addr.s6_addr, address.ptr, address.len); data/strongswan-5.9.1/src/libstrongswan/networking/host.c:573:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *pos, buf[64]; data/strongswan-5.9.1/src/libstrongswan/networking/host.c:585:11: [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). *bits = atoi(pos + 1); data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_tcp.c:28:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *pos, buf[128]; data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_tcp.c:63:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr, host->get_sockaddr(host), len); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:88:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char if_name[IFNAMSIZ]; data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:121:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ifra->ifra_addr, addr->get_sockaddr(addr), data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:124:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ifra->ifra_dstaddr, addr->get_sockaddr(addr), data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:133:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ifra->ifra_mask, mask->get_sockaddr(mask), data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:190:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ifr.ifr_addr, addr->get_sockaddr(addr), data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:214:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ifr.ifr_addr, mask->get_sockaddr(mask), data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:471:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). this->tunfd = open("/dev/net/tun", O_RDWR); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:500:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). this->tunfd = open("/dev/tun", O_RDWR); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:512:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char devname[IFNAMSIZ]; data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:527:17: [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). this->tunfd = open(devname, O_RDWR); data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:120:48: [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. #define word_in(x) ((uint32_t)(((unsigned char *)(x))[0])|((uint32_t)(((unsigned char *)(x))[1])<<8)|((uint32_t)(((unsigned char *)(x))[2])<<16)|((uint32_t)(((unsigned char *)(x))[3])<<24)) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:120:87: [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. #define word_in(x) ((uint32_t)(((unsigned char *)(x))[0])|((uint32_t)(((unsigned char *)(x))[1])<<8)|((uint32_t)(((unsigned char *)(x))[2])<<16)|((uint32_t)(((unsigned char *)(x))[3])<<24)) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:120:130: [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. #define word_in(x) ((uint32_t)(((unsigned char *)(x))[0])|((uint32_t)(((unsigned char *)(x))[1])<<8)|((uint32_t)(((unsigned char *)(x))[2])<<16)|((uint32_t)(((unsigned char *)(x))[3])<<24)) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:120:174: [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. #define word_in(x) ((uint32_t)(((unsigned char *)(x))[0])|((uint32_t)(((unsigned char *)(x))[1])<<8)|((uint32_t)(((unsigned char *)(x))[2])<<16)|((uint32_t)(((unsigned char *)(x))[3])<<24)) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:121:66: [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. #define const_word_in(x) ((const uint32_t)(((const unsigned char *)(x))[0])|((const uint32_t)(((const unsigned char *)(x))[1])<<8)|((const uint32_t)(((const unsigned char *)(x))[2])<<16)|((const uint32_t)(((const unsigned char *)(x))[3])<<24)) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:121:117: [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. #define const_word_in(x) ((const uint32_t)(((const unsigned char *)(x))[0])|((const uint32_t)(((const unsigned char *)(x))[1])<<8)|((const uint32_t)(((const unsigned char *)(x))[2])<<16)|((const uint32_t)(((const unsigned char *)(x))[3])<<24)) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:121:172: [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. #define const_word_in(x) ((const uint32_t)(((const unsigned char *)(x))[0])|((const uint32_t)(((const unsigned char *)(x))[1])<<8)|((const uint32_t)(((const unsigned char *)(x))[2])<<16)|((const uint32_t)(((const unsigned char *)(x))[3])<<24)) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:121:228: [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. #define const_word_in(x) ((const uint32_t)(((const unsigned char *)(x))[0])|((const uint32_t)(((const unsigned char *)(x))[1])<<8)|((const uint32_t)(((const unsigned char *)(x))[2])<<16)|((const uint32_t)(((const unsigned char *)(x))[3])<<24)) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:122:36: [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. #define word_out(x,v) ((unsigned char *)(x))[0]=(v),((unsigned char *)(x))[1]=((v)>>8),((unsigned char *)(x))[2]=((v)>>16),((unsigned char *)(x))[3]=((v)>>24) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:122:66: [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. #define word_out(x,v) ((unsigned char *)(x))[0]=(v),((unsigned char *)(x))[1]=((v)>>8),((unsigned char *)(x))[2]=((v)>>16),((unsigned char *)(x))[3]=((v)>>24) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:122:101: [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. #define word_out(x,v) ((unsigned char *)(x))[0]=(v),((unsigned char *)(x))[1]=((v)>>8),((unsigned char *)(x))[2]=((v)>>16),((unsigned char *)(x))[3]=((v)>>24) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:122:137: [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. #define word_out(x,v) ((unsigned char *)(x))[0]=(v),((unsigned char *)(x))[1]=((v)>>8),((unsigned char *)(x))[2]=((v)>>16),((unsigned char *)(x))[3]=((v)>>24) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:123:48: [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. #define const_word_out(x,v) ((const unsigned char *)(x))[0]=(v),((const unsigned char *)(x))[1]=((v)>>8),((const unsigned char *)(x))[2]=((v)>>16),((const unsigned char *)(x))[3]=((v)>>24) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:123:84: [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. #define const_word_out(x,v) ((const unsigned char *)(x))[0]=(v),((const unsigned char *)(x))[1]=((v)>>8),((const unsigned char *)(x))[2]=((v)>>16),((const unsigned char *)(x))[3]=((v)>>24) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:123:125: [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. #define const_word_out(x,v) ((const unsigned char *)(x))[0]=(v),((const unsigned char *)(x))[1]=((v)>>8),((const unsigned char *)(x))[2]=((v)>>16),((const unsigned char *)(x))[3]=((v)>>24) data/strongswan-5.9.1/src/libstrongswan/plugins/aes/aes_crypter.c:123:167: [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. #define const_word_out(x,v) ((const unsigned char *)(x))[0]=(v),((const unsigned char *)(x))[1]=((v)>>8),((const unsigned char *)(x))[2]=((v)>>16),((const unsigned char *)(x))[3]=((v)>>24) data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:135:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(block->nonce.salt, this->salt, SALT_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:136:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(block->nonce.iv, iv, IV_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:151:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctr->nonce.salt, this->salt, SALT_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:152:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctr->nonce.iv, iv, IV_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:189: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(((u_char*)&b) + sizeof(alen), assoc, data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:196: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(&b, ((__m128i*)(assoc - sizeof(alen))) + i, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:238:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(icv, &b, this->icv_size); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:268:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&b, in, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:285:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &b, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:301:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&b, in, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:323:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &b, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ccm.c:818:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->salt, key.ptr + key.len - SALT_SIZE, SALT_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_cmac.c:90:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->rem + this->rem_size, data.ptr, data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_cmac.c:137:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->rem, data.ptr + data.len - rem, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_cmac.c:143: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(this->rem + this->rem_size, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c:62: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 nonce[4]; data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c:63: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 iv[8]; data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c:196: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(&b, bi + blocks, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c:215: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(bo + blocks, &b, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c:341: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(&b, bi + blocks, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c:362: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(bo + blocks, &b, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c:498: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(&b, bi + blocks, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_ctr.c:521: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(bo + blocks, &b, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_gcm.c:302: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(&last, ab + blocks, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_gcm.c:344:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(icv, &b, this->icv_size); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_gcm.c:366:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(j, this->salt, SALT_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_gcm.c:367:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(j + SALT_SIZE, iv, IV_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_gcm.c:383:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&b, in, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_gcm.c:394:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &b, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_gcm.c:410:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&b, in, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_gcm.c:423:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &b, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_gcm.c:1328:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->salt, key.ptr + key.len - SALT_SIZE, SALT_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_xcbc.c:100:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->rem + this->rem_size, data.ptr, data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_xcbc.c:146: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(this->rem, data.ptr + data.len - rem, rem); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_xcbc.c:152:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->rem + this->rem_size, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/aesni/aesni_xcbc.c:238: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(k.ptr, key.ptr, key.len); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_ops.c:118:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[CMSG_SPACE(sizeof(type)) + data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_ops.c:143:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(CMSG_DATA(cmsg), &type, sizeof(type)); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_ops.c:151:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ivm->iv, iv.ptr, iv.len); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_prf.c:140:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[this->block_size]; data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_prf.c:150:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, key.ptr, key.len); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_signer.c:131:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[this->block_size]; data/strongswan-5.9.1/src/libstrongswan/plugins/agent/agent_private_key.c:179:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048]; data/strongswan-5.9.1/src/libstrongswan/plugins/agent/agent_private_key.c:283:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048], *prefix = NULL; data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_bitpacker.c:203:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->buf.ptr, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_huffman.c:230:11: [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). pairs = atoi(argv[2]); data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_huffman.c:235:15: [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). bliss_type = atoi(argv[1]); data/strongswan-5.9.1/src/libstrongswan/plugins/bliss/bliss_utils.c:73:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(seed.ptr, data_hash.ptr, data_hash.len); data/strongswan-5.9.1/src/libstrongswan/plugins/blowfish/bf_skey.c:78:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)key,(const char *)&bf_init,sizeof(BF_KEY)); data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_aead.c:222:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->salt.ptr, key.ptr + key.len - this->salt.len, this->salt.len); data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_aead.c:223:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->key.ptr, key.ptr, this->key.len); data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_crypter.c:133:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->key.ptr, key.ptr, min(key.len, this->key.len)); data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ec_public_key.c:102: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(sig.ptr + (keylen - r.len), r.ptr, r.len); data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_ec_public_key.c:103:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sig.ptr + keylen + (keylen - s.len), s.ptr, s.len); data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_rsa_private_key.c:99:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hash_and_padding[BUF_LEN]; data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_rsa_private_key.c:349:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libstrongswan/plugins/botan/botan_rsa_public_key.c:79:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hash_and_padding[BUF_LEN]; data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:112:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(block->nonce.salt, this->salt, SALT_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:113:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(block->nonce.iv, iv.ptr, IV_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:128:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctr->nonce.salt, this->salt, SALT_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:129:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctr->nonce.iv, iv.ptr, IV_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:139:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ctr[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:140:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zero[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:141:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char block[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:148:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(block, ctr, BLOCK_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:158:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out.ptr, in.ptr, min(in.len, BLOCK_SIZE)); data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:172:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ctr[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:173:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zero[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:193:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zero[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:219: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(pos + 2, assoc.ptr, assoc.len); data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:227:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, plain.ptr, plain.len); data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:242:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(icv, chunk.ptr + chunk.len - BLOCK_SIZE, this->icv_size); data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:256:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[this->icv_size]; data/strongswan-5.9.1/src/libstrongswan/plugins/ccm/ccm_aead.c:330:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->salt, key.ptr + key.len - SALT_SIZE, SALT_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_aead.c:56:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b, in, len); data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_aead.c:206:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, plain.ptr, plain.len); data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_aead.c:232:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, encr.ptr, encr.len); data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_drv_portable.c:69:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, &y, sizeof(y)); data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_drv_ssse3.c:82:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, &v, sizeof(v)); data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_xof.c:62: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, this->stream + this->stream_index, len); data/strongswan-5.9.1/src/libstrongswan/plugins/chapoly/chapoly_xof.c:86: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 + index, this->stream, len); data/strongswan-5.9.1/src/libstrongswan/plugins/cmac/cmac.c:84: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(this->remaining + this->remaining_bytes, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/cmac/cmac.c:99:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->remaining + this->remaining_bytes, data.ptr, data/strongswan-5.9.1/src/libstrongswan/plugins/cmac/cmac.c:111: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(this->remaining, data.ptr, this->b); data/strongswan-5.9.1/src/libstrongswan/plugins/cmac/cmac.c:121:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->remaining, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/cmac/cmac.c:172:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, this->t, this->b); data/strongswan-5.9.1/src/libstrongswan/plugins/cmac/cmac.c:291:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->k1, l.ptr, l.len); data/strongswan-5.9.1/src/libstrongswan/plugins/cmac/cmac.c:293:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->k2, l.ptr, l.len); data/strongswan-5.9.1/src/libstrongswan/plugins/ctr/ctr_ipsec_crypter.c:39: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 nonce[4]; data/strongswan-5.9.1/src/libstrongswan/plugins/ctr/ctr_ipsec_crypter.c:40: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 iv[8]; data/strongswan-5.9.1/src/libstrongswan/plugins/ctr/ctr_ipsec_crypter.c:62: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 iv[is], block[bs]; data/strongswan-5.9.1/src/libstrongswan/plugins/ctr/ctr_ipsec_crypter.c:65: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(block, state.ptr, bs); data/strongswan-5.9.1/src/libstrongswan/plugins/ctr/ctr_ipsec_crypter.c:75:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out.ptr, in.ptr, min(in.len, bs)); data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_fetcher.c:93:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error[CURL_ERROR_SIZE], *enc_uri, *p1, *p2; data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_fetcher.c:193:4: [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 header[BUF_LEN]; data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_fetcher.c:230:4: [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[64]; data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/curve25519_drv_portable.c:58:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, &r, sizeof(r)); data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_crypter.c:840:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char odd_parity[256]={ data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_crypter.c:1431:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ivb, iv.ptr, sizeof(des_cblock)); data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_crypter.c:1450:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ivb, iv.ptr, sizeof(des_cblock)); data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_crypter.c:1500:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ivb, iv.ptr, sizeof(des_cblock)); data/strongswan-5.9.1/src/libstrongswan/plugins/des/des_crypter.c:1519:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ivb, iv.ptr, sizeof(des_cblock)); data/strongswan-5.9.1/src/libstrongswan/plugins/dnskey/dnskey_encoder.c:65: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(pos, e.ptr, e.len); data/strongswan-5.9.1/src/libstrongswan/plugins/dnskey/dnskey_encoder.c:67:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, n.ptr, n.len); data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_ctr.c:112: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(block.ptr, this->value.ptr, this->value.len); data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_ctr.c:123:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out.ptr + pos, block.ptr, delta); data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_ctr.c:152:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->key.ptr, temp.ptr, this->key.len); data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_ctr.c:153:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->value.ptr, temp.ptr + this->key.len, this->value.len); data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_hmac.c:190:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, this->value.ptr, delta); data/strongswan-5.9.1/src/libstrongswan/plugins/drbg/drbg_hmac.c:313:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(seed.ptr + entropy_len, data/strongswan-5.9.1/src/libstrongswan/plugins/fips_prf/fips_prf.c:78:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer + length - chunk.len, chunk.ptr, chunk.len); data/strongswan-5.9.1/src/libstrongswan/plugins/fips_prf/fips_prf.c:83:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, chunk.ptr + chunk.len - length, length); data/strongswan-5.9.1/src/libstrongswan/plugins/fips_prf/fips_prf.c:186:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, c.ptr, c.len); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:56:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char salt[SALT_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char h[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:108:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[BLOCK_SIZE], v[BLOCK_SIZE], r; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:113:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v, y, BLOCK_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:134:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(res, z, BLOCK_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:142:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char y[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:152:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(res, y, BLOCK_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:160:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cb[BLOCK_SIZE], iv[BLOCK_SIZE], tmp[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:163:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cb, icb, BLOCK_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:167: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(tmp, cb, BLOCK_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:185:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(j, this->salt, SALT_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:186:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(j + SALT_SIZE, iv, IV_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:195:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zero[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:209:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char icb[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:211:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(icb, j, BLOCK_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:217:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out.ptr, in.ptr, in.len); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:230:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[BLOCK_SIZE], *pos; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:240:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, assoc.ptr, assoc.len); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:245:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, crypt.ptr, crypt.len); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:266:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(icv, s, this->icv_size); data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:276:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[this->icv_size]; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:286:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char j[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:306:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char j[BLOCK_SIZE]; data/strongswan-5.9.1/src/libstrongswan/plugins/gcm/gcm_aead.c:361:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->salt, key.ptr + key.len - SALT_SIZE, SALT_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c:53: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 nonce[4]; data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c:54: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 iv[8]; data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_hasher.c:59: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(hash, gcry_md_read(this->hd, 0), get_hash_size(this)); data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c:81:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp.ptr + len, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c:128:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(em.ptr + em.len - data.len, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c:81:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(em.ptr + em.len - data.len, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_rsa_private_key.c:315:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(em->ptr + em->len - data.len, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c:369:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, plain.ptr, plain.len); data/strongswan-5.9.1/src/libstrongswan/plugins/hmac/hmac.c:115: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, key.ptr, key.len); data/strongswan-5.9.1/src/libstrongswan/plugins/ldap/ldap_fetcher.c:71:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(response->ptr, values[0]->bv_val, response->len); data/strongswan-5.9.1/src/libstrongswan/plugins/md4/md4_hasher.c:128:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define Encode memcpy data/strongswan-5.9.1/src/libstrongswan/plugins/md4/md4_hasher.c:129:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define Decode memcpy data/strongswan-5.9.1/src/libstrongswan/plugins/md4/md4_hasher.c:225: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(&this->buffer[index], input, partLen); data/strongswan-5.9.1/src/libstrongswan/plugins/md4/md4_hasher.c:240:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->buffer[index], &input[i], inputLen-i); data/strongswan-5.9.1/src/libstrongswan/plugins/md5/md5_hasher.c:144:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define Encode memcpy data/strongswan-5.9.1/src/libstrongswan/plugins/md5/md5_hasher.c:145:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define Decode memcpy data/strongswan-5.9.1/src/libstrongswan/plugins/md5/md5_hasher.c:258: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(&this->buffer[index], input, partLen); data/strongswan-5.9.1/src/libstrongswan/plugins/md5/md5_hasher.c:273:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->buffer[index], &input[i], inputLen-i); data/strongswan-5.9.1/src/libstrongswan/plugins/mgf1/mgf1_xof.c:120: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, this->buf + this->buf_index, len); data/strongswan-5.9.1/src/libstrongswan/plugins/mgf1/mgf1_xof.c:144: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 + index, this->buf, len); data/strongswan-5.9.1/src/libstrongswan/plugins/mgf1/mgf1_xof.c:213: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(this->state.ptr, seed.ptr, seed.len); data/strongswan-5.9.1/src/libstrongswan/plugins/mysql/mysql_database.c:799:18: [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). this->port = atoi(port); data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/newhope_noise.c:156:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->seed.ptr, seed.ptr, seed_len); data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/tests/suites/test_newhope_ke.c:117:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf_ff[2048]; data/strongswan-5.9.1/src/libstrongswan/plugins/newhope/tests/suites/test_newhope_ke.c:146:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf_ff[1824]; data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_convert.c:365: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(trits, buf, num_trits); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_private_key.c:117:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(enc, this->params->oid, NTRU_OID_LEN); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_private_key.c:380:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, this->params->oid, 3); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_private_key.c:382:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, cm, cm_len); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_private_key.c:384:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, M, this->params->sec_strength_len); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_private_key.c:386:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, this->encoding.ptr + 2 + NTRU_OID_LEN, data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_private_key.c:627: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(t2, a_inv, N * sizeof(uint16_t)); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_public_key.c:83:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(enc, this->params->oid, NTRU_OID_LEN); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_public_key.c:162:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, this->params->oid, NTRU_OID_LEN); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_public_key.c:164:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, plaintext.ptr, plaintext.len); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_public_key.c:166:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, b, this->params->sec_strength_len); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_public_key.c:168:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, this->encoding.ptr + 2 + NTRU_OID_LEN, data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_public_key.c:201:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, b, this->params->sec_strength_len); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_public_key.c:208:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, plaintext.ptr, plaintext.len); data/strongswan-5.9.1/src/libstrongswan/plugins/ntru/ntru_trits.c:110: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(trits, buf, trits_needed); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_aead.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char salt[SALT_LEN]; data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_aead.c:86:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(nonce, this->salt, SALT_LEN); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_aead.c:87:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(nonce + SALT_LEN, iv.ptr, IV_LEN); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_aead.c:196:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->salt, key.ptr + key.len - SALT_LEN, SALT_LEN); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_aead.c:197:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->key.ptr, key.ptr, this->key.len); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_crypter.c:155:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->key.ptr, key.ptr, min(key.len, this->key.len)); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c:95:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(secret->ptr + secret->len - this->shared_secret.len, data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_plugin.c:256:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_plugin.c:342:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pin[64]; data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_plugin.c:385:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keyname[BUF_LEN]; data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_x509.c:1059:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[80] = ""; data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_xof.c:84:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, data.ptr + this->offset, out_len); data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_aes_crypter.c:103:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(key_aligned, this->key.ptr, this->key.len); data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_aes_crypter.c:147:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->key.ptr, key.ptr, min(key.len, this->key.len)); data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_rng.c:90:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, chunk.ptr, bytes); data/strongswan-5.9.1/src/libstrongswan/plugins/padlock/padlock_sha1_hasher.c:81:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->data.ptr + this->data.len, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_builder.c:112:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(key.ptr, hash.ptr, hash.len); data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_builder.c:122: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(key.ptr + hash.len, hash.ptr, key.len - hash.len); data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_builder.c:149:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(blob->ptr, decrypted.ptr, blob->len); data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_builder.c:354:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(blob->ptr, chunk.ptr, chunk.len); data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:206:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char manufacturer_id[32]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:208:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char library_description[32]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:223:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char slot_description[64]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:224:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char manufacturer_id[32]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:239:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char label[32]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:240:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char manufacturer_id[32]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:241:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char model[16]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:242:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char serial_number[16]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:256:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char utc_time[16]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:477:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char year[4]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:478:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char month[2]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11.h:479:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char day[2]; data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c:247:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sig.ptr + (len - r.len), r.ptr, r.len); data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c:248:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sig.ptr + len + (len - s.len), s.ptr, s.len); data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_attributes.c:136: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(pos, chunk.ptr, chunk.len); data/strongswan-5.9.1/src/libstrongswan/plugins/pkcs7/pkcs7_enveloped_data.c:515:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(content.ptr, this->content.ptr, this->content.len); data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_loader.c:303:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->features, features, sizeof(plugin_feature_t) * count); data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_loader.c:357:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char create[128]; data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_loader.c:1234: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[PATH_MAX], *file = NULL; data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_loader.c:1463:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *name, path[PATH_MAX], dir[64]; data/strongswan-5.9.1/src/libstrongswan/plugins/random/random_plugin.c:86:8: [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). *fd = open(file, O_RDONLY); data/strongswan-5.9.1/src/libstrongswan/plugins/rc2/rc2_crypter.c:209:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, RC2_BLOCK_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/rc2/rc2_crypter.c:246:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, RC2_BLOCK_SIZE); data/strongswan-5.9.1/src/libstrongswan/plugins/rdrand/rdrand_rng.c:372: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(chunk.ptr, forward, len); data/strongswan-5.9.1/src/libstrongswan/plugins/sha1/sha1_hasher.c:70:61: [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 void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]) data/strongswan-5.9.1/src/libstrongswan/plugins/sha1/sha1_hasher.c:78:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(block, buffer, 64); data/strongswan-5.9.1/src/libstrongswan/plugins/sha1/sha1_hasher.c:135:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->buffer[j], data, (i = 64-j)); data/strongswan-5.9.1/src/libstrongswan/plugins/sha1/sha1_hasher.c:147:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->buffer[j], &data[i], len - i); data/strongswan-5.9.1/src/libstrongswan/plugins/sha2/sha2_hasher.c:35:11: [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 sha_out[128]; /* results are here, bytes 0..47/0..63 */ data/strongswan-5.9.1/src/libstrongswan/plugins/sha2/sha2_hasher.c:54:11: [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 sha_out[64]; /* results are here, bytes 0...31 */ data/strongswan-5.9.1/src/libstrongswan/plugins/sha2/sha2_hasher.c:430:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->sha_H[0], &sha224_hashInit[0], sizeof(this->sha_H)); data/strongswan-5.9.1/src/libstrongswan/plugins/sha2/sha2_hasher.c:439:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->sha_H[0], &sha256_hashInit[0], sizeof(this->sha_H)); data/strongswan-5.9.1/src/libstrongswan/plugins/sha2/sha2_hasher.c:448:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->sha_H[0], &sha384_hashInit[0], sizeof(this->sha_H)); data/strongswan-5.9.1/src/libstrongswan/plugins/sha2/sha2_hasher.c:458:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->sha_H[0], &sha512_hashInit[0], sizeof(this->sha_H)); data/strongswan-5.9.1/src/libstrongswan/plugins/sha3/sha3_keccak.c: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(this->rate_buffer + this->rate_index, data.ptr, len); data/strongswan-5.9.1/src/libstrongswan/plugins/sha3/sha3_keccak.c:456:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &this->state[this->rate_index], len); data/strongswan-5.9.1/src/libstrongswan/plugins/sshkey/sshkey_builder.c:51: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 ascii[64]; data/strongswan-5.9.1/src/libstrongswan/plugins/sshkey/sshkey_builder.c:168:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024], *token; data/strongswan-5.9.1/src/libstrongswan/plugins/sshkey/sshkey_builder.c:216:11: [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). stream = fopen(file, "r"); data/strongswan-5.9.1/src/libstrongswan/plugins/sshkey/sshkey_encoder.c:30:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *curve, identifier[128]; data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:122:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:198:7: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (!MultiByteToWideChar(CP_THREAD_ACP, 0, uri, -1, wuri, countof(wuri))) data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:301:8: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). len = MultiByteToWideChar(CP_THREAD_ACP, 0, name, -1, NULL, 0); data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:307:7: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (!MultiByteToWideChar(CP_THREAD_ACP, 0, name, -1, buf, len)) data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:320:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_aead.c:282:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->salt.ptr, key.ptr + key.len - this->salt.len, this->salt.len); data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_aead.c:283:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->key.ptr, key.ptr, this->key.len); data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c:108:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(nonce, this->salt.ptr, this->salt.len); data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c:109: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(nonce + this->salt.len, iv.ptr, this->iv_size); data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c:116:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c:147: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(data.ptr, out, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c:228:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(nonce, this->salt.ptr, this->salt.len); data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c:229:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(nonce + this->salt.len, iv.ptr, this->iv_size); data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c:236:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c:267: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(data.ptr, out, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c:351:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->salt.ptr, key.ptr + key.len - this->salt.len, this->salt.len); data/strongswan-5.9.1/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c:352:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->key.ptr, key.ptr, this->key.len); data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ac.c:690: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(pos, attr.ptr, attr.len); data/strongswan-5.9.1/src/libstrongswan/plugins/xcbc/xcbc.c:95:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->remaining + this->remaining_bytes, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/xcbc/xcbc.c:109:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->remaining + this->remaining_bytes, data.ptr, data/strongswan-5.9.1/src/libstrongswan/plugins/xcbc/xcbc.c:121: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(this->remaining, data.ptr, this->b); data/strongswan-5.9.1/src/libstrongswan/plugins/xcbc/xcbc.c:132:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->remaining, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/plugins/xcbc/xcbc.c:185:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, this->e, this->b); data/strongswan-5.9.1/src/libstrongswan/plugins/xcbc/xcbc.c:235: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(lengthened.ptr, key.ptr, key.len); data/strongswan-5.9.1/src/libstrongswan/processing/watcher.c:176:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1] = { 'u' }; data/strongswan-5.9.1/src/libstrongswan/processing/watcher.c:388: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[1]; data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:75:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char from[IPV6_LEN]; data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:80:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char to[IPV6_LEN]; data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:109:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->to, this->from, bytes); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:210:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char from_str[INET6_ADDRSTRLEN] = ""; data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:211:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char to_str[INET6_ADDRSTRLEN] = ""; data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:215:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char from[IPV6_LEN], to[IPV6_LEN]; data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:424:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(subset->from, from, size); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:425:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(subset->to, to, size); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:530: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(this->from, from.ptr, from.len); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:531: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(this->to, from.ptr, from.len); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:608: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(net_chunk.ptr, this->from, non_zero_bytes); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:634:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clone->from, this->from, len); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:635:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clone->to, this->to, len); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:732:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->from, from.ptr, from.len); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:733:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->to, to.ptr, to.len); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:758: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(this->from, from.ptr+1, from.len-1); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:764: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(this->to, to.ptr+1, to.len-1); data/strongswan-5.9.1/src/libstrongswan/selectors/traffic_selector.c:798:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->from, from.ptr, from.len); data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:289:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128], keybuf[512]; data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:306:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128], keybuf[512]; data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:478:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128], keybuf[512]; data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:501:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128], keybuf[512], *value = NULL; data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:527:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128], keybuf[512]; data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:740:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char val[16]; data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:753:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char val[64]; data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:766:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char val[16]; data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:941:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/strongswan-5.9.1/src/libstrongswan/settings/settings_parser.c:908: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/strongswan-5.9.1/src/libstrongswan/settings/settings_parser.c:1153: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 yymsgbuf[128]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:60:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(extended.ptr, data.ptr, data.len); \ data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:165:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(extended.ptr + bits / 8, data.ptr, data.len); \ data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_writer.c:171:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(skipped.ptr, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_chunk.c:958:7: [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). fd = open(path, O_RDONLY); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_chunk.c:1036:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_chunk.c:1047:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_chunk.c:1058:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128], mem[128]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_ed25519.c:546:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sig1, sig_tests[0].sig.ptr, 64); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_ed25519.c:552:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sig1, sig_tests[0].sig.ptr, 64); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_ed448.c:607:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sig1, sig_tests[0].sig.ptr, sig_tests[0].sig.len); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_ed448.c:614:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sig1, sig_tests[0].sig.ptr, sig_tests[0].sig.len); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c:270:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c:280:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c:290:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c:299:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c:309:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c:319:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c:329:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c:339:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c:349:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1], *str; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c:366:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_enum.c:376:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:85:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024], hdr[256], *start, *end = NULL, *body = NULL, *type = NULL; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:127:8: [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). atoi(start + strlen("Content-Length: ")), data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:205:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uri[256]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:244:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uri[256]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:285:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uri[256]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_host.c:661:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *result[3]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_host.c:677:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_identification.c:303:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_identification.c:313:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_identification.c:430:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_ntru.c:814:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_ntru.c:926:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf_00[604], buf_ff[604]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_printf.c:24:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_printf.c:48:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:99:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[strlen(msg) + 1]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:132:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[strlen(msg) + 1]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:169:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64] = {}; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_proposal.c:64:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[BUF_LEN]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_proposal.c:205:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *self[5]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_proposal.c:206:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *other[5]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:33:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:56:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:107:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:150:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64], *pos; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:174:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_threading.c:1224:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_threading.c:1241:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_traffic_selector.c:26:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_traffic_selector.c:781:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_utils.c:579:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_utils.c:866:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_utils.c:904:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_watcher.c:23:8: [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 testbuf[1] = ""; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_watcher.c:110:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char in, out[countof(fd)]; data/strongswan-5.9.1/src/libstrongswan/tests/test_runner.c:361:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[4096 - sizeof(char*) - 2 * sizeof(int)]; data/strongswan-5.9.1/src/libstrongswan/tests/test_runner.c:749:11: [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). level = atoi(verbosity); data/strongswan-5.9.1/src/libstrongswan/tests/test_suite.c:30:8: [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 failure_buf[4096]; data/strongswan-5.9.1/src/libstrongswan/tests/test_suite.c:55:8: [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 warning_buf[4096]; data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:83:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:248:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fbuf[512] = "", sbuf[512] = ""; data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:390:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:476:4: [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[128]; data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:478: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 filename[MAX_PATH]; data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:532: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 filename[MAX_PATH]; data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:609:4: [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[128]; data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:708:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clone->frames, this->frames, this->frame_count * sizeof(void*)); data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:845:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->frames, frames + skip, frame_count * sizeof(void*)); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:48:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clone.ptr, chunk.ptr, chunk.len); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:108: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(ptr, ch.ptr, ch.len); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:176:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ch->ptr, chunk.ptr, ch->len); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:191:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ch->ptr, chunk.ptr, ch->len); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:224:7: [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). fd = fopen(path, data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:351:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). .fd = open(path, flags), data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:764:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst.ptr + dst.len - src.len, src.ptr, src.len); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:769:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst.ptr, src.ptr + src.len - dst.len, dst.len); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:957:7: [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). fd = open("/dev/urandom", O_RDONLY); data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c:64:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, s, n); data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c:115:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *syms[4]; data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c:164: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. static char buf[128]; data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c:260: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. static char buf[64] = ""; data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.h:107:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, len); data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.h:190: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(result, ret, sizeof(*result)); data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.h:208: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(result, ret, sizeof(*result)); data/strongswan-5.9.1/src/libstrongswan/utils/cpu_feature.c:105:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char vendor[3 * sizeof(uint32_t) + 1]; data/strongswan-5.9.1/src/libstrongswan/utils/enum.c:145:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *name, buf[512]; data/strongswan-5.9.1/src/libstrongswan/utils/identification.c:546:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, rdns[i].ptr, rdns[i].len); data/strongswan-5.9.1/src/libstrongswan/utils/identification.c:1177:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN], *pos; data/strongswan-5.9.1/src/libstrongswan/utils/identification.c:1312:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clone, this, sizeof(private_identification_t)); data/strongswan-5.9.1/src/libstrongswan/utils/identification.c:1530:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). bits = atoi(pos + 1); data/strongswan-5.9.1/src/libstrongswan/utils/identification.c:1714:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[data.len + 1]; data/strongswan-5.9.1/src/libstrongswan/utils/leak_detective.c:390: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. static char buf[1024] = {}; data/strongswan-5.9.1/src/libstrongswan/utils/optionsfrom.c:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *buffers[MAX_USES]; data/strongswan-5.9.1/src/libstrongswan/utils/optionsfrom.c:84:7: [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). fd = fopen(filename, "r"); data/strongswan-5.9.1/src/libstrongswan/utils/optionsfrom.c:127:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newargv, *argvp, optind * sizeof(char *)); data/strongswan-5.9.1/src/libstrongswan/utils/optionsfrom.c:181: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(newargv + next, *argvp + optind, (*argcp + 1 - optind) * sizeof(char *)); data/strongswan-5.9.1/src/libstrongswan/utils/parser_helper.c:115:13: [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 = fopen(name, "r"), data/strongswan-5.9.1/src/libstrongswan/utils/parser_helper.c:137:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pat[PATH_MAX]; data/strongswan-5.9.1/src/libstrongswan/utils/parser_helper.c:217:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[8192]; data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.c:1168:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[PRINTF_BUF_LEN], *pos, *stop; data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.c:1232:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[PRINTF_BUF_LEN]; data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.c:1248:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[PRINTF_BUF_LEN]; data/strongswan-5.9.1/src/libstrongswan/utils/process.c:404:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char arg[32768], env[32768]; data/strongswan-5.9.1/src/libstrongswan/utils/process.c:555:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[MAX_PATH], *exe = "system32\\cmd.exe"; data/strongswan-5.9.1/src/libstrongswan/utils/utils.c:40:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char d_name[256]; data/strongswan-5.9.1/src/libstrongswan/utils/utils.c:166:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[sizeof(struct linux_dirent64)]; data/strongswan-5.9.1/src/libstrongswan/utils/utils.c:170: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). dir_fd = open("/proc/self/fd", O_RDONLY); data/strongswan-5.9.1/src/libstrongswan/utils/utils.c:183:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). fd = atoi(entry->d_name); data/strongswan-5.9.1/src/libstrongswan/utils/utils.c:219:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). fd = atoi(entry->d_name); data/strongswan-5.9.1/src/libstrongswan/utils/utils/byteorder.h:118:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(unaligned, &host, sizeof(host)); data/strongswan-5.9.1/src/libstrongswan/utils/utils/byteorder.h:132:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char*)unaligned, &host, sizeof(host)); data/strongswan-5.9.1/src/libstrongswan/utils/utils/byteorder.h:146:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char*)unaligned, &host, sizeof(host)); data/strongswan-5.9.1/src/libstrongswan/utils/utils/byteorder.h:218:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, &v, sizeof(v)); data/strongswan-5.9.1/src/libstrongswan/utils/utils/byteorder.h:245:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, &v, sizeof(v)); data/strongswan-5.9.1/src/libstrongswan/utils/utils/memory.c:143:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, cookie->ptr, len); data/strongswan-5.9.1/src/libstrongswan/utils/utils/memory.c:154:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cookie->ptr, buf, len); data/strongswan-5.9.1/src/libstrongswan/utils/utils/memory.c:196:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BYTES_PER_LINE * 3]; data/strongswan-5.9.1/src/libstrongswan/utils/utils/memory.c:197:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ascii_buffer[BYTES_PER_LINE + 1]; data/strongswan-5.9.1/src/libstrongswan/utils/utils/memory.h:49: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. return n ? memcpy(dst, src, n) : dst; data/strongswan-5.9.1/src/libstrongswan/utils/utils/memory.h:51:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #ifdef memcpy data/strongswan-5.9.1/src/libstrongswan/utils/utils/memory.h:52:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # undef memcpy data/strongswan-5.9.1/src/libstrongswan/utils/utils/memory.h:54:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define memcpy(d,s,n) memcpy_noop(d,s,n) data/strongswan-5.9.1/src/libstrongswan/utils/utils/path.c:126:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *pos, full[PATH_MAX]; data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.c:82:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, pos, len); data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.c:84:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, replace, rlen); data/strongswan-5.9.1/src/libtls/tests/suites/test_socket.c:284:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libtls/tests/suites/test_socket.c:363:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libtls/tests/suites/test_socket.c:416:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char suite[128]; data/strongswan-5.9.1/src/libtls/tests/suites/test_suites.c:24:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/strongswan-5.9.1/src/libtls/tls.c:203: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(((char*)&this->head) + this->headpos, buf, len); data/strongswan-5.9.1/src/libtls/tls.c:211:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->input.ptr, &this->head, sizeof(this->head)); data/strongswan-5.9.1/src/libtls/tls.c:251: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(&this->head, buf, buflen); data/strongswan-5.9.1/src/libtls/tls.c:257: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(this->input.ptr + this->inpos, buf, len); data/strongswan-5.9.1/src/libtls/tls.c:334:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, this->output.ptr + this->outpos, len); data/strongswan-5.9.1/src/libtls/tls_aead.c:73:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(encrypted.ptr + iv.len, data->ptr, data->len); data/strongswan-5.9.1/src/libtls/tls_aead_impl.c:92:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->iv.ptr, data->ptr + data->len - this->iv.len, this->iv.len); data/strongswan-5.9.1/src/libtls/tls_aead_impl.c:111:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(iv.ptr, this->iv.ptr, this->iv.len); data/strongswan-5.9.1/src/libtls/tls_aead_impl.c:112:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->iv.ptr, data->ptr + data->len - this->iv.len, this->iv.len); data/strongswan-5.9.1/src/libtls/tls_aead_impl.c:177:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->iv.ptr, iv.ptr, this->iv.len); data/strongswan-5.9.1/src/libtls/tls_crypto.c:1382: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[HASH_SIZE_MD5 + HASH_SIZE_SHA1]; data/strongswan-5.9.1/src/libtls/tls_crypto.c:1576:30: [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. private_tls_crypto_t *this, char *label, char out[12]) data/strongswan-5.9.1/src/libtls/tls_crypto.c:1576:43: [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. private_tls_crypto_t *this, char *label, char out[12]) data/strongswan-5.9.1/src/libtls/tls_crypto.c:1604:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char master[48]; data/strongswan-5.9.1/src/libtls/tls_crypto.h:508:49: [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. bool (*calculate_finished)(tls_crypto_t *this, char *label, char out[12]); data/strongswan-5.9.1/src/libtls/tls_crypto.h:508:62: [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. bool (*calculate_finished)(tls_crypto_t *this, char *label, char out[12]); data/strongswan-5.9.1/src/libtls/tls_eap.c:208:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[this->frag_size]; data/strongswan-5.9.1/src/libtls/tls_fragmentation.c:193: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(this->input.ptr + this->inpos, data.ptr, len); data/strongswan-5.9.1/src/libtls/tls_peer.c:90:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char client_random[32]; data/strongswan-5.9.1/src/libtls/tls_peer.c:95:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_random[32]; data/strongswan-5.9.1/src/libtls/tls_peer.c:638:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[12]; data/strongswan-5.9.1/src/libtls/tls_peer.c:937:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char premaster[48]; data/strongswan-5.9.1/src/libtls/tls_peer.c:1074:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[12]; data/strongswan-5.9.1/src/libtls/tls_prf.c:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[block_size], abuf[block_size]; data/strongswan-5.9.1/src/libtls/tls_prf.c:75:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, buf, bytes); data/strongswan-5.9.1/src/libtls/tls_prf.c:78:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, buf, block_size); data/strongswan-5.9.1/src/libtls/tls_prf.c:161:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[bytes]; data/strongswan-5.9.1/src/libtls/tls_server.c:95:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char client_random[32]; data/strongswan-5.9.1/src/libtls/tls_server.c:100:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_random[32]; data/strongswan-5.9.1/src/libtls/tls_server.c:407:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char premaster[48]; data/strongswan-5.9.1/src/libtls/tls_server.c:439:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(premaster + 2, decrypted.ptr + 2, sizeof(premaster) - 2); data/strongswan-5.9.1/src/libtls/tls_server.c:596:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[12]; data/strongswan-5.9.1/src/libtls/tls_server.c:975:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[12]; data/strongswan-5.9.1/src/libtls/tls_socket.c:123:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->in.ptr + this->in_done, data.ptr, data.len); data/strongswan-5.9.1/src/libtls/tls_socket.c:158:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[CRYPTO_BUF_SIZE], *pos; data/strongswan-5.9.1/src/libtls/tls_socket.c:257:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, this->app.cache.ptr + this->app.cache_done, cache); data/strongswan-5.9.1/src/libtls/tls_socket.c:293:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[PLAIN_BUF_SIZE], *pos; data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imc/tnc_imc.c:152:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imc/tnc_imc.c:219:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imc/tnc_imc.c:243: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(this->supported_vids, supported_vids, size); data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imc/tnc_imc.c:246: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(this->supported_subtypes, supported_subtypes, size); data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv.c:148:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv.c:215:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv.c:239: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(this->supported_vids, supported_vids, size); data/strongswan-5.9.1/src/libtnccs/plugins/tnc_imv/tnc_imv.c:242: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(this->supported_subtypes, supported_subtypes, size); data/strongswan-5.9.1/src/libtnccs/plugins/tnc_tnccs/tnc_tnccs_manager.c:488: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, value.ptr, value.len); data/strongswan-5.9.1/src/libtnccs/plugins/tnc_tnccs/tnc_tnccs_manager.c:620:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, pref_lang.ptr, pref_lang.len); data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/batch/tnccs_batch.c:110:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *error_msg, buf[BUF_LEN]; data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/batch/tnccs_batch.c:162:13: [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). batch_id = atoi((char*)batchid); data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/batch/tnccs_batch.c:269:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[12]; data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/imc_imv_msg.c:212:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10]; /* big enough for hex-encoded message type */ data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_msg.c:43:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *error_msg, buf[BUF_LEN]; data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/tnccs_recommendation_msg.c:83:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *error_msg, buf[BUF_LEN]; data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/tnccs_11.c:516:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, data.ptr, *buflen); data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20_client.c:617:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, data.ptr, *buflen); data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20_server.c:501:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, data.ptr, *buflen); data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_cert.c:31:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char handle_str[4]; data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_cert.c:65:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(handle_str + 4 - len, keyid.ptr + keyid.len - len, len); data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_private_key.c:160:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char handle_str[4]; data/strongswan-5.9.1/src/libtpmtss/plugins/tpm/tpm_private_key.c:193:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(handle_str + 4 - len, keyid.ptr + keyid.len - len, len); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:213:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN], manufacturer[5], vendor_string[17]; data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:635:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, ecc->x.t.buffer, ecc->x.t.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:638:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, ecc->y.t.buffer, ecc->y.t.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:889:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(digest_values.digests[0].digest.sha1, data.ptr, data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:897:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(digest_values.digests[0].digest.sha256, data.ptr, data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:905:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(digest_values.digests[0].digest.sha384, data.ptr, data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:913:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(digest_values.digests[0].digest.sha512, data.ptr, data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:976:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(qualifying_data.t.buffer, data.ptr, data.len); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1109: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(session_data_cmd.hmac.t.buffer, pin.ptr, data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1169: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.t.buffer, data.ptr, data.len); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1202:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer.t.buffer, data.ptr, buffer.t.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1311: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(pos, random.t.buffer, random.t.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1383: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(session_data_cmd.hmac.t.buffer, pin.ptr, data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1402:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data->ptr + nv_offset, nv_data.t.buffer, nv_data.t.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:225:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN], manufacturer[5], vendor_string[17]; data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:603:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, ecc->x.buffer, ecc->x.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:606:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, ecc->y.buffer, ecc->y.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:841:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(digest_values.digests[0].digest.sha1, data.ptr, data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:850:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(digest_values.digests[0].digest.sha256, data.ptr, data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:859:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(digest_values.digests[0].digest.sha384, data.ptr, data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:868:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(digest_values.digests[0].digest.sha512, data.ptr, data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:914:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(qualifying_data.buffer, data.ptr, data.len); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1033: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(cmd->hmac.buffer, pin.ptr, cmd->hmac.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1091: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.buffer, data.ptr, data.len); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1124:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer.buffer, data.ptr, buffer.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1233: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(pos, random.buffer, random.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1291: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(cmd->hmac.buffer, pin.ptr, cmd->hmac.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1307:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data->ptr + nv_offset, nv_data.buffer, nv_data.size); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1453:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tcti_lib[BUF_LEN]; data/strongswan-5.9.1/src/manager/controller/control_controller.c:60:18: [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). if (value && atoi(value) == 0) data/strongswan-5.9.1/src/manager/controller/control_controller.c:147:21: [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). if (str && (id = atoi(str))) data/strongswan-5.9.1/src/manager/controller/control_controller.c:154:21: [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). if (str && (id = atoi(str))) data/strongswan-5.9.1/src/manager/controller/gateway_controller.c:76:52: [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). if (this->manager->select_gateway(this->manager, atoi(id))) data/strongswan-5.9.1/src/manager/gateway.c:113: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[8096]; data/strongswan-5.9.1/src/manager/storage.c:59:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data.ptr, username, username_len); data/strongswan-5.9.1/src/manager/storage.c:60:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data.ptr + username_len, password, password_len); data/strongswan-5.9.1/src/medsrv/controller/peer_controller.c:330:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). id = atoi(idstr); data/strongswan-5.9.1/src/pki/command.c:63:8: [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 command_optstring[(MAX_COMMANDS > MAX_OPTIONS ? MAX_COMMANDS : MAX_OPTIONS) * 3]; data/strongswan-5.9.1/src/pki/command.c:127:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dbg_default_set_level(atoi(optarg)); data/strongswan-5.9.1/src/pki/command.h:70:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *line[MAX_LINES]; data/strongswan-5.9.1/src/pki/commands/acert.c:93:16: [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). lifetime = atoi(arg) * 60 * 60; data/strongswan-5.9.1/src/pki/commands/gen.c:71: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). size = atoi(arg); data/strongswan-5.9.1/src/pki/commands/gen.c:81:14: [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). shares = atoi(arg); data/strongswan-5.9.1/src/pki/commands/gen.c:88:17: [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). threshold = atoi(arg); data/strongswan-5.9.1/src/pki/commands/issue.c:185:16: [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). lifetime = atoi(arg) * 24 * 60 * 60; data/strongswan-5.9.1/src/pki/commands/issue.c:208:15: [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). pathlen = atoi(arg); data/strongswan-5.9.1/src/pki/commands/issue.c:284:24: [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). require_explicit = atoi(arg); data/strongswan-5.9.1/src/pki/commands/issue.c:287:23: [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). inhibit_mapping = atoi(arg); data/strongswan-5.9.1/src/pki/commands/issue.c:290:19: [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). inhibit_any = atoi(arg); data/strongswan-5.9.1/src/pki/commands/pkcs12.c:169:13: [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). index = atoi(arg); data/strongswan-5.9.1/src/pki/commands/pkcs7.c:28:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8096]; data/strongswan-5.9.1/src/pki/commands/pkcs7.c:376:8: [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). in = fopen(file, "r"); data/strongswan-5.9.1/src/pki/commands/self.c:154:16: [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). lifetime = atoi(arg) * 24 * 60 * 60; data/strongswan-5.9.1/src/pki/commands/self.c:177:15: [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). pathlen = atoi(arg); data/strongswan-5.9.1/src/pki/commands/self.c:253:24: [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). require_explicit = atoi(arg); data/strongswan-5.9.1/src/pki/commands/self.c:256:23: [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). inhibit_mapping = atoi(arg); data/strongswan-5.9.1/src/pki/commands/self.c:259:19: [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). inhibit_any = atoi(arg); data/strongswan-5.9.1/src/pki/commands/signcrl.c:107:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, serial.ptr, serial.len); data/strongswan-5.9.1/src/pki/commands/signcrl.c:127:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char serial[512], *keyid = NULL; data/strongswan-5.9.1/src/pki/commands/signcrl.c:182:16: [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). lifetime = atoi(arg) * 24 * 60 * 60; data/strongswan-5.9.1/src/pki/commands/signcrl.c:270:12: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). date = atol(arg); data/strongswan-5.9.1/src/pki/pki.c:327:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *to, from[64]; data/strongswan-5.9.1/src/pki/pki.c:362:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64], *label, *secret = NULL; data/strongswan-5.9.1/src/pool/pool.c:427:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char address_str[512]; data/strongswan-5.9.1/src/pool/pool.c:438:43: [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 = (strcmp(path, "-") == 0 ? stdin : fopen(path, "r")); data/strongswan-5.9.1/src/pool/pool.c:681:15: [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). tstamp = atoi(value); data/strongswan-5.9.1/src/pool/pool.c:885:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[512]; data/strongswan-5.9.1/src/pool/pool.c:887:52: [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 = strncmp(name, "-", 1) == 0 ? stdin : fopen(name, "r"); data/strongswan-5.9.1/src/pool/pool.c:897: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 *argv[ARGV_SIZE], *start; data/strongswan-5.9.1/src/pool/pool_attributes.c:151: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(blob_next.ptr, blob->ptr, blob->len); data/strongswan-5.9.1/src/pool/pool_attributes.c:154: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(pos_addr, addr_chunk.ptr, 4); data/strongswan-5.9.1/src/pool/pool_attributes.c:155: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(pos_addr + 4, mask_chunk.ptr, 4); data/strongswan-5.9.1/src/pool/pool_attributes.c:330:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id_pool_str[128] = ""; data/strongswan-5.9.1/src/pool/pool_attributes.c:398:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id_pool_str[128] = ""; data/strongswan-5.9.1/src/pool/pool_attributes.c:578:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char type_name[30]; data/strongswan-5.9.1/src/pool/pool_attributes.c:696: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 value_name[10]; data/strongswan-5.9.1/src/pt-tls-client/pt-tls-client.c:189:4: [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[8192]; data/strongswan-5.9.1/src/pt-tls-client/pt-tls-client.c:365: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). port = atoi(optarg); data/strongswan-5.9.1/src/pt-tls-client/pt-tls-client.c:375:24: [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). default_loglevel = atoi(optarg); data/strongswan-5.9.1/src/scepclient/scep.c:189:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(serialNumber->ptr + msb_set, digest.ptr + zeros, data/strongswan-5.9.1/src/scepclient/scep.c:206:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nonce[16]; data/strongswan-5.9.1/src/scepclient/scep.c:317:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p2, "%0A", 3); data/strongswan-5.9.1/src/scepclient/scep.c:323:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p2, "%2B", 3); data/strongswan-5.9.1/src/scepclient/scepclient.c:163:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[8192]; data/strongswan-5.9.1/src/scepclient/scepclient.c:237:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char suffix[PATH_MAX], *start, *dot; data/strongswan-5.9.1/src/scepclient/scepclient.c:299: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 m[8192]; data/strongswan-5.9.1/src/scepclient/scepclient.c:458:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char default_distinguished_name[BUF_LEN]; data/strongswan-5.9.1/src/scepclient/scepclient.c:461:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char challenge_password_buffer[MAX_PASSWORD_LENGTH]; data/strongswan-5.9.1/src/scepclient/scepclient.c:568:24: [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). default_loglevel = atoi(optarg); data/strongswan-5.9.1/src/scepclient/scepclient.c:678:20: [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). http_timeout = atoi(optarg); data/strongswan-5.9.1/src/scepclient/scepclient.c:700:21: [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). rsa_keylength = atoi(optarg); data/strongswan-5.9.1/src/scepclient/scepclient.c:845:21: [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). poll_interval = atoi(optarg); data/strongswan-5.9.1/src/scepclient/scepclient.c:853:21: [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). max_poll_time = atoi(optarg); data/strongswan-5.9.1/src/scepclient/scepclient.c:960: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 ca_path[PATH_MAX]; data/strongswan-5.9.1/src/scepclient/scepclient.c:1013: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 cert_path[PATH_MAX], *path = ca_path; data/strongswan-5.9.1/src/scepclient/scepclient.c:1059: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 path[PATH_MAX]; data/strongswan-5.9.1/src/scepclient/scepclient.c:1091: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 path[PATH_MAX]; data/strongswan-5.9.1/src/scepclient/scepclient.c:1151: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 path[PATH_MAX]; data/strongswan-5.9.1/src/scepclient/scepclient.c:1173: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 path[PATH_MAX]; data/strongswan-5.9.1/src/scepclient/scepclient.c:1200: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 path[PATH_MAX]; data/strongswan-5.9.1/src/scepclient/scepclient.c:1236: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 path[PATH_MAX]; data/strongswan-5.9.1/src/scepclient/scepclient.c:1262: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 path[PATH_MAX]; data/strongswan-5.9.1/src/scepclient/scepclient.c:1305: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 path[PATH_MAX]; data/strongswan-5.9.1/src/scepclient/scepclient.c:1330: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 path[PATH_MAX]; data/strongswan-5.9.1/src/sec-updater/sec-updater.c:67:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[8192]; data/strongswan-5.9.1/src/sec-updater/sec-updater.c:174: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 command[BUF_LEN]; data/strongswan-5.9.1/src/sec-updater/sec-updater.c:247:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[BUF_LEN], product[BUF_LEN], command[BUF_LEN]; data/strongswan-5.9.1/src/sec-updater/sec-updater.c:267:9: [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 = fopen(path, "r"); data/strongswan-5.9.1/src/sec-updater/sec-updater.c:512:19: [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). debug_level = atoi(optarg); data/strongswan-5.9.1/src/starter/invokecharon.c:123:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUF_LEN]; data/strongswan-5.9.1/src/starter/invokecharon.c:147: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 type[4]; data/strongswan-5.9.1/src/starter/parser/parser.c:898: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/strongswan-5.9.1/src/starter/parser/parser.c:1113: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 yymsgbuf[128]; data/strongswan-5.9.1/src/starter/starter.c:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[8192]; data/strongswan-5.9.1/src/starter/starter.c:265:13: [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). pidfile = fopen(file, "r"); data/strongswan-5.9.1/src/starter/starter.c:268:4: [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[64]; data/strongswan-5.9.1/src/starter/starter.c:274:11: [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). pid = atoi(buf); data/strongswan-5.9.1/src/starter/starter.c:395:18: [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). auto_update = atoi(argv[++i]); data/strongswan-5.9.1/src/starter/starter.c:547: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). fnull = open("/dev/null", O_RDWR); data/strongswan-5.9.1/src/starter/starter.c:572:14: [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 *fd = fopen(starter_pid_file, "w"); data/strongswan-5.9.1/src/starter/starterstroke.c:80:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *uri, buffer[64]; data/strongswan-5.9.1/src/starter/starterstroke.c:127: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. static char buf[32]; data/strongswan-5.9.1/src/starter/starterstroke.c:131:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "conn_%lu", conn->id); data/strongswan-5.9.1/src/stroke/stroke.c:79:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *uri, buffer[512], *pass; data/strongswan-5.9.1/src/stroke/stroke.c:600: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). res = set_loglevel(argv[0], atoi(argv[1])); data/strongswan-5.9.1/src/sw-collector/sw-collector.c:76:4: [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[8192]; data/strongswan-5.9.1/src/sw-collector/sw-collector.c:172:17: [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). max_count = atoi(optarg); data/strongswan-5.9.1/src/sw-collector/sw-collector.c:175:19: [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). debug_level = atoi(optarg); data/strongswan-5.9.1/src/sw-collector/sw-collector.c:553:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char package_filter[BUF_LEN]; data/strongswan-5.9.1/src/sw-collector/sw_collector_db.c:348:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char first_time_buf[21], *first_time, *first_file; data/strongswan-5.9.1/src/sw-collector/sw_collector_dpkg.c:41:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[BUF_LEN]; data/strongswan-5.9.1/src/sw-collector/sw_collector_rest_api.c:120:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmd[BUF_LEN]; data/strongswan-5.9.1/src/swanctl/command.c:69:8: [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 command_optstring[(MAX_COMMANDS > MAX_OPTIONS ? data/strongswan-5.9.1/src/swanctl/command.c:284:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dbg_default_set_level(atoi(optarg)); data/strongswan-5.9.1/src/swanctl/command.h:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *line[MAX_LINES]; data/strongswan-5.9.1/src/swanctl/commands/initiate.c:62:15: [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). timeout = atoi(arg); data/strongswan-5.9.1/src/swanctl/commands/initiate.c:65:13: [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). level = atoi(arg); data/strongswan-5.9.1/src/swanctl/commands/list_pools.c:42:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pool[64], leases[32]; data/strongswan-5.9.1/src/swanctl/commands/list_sas.c:352:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/strongswan-5.9.1/src/swanctl/commands/list_sas.c:388:14: [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). ike_id = atoi(arg); data/strongswan-5.9.1/src/swanctl/commands/load_authorities.c:49:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *path, buf[PATH_MAX]; data/strongswan-5.9.1/src/swanctl/commands/load_conns.c:102:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *token, buf[PATH_MAX]; data/strongswan-5.9.1/src/swanctl/commands/load_conns.c:204:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *name, buf[256]; data/strongswan-5.9.1/src/swanctl/commands/load_conns.c:238:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/swanctl/commands/load_creds.c:109:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *path, buf[PATH_MAX]; data/strongswan-5.9.1/src/swanctl/commands/load_creds.c:222:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prompt[128]; data/strongswan-5.9.1/src/swanctl/commands/load_creds.c:429:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *path, *rel, buf[PATH_MAX]; data/strongswan-5.9.1/src/swanctl/commands/load_creds.c:539:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *path, *rel, buf[PATH_MAX]; data/strongswan-5.9.1/src/swanctl/commands/load_creds.c:822:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_LEN]; data/strongswan-5.9.1/src/swanctl/commands/redirect.c:44:14: [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). ike_id = atoi(arg); data/strongswan-5.9.1/src/swanctl/commands/rekey.c:48:16: [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). child_id = atoi(arg); data/strongswan-5.9.1/src/swanctl/commands/rekey.c:51:14: [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). ike_id = atoi(arg); data/strongswan-5.9.1/src/swanctl/commands/terminate.c:66:16: [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). child_id = atoi(arg); data/strongswan-5.9.1/src/swanctl/commands/terminate.c:69:14: [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). ike_id = atoi(arg); data/strongswan-5.9.1/src/swanctl/commands/terminate.c:72:15: [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). timeout = atoi(arg); data/strongswan-5.9.1/src/swanctl/commands/terminate.c:75:13: [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). level = atoi(arg); data/strongswan-5.9.1/src/swanctl/swanctl.c:37:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[PATH_MAX]; data/strongswan-5.9.1/src/tpm_extendpcr/tpm_extendpcr.c:42:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[8192]; data/strongswan-5.9.1/src/tpm_extendpcr/tpm_extendpcr.c:111: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 m[8192]; data/strongswan-5.9.1/src/tpm_extendpcr/tpm_extendpcr.c:215:11: [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). pcr = atoi(optarg); data/strongswan-5.9.1/src/tpm_extendpcr/tpm_extendpcr.c:239:24: [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). default_loglevel = atoi(optarg); data/strongswan-5.9.1/src/xfrmi/xfrmi.c:284:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dbg_default_set_level(atoi(optarg)); data/strongswan-5.9.1/scripts/aes-test.c:200:30: [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). ctx.ivlen = atoi(line + strlen("[IVlen = ")); data/strongswan-5.9.1/scripts/aes-test.c:204:31: [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). ctx.icvlen = atoi(line + strlen("[Taglen = ")); data/strongswan-5.9.1/scripts/key2keyid.c:31:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read; data/strongswan-5.9.1/scripts/key2keyid.c:38:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read <= 0) data/strongswan-5.9.1/scripts/key2keyid.c:44:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). chunk = chunk_create(buf, read); data/strongswan-5.9.1/scripts/keyid2sql.c:31:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read, n; data/strongswan-5.9.1/scripts/keyid2sql.c:38:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read <= 0) data/strongswan-5.9.1/scripts/keyid2sql.c:44:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). chunk = chunk_create(buf, read); data/strongswan-5.9.1/scripts/pubkey_speed.c:47:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int round, rounds, read; data/strongswan-5.9.1/scripts/pubkey_speed.c:85:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). pos += read; data/strongswan-5.9.1/scripts/pubkey_speed.c:86:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). keydata.len += read; data/strongswan-5.9.1/scripts/settings-test.c:106:6: [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). strlen(section) ? "." : "", key); data/strongswan-5.9.1/src/charon-cmd/charon-cmd.c:225:17: [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). pad = padto - strlen(cmd); data/strongswan-5.9.1/src/charon-cmd/cmd/cmd_creds.c:101:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!pwd || strlen(pwd) == 0) data/strongswan-5.9.1/src/charon-nm/nm/nm_creds.c:292:35: [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). key = chunk_create(this->pass, strlen(this->pass)); data/strongswan-5.9.1/src/charon-nm/nm/nm_creds.c:299:38: [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). key = chunk_create(this->keypass, strlen(this->keypass)); data/strongswan-5.9.1/src/charon-nm/nm/nm_creds.c:307:38: [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). key = chunk_create(this->keypass, strlen(this->keypass)); data/strongswan-5.9.1/src/charon-nm/nm/nm_service.c:549:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(str) < 20) data/strongswan-5.9.1/src/charon-nm/nm/nm_service.c:653:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (str && strlen(str)) data/strongswan-5.9.1/src/charon-nm/nm/nm_service.c:722:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (proposal && str && strlen(str)) data/strongswan-5.9.1/src/charon-nm/nm/nm_service.c:806:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (proposal && str && strlen(str)) data/strongswan-5.9.1/src/charon-nm/nm/nm_service.c:834:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (str && strlen(str)) data/strongswan-5.9.1/src/charon-tkm/src/charon-tkm.c:257: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). if (argc > 0 && strlen(argv[0]) > 0) data/strongswan-5.9.1/src/conftest/actions.c:283:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncaseeq(actions[i].name, action, strlen(actions[i].name))) data/strongswan-5.9.1/src/conftest/conftest.c:102:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncaseeq(key, "x509", strlen("x509"))) data/strongswan-5.9.1/src/conftest/conftest.c:107:35: [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 (strncaseeq(key, "crl", strlen("crl"))) data/strongswan-5.9.1/src/conftest/conftest.c:190: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). if (strncaseeq(type, "ecdsa", strlen("ecdsa"))) data/strongswan-5.9.1/src/conftest/conftest.c:194:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (strncaseeq(type, "rsa", strlen("rsa"))) data/strongswan-5.9.1/src/conftest/conftest.c:239:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncaseeq(section, "crl", strlen("crl"))) data/strongswan-5.9.1/src/conftest/conftest.c:243:40: [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 (strncaseeq(section, "ocsp", strlen("ocsp"))) data/strongswan-5.9.1/src/conftest/hooks/add_notify.c:84:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). data = chunk_skip(chunk_create(this->data, strlen(this->data)), 2); data/strongswan-5.9.1/src/conftest/hooks/add_notify.c:87:12: [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 (strlen(this->data)) data/strongswan-5.9.1/src/conftest/hooks/add_notify.c:89:48: [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). data = chunk_clone(chunk_create(this->data, strlen(this->data))); data/strongswan-5.9.1/src/conftest/hooks/add_payload.c:102:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). data = chunk_skip(chunk_create(this->data, strlen(this->data)), 2); data/strongswan-5.9.1/src/conftest/hooks/add_payload.c:105:12: [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 (strlen(this->data)) data/strongswan-5.9.1/src/conftest/hooks/add_payload.c:107:48: [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). data = chunk_clone(chunk_create(this->data, strlen(this->data))); data/strongswan-5.9.1/src/conftest/hooks/unencrypted_notify.c:79:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). data = chunk_skip(chunk_create(this->data, strlen(this->data)), 2); data/strongswan-5.9.1/src/conftest/hooks/unencrypted_notify.c:82:12: [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 (strlen(this->data)) data/strongswan-5.9.1/src/conftest/hooks/unencrypted_notify.c:84:48: [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). data = chunk_clone(chunk_create(this->data, strlen(this->data))); data/strongswan-5.9.1/src/libcharon/config/peer_cfg.c:671:7: [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. if (!equal) data/strongswan-5.9.1/src/libcharon/config/peer_cfg.c:689:9: [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 equal; data/strongswan-5.9.1/src/libcharon/daemon.c:810: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). pos = buf + strlen(buf); data/strongswan-5.9.1/src/libcharon/encoding/payloads/cert_payload.c:368:55: [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). this->data = chunk_cat("cc", hash, chunk_create(url, strlen(url))); data/strongswan-5.9.1/src/libcharon/kernel/kernel_interface.c:299:9: [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. while (equal && ae->enumerate(ae, &tsa) && be->enumerate(be, &tsb)) data/strongswan-5.9.1/src/libcharon/kernel/kernel_interface.c:306:9: [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 equal; data/strongswan-5.9.1/src/libcharon/network/sender.c:117:6: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(this->send_delay * 1000); data/strongswan-5.9.1/src/libcharon/plugins/certexpire/certexpire_export.c:118:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return chunk_hash(chunk_create(key->id, strlen(key->id))); data/strongswan-5.9.1/src/libcharon/plugins/coupling/coupling_validator.c:92:13: [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). hash_len = strlen(hash); data/strongswan-5.9.1/src/libcharon/plugins/coupling/coupling_validator.c:97:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(line) >= hash_len && data/strongswan-5.9.1/src/libcharon/plugins/dhcp/dhcp_socket.c:680:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(iface) > sizeof(ifreq.ifr_name)) data/strongswan-5.9.1/src/libcharon/plugins/duplicheck/duplicheck.c:53:50: [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). len = offsetof(struct sockaddr_un, sun_path) + strlen(addr.un.sun_path); data/strongswan-5.9.1/src/libcharon/plugins/eap_gtc/eap_gtc.c:83:8: [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). len = strlen(GTC_REQUEST_MSG); data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:909:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(token) != AUTH_RESPONSE_LEN - 2) data/strongswan-5.9.1/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c:1003:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(token) != 2 * CHALLENGE_LEN) data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius.c:104:41: [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). prefix = chunk_create(this->id_prefix, strlen(this->id_prefix)); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_accounting.c:639: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). chunk_create(entry->sid, strlen(entry->sid))); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_accounting.c:759:31: [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). chunk_create(entry->sid, strlen(entry->sid))); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_accounting.c:822: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). chunk_create(entry->sid, strlen(entry->sid))); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_dae.c:525: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). this->secret.len = strlen(this->secret.ptr); data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_xauth.c:92: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). if (this->round.message && strlen(this->round.message)) data/strongswan-5.9.1/src/libcharon/plugins/eap_radius/eap_radius_xauth.c:249: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). if (!profile || strlen(profile) == 0) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_file/eap_sim_file_triplets.c:145: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). chunk = chunk_create(from, min(strlen(from), len * 2)); data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:134: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). cur_reader += strlen(cur_reader) + 1) data/strongswan-5.9.1/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c:276:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!(strlen(full_nai) && strstr(full_nai, imsi))) data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify.c:52:50: [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). len = offsetof(struct sockaddr_un, sun_path) + strlen(addr.un.sun_path); data/strongswan-5.9.1/src/libcharon/plugins/error_notify/error_notify.c:90:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(s, pos, sizeof(msg) - total); data/strongswan-5.9.1/src/libcharon/plugins/ext_auth/ext_auth_listener.c:147: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). e = resp + strlen(resp); data/strongswan-5.9.1/src/libcharon/plugins/forecast/forecast_forwarder.c:364:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, ifname, IFNAMSIZ); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ctl.c:78:8: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). old = umask(S_IRWXO); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ctl.c:85:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(old); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_ctl.c:123:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fifo, buf, sizeof(buf)-1) > 1) data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_kernel.c:234: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). if (write(fd, cmd, strlen(cmd)) == -1) data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_kernel.c:259:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buf, sizeof(buf)-1); data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_message.c:212:10: [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). len = strlen(str) + 1; data/strongswan-5.9.1/src/libcharon/plugins/ha/ha_tunnel.c:223:41: [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). chunk_clone(chunk_create(secret, strlen(secret)))); data/strongswan-5.9.1/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_router.c:215:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read(this->notify[0], &buf, sizeof(buf)) == sizeof(buf)) data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1339:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, ifname, IFNAMSIZ); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1355:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, ifname, IFNAMSIZ); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1414:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, ifname, IFNAMSIZ); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1710:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(algo->alg_name, alg_name, sizeof(algo->alg_name)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1737:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(algo->alg_name, alg_name, sizeof(algo->alg_name)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1785:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(algo->alg_name, alg_name, sizeof(algo->alg_name)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1800:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(algo->alg_name, alg_name, sizeof(algo->alg_name)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c:1827:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(algo->alg_name, alg_name, sizeof(algo->alg_name)); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c:293:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return chunk_hash(chunk_create(this->if_name, strlen(this->if_name))); data/strongswan-5.9.1/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c:1129:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(entry->ifname, name, IFNAMSIZ); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:290:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return chunk_hash(chunk_create(this->if_name, strlen(this->if_name))); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:850:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(50000); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:870:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(50000); data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:1387:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). .sdl_nlen = strlen(name), data/strongswan-5.9.1/src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c:1390:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(name) <= sizeof(sdl.sdl_data)) data/strongswan-5.9.1/src/libcharon/plugins/kernel_wfp/ipsecdump.c:545:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(buf)) data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester.c:46:45: [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). offsetof(struct sockaddr_un, sun_path) + strlen(addr.sun_path)) < 0) data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester.c:81:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(stream); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c:257: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). while (token[strlen(token) - 1] == ' ') data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c:259:12: [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). token[strlen(token) - 1] = '\0'; data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c:374:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*(str + strlen("eap")) == '-') data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c:376:39: [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). type = eap_type_from_string(str + strlen("eap-")); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c:399:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*(str + strlen("xauth")) == '-') data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_config.c:401:52: [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). auth->add(auth, AUTH_RULE_XAUTH_BACKEND, str + strlen("xauth-")); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_control.c:256:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(delay * 1000); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_creds.c:490:40: [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). chunk_clone(chunk_create(psk, strlen(psk)))), data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_creds.c:492:40: [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). chunk_clone(chunk_create(pwd, strlen(pwd)))), data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_plugin.c:133:6: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(ms * 1000); data/strongswan-5.9.1/src/libcharon/plugins/load_tester/load_tester_plugin.c:161:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(ms * 1000); data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip.c:52:50: [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). len = offsetof(struct sockaddr_un, sun_path) + strlen(addr.un.sun_path); data/strongswan-5.9.1/src/libcharon/plugins/lookip/lookip.c:214:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(line) == 0) data/strongswan-5.9.1/src/libcharon/plugins/resolve/resolve_handler.c:243:16: [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). e = resp + strlen(resp); data/strongswan-5.9.1/src/libcharon/plugins/smp/smp.c:640:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buffer, sizeof(buffer)); data/strongswan-5.9.1/src/libcharon/plugins/smp/smp.c:776:8: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). old = umask(S_IRWXO); data/strongswan-5.9.1/src/libcharon/plugins/smp/smp.c:784:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(old); data/strongswan-5.9.1/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c:305:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ignore_result(read(this->notify[0], buf, sizeof(buf))); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_config.c:148: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). strict = string + strlen(string) - 1; data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_config.c:1289:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(msg->user_creds.username) == 0 || data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_config.c:1367:45: [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). password = chunk_clone(chunk_create(pass, strlen(pass))); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_config.c:1368:17: [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). memwipe(pass, strlen(pass)); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_config.c:1377:45: [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). password = chunk_clone(chunk_create(buf, strlen(buf))); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_control.c:211:8: [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). len = strlen(string); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:158:45: [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). chunk = chunk_from_hex(chunk_create(keyid, strlen(keyid)), NULL); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:264:46: [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). printable_key = chunk_create(filename + 2, strlen(filename) - 2); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:728:30: [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). secret = chunk_create(buf, strlen(buf)); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:795:30: [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). secret = chunk_create(buf, strlen(buf)); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:868:45: [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). chunk = chunk_from_hex(chunk_create(keyid, strlen(keyid)), NULL); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:1212: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). if (line.len > strlen("include ") && strpfx(line.ptr, "include ")) data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:1224:28: [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). line = chunk_skip(line, strlen("include ")); data/strongswan-5.9.1/src/libcharon/plugins/stroke/stroke_cred.c:1244:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (line.len + 1 + strlen(dir) + 1 > sizeof(pattern)) data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_http.c:61:8: [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). len = strlen(this->uri) + 2; data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c:821:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(server_uri) >= 8 && strncaseeq(server_uri, "https://", 8)) data/strongswan-5.9.1/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap_msg.c:135:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = this->tls->read(this->tls, buf, sizeof(buf)-1, TRUE); data/strongswan-5.9.1/src/libcharon/plugins/uci/uci_creds.c:106:39: [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). chunk_clone(chunk_create(psk, strlen(psk)))); data/strongswan-5.9.1/src/libcharon/plugins/updown/updown_listener.c:409:23: [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). char *e = resp + strlen(resp); data/strongswan-5.9.1/src/libcharon/plugins/vici/libvici.c:205:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). hlen = stream->read(stream, &len, sizeof(len), FALSE); data/strongswan-5.9.1/src/libcharon/plugins/vici/libvici.c:372:12: [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). namelen = strlen(req->name); data/strongswan-5.9.1/src/libcharon/plugins/vici/libvici.c:686:12: [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). namelen = strlen(name); data/strongswan-5.9.1/src/libcharon/plugins/vici/suites/test_event.c:68:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/strongswan-5.9.1/src/libcharon/plugins/vici/suites/test_event.c:189:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/strongswan-5.9.1/src/libcharon/plugins/vici/suites/test_request.c:33:44: [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). vici_add_key_value(req, "key2", "value2", strlen("value2")); data/strongswan-5.9.1/src/libcharon/plugins/vici/suites/test_request.c:58:35: [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). vici_add_list_item(req, "item1", strlen("item1")); data/strongswan-5.9.1/src/libcharon/plugins/vici/suites/test_request.c:212:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/strongswan-5.9.1/src/libcharon/plugins/vici/suites/test_socket.c:112:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_cred.c:466:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(buf); data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_dispatcher.c:125:28: [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). len += sizeof(uint8_t) + strlen(name); data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_message.c:368:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (errno == 0 && pos == buf + strlen(buf)) data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_socket.c:420:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = stream->read(stream, entry->in.hdr + entry->in.hdrlen, data/strongswan-5.9.1/src/libcharon/plugins/vici/vici_socket.c:454:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = stream->read(stream, entry->in.buf.ptr + entry->in.done, data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist.c:53:50: [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). len = offsetof(struct sockaddr_un, sun_path) + strlen(addr.un.sun_path); data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist.c:76:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, buf, len - done); data/strongswan-5.9.1/src/libcharon/plugins/whitelist/whitelist.c:184:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(msg.id); data/strongswan-5.9.1/src/libcharon/sa/ikev1/task_manager_v1.c:1764:9: [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 equal; data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_cert_post.c:82:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). url = malloc(strlen(base) + 40 + 1); data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_cert_post.c:85:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(url, hex_hash, 40); data/strongswan-5.9.1/src/libcharon/sa/ikev2/tasks/ike_vendor.c:88:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return chunk_create(data->id, data->len ?: strlen(data->id)); data/strongswan-5.9.1/src/libfast/fast_dispatcher.c:245:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return chunk_hash(chunk_create(sid, strlen(sid))); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:328: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). version->len = strlen(pos) - 1; data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:452:12: [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). pos += strlen(lsb_distrib_id); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:471:12: [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). pos += strlen(lsb_distrib_release); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:522:12: [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). pos += strlen(str_release); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:562:34: [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). os_name = chunk_create(os_str, strlen(os_str)); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:572:46: [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). *version = chunk_alloc(os_version.len + 1 + strlen(uninfo.machine)); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:577:30: [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). memcpy(pos, uninfo.machine, strlen(uninfo.machine)); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:608:14: [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). name.len = strlen(name.ptr); data/strongswan-5.9.1/src/libimcv/imc/imc_os_info.c:611:17: [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). version.len = strlen(version.ptr); data/strongswan-5.9.1/src/libimcv/imv/imv_agent.c:736:10: [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). strlen(reason_lang), reason_lang); data/strongswan-5.9.1/src/libimcv/imv/imv_database.c:325: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). last = resp + strlen(resp) - 1; data/strongswan-5.9.1/src/libimcv/imv/imv_msg.c:267:34: [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). chunk_create(lang_code, strlen(lang_code))); data/strongswan-5.9.1/src/libimcv/imv/imv_msg.c:273:28: [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). chunk_create(uri, strlen(uri))); data/strongswan-5.9.1/src/libimcv/imv/imv_reason_string.c:61:34: [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). chunk_create(s_reason, strlen(s_reason))); data/strongswan-5.9.1/src/libimcv/imv/imv_reason_string.c:66:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). this->reasons = chunk_clone(chunk_create(s_reason, strlen(s_reason))); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:71:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int header_len = strlen(s_itemsheader); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:77:19: [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). header_len += strlen(header_format) - 2; data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:97:17: [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). items_len += strlen(item); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:132:8: [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). len = strlen(s_title) + strlen(s_description); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:132:26: [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). len = strlen(s_title) + strlen(s_description); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:135:10: [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). len += strlen(header); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:139:10: [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). len += strlen(items); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:145:10: [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). len += strlen(xml_format) - 8; data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:158:34: [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). chunk_create(instruction, strlen(instruction))); data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:175:34: [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). chunk_create(xml_header, strlen(xml_header)), data/strongswan-5.9.1/src/libimcv/imv/imv_remediation_string.c:177:35: [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). chunk_create(xml_trailer, strlen(xml_trailer)) data/strongswan-5.9.1/src/libimcv/imv/imv_workitem.c:161:4: [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). strlen(result) ? " - " : "", result); data/strongswan-5.9.1/src/libimcv/ita/ita_attr_get_settings.c:133:51: [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). writer->write_data16(writer, chunk_create(name, strlen(name))); data/strongswan-5.9.1/src/libimcv/ita/ita_attr_settings.c:161:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(entry->name))); data/strongswan-5.9.1/src/libimcv/os_info/os_info.c:55:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (memeq(name.ptr, name_str, min(name.len, strlen(name_str)))) data/strongswan-5.9.1/src/libimcv/plugins/imc_hcd/imc_hcd.c:410:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(hex_version) > 2 * version_len) data/strongswan-5.9.1/src/libimcv/plugins/imc_hcd/imc_hcd.c:424:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(patches); data/strongswan-5.9.1/src/libimcv/plugins/imc_os/imc_os.c:255:34: [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). chunk_create(device_handle, strlen(device_handle)), NULL); data/strongswan-5.9.1/src/libimcv/plugins/imc_scanner/imc_scanner.c:128:31: [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). DBG2(DBG_IMC, "%.*s", (int)(strlen(buf)-1), buf); data/strongswan-5.9.1/src/libimcv/plugins/imc_scanner/imc_scanner.c:135:28: [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). line = chunk_create(buf, strlen(buf)); data/strongswan-5.9.1/src/libimcv/plugins/imc_scanner/imc_scanner.c:184: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). if ((token.len == strlen(system_v4) && data/strongswan-5.9.1/src/libimcv/plugins/imc_scanner/imc_scanner.c:186: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). (token.len == strlen(loopback_v4) && data/strongswan-5.9.1/src/libimcv/plugins/imc_scanner/imc_scanner.c:188: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). (token.len == strlen(loopback_v6) && data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest.c:308:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). aik = chunk_from_hex(chunk_create(optarg, strlen(optarg)), NULL); data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.c:339:8: [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). len = strlen(dir); data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.c:504:8: [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). len = strlen(dir); data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.c:1089:19: [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). spaces = 8 + strlen(package); data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.c:1604:13: [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). device = strlen(device) ? device : "-"; data/strongswan-5.9.1/src/libimcv/plugins/imv_attestation/attest_db.c:1605: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). device_len = min(strlen(device), DEVICE_MAX_LEN); data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.c:234:39: [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). algo_name = chunk_create(ima_algo, strlen(ima_algo) + 1); data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.c:235:39: [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). event_name = chunk_create(ima_name, strlen(ima_name) + 1); data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.c:258:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(filename_buffer, ima_name, IMA_FILENAME_LEN_MAX); data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.c:428: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). algo_len = strlen(algo); data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_ima.c:429: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). name_len = strlen(name); data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_tboot.c:160: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). chunk_create(meas_hex, strlen(meas_hex)), NULL); data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_tboot.c:162:35: [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). chunk_create(pcr_before_hex, strlen(pcr_before_hex)), NULL); data/strongswan-5.9.1/src/libimcv/pts/components/ita/ita_comp_tboot.c:164:34: [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). chunk_create(pcr_after_hex, strlen(pcr_after_hex)), NULL); data/strongswan-5.9.1/src/libimcv/pts/pts_database.c:286:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(filename) < 1) data/strongswan-5.9.1/src/libimcv/pts/pts_ima_bios_list.c:249:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read(fd, &pcr, 4); data/strongswan-5.9.1/src/libimcv/pts/pts_ima_bios_list.c:266:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &event_type, 4) != 4) data/strongswan-5.9.1/src/libimcv/pts/pts_ima_bios_list.c:274:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &event_len, 4) != 4) data/strongswan-5.9.1/src/libimcv/pts/pts_ima_bios_list.c:285:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, event_buf, event_len) != event_len) data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:170:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read(fd, &pcr, 4); data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:194:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, entry->measurement.ptr, HASH_SIZE_SHA1) != HASH_SIZE_SHA1) data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:201:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &type_len, 4) != 4 || type_len > IMA_TYPE_LEN_MAX) data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:208:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, type, type_len) != type_len) data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:232:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &eventdata_len, 4) != 4 || eventdata_len < 4) data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:239:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &algo_digest_len, 4) != 4 || data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:248:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, algo_digest, algo_digest_len) != algo_digest_len) data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:275:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &name_len, 4) != 4 || data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:286:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, entry->name, name_len) != name_len) data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:301:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &name_len, 4) != 4 || name_len == UINT32_MAX) data/strongswan-5.9.1/src/libimcv/pts/pts_ima_event_list.c:311:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, entry->name, name_len) != name_len) data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen.c:93:53: [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). writer->write_data(writer, chunk_create(tag_buf, strlen(tag_buf))); data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen.c:142:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(line); data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen.c:172:10: [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). len = strlen(line); data/strongswan-5.9.1/src/libimcv/swid_gen/swid_gen_info.c:99:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). package, strlen(version) ? "-" : "", version) == -1) data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_file_meas.c:178:55: [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). writer->write_data16(writer, chunk_create(filename, strlen(filename))); data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_req_file_meas.c:145:42: [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). pathname = chunk_create(this->pathname, strlen(this->pathname)); data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_req_file_meta.c:138:42: [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). pathname = chunk_create(this->pathname, strlen(this->pathname)); data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_simple_comp_evid.c:238:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(policy_uri); data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_unix_file_meta.c:162:11: [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). strlen(entry->filename)); data/strongswan-5.9.1/src/libimcv/tcg/pts/tcg_pts_attr_unix_file_meta.c:172:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(entry->filename))); data/strongswan-5.9.1/src/libpttls/pt_tls.c:77:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). got = tls->read(tls, buf + total, len - total, TRUE); data/strongswan-5.9.1/src/libradius/radius_config.c:222:50: [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). .nas_identifier = chunk_create(nas_identifier, strlen(nas_identifier)), data/strongswan-5.9.1/src/libradius/radius_config.c:235: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). chunk_create(secret, strlen(secret)), data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:509:23: [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). formatted_time.len = strlen(buf); data/strongswan-5.9.1/src/libstrongswan/asn1/asn1.c:895:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int count = strlen(mode); data/strongswan-5.9.1/src/libstrongswan/credentials/auth_cfg.c:677:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (key_token && streq(key_token + strlen(key_token) - 3, "pss")) data/strongswan-5.9.1/src/libstrongswan/credentials/auth_cfg.c:1313:9: [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 equal; data/strongswan-5.9.1/src/libstrongswan/crypto/proposal/proposal_keywords.c:123:41: [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). token = proposal_get_token_static(str, strlen(str)); data/strongswan-5.9.1/src/libstrongswan/fetcher/fetcher_manager.c:80:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncasecmp(entry->url, url, strlen(entry->url))) data/strongswan-5.9.1/src/libstrongswan/ipsec/ipsec_types.c:87:27: [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). endptr = (char*)value + strlen("%unique"); data/strongswan-5.9.1/src/libstrongswan/ipsec/ipsec_types.c:91:14: [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). endptr += strlen("-dir"); data/strongswan-5.9.1/src/libstrongswan/ipsec/ipsec_types.c:110:27: [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). endptr = (char*)value + strlen("%same"); data/strongswan-5.9.1/src/libstrongswan/ipsec/ipsec_types.c:164:27: [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). endptr = (char*)value + strlen("%unique"); data/strongswan-5.9.1/src/libstrongswan/ipsec/ipsec_types.c:168:14: [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). endptr += strlen("-dir"); data/strongswan-5.9.1/src/libstrongswan/library.c:236:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return chunk_hash(chunk_create(key, strlen(key))); data/strongswan-5.9.1/src/libstrongswan/networking/host.c:144:12: [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). len = strlen(buffer); data/strongswan-5.9.1/src/libstrongswan/networking/host.c:583:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, string, pos - string); data/strongswan-5.9.1/src/libstrongswan/networking/host_resolver.c:144:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return chunk_hash_inc(chunk_create(this->name, strlen(this->name)), data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream.h:68:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t (*read)(stream_t *this, void *buf, size_t len, bool block); data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service_systemd.c:45:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). uri += strlen("systemd://"); data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service_unix.c:54:8: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). old = umask(S_IRWXO); data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_service_unix.c:61:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(old); data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_tcp.c:37:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). uri += strlen("tcp://"); data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_unix.c:32:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). uri += strlen("unix://"); data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_unix.c:36:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(addr->sun_path, uri, sizeof(addr->sun_path)); data/strongswan-5.9.1/src/libstrongswan/networking/streams/stream_unix.c:39:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return offsetof(struct sockaddr_un, sun_path) + strlen(addr->sun_path); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:149:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifra.ifra_name, this->if_name, IFNAMSIZ); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:189:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, this->if_name, IFNAMSIZ); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:258:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, this->if_name, IFNAMSIZ); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:284:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, this->if_name, IFNAMSIZ); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:308:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, this->if_name, IFNAMSIZ); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:365:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(this->tunfd, data.ptr, data.len); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:395:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, this->if_name, IFNAMSIZ); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:434:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info.ctl_name, UTUN_CONTROL_NAME, strlen(UTUN_CONTROL_NAME)); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:434:44: [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). strncpy(info.ctl_name, UTUN_CONTROL_NAME, strlen(UTUN_CONTROL_NAME)); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:468:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(this->if_name, name_tmpl ?: "tun%d", IFNAMSIZ); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:483:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, this->if_name, IFNAMSIZ); data/strongswan-5.9.1/src/libstrongswan/networking/tun_device.c:490:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(this->if_name, ifr.ifr_name, IFNAMSIZ); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_ops.c:92:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(this->op, out, outlen); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_ops.c:171:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read(op, out, len) != len) data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_ops.c:220:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sa.salg_type, type, sizeof(sa.salg_type)); data/strongswan-5.9.1/src/libstrongswan/plugins/af_alg/af_alg_ops.c:221:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sa.salg_name, alg, sizeof(sa.salg_name)); data/strongswan-5.9.1/src/libstrongswan/plugins/agent/agent_private_key.c:161:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(addr.sun_path, path, UNIX_PATH_MAX - 1); data/strongswan-5.9.1/src/libstrongswan/plugins/agent/agent_private_key.c:199:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). blob.len = read(socket, blob.ptr, blob.len); data/strongswan-5.9.1/src/libstrongswan/plugins/agent/agent_private_key.c:334:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). blob.len = read(socket, blob.ptr, blob.len); data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_plugin.c:115:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(info->protocols[i]) == strlen(name) - strlen("://")) data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_plugin.c:115:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(info->protocols[i]) == strlen(name) - strlen("://")) data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_plugin.c:115:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(info->protocols[i]) == strlen(name) - strlen("://")) data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_plugin.c:118:10: [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). strlen(name) - strlen("://"))) data/strongswan-5.9.1/src/libstrongswan/plugins/curl/curl_plugin.c:118:25: [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). strlen(name) - strlen("://"))) data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/ref10.c:1647:16: [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. static uint8_t equal(int8_t b, int8_t c) data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/ref10.c:1690:23: [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. cmov(t,&base[pos][0],equal(babs,1)); data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/ref10.c:1691:23: [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. cmov(t,&base[pos][1],equal(babs,2)); data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/ref10.c:1692:23: [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. cmov(t,&base[pos][2],equal(babs,3)); data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/ref10.c:1693:23: [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. cmov(t,&base[pos][3],equal(babs,4)); data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/ref10.c:1694:23: [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. cmov(t,&base[pos][4],equal(babs,5)); data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/ref10.c:1695:23: [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. cmov(t,&base[pos][5],equal(babs,6)); data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/ref10.c:1696:23: [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. cmov(t,&base[pos][6],equal(babs,7)); data/strongswan-5.9.1/src/libstrongswan/plugins/curve25519/ref10/ref10.c:1697:23: [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. cmov(t,&base[pos][7],equal(babs,8)); data/strongswan-5.9.1/src/libstrongswan/plugins/files/files_fetcher.c:55:14: [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). uri = uri + strlen("file://"); data/strongswan-5.9.1/src/libstrongswan/plugins/mysql/mysql_database.c:296:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (mysql_stmt_prepare(stmt, sql, strlen(sql))) data/strongswan-5.9.1/src/libstrongswan/plugins/mysql/mysql_database.c:339:31: [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). bind[i].buffer_length = strlen(bind[i].buffer); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_crl.c:387:7: [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. bool equal; data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_crl.c:404:9: [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 equal; data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_plugin.c:421:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (sizeof(keyname) - strlen(keyname) <= keyid.len * 2 + 1) data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_plugin.c:425: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). chunk_to_hex(keyid, keyname + strlen(keyname), FALSE); data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_x509.c:497:7: [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. bool equal; data/strongswan-5.9.1/src/libstrongswan/plugins/openssl/openssl_x509.c:518:9: [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 equal; data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_builder.c:45:14: [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). u_int len = strlen(pattern); data/strongswan-5.9.1/src/libstrongswan/plugins/pem/pem_encoder.c:140:37: [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). *encoding = chunk_alloc(5 + 2*(6 + strlen(label) + 6) + 3 + pem_chars + pem_lines); data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_cert.c:187:7: [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. bool equal; data/strongswan-5.9.1/src/libstrongswan/plugins/pgp/pgp_cert.c:207:9: [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 equal; data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_feature.c:137:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(feature->arg.custom)); data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_feature.c:142:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(feature->arg.xauth)); data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_loader.c:565:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (len + (strlen(name) + 1) >= buf_len) data/strongswan-5.9.1/src/libstrongswan/plugins/plugin_loader.c:1238:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(token); data/strongswan-5.9.1/src/libstrongswan/plugins/random/random_rng.c:53:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). got = read(this->fd, buffer + done, bytes - done); data/strongswan-5.9.1/src/libstrongswan/plugins/rdrand/rdrand_rng.c:357:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/strongswan-5.9.1/src/libstrongswan/plugins/sqlite/sqlite_database.c:404:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(count * count * 1000); data/strongswan-5.9.1/src/libstrongswan/plugins/sshkey/sshkey_builder.c:120:24: [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 (format.len > strlen(ECDSA_PREFIX) && data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:99:3: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. wcsncat(headers, hdr, countof(headers) - wcslen(headers) - 1); data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:99:44: [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). wcsncat(headers, hdr, countof(headers) - wcslen(headers) - 1); data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:102:4: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. Risk is low because the source is a constant string. wcsncat(headers, L"\r\n", countof(headers) - wcslen(headers) - 1); data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:102:49: [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). wcsncat(headers, L"\r\n", countof(headers) - wcslen(headers) - 1); data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:106:44: [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). if (!WinHttpSendRequest(request, headers, wcslen(headers), data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:214:3: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. wcsncat(path, extra, pathlen - comps.dwUrlPathLength - 1); data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:229:7: [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). if (!wcslen(user) && !wcslen(pass)) data/strongswan-5.9.1/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c:229:24: [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). if (!wcslen(user) && !wcslen(pass)) data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ac.c:1016:7: [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. bool equal; data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ac.c:1033:9: [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 equal; data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_cert.c:1804:7: [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. bool equal; data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_cert.c:1824:9: [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 equal; data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_cert.c:2116: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). chunk_create(cdp->uri, strlen(cdp->uri))))), data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_cert.c:2289:31: [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). chunk_create(uri, strlen(uri)))); data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_cert.c:2498:12: [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). strlen(policy->cps_uri)))); data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_cert.c:2507:11: [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). strlen(policy->unotice_text))))); data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_crl.c:573:7: [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. bool equal; data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_crl.c:589:9: [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 equal; data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ocsp_request.c:422:7: [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. bool equal; data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ocsp_request.c:442:9: [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 equal; data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ocsp_response.c:814:7: [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. bool equal; data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_ocsp_response.c:834:9: [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 equal; data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_pkcs10.c:196:7: [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. bool equal; data/strongswan-5.9.1/src/libstrongswan/plugins/x509/x509_pkcs10.c:216:9: [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 equal; data/strongswan-5.9.1/src/libstrongswan/processing/watcher.c:414:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(this->notify[0], buf, sizeof(buf)); data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:162:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(buf)) data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:234:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(buf)) data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:350:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(buf)) data/strongswan-5.9.1/src/libstrongswan/settings/settings.c:440:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(buf)) data/strongswan-5.9.1/src/libstrongswan/settings/settings_lexer.c:1119:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/strongswan-5.9.1/src/libstrongswan/settings/settings_lexer.c:2567:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); data/strongswan-5.9.1/src/libstrongswan/settings/settings_parser.c:808: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). # define yystrlen strlen data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:247:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). chunk_t read, data = chunk_from_chars(0x00, 0x00, 0x00, 0x00); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:252:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data(reader, 0, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:253:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(!reader->read_data(reader, 1, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:257:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data(reader, 0, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:258:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert_int_eq(read.len, 0); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:259:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(read.ptr == data.ptr); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:262:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data(reader, 1, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:263:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert_int_eq(read.len, 1); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:264:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(read.ptr == data.ptr); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:267:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data(reader, 2, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:268:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert_int_eq(read.len, 2); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:269:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(read.ptr == data.ptr + 1); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:272:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(!reader->read_data(reader, 2, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:273:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data(reader, 1, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:274:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert_int_eq(read.len, 1); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:275:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(read.ptr == data.ptr + 3); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:279:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data(reader, 0, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:280:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(!reader->read_data(reader, 1, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:287:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). chunk_t read, data = chunk_from_chars(0x00, 0x00, 0x00, 0x00); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:292:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data_end(reader, 0, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:293:47: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(!reader->read_data_end(reader, 1, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:297:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data_end(reader, 0, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:298:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert_int_eq(read.len, 0); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:299:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(read.ptr == data.ptr + data.len); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:302:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data_end(reader, 1, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:303:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert_int_eq(read.len, 1); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:305:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(read.ptr == data.ptr + data.len); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:308:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data_end(reader, 2, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:309:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert_int_eq(read.len, 2); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:311:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(read.ptr == data.ptr + data.len); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:314:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(!reader->read_data(reader, 2, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:315:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data(reader, 1, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:316:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert_int_eq(read.len, 1); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:317:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(read.ptr == data.ptr); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:321:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data(reader, 0, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:322:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(!reader->read_data(reader, 1, &read)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:333:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). chunk_t read, data; \ data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:337:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(!reader->read_data##bits(reader, &read)); \ data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:346:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(reader->read_data##bits(reader, &read)); \ data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:348:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert_int_eq(read.len, i); \ data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:349:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert((!read.ptr && !read.len) || (read.ptr == data.ptr + len)); \ data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:349:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert((!read.ptr && !read.len) || (read.ptr == data.ptr + len)); \ data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:349:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert((!read.ptr && !read.len) || (read.ptr == data.ptr + len)); \ data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_bio_reader.c:354:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(!reader->read_data##bits(reader, &read)); \ data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_chunk.c:416:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). out = chunk_to_hex(chunk_create(test[i].in, strlen(test[i].in)), NULL, data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_chunk.c:426:50: [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). out = chunk_from_hex(chunk_create(test[i].out, strlen(test[i].out)), NULL); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_chunk.c:438:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(test_prefix_colon[i].out)), NULL); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_chunk.c:483:50: [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). out = chunk_to_base64(chunk_create(test[i].in, strlen(test[i].in)), NULL); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_chunk.c:492:53: [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). out = chunk_from_base64(chunk_create(test[i].out, strlen(test[i].out)), NULL); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_chunk.c:537:50: [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). out = chunk_to_base32(chunk_create(test[i].in, strlen(test[i].in)), NULL); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:96:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = stream->read(stream, buf + tot, sizeof(buf) - tot, TRUE); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:113: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). body = end + strlen("\r\n"); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:127: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). atoi(start + strlen("Content-Length: ")), data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:132: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). type = start + strlen("Content-Type: "); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:136: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). start = end + strlen("\r\n"); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:161:43: [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). ck_assert(stream->write_all(stream, buf, strlen(buf))); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:170:48: [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). may_fail(test, stream->write_all(stream, buf, strlen(buf))); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:172:48: [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). may_fail(test, stream->write_all(stream, buf, strlen(buf))); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:176:48: [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). may_fail(test, stream->write_all(stream, buf, strlen(buf))); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:178:48: [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). may_fail(test, stream->write_all(stream, buf, strlen(buf))); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:180:48: [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). may_fail(test, stream->write_all(stream, buf, strlen(buf))); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_fetch_http.c:182:48: [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). may_fail(test, stream->write_all(stream, buf, strlen(buf))); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:99:11: [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). char buf[strlen(msg) + 1]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:101:17: [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). memset(buf, 0, strlen(msg) + 1); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:105:34: [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). ck_assert_int_eq(write(in, msg, strlen(msg)), strlen(msg)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:105:48: [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). ck_assert_int_eq(write(in, msg, strlen(msg)), strlen(msg)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:107:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert_int_eq(read(out, buf, strlen(msg) + 1), strlen(msg)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:107:34: [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). ck_assert_int_eq(read(out, buf, strlen(msg) + 1), strlen(msg)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:107:52: [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). ck_assert_int_eq(read(out, buf, strlen(msg) + 1), strlen(msg)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:132:11: [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). char buf[strlen(msg) + 1]; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:134:17: [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). memset(buf, 0, strlen(msg) + 1); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:138:34: [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). ck_assert_int_eq(write(in, msg, strlen(msg)), strlen(msg)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:138:48: [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). ck_assert_int_eq(write(in, msg, strlen(msg)), strlen(msg)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:140:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert_int_eq(read(err, buf, strlen(msg) + 1), strlen(msg)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:140:34: [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). ck_assert_int_eq(read(err, buf, strlen(msg) + 1), strlen(msg)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:140:52: [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). ck_assert_int_eq(read(err, buf, strlen(msg) + 1), strlen(msg)); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_process.c:173:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(read(out, buf, sizeof(buf)) > 0); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_signature_params.c:263:7: [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. bool equal; data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_signature_params.c:290:44: [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. ck_assert(res == params_compare_tests[_i].equal); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:40:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = stream->read(stream, buf, sizeof(buf), TRUE); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:77:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = stream->read(stream, buf, sizeof(buf), TRUE); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:112:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = stream->read(stream, buf, sizeof(buf), TRUE); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:140:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:157:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = stream->read(stream, pos, 1, TRUE); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:205:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_stream.c:232:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = streams[i]->read(streams[i], &x, 1, TRUE); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_threading.c:1051:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10000); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_threading.c:1087:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10000); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_threading.c:1251:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ck_assert(read(sv[0], buf, sizeof(buf)) == 1); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_threading.c:1373:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(5000); data/strongswan-5.9.1/src/libstrongswan/tests/suites/test_threading.c:1384:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(5000); data/strongswan-5.9.1/src/libstrongswan/tests/test_suite.c:473:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(msg, failure_buf, len - 1); data/strongswan-5.9.1/src/libstrongswan/tests/test_suite.c:490:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(msg, warning_buf, len - 1); data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:196:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return chunk_hash(chunk_create(key, strlen(key))); data/strongswan-5.9.1/src/libstrongswan/utils/backtrace.c:406:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(output); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:223:12: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). oldmask = umask(mask); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:248:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(oldmask); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:278:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buf + total, bufsize - total); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.c:962:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, hash_key + done, sizeof(hash_key) - done); data/strongswan-5.9.1/src/libstrongswan/utils/chunk.h:236:73: [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). #define chunk_from_str(str) ({char *x = (str); chunk_create((u_char*)x, strlen(x));}) data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c:45:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. int usleep(useconds_t usec) data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c:274:10: [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). total = strlen(prompt); data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c:371:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, errstr[errnum - offset], buflen); data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c:648:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #undef read data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.c:656:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, buf, count); data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.h:94:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. int usleep(useconds_t usec); data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.h:105:8: [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). len = strlen(src) + 1; data/strongswan-5.9.1/src/libstrongswan/utils/compat/windows.h:388:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define read windows_read data/strongswan-5.9.1/src/libstrongswan/utils/identification.c:448:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(x501rdns[i].name) == oid.len && data/strongswan-5.9.1/src/libstrongswan/utils/identification.c:1206:14: [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). written = strlen(buf); data/strongswan-5.9.1/src/libstrongswan/utils/identification.c:1219:14: [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). written = strlen(buf); data/strongswan-5.9.1/src/libstrongswan/utils/identification.c:1246:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). written = strlen(buf); data/strongswan-5.9.1/src/libstrongswan/utils/identification.c:1260:14: [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). written = strlen(buf); data/strongswan-5.9.1/src/libstrongswan/utils/identification.c:1428:11: [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). str += strlen(prefixes[i].str); data/strongswan-5.9.1/src/libstrongswan/utils/lexparser.c:34:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return ch->len == strlen(pattern) && strncmp(pattern, ch->ptr, ch->len) == 0; data/strongswan-5.9.1/src/libstrongswan/utils/lexparser.c:77:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t l = strlen(termination); data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.c:847:17: [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). : strlen(sarg); data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.c:854:16: [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). slen = strlen(sarg); data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.c:938:17: [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). slen = strlen(sarg); data/strongswan-5.9.1/src/libstrongswan/utils/printf_hook/printf_hook_builtin.c:944:17: [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). slen = strlen(sarg); data/strongswan-5.9.1/src/libstrongswan/utils/process.c:361:12: [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). current = strlen(buf); data/strongswan-5.9.1/src/libstrongswan/utils/process.c:379:10: [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). pos += strlen(pos); data/strongswan-5.9.1/src/libstrongswan/utils/process.c:424:14: [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). argv[i][strlen(argv[i]) - 1] == '"' && data/strongswan-5.9.1/src/libstrongswan/utils/process.c:425:44: [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). strchr(argv[i] + 1, '"') == argv[i] + strlen(argv[i]) - 1) data/strongswan-5.9.1/src/libstrongswan/utils/process.c:567:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (len == 0 || len >= sizeof(path) - strlen(exe)) data/strongswan-5.9.1/src/libstrongswan/utils/process.c:575:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. strncat(path, "\\", sizeof(path) - len++); data/strongswan-5.9.1/src/libstrongswan/utils/process.c:577:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(path, exe, sizeof(path) - len); data/strongswan-5.9.1/src/libstrongswan/utils/utils/memory.c:100:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!haystack || !needle || (l = strlen(needle)) == 0) data/strongswan-5.9.1/src/libstrongswan/utils/utils/path.c:47:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (path && strlen(path)) data/strongswan-5.9.1/src/libstrongswan/utils/utils/path.c:107:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(path) && isalpha(path[0]) && path[1] == ':') data/strongswan-5.9.1/src/libstrongswan/utils/utils/strerror.c:101:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). msg = strncpy(buf, strerror(errnum), STRERROR_BUF_LEN); data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.c:25:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(from) != strlen(to)) data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.c:25: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). if (strlen(from) != strlen(to)) data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.c:53:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = strlen(search); data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.c:54:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rlen = strlen(replace); data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.c:66:25: [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). len = (found - str) + strlen(found) + count * (rlen - slen); data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.c:70:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(str); data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.h:46:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strneq(x, prefix, strlen(prefix)); data/strongswan-5.9.1/src/libstrongswan/utils/utils/string.h:70:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strncaseeq(x, prefix, strlen(prefix)); data/strongswan-5.9.1/src/libtls/tests/suites/test_socket.c:306:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = tls->read(tls, buf, sizeof(buf), TRUE); data/strongswan-5.9.1/src/libtls/tests/suites/test_socket.c:387:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = tls->read(tls, buf, sizeof(buf), FALSE); data/strongswan-5.9.1/src/libtls/tls_prf.c:54:46: [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). seed = chunk_cata("cc", chunk_create(label, strlen(label)), seed); data/strongswan-5.9.1/src/libtls/tls_socket.c:346:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in = read(rfd, buf, sizeof(buf)); data/strongswan-5.9.1/src/libtls/tls_socket.h:49:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t (*read)(tls_socket_t *this, void *buf, size_t len, bool block); data/strongswan-5.9.1/src/libtnccs/plugins/tnc_tnccs/tnc_tnccs_manager.c:445:19: [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). *value_len = 1 + strlen(value); data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/messages/imc_imv_msg.c:195:37: [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). b64_body = chunk_create(content, strlen(content)); data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_11/tnccs_11.c:304: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). chunk_create(lang, strlen(lang))); data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/messages/ietf/pb_language_preference_msg.c:35: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). #define PB_LANG_PREFIX_LEN strlen(PB_LANG_PREFIX) data/strongswan-5.9.1/src/libtnccs/plugins/tnccs_20/tnccs_20_client.c:680:13: [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). strlen(pref_lang))); data/strongswan-5.9.1/src/libtpmtss/tpm_tss_trousers.c:643:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(fd, digest->ptr, digest->len) == digest->len; data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1419:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &digest_count, 4) != 4) data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1425:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &alg_id, 2) != 2) data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1452:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, digest->ptr, digest_len) != digest_len) data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v1.c:1460:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, digest_buf, digest_len) != digest_len) data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1334:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, digest->ptr, digest_len) != digest_len) data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1341:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &digest_count, 4) != 4) data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1347:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &alg_id, 2) != 2) data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1374:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, digest->ptr, digest_len) != digest_len) data/strongswan-5.9.1/src/libtpmtss/tpm_tss_tss2_v2.c:1382:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, digest_buf, digest_len) != digest_len) data/strongswan-5.9.1/src/manager/storage.c:56:17: [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). username_len = strlen(username); data/strongswan-5.9.1/src/manager/storage.c:57:17: [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). password_len = strlen(password); data/strongswan-5.9.1/src/manager/xml.c:158: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). .doc = xmlReadMemory(xml, strlen(xml), NULL, NULL, 0), data/strongswan-5.9.1/src/medsrv/controller/peer_controller.c:131:46: [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). blob = chunk_clone(chunk_create(public_key, strlen(public_key))); data/strongswan-5.9.1/src/medsrv/controller/peer_controller.c:214:8: [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). len = strlen(begin) + base64.len + base64.len/64 + strlen(end) + 2; data/strongswan-5.9.1/src/medsrv/controller/peer_controller.c:214:53: [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). len = strlen(begin) + base64.len + base64.len/64 + strlen(end) + 2; data/strongswan-5.9.1/src/medsrv/controller/peer_controller.c:220:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(pem, base64.ptr + i, 64); data/strongswan-5.9.1/src/medsrv/controller/peer_controller.c:221:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(pem, "\n"); data/strongswan-5.9.1/src/medsrv/controller/user_controller.c:65:46: [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). data = chunk_cata("cc", chunk_create(login, strlen(login)), data/strongswan-5.9.1/src/medsrv/controller/user_controller.c:66:31: [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). chunk_create(password, strlen(password))); data/strongswan-5.9.1/src/medsrv/controller/user_controller.c:168:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(password) < this->password_length) data/strongswan-5.9.1/src/pki/commands/acert.c:169:46: [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). chunk = chunk_from_hex(chunk_create(keyid, strlen(keyid)), NULL); data/strongswan-5.9.1/src/pki/commands/acert.c:187:45: [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). serial = chunk_from_hex(chunk_create(hex, strlen(hex)), NULL); data/strongswan-5.9.1/src/pki/commands/issue.c:413:46: [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). chunk = chunk_from_hex(chunk_create(keyid, strlen(keyid)), NULL); data/strongswan-5.9.1/src/pki/commands/issue.c:433:45: [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). serial = chunk_from_hex(chunk_create(hex, strlen(hex)), NULL); data/strongswan-5.9.1/src/pki/commands/keyid.c:189:46: [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). chunk = chunk_from_hex(chunk_create(keyid, strlen(keyid)), NULL); data/strongswan-5.9.1/src/pki/commands/print.c:148:46: [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). chunk = chunk_from_hex(chunk_create(keyid, strlen(keyid)), NULL); data/strongswan-5.9.1/src/pki/commands/pub.c:115:46: [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). chunk = chunk_from_hex(chunk_create(keyid, strlen(keyid)), NULL); data/strongswan-5.9.1/src/pki/commands/req.c:104:44: [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). challenge_password = chunk_create(arg, strlen(arg)); data/strongswan-5.9.1/src/pki/commands/req.c:145:46: [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). chunk = chunk_from_hex(chunk_create(keyid, strlen(keyid)), NULL); data/strongswan-5.9.1/src/pki/commands/self.c:336:46: [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). chunk = chunk_from_hex(chunk_create(keyid, strlen(keyid)), NULL); data/strongswan-5.9.1/src/pki/commands/self.c:369:45: [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). serial = chunk_from_hex(chunk_create(hex, strlen(hex)), NULL); data/strongswan-5.9.1/src/pki/commands/signcrl.c:216:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hex_len = strlen(arg); data/strongswan-5.9.1/src/pki/commands/signcrl.c:343:46: [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). chunk = chunk_from_hex(chunk_create(keyid, strlen(keyid)), NULL); data/strongswan-5.9.1/src/pki/pki.c:384:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (secret && strlen(secret)) data/strongswan-5.9.1/src/pool/pool.c:450: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). size_t addr_len = strlen(address_str); data/strongswan-5.9.1/src/pool/pool.c:899:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t cmd_len = strlen(command); data/strongswan-5.9.1/src/pool/pool.c:925:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(start) > 0) data/strongswan-5.9.1/src/pool/pool_attributes.c:98: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). *blob = chunk_create(value, strlen(value)); data/strongswan-5.9.1/src/pool/pool_attributes.c:102:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *blob = chunk_from_hex(chunk_create(value, strlen(value)), NULL); data/strongswan-5.9.1/src/pt-tls-client/pt-tls-client.c:116:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). chunk = chunk_from_hex(chunk_create(certid, strlen(certid)), NULL); data/strongswan-5.9.1/src/pt-tls-client/pt-tls-client.c:145:46: [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). chunk = chunk_from_hex(chunk_create(keyid, strlen(keyid)), NULL); data/strongswan-5.9.1/src/scepclient/scep.c:243:11: [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). strlen(msgType_values[msg]))); data/strongswan-5.9.1/src/scepclient/scep.c:369:10: [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). len = strlen(url) + 20 + strlen(operation) + strlen(escaped_req) + 1; data/strongswan-5.9.1/src/scepclient/scep.c:369: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). len = strlen(url) + 20 + strlen(operation) + strlen(escaped_req) + 1; data/strongswan-5.9.1/src/scepclient/scep.c:369:49: [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). len = strlen(url) + 20 + strlen(operation) + strlen(escaped_req) + 1; data/strongswan-5.9.1/src/scepclient/scep.c:387:10: [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). len = strlen(url) + 11 + strlen(operation) + 1; data/strongswan-5.9.1/src/scepclient/scep.c:387: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). len = strlen(url) + 11 + strlen(operation) + 1; data/strongswan-5.9.1/src/scepclient/scep.c:416:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(url) + 32 + strlen(operation) + msg.len + 1; data/strongswan-5.9.1/src/scepclient/scep.c:416:28: [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). len = strlen(url) + 32 + strlen(operation) + msg.len + 1; data/strongswan-5.9.1/src/scepclient/scepclient.c:732:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (optarg == NULL || strlen(optarg) != 13 || optarg[12] != 'Z') data/strongswan-5.9.1/src/scepclient/scepclient.c:744:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (optarg == NULL || strlen(optarg) != 13 || optarg[12] != 'Z') data/strongswan-5.9.1/src/scepclient/scepclient.c:803:31: [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). challengePassword.len = strlen(challenge_password_buffer) - 1; data/strongswan-5.9.1/src/scepclient/scepclient.c:813:30: [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). challengePassword.len = strlen(optarg); data/strongswan-5.9.1/src/scepclient/scepclient.c:964:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!scep_http_request(scep_url, chunk_create(ca_name, strlen(ca_name)), data/strongswan-5.9.1/src/scepclient/scepclient.c:1113:5: [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). strlen(default_distinguished_name) == n) data/strongswan-5.9.1/src/starter/confread.c:104:28: [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). entry = in_word_set(key, strlen(key)); data/strongswan-5.9.1/src/starter/confread.c:156:28: [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). entry = in_word_set(key, strlen(key)); data/strongswan-5.9.1/src/starter/confread.c:251:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (value && strlen(value) > 0 && value[0] == '%') data/strongswan-5.9.1/src/starter/confread.c:568:28: [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). entry = in_word_set(key, strlen(key)); data/strongswan-5.9.1/src/starter/invokecharon.c:101:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(200000); /* sleep for 200 ms */ data/strongswan-5.9.1/src/starter/invokecharon.c:151:17: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. while (pos && sscanf(pos, "%3s %d,", type, &level) == 2) data/strongswan-5.9.1/src/starter/invokecharon.c:155:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buf_pos += strlen(buf_pos) + 1; data/strongswan-5.9.1/src/starter/invokecharon.c:162:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buf_pos += strlen(buf_pos) + 1; data/strongswan-5.9.1/src/starter/invokecharon.c:210:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10000); data/strongswan-5.9.1/src/starter/invokecharon.c:219:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(20000); data/strongswan-5.9.1/src/starter/invokecharon.c:246:6: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(20000); /* sleep for 20 ms */ data/strongswan-5.9.1/src/starter/parser/conf_parser.c:442: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). if (!value || !strlen(value) || streq(value, "%default")) data/strongswan-5.9.1/src/starter/parser/lexer.c:1074:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/strongswan-5.9.1/src/starter/parser/lexer.c:2421:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); data/strongswan-5.9.1/src/starter/parser/parser.c:798: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). # define yystrlen strlen data/strongswan-5.9.1/src/starter/parser/parser.c:1315:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((yyvsp[-1].t) != CONF_PARSER_CONFIG_SETUP && (!(yyvsp[0].s) || !strlen((yyvsp[0].s)))) data/strongswan-5.9.1/src/starter/parser/parser.c:1370:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen((yyvsp[-2].s))) data/strongswan-5.9.1/src/starter/parser/parser.c:1386:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen((yyvsp[-1].s))) data/strongswan-5.9.1/src/starter/starterstroke.c:60:12: [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). str_len = strlen(string) + 1; data/strongswan-5.9.1/src/starter/starterstroke.c:110:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((count = stream->read(stream, buffer, sizeof(buffer)-1, TRUE)) > 0) data/strongswan-5.9.1/src/stroke/stroke.c:59:12: [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). str_len = strlen(string) + 1; data/strongswan-5.9.1/src/stroke/stroke.c:109:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((count = stream->read(stream, buffer, sizeof(buffer)-1, TRUE)) > 0) data/strongswan-5.9.1/src/stroke/stroke.c:131:37: [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). stream->write_all(stream, pass, strlen(pass)); data/strongswan-5.9.1/src/stroke/stroke.c:519:27: [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). token = in_word_set(cmd, strlen(cmd)); data/strongswan-5.9.1/src/sw-collector/sw_collector_history.c:241:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(p->version) == 0) data/strongswan-5.9.1/src/swanctl/commands/counters.c:35: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). printf("%s:\n", strlen(name) ? name : "global"); data/strongswan-5.9.1/src/swanctl/commands/load_creds.c:244:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!pwd || strlen(pwd) == 0) data/strongswan-5.9.1/src/swanctl/commands/load_creds.c:644: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). memwipe(pin, strlen(pin)); data/strongswan-5.9.1/src/swanctl/swanctl.c:41:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(swanctl_dir)) ANALYSIS SUMMARY: Hits = 2534 Lines analyzed = 588477 in approximately 16.68 seconds (35283 lines/second) Physical Source Lines of Code (SLOC) = 386086 Hits@level = [0] 2056 [1] 577 [2] 1570 [3] 136 [4] 244 [5] 7 Hits@level+ = [0+] 4590 [1+] 2534 [2+] 1957 [3+] 387 [4+] 251 [5+] 7 Hits/KSLOC@level+ = [0+] 11.8885 [1+] 6.5633 [2+] 5.06882 [3+] 1.00237 [4+] 0.650114 [5+] 0.0181307 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.