mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user