Menu

#4 Fatx spurious -ENOENT

open
nobody
None
5
2012-12-05
2005-04-06
Anonymous
No

Line 196 of fs/fatx/dir.c should be changed from:

if (!strncmp((*de)->name, name, FATX_NAME) {

to

if (!strncmp((*de)->name, name, (*de)->name_length)) {

to fix the -ENOENT problem with fatx.
fatx_dir_entry.name may not be null terminated.
fatx_dir_entry.name_length > FATX_NAME seems to be
checked elseware.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB