Parent: 9e997ed2f528ff50e7394b33447a91937e939cf3
Author: ERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2017-10-05 16:40:00
Tree: 48eeea5c7839acde512bf68dec9e59635560cd69
tools/btproxy: Fix buffer overflow with unix socket btproyx with a unix socket has the similar problem as btmon as below. So this patch fixes btproxy by the similar way as btmon. *** strcpy_chk: buffer overflow detected ***: program terminated at 0x4C3085C: ??? (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x4C34E46: __strcpy_chk (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x401B74: strcpy (string3.h:110) by 0x401B74: open_unix (btproxy.c:625) by 0x401B74: main (btproxy.c:901)
Diffstat
| M | tools/btproxy.c | | | 20 | +++++++++++++++++- - - |
1 files changed, 17 insertions(+), 3 deletions(-)