freebsd-dev/sys/fs
Kristof Provost 66527f742b msdosfs: Prevent buffer overflow when expanding win95 names
In win2unixfn() we expand Windows 95 style long names. In some cases that
requires moving the data in the nbp->nb_buf buffer backwards to make room. That
code failed to check for overflows, leading to a stack overflow in win2unixfn().

We now check for this event, and mark the entire conversion as failed in that
case. This means we present the 8 character, dos style, name instead.

PR: 204643
Differential Revision:	https://reviews.freebsd.org/D6015
2016-04-26 20:36:32 +00:00
..
autofs kernel: use our nitems() macro when it is available through param.h. 2016-04-19 23:48:27 +00:00
cd9660 fs misc: for pointers replace 0 with NULL. 2016-04-15 17:28:24 +00:00
cuse Make CUSE usable with platforms where the size of "unsigned long" is 2015-12-22 09:55:44 +00:00
deadfs Style changes for deadfs: 2014-10-15 13:22:33 +00:00
devfs When devfs dirent is freed, a vnode might still keep a pointer to it, 2016-01-22 20:30:51 +00:00
ext2fs ext2fs: make use of the howmany() macro when available. 2016-04-26 01:41:15 +00:00
fdescfs Revert r295359: 2016-02-07 15:40:01 +00:00
fifofs Ensure that when a blockable open of fifo returns success, a valid 2015-09-20 21:18:33 +00:00
fuse Fix breakage caused by r292373 in ZFS/FUSE/NFS/SMBFS. 2015-12-16 23:48:50 +00:00
msdosfs msdosfs: Prevent buffer overflow when expanding win95 names 2016-04-26 20:36:32 +00:00
nandfs Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00
nfs Fix a LOR in the NFSv4.1 server. 2016-04-23 01:22:04 +00:00
nfsclient Bruce Evans reported that there was a performance regression between 2016-04-11 21:55:21 +00:00
nfsserver Allow the NFSv4 server to reply NFSERR_WRONGSEC for the SetClientID operation. 2016-04-23 21:18:45 +00:00
nullfs Pass MNTK_NO_IOPF and MNTK_UNMAPPED_BUFS flags from the lower 2016-03-04 17:24:28 +00:00
procfs - Consistently use PROC_ASSERT_HELD() to verify that a process' hold count 2015-11-08 01:38:56 +00:00
pseudofs Do not perform unneccessary shared recursion on the allproc_lock in 2016-03-11 11:51:38 +00:00
smbfs Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00
tmpfs Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00
udf Fix a -Wcast-qual warning in udf_vnops.c, by using __DECONST. No 2015-01-30 22:01:45 +00:00
unionfs Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00