possible memory corruption in cifs_parse_mount_options()
error path after mountdata check frees uninitialized mountdata_copy Signed-off-by: Vasily Averin <vvs@sw.ru> Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
Родитель
5f0b23eeba
Коммит
957df4535d
|
@ -784,7 +784,7 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
|
||||||
struct smb_vol *vol)
|
struct smb_vol *vol)
|
||||||
{
|
{
|
||||||
char *value, *data, *end;
|
char *value, *data, *end;
|
||||||
char *mountdata_copy, *options;
|
char *mountdata_copy = NULL, *options;
|
||||||
unsigned int temp_len, i, j;
|
unsigned int temp_len, i, j;
|
||||||
char separator[2];
|
char separator[2];
|
||||||
short int override_uid = -1;
|
short int override_uid = -1;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче