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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.
Regards

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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux