input: synaptics: allocate heap memory for temp buf

dsx i2c operations structure include i2c write  and i2c
read which accepts data from user space. Temp
buffers are allocated through variable length arrays
which can pose security problems. So allocate memory
on heap instead of stack to avoid this.

Issue: SEC-1893
Test: run sts-engbuild -m StsHostTestCases --test android.security.sts.Poc16_10#testPocCVE_2016_3940
Bug: 30141991
Change-Id: I0461f5419c4bd717380977ea435eff0861a9266a
Signed-off-by: Yueyao Zhu<yueyao@google.com>
(cherry picked from commit 29566432a8cd87ade2356be8203d287d620f2029)
1 file changed