Base64 (and probably others) fail specifically from encoded strings that had some unicode surrogate pairs utilized. An example string:
-- lua
local basexx = require "basexx"
print(basexx.from_base64("eyJpc3MiOiJleGFtcGxlLmNvbSIsInN1YiI6InRlc3QiLCJleHAiOjAsImlhdCI6MCwiY29tcGFueSI6Ik15X0F3ZXNvbWUtQ29tcGFueSA_KDEpWzJdezN9ICYgU29ucyJ9="))
./basexx.lua:94: attempt to perform arithmetic on local 'index' (a nil value)
stack traceback:
./basexx.lua:94: in function <./basexx.lua:88>
(tail call): ?
stdin:1: in main chunk
[C]: ?
Even though this has unicode surrogate pairs in them, I would still expect at least the following output:
Base64 (and probably others) fail specifically from encoded strings that had some unicode surrogate pairs utilized. An example string:
Even though this has unicode surrogate pairs in them, I would still expect at least the following output: