Mantis#1572. Thank you kindly, Lulurun for a patch that addresses:

In function "ReadInExtraParamsBytes", parameter "data" is used without a boundary check.
if data.Length==0, an "out of index" exception will be thrown.
0.6.0-stable
Charles Krinke 2008-06-19 21:00:09 +00:00
parent 838ffd7792
commit 786fd3534d
1 changed files with 6 additions and 2 deletions

View File

@ -450,7 +450,11 @@ namespace OpenSim.Framework
bool lGotSculpt = false; bool lGotSculpt = false;
int i = 0; int i = 0;
byte extraParamCount = data[i++]; byte extraParamCount = 0;
if (data.Length > 0)
{
extraParamCount = data[i++];
}
for (int k = 0; k < extraParamCount; k++) for (int k = 0; k < extraParamCount; k++)