mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-11-16 19:13:49 +01:00
fix not range-checked vector access
This commit is contained in:
1 parent
5dc9be649d
commit
552b71a378
1 file changed
+4
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user