Pavel Shilovsky 7893242e24 CIFS: Fix a possible invalid memory access in smb2_query_symlink()
During following a symbolic link we received err_buf from SMB2_open().
While the validity of SMB2 error response is checked previously
in smb2_check_message() a symbolic link payload is not checked at all.
Fix it by adding such checks.

Cc: Dan Carpenter <dan.carpenter@oracle.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
2016-07-27 22:55:56 -05:00
..
2013-11-08 05:57:46 +09:00
2015-12-07 23:11:33 -05:00
2015-06-27 20:23:32 -07:00
2014-12-14 14:55:57 -06:00
2016-05-17 14:09:33 -05:00
2016-06-23 23:45:17 -05:00
2015-11-03 10:10:36 -06:00
2012-07-24 10:25:13 -05:00
2016-01-27 20:35:53 +08:00
2013-09-08 14:54:24 -05:00