The Base64 functions that used to produce garbage no longer do
This commit is contained in:
13
unit_tests/regression.suite/fixed-b64.lsl
Normal file
13
unit_tests/regression.suite/fixed-b64.lsl
Normal file
@@ -0,0 +1,13 @@
|
||||
// Some Base64 functions used to return garbage, now they no longer do
|
||||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
llSetPrimitiveParams( // we need a function that causes side effects,
|
||||
// so that it isn't optimized out
|
||||
[ llXorBase64StringsCorrect("++++", "?")
|
||||
, llXorBase64("++++", "?")
|
||||
, llBase64ToInteger("ABC")
|
||||
]);
|
||||
}
|
||||
}
|
||||
7
unit_tests/regression.suite/fixed-b64.out
Normal file
7
unit_tests/regression.suite/fixed-b64.out
Normal file
@@ -0,0 +1,7 @@
|
||||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
llSetPrimitiveParams((list)"++++" + "++++" + 1048576);
|
||||
}
|
||||
}
|
||||
1
unit_tests/regression.suite/fixed-b64.run
Normal file
1
unit_tests/regression.suite/fixed-b64.run
Normal file
@@ -0,0 +1 @@
|
||||
main.py -y -O -dcr,-optfloats -
|
||||
@@ -22,9 +22,6 @@ default
|
||||
, llGetDisplayName(TEXTURE_BLANK)
|
||||
, llGetEnv("estate_name")
|
||||
, llXorBase64Strings("++++", "?")
|
||||
, llXorBase64StringsCorrect("++++", "?")
|
||||
, llXorBase64("++++", "?")
|
||||
, llBase64ToInteger("ABC")
|
||||
, llAbs(-2147483648)
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -20,9 +20,6 @@ default
|
||||
, llGetDisplayName("5748decc-f629-461c-9a36-a35a221fe21f")
|
||||
, llGetEnv("estate_name")
|
||||
, llXorBase64Strings("++++", "?")
|
||||
, llXorBase64StringsCorrect("++++", "?")
|
||||
, llXorBase64("++++", "?")
|
||||
, llBase64ToInteger("ABC")
|
||||
, llAbs(((integer)-2147483648))
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user