Thread (11 messages) 11 messages, 3 authors, 2012-03-29

Re: [PATCH V2 1/2] Input: of_keymap: Introduce matrix_keypad_of_build_keymap()

From: Viresh Kumar <hidden>
Date: 2012-03-29 08:23:53
Also in: linux-devicetree

On 3/29/2012 2:58 AM, Stephen Warren wrote:
so the DT parsing can easily overflow this, and is driven by
user-supplied data.
Got it. This check is must.
I think you'll need to pass input_dev->keycodesize
you mean keycodemax here?
into matrix_keypad_of_build_keymap() to achieve the overall
range-checking.
Will do that.
but also checking col against (1<<row_shift) would be
needed to make sure the individual "fields" of the array index don't
overflow too.
Ok. Please cross check V3 to verify, i got you comments correctly.

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help