mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
fix not range-checked vector access
This commit is contained in:
parent
5dc9be649d
commit
552b71a378
1 changed files with 4 additions and 1 deletions
|
@ -437,7 +437,10 @@ void GLVertexDecompilerThread::Task()
|
|||
m_shader = BuildCode();
|
||||
|
||||
m_body.clear();
|
||||
m_funcs = std::vector<FuncInfo *>(m_funcs.begin(),m_funcs.begin()+3);
|
||||
if (m_funcs.size() >= 3)
|
||||
{
|
||||
m_funcs = std::vector<FuncInfo *>(m_funcs.begin(), m_funcs.begin() + 3);
|
||||
}
|
||||
}
|
||||
|
||||
GLVertexProgram::GLVertexProgram()
|
||||
|
|
Loading…
Add table
Reference in a new issue