android_kernel_xiaomi_sm8350/core
Rakshith Suresh Patkar 9051736a2e 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
2018-06-07 02:30:36 -07:00
..
bmi qcacld-3.0: bmi: Fix misspellings 2018-05-16 18:01:27 -07:00
cds qcacld-3.0: Featurize packet log 2018-06-06 23:49:08 -07:00
dp qcacld-3.0: Featurize packet log 2018-06-06 23:49:08 -07:00
hdd qcacld-3.0: Update stations bw info field value in HT20 scenario 2018-06-07 02:30:32 -07:00
mac Release 5.2.0.81O 2018-06-06 23:49:09 -07:00
pld qcacld-3.0: pld: Fix misspelling of 'bandwidth' 2018-05-16 18:01:49 -07:00
sap qcacld-3.0: Start SAP on 80Mhz in STA+SAP when acs_policy enabled 2018-06-06 05:49:14 -07:00
sme qcacld-3.0: Add spectral scan feature flag 2018-06-06 23:49:01 -07:00
wma qcacld-3.0: Fix possible overflow in wma_stats_event_handler 2018-06-07 02:30:36 -07:00