Re: [PATCH RESEND] drivers: usb: gadget: composite: add checking for interface number

2025-03-12 Thread Arseniy Krasnov
Hi, sorry, pls ping On 03.02.2025 18:55, Vladimir Mitrofanov wrote: > Some proprietary protocols uses "w_index" field not by the rules. > When we set "intf = w_index & 0xFF" variable without check it may > exceed maximum number of interfaces. Not all code cases below check > the range of this vari

[PATCH RESEND] drivers: usb: gadget: composite: add checking for interface number

2025-02-03 Thread Vladimir Mitrofanov
Some proprietary protocols uses "w_index" field not by the rules. When we set "intf = w_index & 0xFF" variable without check it may exceed maximum number of interfaces. Not all code cases below check the range of this variable. In some protocols it is usefull to guaranty that "intf" not exceed MAX_