[Gambas-bugtracker] Bug #1629: segmentation fault with gb.uncompress

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat Jul 27 16:52:29 CEST 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1629&from=L21haW4-

Comment #3 by Benoît MINISINI:

Please provide a small project that reproduces the crash.

Gambas strings are not necessarily null terminated. They are a combination of a pointer and a length.

I don't know why Byte[].ToString() extracts the string up to the first null byte. It's a stupid idea of mine, and even the documentation says the contrary.

Anyway it should not lead to a crash at all.

Benoît MINISINI changed the state of the bug to: NeedsInfo.




More information about the Bugtracker mailing list