]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds/Server.cc: fix possible NULL pointer dereference 309/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 17 May 2013 12:38:24 +0000 (14:38 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 22 May 2013 13:45:22 +0000 (15:45 +0200)
commitc266d7c7d4e32b609ef2db474da809eb8a37e7e0
treee0187c3f7c110116ea78da5c7bc04556151d5005
parentfd818a20c3fb6dd1b7485d07ced57f148c71fb77
mds/Server.cc: fix possible NULL pointer dereference

Add asserts to solve these CID issues:

CID 717002 (#1 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "dir"
  when calling "CDir::lookup(std::string const &, snapid_t)".
CID 717002 (#2 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "dir"
  when calling "CDir::lookup(std::string const &, snapid_t)".

CID 717003 (#1 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "dn" when
  calling "operator <<(std::ostream &, CDentry &)"
CID 717003 (#2 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "straydn"
  when calling "CDentry::push_projected_linkage()".

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