Skip to content
Snippets Groups Projects
Commit aa77b05c authored by Biswajit Paul's avatar Biswajit Paul Committed by Pat Tjin
Browse files

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: default avatarZhen Kong <zkong@codeaurora.org>
Signed-off-by: default avatarBiswajit Paul <biswajitpaul@codeaurora.org>
Signed-off-by: default avatarYueyao (Nathan) Zhu <yueyao@google.com>
parent 18088fea
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment