msm: vidc: Validate input data before processing

User controlled data needs to be validated before
processing, otherwise it may corrupt existing data
and other programming variables which may further
lead to crash in kernel space.
This change validates user specified buffer's data,
such as offset and data length, before performing
any operations in kernel.

Change-Id: Idb2a5c4c270cdbb55adfc0c22b9296b7dd359de9
CRs-fixed: 547695
Signed-off-by: Deepak Verma <dverma@codeaurora.org>
msm: mdss: hdmi: NUL-terminate spd data

NUL-terminate SPD Vendor name and SPD
Product description data stored in the
control structure of hdmi driver. This
avoids overflows in print messages and info
frames.

CRs-Fixed: 520148

Change-Id: Ic6b39a48a86514af71947e913e9d6dabc81f07eb
Signed-off-by: Ramakant Singh <ramaka@codeaurora.org>
Merge "msm: mdss: hdmi: NUL-terminate spd data"
Merge "msm: vidc: Validate input data before processing"