inputLen may end up as 0 in the loop if the input string only includes trailing characters. e.g. without the patch, decode(" ") would panic. (cherry picked from commit 30cf570af9)
30cf570af9
=
=copy
-d:useMalloc
--mm:none
--threads on