From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Sat, 17 Oct 2015 12:02:32 +0000 Subject: Re: [patch] ALSA: firewire-tascam: off by one in identify_model() Message-Id: <20151017120232.GU7289@mwanda> List-Id: References: <20151015181828.GC3163@mwanda> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Takashi Iwai Cc: Clemens Ladisch , Takashi Sakamoto , alsa-devel@alsa-project.org, Jaroslav Kysela , kernel-janitors@vger.kernel.org On Sat, Oct 17, 2015 at 12:11:58PM +0200, Takashi Iwai wrote: > On Thu, 15 Oct 2015 20:18:29 +0200, > Dan Carpenter wrote: > > > > In the original code, we potentially put a NUL character in model[8] and > > it caused a static checker warning. We can put the NUL in model[7] > > instead. > > I guess it's better to expand model[] to 9 bytes instead. The logic > is to retrieve the string from the config rom, and it's up to 8 > letters. Ok. I will resend. regards, dan carpenter