Re: [PATCHv2] si2157: Bounds check firmware

2015-10-08 Thread Olli Salonen
Reviewed-by: Olli Salonen Tested-by: Olli Salonen On 6 October 2015 at 01:33, Laura Abbott wrote: > > When reading the firmware and sending commands, the length > must be bounds checked to avoid overrunning the size of the

[PATCHv2] si2157: Bounds check firmware

2015-10-05 Thread Laura Abbott
When reading the firmware and sending commands, the length must be bounds checked to avoid overrunning the size of the command buffer and smashing the stack if the firmware is not in the expected format. Add the proper check. Cc: sta...@kernel.org Signed-off-by: Laura Abbott