diff options
| author | Biswajit Paul <biswajitpaul@codeaurora.org> | 2016-09-07 12:53:43 +0530 |
|---|---|---|
| committer | Arvin Quilao <arquilao@gmail.com> | 2016-11-10 06:27:19 +0000 |
| commit | 62bdb1b7b45779b46a71b5de7fe84ba648f38293 (patch) | |
| tree | 0c0e67aa321a6b854409c27b2bd3719d4cb37e13 /net/unix/af_unix.c | |
| parent | ad33c1f77ec7f4a3f3663ee3fbd416fe50073976 (diff) | |
msm: camera: Restructure data handling to be more robust
Use dynamic array allocation instead of static array to
prevent stack overflow.
User-supplied number of bytes may result in integer overflow.
To fix this we check that the num_byte isn't above 8K size.
Bug: 30559423
CRs-Fixed: 1060554
Change-Id: I9b05b846e5cc3a62b1a0a67be529f09abc764796
Signed-off-by: VijayaKumar T M <vtmuni@codeaurora.org>
Signed-off-by: Biswajit Paul <biswajitpaul@codeaurora.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
