Merge pull request #480 from proski/strncat

Fix potential buffer overflow in strncat() invocation
master
metalefty 8 years ago committed by GitHub
commit d335c93a75

@ -2200,7 +2200,7 @@ static void xfuse_remove_dir_or_file(fuse_req_t req, fuse_ino_t parent,
}
strcat(full_path, "/");
strncat(full_path, name, sizeof(full_path) - strlen(full_path));
strncat(full_path, name, sizeof(full_path) - strlen(full_path) - 1);
if (xinode->is_loc_resource)
{

Loading…
Cancel
Save