wifi: (fixes #2445) Fix out of bounds array access in MinstrelHtWifiManager::SetBestProbabilityRate (patch from Alexander Krotov and Matias Richart)

This commit is contained in:
Sébastien Deronne
2016-07-12 22:23:24 +02:00
parent 418fa0a523
commit bef514cda8
2 changed files with 3 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ Bugs fixed
- Bug 2442 - TrafficControl makes ConfigStore crash
- Bug 2443 - Increase applications counters to accomodate Gbps transfer rates.
- Bug 2444 - PcapHelper DataLinkType enum should have a name
- Bug 2445 - Out of bounds array access in MinstrelHtWifiManager::SetBestProbabilityRate
- Bug 2446 - Comma instead of pipe in Attributes
Known issues

View File

@@ -1430,7 +1430,8 @@ MinstrelHtWifiManager::SetBestProbabilityRate (MinstrelHtWifiRemoteStation *stat
{
station->m_maxProbRate = index;
}
if (rate.ewmaProb > group->m_ratesTable[group->m_maxProbRate].ewmaProb)
maxGPRateId = GetRateId (group->m_maxProbRate);
if (rate.ewmaProb > group->m_ratesTable[maxGPRateId].ewmaProb)
{
group->m_maxProbRate = index;
}