Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V0.10] Fix potential name buffer overflows in redirector #3175

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sesman/chansrv/chansrv_fuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ struct state_lookup
{
fuse_req_t req; /* Original FUSE request from lookup */
fuse_ino_t pinum; /* inum of parent directory */
char name[XFS_MAXFILENAMELEN];
char name[XFS_MAXFILENAMELEN + 1];
/* Name to look up */
fuse_ino_t existing_inum;
/* inum of an existing entry */
Expand Down Expand Up @@ -241,7 +241,7 @@ struct state_create
fuse_req_t req; /* Original FUSE request from lookup */
struct fuse_file_info fi; /* File info struct passed to open */
fuse_ino_t pinum; /* inum of parent directory */
char name[XFS_MAXFILENAMELEN];
char name[XFS_MAXFILENAMELEN + 1];
/* Name of file in parent directory */
mode_t mode; /* Mode of file to create */
};
Expand Down Expand Up @@ -280,7 +280,7 @@ struct state_rename
fuse_req_t req; /* Original FUSE request from lookup */
fuse_ino_t pinum; /* inum of parent of file */
fuse_ino_t new_pinum; /* inum of new parent of file */
char name[XFS_MAXFILENAMELEN];
char name[XFS_MAXFILENAMELEN + 1];
/* New name of file in new parent dir */
};

Expand Down