Displaying 1 result from an estimated 1 matches for "be405df89141".
2008 Jun 30
0
[PATCH] Null terminate strings passed in from userspace
...has been removed.
By the way, it might be better overall to just have the ioctl pass an
unterminated string + length structure but I didn''t bother with that since
it''d change the kernel/user interface.
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
diff -r 3f0eee804974 -r be405df89141 ioctl.c
--- a/ioctl.c Thu Jun 26 10:34:20 2008 -0400
+++ b/ioctl.c Mon Jun 30 15:37:34 2008 -0700
@@ -301,11 +301,9 @@
ret = -EFAULT;
goto out;
}
+
+ vol_args->name[BTRFS_PATH_NAME_MAX] = ''\0'';
namelen = strlen(vol_args->name);
- if (namelen > BTRFS_VOL_NAME_MAX...