wifi: (fixes #2445) Fix out of bounds array access in MinstrelHtWifiManager::SetBestProbabilityRate (patch from Alexander Krotov and Matias Richart)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user