[APR-6542]libstrongswan: fix prevent issue (CID: 330540)
authorSeungah Lim <sss.lim@samsung.com>
Thu, 17 Dec 2020 02:40:34 +0000 (11:40 +0900)
committerI am Robot <robot_ap@samsung.com>
Mon, 21 Dec 2020 16:26:59 +0000 (01:26 +0900)
commit6924cefc3a18420ebed0ae894f5afb257bfef821
tree1ba60a37be4d6b885b1d1afee4514a28ddbd5fb8
parent42555e6c657429e6ae94200e170e9e67bf39b4e0
[APR-6542]libstrongswan: fix prevent issue (CID: 330540)

[Issue] S5E9815-5808
[Problem] CID 330540 Buffer not null terminated.
[Cause] buffer size warning : Calling strncpy with a maximun size
    argument of 16 bytes on destination array this->if_name of size
    might leave the destination string unterminated.
[Solution] fix prevent issue by updating strncpy.

Change-Id: I0735a44c82672d4903dc833676cc4bc02bb3f91a
Signed-off-by: Seungah Lim <sss.lim@samsung.com>
src/libstrongswan/networking/tun_device.c