diff options
| author | Ariel Yin <ayin@google.com> | 2016-09-13 14:17:51 -0700 |
|---|---|---|
| committer | Arvin Quilao <arquilao@gmail.com> | 2016-11-10 06:27:19 +0000 |
| commit | 5224349d935a666329f59fac48773b2508470d3c (patch) | |
| tree | 81dc4d1982bfbf54c2a285999ada9482bd20ac77 /net/unix/af_unix.c | |
| parent | 8e27e72ac78efb6ddb5a69c2666058a89d2fb15c (diff) | |
msm: crypto: Fix integer over flow check in qcrypto driver
Integer overflow check is invalid when ULONG_MAX is used,
as ULONG_MAX has typeof 'unsigned long', while req->assoclen,
req->crytlen, and qreq.ivsize are 'unsigned int'. Make change
to use UINT_MAX instead of ULONG_MAX.
Bug: 30515053
CRs-fixed: 1050970
Change-Id: I3782ea7ed2eaacdcad15b34e047a4699bf4f9e4f
Signed-off-by: Zhen Kong <zkong@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
