Mantis#1868. Thank you kindly, HomerHorwitz for a patch that:
0001868: llXorBase64StringsCorrect leads to error if second string shorter than first which was an off by one error.0.6.0-stable
parent
c441a03ea3
commit
1f7fde9436
|
@ -7056,7 +7056,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
ret += src1[i] ^ src2[c];
|
||||
|
||||
c++;
|
||||
if (c > src2.Length)
|
||||
if (c >= src2.Length)
|
||||
c = 0;
|
||||
}
|
||||
return llStringToBase64(ret);
|
||||
|
|
|
@ -6834,7 +6834,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
ret += src1[i] ^ src2[c];
|
||||
|
||||
c++;
|
||||
if (c > src2.Length)
|
||||
if (c >= src2.Length)
|
||||
c = 0;
|
||||
}
|
||||
return llStringToBase64(ret);
|
||||
|
|
Loading…
Reference in New Issue