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
parent
838ffd7792
commit
786fd3534d
|
@ -450,7 +450,11 @@ namespace OpenSim.Framework
|
|||
bool lGotSculpt = false;
|
||||
|
||||
int i = 0;
|
||||
byte extraParamCount = data[i++];
|
||||
byte extraParamCount = 0;
|
||||
if (data.Length > 0)
|
||||
{
|
||||
extraParamCount = data[i++];
|
||||
}
|
||||
|
||||
|
||||
for (int k = 0; k < extraParamCount; k++)
|
||||
|
@ -625,4 +629,4 @@ namespace OpenSim.Framework
|
|||
return data;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue