mirror of
				https://github.com/open5gs/open5gs.git
				synced 2025-11-04 05:53:18 +00:00 
			
		
		
		
	Fix stack overflow in ogs_pfcp_extract_node_id()
This commit is contained in:
		@@ -194,7 +194,7 @@ ogs_pfcp_extract_node_id(ogs_pfcp_message_t *message,
 | 
			
		||||
        goto done;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    memcpy(node_id, tlv_node_id->data, tlv_node_id->len);
 | 
			
		||||
	memcpy(node_id, tlv_node_id->data, ogs_min(tlv_node_id->len, sizeof(ogs_pfcp_node_id_t)));
 | 
			
		||||
 | 
			
		||||
    if (node_id->type != OGS_PFCP_NODE_ID_IPV4 &&
 | 
			
		||||
        node_id->type != OGS_PFCP_NODE_ID_IPV6 &&
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user