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
Charles Krinke 2008-07-31 15:11:44 +00:00
parent c441a03ea3
commit 1f7fde9436
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);