mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-01-13 23:38:04 +03:00
Fixed out of bounds read with predef_flexcontroller_names array
This commit is contained in:
parent
0d8dceea43
commit
ab9eadaac8
@ -2485,7 +2485,7 @@ void CFlexCycler::Think( void )
|
||||
m_flextarget[m_flexnum] = 0;
|
||||
}
|
||||
|
||||
for (i = 0; i < 35 && predef_flexcontroller_names[i]; i++)
|
||||
for (i = 0; i < 31 && predef_flexcontroller_names[i]; i++)
|
||||
{
|
||||
m_flexnum = LookupFlex( predef_flexcontroller_names[i] );
|
||||
m_flextarget[m_flexnum] = predef_flexcontroller_values[j][i];
|
||||
|
@ -321,7 +321,7 @@ void CFlextalkActor::ProcessSceneEvents( void )
|
||||
m_flextarget[m_flexnum] = 0;
|
||||
}
|
||||
|
||||
for (i = 0; i < 35 && predef_flexcontroller_names[i]; i++)
|
||||
for (i = 0; i < 31 && predef_flexcontroller_names[i]; i++)
|
||||
{
|
||||
m_flexnum = LookupFlex( predef_flexcontroller_names[i] );
|
||||
m_flextarget[m_flexnum] = predef_flexcontroller_values[j][i];
|
||||
|
@ -2485,7 +2485,7 @@ void CFlexCycler::Think( void )
|
||||
m_flextarget[m_flexnum] = 0;
|
||||
}
|
||||
|
||||
for (i = 0; i < 35 && predef_flexcontroller_names[i]; i++)
|
||||
for (i = 0; i < 31 && predef_flexcontroller_names[i]; i++)
|
||||
{
|
||||
m_flexnum = LookupFlex( predef_flexcontroller_names[i] );
|
||||
m_flextarget[m_flexnum] = predef_flexcontroller_values[j][i];
|
||||
|
@ -321,7 +321,7 @@ void CFlextalkActor::ProcessSceneEvents( void )
|
||||
m_flextarget[m_flexnum] = 0;
|
||||
}
|
||||
|
||||
for (i = 0; i < 35 && predef_flexcontroller_names[i]; i++)
|
||||
for (i = 0; i < 31 && predef_flexcontroller_names[i]; i++)
|
||||
{
|
||||
m_flexnum = LookupFlex( predef_flexcontroller_names[i] );
|
||||
m_flextarget[m_flexnum] = predef_flexcontroller_values[j][i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user