]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test_filejournal.cc: use strncpy and terminate with '\0'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 13 Mar 2014 16:21:53 +0000 (17:21 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 13 Mar 2014 16:21:53 +0000 (17:21 +0100)
commit58e35a4bc2983fc513eff91e3332d67f9939e382
treea2251a6db8c53f5505609fcdb106ba4ad6925ef8
parent7cf81ce21438d106f73f937b16a541a944670fbf
test_filejournal.cc: use strncpy and terminate with '\0'

CID 966632 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW)
 2. fixed_size_dest: You might overrun the 200 byte fixed-size string
 "path" by copying "args[0UL]" without checking the length.

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