]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
blkdev.cc: fix STRING_OVERFLOW
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 13 Mar 2015 12:50:04 +0000 (13:50 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 17 Mar 2015 08:19:40 +0000 (09:19 +0100)
commit9a3a8a032e105f8682b32ebd6fa5a63e5ec5bb23
treeb178ec552116bf7e59bcc95183cdb4177d45e735
parente221463efb5765c1cfbd3941862bd48511ad56b9
blkdev.cc: fix STRING_OVERFLOW

Fix for:

CID 1258439 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW)
 2. fixed_size_dest: You might overrun the 4096 byte fixed-size
    string devname by copying dev + 5 without checking the length.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/common/blkdev.cc