]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ClassHandler.cc: fix STRING_OVERFLOW
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 5 May 2015 12:38:04 +0000 (14:38 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 1 Jun 2015 04:59:26 +0000 (06:59 +0200)
commitf5ae56b57c528b8d120019274bbe616ce3fb2fa3
tree2fb62c77cf2a627818cb67a2fbc8a6f4a1fd4354
parent0a45a7a19e304a578ddb52f18e071bfa0e8adaae
osd/ClassHandler.cc: fix STRING_OVERFLOW

CID 1058792 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW)
 fixed_size_dest: You might overrun the 4097 byte fixed-size string
 cname by copying &pde->d_name[8UL] - 1 without checking the length.

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