Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 2.9.0
-
3
-
9223372036854775807
Description
Suspicious dereference of pointer 'sname' before NULL check at line 786
- An event which alters the program's state, leading to the defect
mdd_dir.c:782: 'sname' is dereferenced. - An event which alters the program's state, leading to the defect
mdd_dir.c:786: 'sname' is checked for NULL.
776 static void mdd_changelog_rec_ext_rename(struct changelog_rec *rec, 777 const struct lu_fid *sfid, 778 const struct lu_fid *spfid, 779 const struct lu_name *sname) 780 { 781 struct changelog_ext_rename *rnm = changelog_rec_rename(rec); 782 size_t extsize = sname->ln_namelen + 1; 783 784 LASSERT(sfid != NULL); 785 LASSERT(spfid != NULL); 786 LASSERT(sname != NULL);