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

CID#736205 out of bounds access

and CID#736204

Change-Id: I5bfb7101c3e330958a3c883ce3c8114781f7e033
üst 293890e0
...@@ -2603,7 +2603,7 @@ throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException, ...@@ -2603,7 +2603,7 @@ throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException,
{ {
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
if(nIndex < 0 || nIndex > MAXLEVEL) if(nIndex < 0 || nIndex >= MAXLEVEL)
{ {
throw lang::IndexOutOfBoundsException(); throw lang::IndexOutOfBoundsException();
} }
...@@ -2646,7 +2646,7 @@ throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, ...@@ -2646,7 +2646,7 @@ throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException,
{ {
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
if(nIndex < 0 || nIndex > MAXLEVEL) if(nIndex < 0 || nIndex >= MAXLEVEL)
{ {
throw lang::IndexOutOfBoundsException(); throw lang::IndexOutOfBoundsException();
} }
......
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