[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


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