From: Jeff Layton Date: Sat, 9 May 2009 05:49:05 +0000 (+0530) Subject: cifs: Fix buffer size for tcon->nativeFileSystem field X-Git-Tag: v2.6.27.24~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b26a2233617941def73064bee3fffb97ab6f073b;p=pandora-kernel.git cifs: Fix buffer size for tcon->nativeFileSystem field Commit f083def68f84b04fe3f97312498911afce79609e refreshed. cifs: fix buffer size for tcon->nativeFileSystem field The buffer for this was resized recently to fix a bug. It's still possible however that a malicious server could overflow this field by sending characters in it that are >2 bytes in the local charset. Double the size of the buffer to account for this possibility. Also get rid of some really strange and seemingly pointless NULL termination. It's NULL terminating the string in the source buffer, but by the time that happens, we've already copied the string. Signed-off-by: Jeff Layton Signed-off-by: Steve French Cc: Suresh Jayaraman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed