[Gambas-bugtracker] Bug #1629: segmentation fault with gb.uncompress
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Fri Jul 26 14:03:00 CEST 2019
http://gambaswiki.org/bugtracker/edit?object=BUG.1629&from=L21haW4-
Comment #1 by Gen BRAGA:
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()
So I tracked the problem down to the ToString method from Byte[] class.
I know gambas strings are null terminated
More information about the Bugtracker
mailing list