Project

General

Profile

Bug #14204

NewStore: potential null pointer assignment

Added by xie xingguo over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
12/30/2015
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

See int NewStore::_truncate
OnodeRef o = c->get_onode(oid, false);
if (!o->exists) {
r = -ENOENT;
goto out;
}

Shall confirm the existence of o first.

Associated revisions

Revision 3d0b479b (diff)
Added by xie xingguo over 3 years ago

os: fix potential null pointer access

Fixes: #14204
Signed-off-by: xie xingguo <>

Also available in: Atom PDF