]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common,tools: make sure the destination buffer can handle the size of the string
authorsongweibin <song.weibin@zte.com.cn>
Thu, 25 Jul 2019 11:44:08 +0000 (19:44 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Jan 2020 14:38:37 +0000 (15:38 +0100)
commitfbcf44ca12f3f3a6f743e2ffa2ec01aee17c286b
tree39edebfc38986d02cb9932ff10885f2463c55461
parente1c5fd9306ce839d8d3ac8160c57aba42e0231a8
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>
(cherry picked from commit 5e8c412e63d6a86aa4846efe4cceff52ca8f16d5)
src/common/util.cc
src/tools/cephfs/Dumper.cc