mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
fix not range-checked vector access
This commit is contained in:
parent
5dc9be649d
commit
552b71a378
|
|
@ -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…
Reference in a new issue