mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-03 05:23:38 +00:00
Replace unsafe strcpy calls with ogs_cpystrn in both ogs_pfcp_dev_add() and ogs_pfcp_subnet_add() to ensure proper length checking. This change prevents potential buffer overflows when handling ifname and dnn fields, which could otherwise lead to unintended overwrites (e.g., fd and num_of_range).