Kaydet (Commit) 6f019bea authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1213254 Out-of-bounds read

surely this was the intent

Change-Id: I78002adebf78674259e6c63e0e3449882accdb5d
üst bb7dad11
...@@ -823,7 +823,7 @@ void OpenGL3DRenderer::Set3DSenceInfo(sal_uInt32 nColor, bool twoSidesLighting) ...@@ -823,7 +823,7 @@ void OpenGL3DRenderer::Set3DSenceInfo(sal_uInt32 nColor, bool twoSidesLighting)
void OpenGL3DRenderer::SetLightInfo(bool lightOn, sal_uInt32 nColor, const glm::vec4& direction) void OpenGL3DRenderer::SetLightInfo(bool lightOn, sal_uInt32 nColor, const glm::vec4& direction)
{ {
if (m_LightsInfo.lightNum > MAX_LIGHT_NUM) if (m_LightsInfo.lightNum >= MAX_LIGHT_NUM)
{ {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment