mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-28 12:51:03 +00:00
[Refs #87: Static Analysis] Check that section enum is valid
This commit is contained in:
@@ -626,7 +626,7 @@ void RenderDoc::SetLogFile(const wchar_t *logFile)
|
||||
|
||||
void RenderDoc::SetProgress(LoadProgressSection section, float delta)
|
||||
{
|
||||
if(m_ProgressPtr == NULL)
|
||||
if(m_ProgressPtr == NULL || section < 0 || section >= NumSections)
|
||||
return;
|
||||
|
||||
float weights[NumSections];
|
||||
|
||||
Reference in New Issue
Block a user