text stringlengths 79 3.72M |
|---|
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "positioning_method_mdt.h"
char* OpenAPI_positioning_method_mdt_ToString(OpenAPI_positioning_method_mdt_e positioning_method_mdt)
{
... |
<vulnerable_code> int active_time,
char *af_instance_id,
int reference_id,
char *validity_time
)
{
OpenAPI_pp_active_time_t *pp_active_time_local_var = OpenAPI_malloc(sizeof(OpenAPI_pp_active_time_t));
pp_active_time_local_var->af_instance_id = af_instance_id;
pp_active_time_local_var->re... |
<vulnerable_code> OpenAPI_ec_restriction_t *ec_restriction,
OpenAPI_acs_info_rm_t *acs_info,
char *stn_sr,
OpenAPI_lcs_privacy_t *lcs_privacy
)
{
OpenAPI_pp_data_t *pp_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_pp_data_t));
pp_data_local_var->acs_info = acs_info;
pp_data_local_var->st... |
<vulnerable_code>OpenAPI_pp_dl_packet_count_ext_t *OpenAPI_pp_dl_packet_count_ext_create(
char *af_instance_id,
int reference_id,
char *validity_time
)
{
OpenAPI_pp_dl_packet_count_ext_t *pp_dl_packet_count_ext_local_var = OpenAPI_malloc(sizeof(OpenAPI_pp_dl_packet_count_ext_t));
pp_dl_packet_co... |
<vulnerable_code> int maximum_latency,
char *af_instance_id,
int reference_id,
char *validity_time
)
{
OpenAPI_pp_maximum_latency_t *pp_maximum_latency_local_var = OpenAPI_malloc(sizeof(OpenAPI_pp_maximum_latency_t));
pp_maximum_latency_local_var->af_instance_id = af_instance_id;
pp_maxim... |
<vulnerable_code> int maximum_response_time,
char *af_instance_id,
int reference_id,
char *validity_time
)
{
OpenAPI_pp_maximum_response_time_t *pp_maximum_response_time_local_var = OpenAPI_malloc(sizeof(OpenAPI_pp_maximum_response_time_t));
pp_maximum_response_time_local_var->af_instance_id ... |
<vulnerable_code> int subs_reg_timer,
char *af_instance_id,
int reference_id,
char *validity_time
)
{
OpenAPI_pp_subs_reg_timer_t *pp_subs_reg_timer_local_var = OpenAPI_malloc(sizeof(OpenAPI_pp_subs_reg_timer_t));
pp_subs_reg_timer_local_var->af_instance_id = af_instance_id;
pp_subs_reg_t... |
<vulnerable_code>#include "preferred_search.h"
OpenAPI_preferred_search_t *OpenAPI_preferred_search_create(
int preferred_tai_match_ind
)
{
OpenAPI_preferred_search_t *preferred_search_local_var = OpenAPI_malloc(sizeof(OpenAPI_preferred_search_t));
return NULL;
}
preferred_search_local_var-... |
<vulnerable_code>
OpenAPI_presence_info_t *OpenAPI_presence_info_create(
char *pra_id,
OpenAPI_presence_state_e presence_state,
OpenAPI_list_t *tracking_area_list,
OpenAPI_list_t *ecgi_list,
return NULL;
}
presence_info_local_var->pra_id = pra_id;
presence_info_local_var->presence_st... |
<vulnerable_code>
OpenAPI_presence_info_rm_t *OpenAPI_presence_info_rm_create(
char *pra_id,
OpenAPI_presence_state_e presence_state,
OpenAPI_list_t *tracking_area_list,
OpenAPI_list_t *ecgi_list,
return NULL;
}
presence_info_rm_local_var->pra_id = pra_id;
presence_info_rm_local_var-... |
<vulnerable_code> char *instance,
char *cause,
OpenAPI_list_t *invalid_params,
char *supported_features
)
{
OpenAPI_problem_details_t *problem_details_local_var = OpenAPI_malloc(sizeof(OpenAPI_problem_details_t));
problem_details_local_var->cause = cause;
problem_details_local_var->invali... |
<vulnerable_code> char *instance,
char *cause,
OpenAPI_list_t *invalid_params,
char *supported_features
)
{
OpenAPI_problem_details_2_t *problem_details_2_local_var = OpenAPI_malloc(sizeof(OpenAPI_problem_details_2_t));
problem_details_2_local_var->cause = cause;
problem_details_2_local_v... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "problem_details_add_info.h"
OpenAPI_problem_details_add_info_t *OpenAPI_problem_details_add_info_create(
int remote_error
)... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "protection_result.h"
char* OpenAPI_protection_result_ToString(OpenAPI_protection_result_e protection_result)
{
const char *prot... |
<vulnerable_code> OpenAPI_trace_data_t *trace_data,
OpenAPI_sms_management_subscription_data_t *sms_mng_data,
OpenAPI_lcs_privacy_data_t *lcs_privacy_data,
OpenAPI_lcs_mo_data_t *lcs_mo_data
)
{
OpenAPI_provisioned_data_sets_t *provisioned_data_sets_local_var = OpenAPI_malloc(sizeof(OpenAPI_provi... |
<vulnerable_code>
OpenAPI_qos_flow_item_t *OpenAPI_qos_flow_item_create(
int qfi,
OpenAPI_cause_e cause
)
{
OpenAPI_qos_flow_item_t *qos_flow_item_local_var = OpenAPI_malloc(sizeof(OpenAPI_qos_flow_item_t));
}
qos_flow_item_local_var->qfi = qfi;
qos_flow_item_local_var->cause = cause;
r... |
<vulnerable_code>
OpenAPI_qos_flow_notify_item_t *OpenAPI_qos_flow_notify_item_create(
int qfi,
OpenAPI_notification_cause_e notification_cause
)
{
OpenAPI_qos_flow_notify_item_t *qos_flow_notify_item_local_var = OpenAPI_malloc(sizeof(OpenAPI_qos_flow_notify_item_t));
}
qos_flow_notify_item_loca... |
<vulnerable_code> OpenAPI_dynamic5_qi_t *dynamic5_qi,
OpenAPI_arp_t *arp,
OpenAPI_gbr_qos_flow_information_t *gbr_qos_flow_info,
OpenAPI_reflective_qo_s_attribute_t *rqa,
OpenAPI_additional_qos_flow_info_t *additional_qos_flow_info
)
{
OpenAPI_qos_flow_profile_t *qos_flow_profile_local_var = ... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "qos_monitoring_info.h"
OpenAPI_qos_monitoring_info_t *OpenAPI_qos_monitoring_info_create(
int qos_monitoring_ind
)
{
Op... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "qos_monitoring_req.h"
char* OpenAPI_qos_monitoring_req_ToString(OpenAPI_qos_monitoring_req_e qos_monitoring_req)
{
const char *... |
<vulnerable_code>
char* OpenAPI_rat_type_ToString(OpenAPI_rat_type_e rat_type)
{
const char *rat_typeArray[] = { "NULL", "NR", "EUTRA", "WLAN", "VIRTUAL", "NBIOT", "WIRELINE", "WIRELINE_CABLE", "WIRELINE_DSL", "WIRELINE_PON", "LTE_M", "NR_U", "EUTRA_U", "TRUSTED_N3GA", "TRUSTED_WLAN", "UTRA", "GERA" };
size_t ... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "reachability_for_sms_configuration.h"
OpenAPI_reachability_for_sms_configuration_t *OpenAPI_reachability_for_sms_configuration_crea... |
<vulnerable_code>#include <stdio.h>
#include "reflective_qo_s_attribute.h"
OpenAPI_reflective_qo_s_attribute_t *OpenAPI_reflective_qo_s_attribute_create(
)
{
OpenAPI_reflective_qo_s_attribute_t *reflective_qo_s_attribute_local_var = OpenAPI_malloc(sizeof(OpenAPI_reflective_qo_s_attribute_t));
if (!reflecti... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "registration_data_set_name.h"
OpenAPI_registration_data_set_name_t *OpenAPI_registration_data_set_name_create(
)
{
OpenAPI_... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "registration_data_sets.h"
OpenAPI_registration_data_sets_t *OpenAPI_registration_data_sets_create(
OpenAPI_amf3_gpp_access_regi... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "registration_location_info.h"
OpenAPI_registration_location_info_t *OpenAPI_registration_location_info_create(
char *amf_instan... |
<vulnerable_code> char *ue_time_zone,
OpenAPI_user_location_t *add_ue_location,
OpenAPI_list_t *secondary_rat_usage_report,
OpenAPI_list_t *secondary_rat_usage_info
)
{
OpenAPI_release_data_t *release_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_release_data_t));
release_data_local_var->add... |
<vulnerable_code>
OpenAPI_released_data_t *OpenAPI_released_data_create(
OpenAPI_small_data_rate_status_t *small_data_rate_status,
OpenAPI_apn_rate_status_t *apn_rate_status
)
{
OpenAPI_released_data_t *released_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_released_data_t));
}
released_data_lo... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "report_amount_mdt.h"
char* OpenAPI_report_amount_mdt_ToString(OpenAPI_report_amount_mdt_e report_amount_mdt)
{
const char *repo... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "report_interval_mdt.h"
char* OpenAPI_report_interval_mdt_ToString(OpenAPI_report_interval_mdt_e report_interval_mdt)
{
const ch... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "report_interval_nr_mdt.h"
char* OpenAPI_report_interval_nr_mdt_ToString(OpenAPI_report_interval_nr_mdt_e report_interval_nr_mdt)
{
... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "report_type_mdt.h"
char* OpenAPI_report_type_mdt_ToString(OpenAPI_report_type_mdt_e report_type_mdt)
{
const char *report_type_... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "reporting_trigger.h"
char* OpenAPI_reporting_trigger_ToString(OpenAPI_reporting_trigger_e reporting_trigger)
{
const char *repo... |
<vulnerable_code>
char* OpenAPI_request_indication_ToString(OpenAPI_request_indication_e request_indication)
{
const char *request_indicationArray[] = { "NULL", "UE_REQ_PDU_SES_MOD", "UE_REQ_PDU_SES_REL", "PDU_SES_MOB", "NW_REQ_PDU_SES_AUTH", "NW_REQ_PDU_SES_MOD", "NW_REQ_PDU_SES_REL", "EBI_ASSIGNMENT_REQ" };
... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "retrieve_data.h"
OpenAPI_retrieve_data_t *OpenAPI_retrieve_data_create(
int small_data_rate_status_req
)
{
OpenAPI_retr... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "retrieved_data.h"
OpenAPI_retrieved_data_t *OpenAPI_retrieved_data_create(
OpenAPI_small_data_rate_status_t *small_data_rate_st... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "roaming_indication.h"
char* OpenAPI_roaming_indication_ToString(OpenAPI_roaming_indication_e roaming_indication)
{
const char *... |
<vulnerable_code>#include <stdio.h>
#include "roaming_odb.h"
OpenAPI_roaming_odb_t *OpenAPI_roaming_odb_create(
)
{
OpenAPI_roaming_odb_t *roaming_odb_local_var = OpenAPI_malloc(sizeof(OpenAPI_roaming_odb_t));
if (!roaming_odb_local_var) {
return NULL;
}
return roaming_odb_local_var;
}
vo... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "scp_domain_cond.h"
OpenAPI_scp_domain_cond_t *OpenAPI_scp_domain_cond_create(
OpenAPI_list_t *scp_domains
)
{
OpenAPI_s... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "scp_domain_info.h"
OpenAPI_scp_domain_info_t *OpenAPI_scp_domain_info_create(
char *scp_fqdn,
OpenAPI_list_t *scp_ip_end_po... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "scp_info.h"
OpenAPI_scp_info_t *OpenAPI_scp_info_create(
OpenAPI_list_t* scp_domain_info_list,
char *scp_prefix,
OpenAP... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "sd_range.h"
OpenAPI_sd_range_t *OpenAPI_sd_range_create(
char *start,
char *end
)
{
OpenAPI_sd_range_t *sd_range_lo... |
<vulnerable_code> char *subscription_id,
OpenAPI_plmn_id_t *plmn_id,
int immediate_report,
OpenAPI_subscription_data_sets_t *report
)
{
OpenAPI_sdm_subscription_t *sdm_subscription_local_var = OpenAPI_malloc(sizeof(OpenAPI_sdm_subscription_t));
sdm_subscription_local_var->plmn_id = plmn_id;
... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "security_result.h"
OpenAPI_security_result_t *OpenAPI_security_result_create(
OpenAPI_protection_result_e integrity_protection_... |
<vulnerable_code>
OpenAPI_send_mo_data_req_data_t *OpenAPI_send_mo_data_req_data_create(
OpenAPI_ref_to_binary_data_t *mo_data,
OpenAPI_mo_exception_data_flag_t *mo_exp_data_ind,
OpenAPI_mo_exp_data_counter_t *mo_exp_data_counter,
OpenAPI_user_location_t *ue_location
)
return NULL;
}
... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "sensor_measurement.h"
char* OpenAPI_sensor_measurement_ToString(OpenAPI_sensor_measurement_e sensor_measurement)
{
const char *... |
<vulnerable_code> OpenAPI_list_t *allowed_geographic_area,
OpenAPI_privacy_check_related_action_e privacy_check_related_action,
OpenAPI_code_word_ind_e code_word_ind,
OpenAPI_valid_time_period_t *valid_time_period
)
{
OpenAPI_service_type_unrelated_class_t *service_type_unrelated_class_local_var ... |
<vulnerable_code> OpenAPI_snssai_t *single_nssai,
OpenAPI_list_t* dnn_configurations,
OpenAPI_list_t *internal_group_ids,
OpenAPI_list_t* vn_group_info,
OpenAPI_list_t* shared_vn_group_data_ids,
char *shared_dnn_configurations_id,
OpenAPI_odb_packet_services_t *odb_packet_services,
OpenAP... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "slice_info_for_pdu_session.h"
OpenAPI_slice_info_for_pdu_session_t *OpenAPI_slice_info_for_pdu_session_create(
OpenAPI_snssai_t... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "slice_info_for_registration.h"
OpenAPI_slice_info_for_registration_t *OpenAPI_slice_info_for_registration_create(
OpenAPI_list_... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "slice_info_for_ue_configuration_update.h"
OpenAPI_slice_info_for_ue_configuration_update_t *OpenAPI_slice_info_for_ue_configuration... |
<vulnerable_code> OpenAPI_list_t *qos_flows_list,
char *h_smf_instance_id,
char *smf_instance_id,
int enable_pause_charging,
char *ue_ipv4_address,
char *ue_ipv6_prefix,
char *home_provided_charging_id,
OpenAPI_charging_information_t *charging_info,
OpenAPI_roaming_charging_profile_t ... |
<vulnerable_code> char *gpsi,
int pdu_session_id,
char *dnn,
OpenAPI_snssai_t *s_nssai,
OpenAPI_snssai_t *hplmn_snssai,
char *serving_nf_id,
OpenAPI_user_location_t *add_ue_location,
char *sm_context_status_uri,
char *h_smf_uri,
char *smf_uri,
OpenAPI_list_t *additional_hsmf_u... |
<vulnerable_code>#include "sm_context_create_error.h"
OpenAPI_sm_context_create_error_t *OpenAPI_sm_context_create_error_create(
OpenAPI_problem_details_t *error,
OpenAPI_ref_to_binary_data_t *n1_sm_msg,
char *recovery_time
)
{
}
sm_context_create_error_local_var->error = error;
sm_context_... |
<vulnerable_code> char *gpsi,
char *smf_service_instance_id,
char *recovery_time,
char *supported_features
)
{
OpenAPI_sm_context_created_data_t *sm_context_created_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_sm_context_created_data_t));
sm_context_created_data_local_var->smf_service_insta... |
<vulnerable_code> OpenAPI_small_data_rate_status_t *small_data_rate_status,
OpenAPI_apn_rate_status_t *apn_rate_status,
int ddn_failure_status,
char *new_smf_id,
char *new_smf_set_id,
char *old_smf_id,
sm_context_status_notification_local_var->small_data_rate_status = small_data_rate_status;
... |
<vulnerable_code> OpenAPI_list_t *backup_amf_info,
OpenAPI_access_type_e an_type,
OpenAPI_access_type_e additional_an_type,
OpenAPI_rat_type_e rat_type,
OpenAPI_presence_state_e presence_in_ladn,
OpenAPI_user_location_t *ue_location,
int ma_request_ind,
OpenAPI_exemption_ind_t *exemption_... |
<vulnerable_code>#include "sm_context_update_error.h"
OpenAPI_sm_context_update_error_t *OpenAPI_sm_context_update_error_create(
OpenAPI_problem_details_t *error,
OpenAPI_ref_to_binary_data_t *n1_sm_msg,
OpenAPI_ref_to_binary_data_t *n2_sm_info,
OpenAPI_n2_sm_info_type_e n2_sm_info_type,
return... |
<vulnerable_code> int ma_accepted_ind,
char *supported_features,
char forwarding_f_teid,
OpenAPI_list_t *forwarding_bearer_contexts
)
{
OpenAPI_sm_context_updated_data_t *sm_context_updated_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_sm_context_updated_data_t));
sm_context_updated_data_loc... |
<vulnerable_code> OpenAPI_list_t *tai_range_list,
char *pgw_fqdn,
OpenAPI_list_t *access_type,
int priority
)
{
OpenAPI_smf_info_t *smf_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_smf_info_t));
smf_info_local_var->pgw_fqdn = pgw_fqdn;
smf_info_local_var->access_type = access_type;
... |
<vulnerable_code> int epdg_ind,
char *dereg_callback_uri,
OpenAPI_registration_reason_t *registration_reason,
char *registration_time
)
{
OpenAPI_smf_registration_t *smf_registration_local_var = OpenAPI_malloc(sizeof(OpenAPI_smf_registration_t));
smf_registration_local_var->dereg_callback_uri... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "smsc_data.h"
OpenAPI_smsc_data_t *OpenAPI_smsc_data_create(
char *smsc_map_address,
OpenAPI_network_node_diameter_address_t... |
<vulnerable_code> OpenAPI_plmn_id_t *plmn_id,
char *smsf_map_address,
OpenAPI_network_node_diameter_address_t *smsf_diameter_address,
char *registration_time
)
{
OpenAPI_smsf_registration_t *smsf_registration_local_var = OpenAPI_malloc(sizeof(OpenAPI_smsf_registration_t));
smsf_registration_l... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "snssai_extension.h"
OpenAPI_snssai_extension_t *OpenAPI_snssai_extension_create(
OpenAPI_list_t *sd_ranges,
int wildcard_sd... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "subscribed_snssai.h"
OpenAPI_subscribed_snssai_t *OpenAPI_subscribed_snssai_create(
OpenAPI_snssai_t *subscribed_snssai,
in... |
<vulnerable_code> OpenAPI_nf_type_e req_nf_type,
char *req_nf_fqdn,
OpenAPI_list_t *req_snssais,
OpenAPI_list_t *req_plmn_list
)
{
OpenAPI_subscription_data_t *subscription_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_subscription_data_t));
subscription_data_local_var->req_nf_type = req_nf_... |
<vulnerable_code>OpenAPI_subscription_data_sets_t *OpenAPI_subscription_data_sets_create(
OpenAPI_access_and_mobility_subscription_data_t *am_data,
OpenAPI_smf_selection_subscription_data_t *smf_sel_data,
OpenAPI_ue_context_in_smf_data_t *uec_smf_data,
OpenAPI_ue_context_in_smsf_data_t *uec_smsf_data,
... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "tac_info.h"
OpenAPI_tac_info_t *OpenAPI_tac_info_create(
OpenAPI_list_t *tac_list
)
{
OpenAPI_tac_info_t *tac_info_loca... |
<vulnerable_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "tmbr.h"
OpenAPI_tmbr_t *OpenAPI_tmbr_create(
char *uplink,
char *downlink
)
{
OpenAPI_tmbr_t *tmbr_local_var = OpenAPI_malloc(sizeof(OpenAPI_tmbr_t));
if (!tmbr_local_var) {
return NULL;
}
tmbr_lo... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "tnap_id.h"
OpenAPI_tnap_id_t *OpenAPI_tnap_id_create(
char *ss_id,
char *bss_id,
char civic_address
)
{
OpenAPI... |
<vulnerable_code>
OpenAPI_trace_data_t *OpenAPI_trace_data_create(
char *trace_ref,
OpenAPI_trace_depth_t *trace_depth,
char *ne_type_list,
char *event_list,
char *collection_entity_ipv4_addr,
}
OpenAPI_lnode_t *node;
ogs_free(trace_data->trace_ref);
OpenAPI_trace_depth_free(trace_da... |
<vulnerable_code>#include <stdio.h>
#include "trace_depth.h"
OpenAPI_trace_depth_t *OpenAPI_trace_depth_create(
)
{
OpenAPI_trace_depth_t *trace_depth_local_var = OpenAPI_malloc(sizeof(OpenAPI_trace_depth_t));
if (!trace_depth_local_var) {
return NULL;
}
return trace_depth_local_var;
}
vo... |
<vulnerable_code>
OpenAPI_transfer_mo_data_req_data_t *OpenAPI_transfer_mo_data_req_data_create(
OpenAPI_ref_to_binary_data_t *mo_data,
OpenAPI_mo_exception_data_flag_t *mo_exp_data_ind,
OpenAPI_mo_exp_data_counter_t *mo_exp_data_counter,
OpenAPI_user_location_t *ue_location
)
return NULL;
... |
<vulnerable_code> char *cause,
OpenAPI_list_t *invalid_params,
char *supported_features,
int max_waiting_time
)
{
transfer_mt_data_error_local_var->cause = cause;
transfer_mt_data_error_local_var->invalid_params = invalid_params;
transfer_mt_data_error_local_var->supported_features = supp... |
<vulnerable_code>#include <stdio.h>
#include "transport_protocol.h"
OpenAPI_transport_protocol_t *OpenAPI_transport_protocol_create(
)
{
OpenAPI_transport_protocol_t *transport_protocol_local_var = OpenAPI_malloc(sizeof(OpenAPI_transport_protocol_t));
if (!transport_protocol_local_var) {
return NUL... |
<vulnerable_code> OpenAPI_trigger_category_t *trigger_category,
int time_limit,
int volume_limit,
long volume_limit64,
int max_number_ofccc
)
{<commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
OpenAPI_trigger_category_t *trigger_category,
... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "twap_id.h"
OpenAPI_twap_id_t *OpenAPI_twap_id_create(
char *ss_id,
char *bss_id,
char civic_address
)
{
OpenAPI... |
<vulnerable_code>
OpenAPI_udsf_info_t *OpenAPI_udsf_info_create(
char *group_id,
OpenAPI_list_t *supi_ranges
)
{
OpenAPI_udsf_info_t *udsf_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_udsf_info_t));
}
udsf_info_local_var->group_id = group_id;
udsf_info_local_var->supi_ranges = supi_ranges;... |
<vulnerable_code>#include <stdio.h>
#include "ue_auth.h"
OpenAPI_ue_auth_t *OpenAPI_ue_auth_create(
)
{
OpenAPI_ue_auth_t *ue_auth_local_var = OpenAPI_malloc(sizeof(OpenAPI_ue_auth_t));
if (!ue_auth_local_var) {
return NULL;
}
return ue_auth_local_var;
}
void OpenAPI_ue_auth_free(OpenAPI_... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "ue_context_in_amf_data.h"
OpenAPI_ue_context_in_amf_data_t *OpenAPI_ue_context_in_amf_data_create(
OpenAPI_eps_interworking_inf... |
<vulnerable_code>#include "unrelated_class.h"
OpenAPI_unrelated_class_t *OpenAPI_unrelated_class_create(
OpenAPI_non_external_unrelated_class_t *non_external_unrelated_class,
OpenAPI_external_unrelated_class_t *external_unrelated_class,
OpenAPI_list_t *service_type_unrelated_classes
)
if (!unrelate... |
<vulnerable_code>#include <stdio.h>
#include "up_confidentiality.h"
OpenAPI_up_confidentiality_t *OpenAPI_up_confidentiality_create(
)
{
OpenAPI_up_confidentiality_t *up_confidentiality_local_var = OpenAPI_malloc(sizeof(OpenAPI_up_confidentiality_t));
if (!up_confidentiality_local_var) {
return NUL... |
<vulnerable_code>#include <stdio.h>
#include "up_integrity.h"
OpenAPI_up_integrity_t *OpenAPI_up_integrity_create(
)
{
OpenAPI_up_integrity_t *up_integrity_local_var = OpenAPI_malloc(sizeof(OpenAPI_up_integrity_t));
if (!up_integrity_local_var) {
return NULL;
}
return up_integrity_local_va... |
<vulnerable_code>#include "up_security.h"
OpenAPI_up_security_t *OpenAPI_up_security_create(
OpenAPI_up_integrity_t *up_integr,
OpenAPI_up_confidentiality_t *up_confid
)
{
OpenAPI_up_security_t *up_security_local_var = OpenAPI_malloc(sizeof(OpenAPI_up_security_t));
return;
}
OpenAPI_lno... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "up_security_info.h"
OpenAPI_up_security_info_t *OpenAPI_up_security_info_create(
OpenAPI_up_security_t *up_security,
OpenAP... |
<vulnerable_code> OpenAPI_tngf_info_t *tngf_info,
OpenAPI_twif_info_t *twif_info,
int priority,
int redundant_gtpu
)
{
OpenAPI_upf_info_t *upf_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_upf_info_t));
upf_info_local_var->twif_info = twif_info;
upf_info_local_var->priority = priority;
... |
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "v2x_subscription_data.h"
OpenAPI_v2x_subscription_data_t *OpenAPI_v2x_subscription_data_create(
OpenAPI_nr_v2x_auth_t *nr_v2x_s... |
<vulnerable_code> OpenAPI_list_t *dnai_list,
OpenAPI_n4_information_t *n4_info,
OpenAPI_n4_information_t *n4_info_ext1,
OpenAPI_n4_information_t *n4_info_ext2
)
{
OpenAPI_vsmf_update_data_t *vsmf_update_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_vsmf_update_data_t));
vsmf_update_data_loca... |
<vulnerable_code>#include "ogs-sbi.h"
#include "ogs-app.h"
static ogs_sbi_nf_instance_t *find_or_discover_nf_instance(
bool *nrf, bool *nf,
ogs_sbi_xact_t *xact, ogs_fsm_handler_t nf_state_registered)
{
ogs_sbi_object_t *sbi_object = NULL;
ogs_assert(nrf);
ogs_assert(nf);
ogs_assert(x... |
<vulnerable_code>#include "nnrf-handler.h"
#include "namf-handler.h"
#include "nsmf-handler.h"
#include "nas-security.h"
void amf_state_initial(ogs_fsm_t *s, amf_event_t *e)
SWITCH(sbi_message.h.service.name)
CASE(OGS_SBI_SERVICE_NAME_NUDM_SDM)
api_version = OGS_SBI_API_V2;
bre... |
<vulnerable_code> break;
}
ogs_assert(num <= OGS_MAX_NUM_OF_HOSTNAME);
hostname[num++] =
ogs_yaml_iter_value(&hostname_iter);
... |
<vulnerable_code>#include "event.h"
#include "context.h"
#define EVENT_POOL 32 /* FIXME : 32 */
static OGS_POOL(pool, amf_event_t);
void amf_event_init(void)<commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code>
#include "event.h"
#include "context.h"
static OGS_POOL(poo... |
<vulnerable_code>
ogs_pkbuf_t *gmm_build_registration_accept(amf_ue_t *amf_ue)
{
int i;
int served_tai_index = 0;
ogs_pkbuf_t *pkbuf = NULL;
®istration_accept->guti;
ogs_nas_5gs_mobile_identity_guti_t mobile_identity_guti;
ogs_nas_nssai_t *allowed_nssai = ®istration_accept->allowed_ns... |
<vulnerable_code> }
ogs_debug(" OLD TAI[PLMN_ID:%06x,TAC:%d]",
ogs_plmn_id_hexdump(&amf_ue->tai.plmn_id), amf_ue->tai.tac.v);
ogs_debug(" OLD NR_CGI[PLMN_ID:%06x,CELL_ID:0x%llx]",
ogs_plmn_id_hexdump(&amf_ue->nr_cgi.plmn_id),
(long long)amf_ue->nr_cgi.cell_id);
... |
<vulnerable_code> break;
}
amf_nudm_sdm_handle_provisioned(amf_ue, sbi_message);
break;
DEFAULT
rv = amf_npcf_am_policy_control_handle_create(
amf_ue, sbi_message);
if (rv != OGS_OK) ... |
<vulnerable_code> ogs_assert(amf_ue->suci);
AuthenticationInfo.supi_or_suci = amf_ue->suci;
AuthenticationInfo.serving_network_name =
ogs_serving_network_name_from_plmn_id(&amf_ue->tai.plmn_id);
if (auts) {
memset(&ResynchronizationInfo, 0, sizeof(ResynchronizationInfo));<commit_title>[P... |
<vulnerable_code> ogs_timer_start(nf_instance->t_registration_interval,
ogs_app()->time.message.sbi.nf_register_interval);
ogs_nnrf_nfm_send_nf_register(nf_instance);
break;
case OGS_FSM_EXIT_SIG:
ogs_timer_start(nf_instance->t_registration_interval,
... |
<vulnerable_code> }
if (allowed_nssai) {
int i, j;
ogs_assert(amf_ue);
ie = CALLOC(1, sizeof(NGAP_DownlinkNASTransport_IEs_t));
AllowedNSSAI = &ie->value.choice.AllowedNSSAI;
for (i = 0; i < amf_self()->num_of_plmn_support; i++) {
if (memcmp(&amf_ue->tai.pl... |
<vulnerable_code> bplmn_list[j].num_of_s_nssai = 0;
k < BroadcastPLMNItem->tAISliceSupportList.list.count &&
gnb->supported_ta_list[i].bplmn_list[j].num_of_s_nssai <
OGS_MAX_NUM_OF_S_NSSAI;
k++) {
... |
<vulnerable_code> for (i = 0; i < gnb->num_of_supported_ta_list; i++) {
for (j = 0; j < gnb->supported_ta_list[i].num_of_bplmn_list; j++) {
if (memcmp(&gnb->supported_ta_list[i].bplmn_list[j].plmn_id,
&amf_ue->tai.plmn_id, OGS_PLMN_ID_LEN) == 0 &&
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.