sdp: Fix buffer overflow
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 28 Sep 2018 13:08:32 +0000 (16:08 +0300)
committerhimanshu <h.himanshu@samsung.com>
Tue, 14 Jan 2020 08:53:35 +0000 (14:23 +0530)
commit58a2b2dd86c99e10cbab8002c7e4a86fa4e01c60
tree93f7baba1e52ccf9f631c99492bdfe33bbca3420
parent5a1540ace9f169ac2e42a066edb3b319a142acbb
sdp: Fix buffer overflow

sdp_append_buf shall check if there is enough space to store the data
before copying it.

An independent security researcher, Julian Rauchberger, has reported
this vulnerability to Beyond Security’s SecuriTeam Secure Disclosure
program.

Change-Id: I15d089ecda58b507776767f595c3006cd3f8b90c
Signed-off-by: himanshu <h.himanshu@samsung.com>
lib/sdp.c