summaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorKaushal Kumar <kaushalk@codeaurora.org>2017-09-26 19:58:48 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-09-27 04:41:48 -0700
commitdc81965316ecc3c3f9d7a213a96c5a6d3038b9d1 (patch)
tree0eb0610bd584984ef1afb4d3e81d9dad67971f85 /lib/mpi/mpiutil.c
parentb56464c7cb37be7ddd498ccff8cc11124cea39e6 (diff)
soc: qcom: pil: Avoid possible buffer overflow
MBA image size comparison check is currently being done with a signed count whose value can possibly be negative. If count value is negative then comparison will always succeed and invoke memcpy with incorrect value of count leading to buffer overflow. Fix this by not using signed comparison. Change-Id: Id2d0cafae01f940f36cfd559d4656fc0f022d6a5 Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions