mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-25 11:58:36 -06: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 New Issue
Block a user