diff options
| author | Rakshith Suresh Patkar <rpatkar@codeaurora.org> | 2018-05-25 14:09:10 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-06-06 08:26:56 -0700 |
| commit | 6cdf60129e610913d5f0c382670a45faddb64d34 (patch) | |
| tree | cab60df48b1029700d7264e83886fc6bdce4261e /tools/perf/scripts/python | |
| parent | a03bb69245c8939c5a958b1ce8771e840ca45acd (diff) | |
qcacld-3.0: Fix possible overflow in wma_stats_event_handler
The excess buffer check in wma_stats_event_handler is such that
if buflen is greater than WMI_SVC_MSG_MAX_SIZE, the resulting
difference of the two values will be a negative integer, which
will be treated as a very large positive integer since the data type
is unsigned. This will result in the check failing to detect overflow
when compared with sizeof(*event).
Fix the buflen check condition such that buflen is compared with the
difference of WMI_SVC_MSG_MAX_SIZE and sizeof(*event), eliminating
the possibility of overflow.
Change-Id: Ic20bfa554476db36e28557402cec23fcce5af85d
CRs-Fixed: 2224443
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
