Check if path isn't too long before copying to sock path 00/170700/4
authorZofia Grzelewska <z.abramowska@samsung.com>
Wed, 21 Feb 2018 12:03:50 +0000 (13:03 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 23 Feb 2018 08:33:08 +0000 (08:33 +0000)
commita616882a90ed5879cfec9ad4ded31c1c867e69b8
treecf7ad16ef6b628b29b00ca01aa98483743ea0f24
parent52c94593098c01314c673a5edf9d1e256aecc689
Check if path isn't too long before copying to sock path

This fixes possible buffer overflow, when path is copied to sun_path
without size check.

Change-Id: Ib63d885d3eea3bc8441354d8143acba47276eb1b
src/ipc/sock.cpp