RE: musb/musb_dsps.c:533]: (error) Buffer is accessed out of bounds

2012-10-16 Thread David Binderman
Hello there, > > 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? Sadly no. My success rate with patches is very low and I wouldn't know a good new size anyway. Mi

Re: musb/musb_dsps.c:533]: (error) Buffer is accessed out of bounds

2012-10-16 Thread Daniel Mack
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 &

musb/musb_dsps.c:533]: (error) Buffer is accessed out of bounds

2012-10-15 Thread David Binderman
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