We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7799953 commit 304790cCopy full SHA for 304790c
fs/ubifs/replay.c
@@ -456,7 +456,7 @@ int ubifs_validate_entry(struct ubifs_info *c,
456
if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 ||
457
dent->type >= UBIFS_ITYPES_CNT ||
458
nlen > UBIFS_MAX_NLEN || dent->name[nlen] != 0 ||
459
- strnlen(dent->name, nlen) != nlen ||
+ (key_type == UBIFS_XENT_KEY && strnlen(dent->name, nlen) != nlen) ||
460
le64_to_cpu(dent->inum) > MAX_INUM) {
461
ubifs_err(c, "bad %s node", key_type == UBIFS_DENT_KEY ?
462
"directory entry" : "extended attribute entry");
0 commit comments