[Gambas-bugtracker] Bug #1629: segmentation fault with gb.uncompress
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Fri Jul 26 14:05:01 CEST 2019
http://gambaswiki.org/bugtracker/edit?object=BUG.1629&from=L21haW4-
Comment #2 by Gen BRAGA:
[continuing...]
It seems the problem is elsewhere. To fill "Mensagem" parameter I has used an byte array converted to string, which sometimes contais 0x00 (generated from the compression engine), like:
a = [65, 00, 65, 65, 65]
b = a.tostring()
print b <--- A only, opposite to A(something)AAA
So I tracked the problem down to the ToString method from Byte[] class.
I know gambas strings are null terminated but maybe there could be an workaround.
More information about the Bugtracker
mailing list