diff options
| author | Xiaojun Sang <xsang@codeaurora.org> | 2018-05-15 15:47:43 +0800 |
|---|---|---|
| committer | Xiaojun Sang <xsang@codeaurora.org> | 2018-05-16 14:28:32 +0800 |
| commit | ad40ee7b44e274b14771839d234ec9c20b737bba (patch) | |
| tree | df1b14eca8d8fdf6d48cc80c1e679f7d7bb188bd /kernel/bpf/syscall.c | |
| parent | 502257f3e6a9fbc83bdf42d98aef495c8dcecf11 (diff) | |
ASoC: msm: check payload size before memory allocation
Buffer from mixer ctl or ADSP is composed of payload size and
actual payload. On a 32 bit platform, we could have an overflow
if payload size is below UINT_MAX while payload size + sizeof(struct)
is over UINT_MAX. Allocated memory size would be less than expected.
Check payload size against limit before memory allocation.
Change-Id: I0bf19ca7b8c93083177a21ad726122dc20f45551
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Diffstat (limited to 'kernel/bpf/syscall.c')
0 files changed, 0 insertions, 0 deletions
