]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix potential buffer overflow
authorYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Fri, 16 Dec 2016 07:03:17 +0000 (15:03 +0800)
committerYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Fri, 16 Dec 2016 07:03:17 +0000 (15:03 +0800)
commitc1aae140c8481dd39e40df8159c3fceefc74f1a7
treed362c5869025ad771f30ae15b2b832d052d490eb
parent8d7d5ae3ff601153cfe6724cceb0fe767557344d
client: fix potential buffer overflow

Trace::peek_string try to fill char *buf without any length check.
I think string buf is the better way to handle it.

Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
src/client/Trace.cc
src/client/Trace.h