[Gambas-bugtracker] Bug #2729: Writing whole structure on Debian and OpenSUSE Cause segfault

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat Mar 25 01:14:52 CET 2023


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

Comment #4 by Benoît MINISINI:

It's now fixed with https://gitlab.com/gambas/gambas/-/commit/2f81de1876ad73fac1b2b3c306971bedd93e96d5.

Moreover, https://gitlab.com/gambas/gambas/-/commit/38519f8b3e3cb2938e4f21203c70751e5694982e modified Alloc()
so that it fills the allocated memory with zeros when used with two arguments.

It allows to converts a pointer returned by Alloc() to a structure without risking a crash due to initialized data.

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




More information about the Bugtracker mailing list