# Re: \[PATCH\] input: fix input\_open\_file() accessing out-of-bound buffers

- From: David Herrmann \<hidden\>
- Date: 2012-09-13 16:18:19 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2012/09/8920186
- Thread: https://ratatoskr.run/linux-input/2012/09/8920185/t.md

```text
Hi Dmitry

On Thu, Sep 13, 2012 at 6:17 PM, David Herrmann
[ref] wrote:
> The "input_table" array is very small and we cannot be sure that the file
> the user opens has a minor-ID below 256 (8 << 5). Hence, simply check that
> the minor isn't out-of-bounds. If it is, return -ENODEV.
>
> Signed-off-by: David Herrmann <redacted>
> Cc: <stable@kernel.org>

This should be "Cc: [ref]". Sorry for the typo.

Thanks
David
```
