]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common,tools: make sure the destination buffer can handle the size of the string 29316/head
authorsongweibin <song.weibin@zte.com.cn>
Thu, 25 Jul 2019 11:44:08 +0000 (19:44 +0800)
committersongweibin <song.weibin@zte.com.cn>
Fri, 26 Jul 2019 06:27:02 +0000 (14:27 +0800)
commit5e8c412e63d6a86aa4846efe4cceff52ca8f16d5
tree9a57c6d0760fc8a5814c97faea8ddd820f39e4dc
parent1428c6e447ea445ecfa36f033d8020bdeb493cd2
common,tools: make sure the destination buffer can handle the size of the string

fix klocwork issues:
Width is not specified for 's' conversion specifier.
This can result in an overflow of the buffer
provided in argument 3 of a call to 'sscanf'

Signed-off-by: songweibin <song.weibin@zte.com.cn>
src/common/util.cc
src/tools/cephfs/Dumper.cc