Commit d8a9a4b1 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'v7.0-rc6-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6

Pull smb client fix from Steve French:

 - Fix potential out of bounds read in mount

* tag 'v7.0-rc6-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6:
  fs/smb/client: fix out-of-bounds read in cifs_sanitize_prepath
parents 7b9e74c5 78ec5bf2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -588,6 +588,10 @@ char *cifs_sanitize_prepath(char *prepath, gfp_t gfp)
	while (IS_DELIM(*cursor1))
		cursor1++;

	/* exit in case of only delimiters */
	if (!*cursor1)
		return NULL;

	/* copy the first letter */
	*cursor2 = *cursor1;