From 1f7fde9436c44a0842897a0e0de2228259a54d4d Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 31 Jul 2008 15:11:44 +0000 Subject: 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. --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 2 +- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index bdca67c..422ff71 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -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); diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index dadad02..e5c6ac1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -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); -- cgit v1.1