On 15.10.2012 23:23, David Binderman wrote:
> 
> 
> hello there,
> 
> I just ran the static analyser cppcheck over the source code of the
> linux kernel version 3.7-rc1
> 
> It said
> 
> [linux-3.7-rc1/drivers/usb/musb/musb_dsps.c:533]: (error) Buffer is accessed
> out of bounds
> 
> The source code is
> 
>         sprintf(res_name, "port%d-mode", id);
> 
> but
> 
>     char res_name[10];
> 
> I make that at least 11 chars into res_name. Suggest increase size.

That is very true. Are you planning to release a patch for this?


Daniel

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to