[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0032cd15-2223-bd5f-3b5f-cf66e1c47275@embeddedor.com>
Date: Tue, 9 Oct 2018 22:11:42 +0200
From: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
To: Steve French <sfrench@...ba.org>,
Ronnie Sahlberg <lsahlber@...hat.com>
Cc: linux-cifs@...r.kernel.org, samba-technical@...ts.samba.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] smb2: fix uninitialized variable bug in
smb2_ioctl_query_info
On 10/9/18 10:07 PM, Gustavo A. R. Silva wrote:
> There is a potential execution path in which variable *resp_buftype*
> is passed as an argument to function free_rsp_buf(), in which is used
> without being properly initialized previously.
>
> Fix this by initializing variable *resp_buftype* to -1 in order to
> avoid unpredictable or unintended results.
>
> Addresses-Coverity-ID: 1472116 ("Uninitialized scalar variable")
> Fixes: 1473971 ("Uninitialized scalar variable")
ugh... sorry, the line above is wrong... I'll send v2 shotly.
Thanks
--
Gustavo
Powered by blists - more mailing lists