[English]
Hi people,

sorry for annoying you again though this engine appears to get stranger every day I use it.
If I use malloc to allocate an amount of memory I can access elements outside the allocated space.
Normally I would expect an exception though the overflow doesn't seem to affect performance at all confused
Does the engine manage such situations or is it unable to recognize overflows of such simple kinds?
Simply take a quick glance at the sample code please.

[German]
Hi Leute,

entschuldigung dafür, dass ich euch schon wieder nerve, jedoch scheint diese Engine jeden Tag, den ich sie benutze, seltsamer zu werden.
Wenn ich malloc nutze, um Speicher zu allozieren, kann ich auf Elemente außerhalb des allozierten Raums zugreifen.
Normalerweise würde ich eine Ausnahme erwarten, jedoch scheint der Overflow die Performance in keinster Weise zu beeinflussen confused
Verwaltet die Engine solche Situationen, oder ist sie einfach nicht in der Lage solche einfachen Overflows zu erkennen?
Schaut auch einfach mal kurz den Beispielcode an.

Code:
function myFunction()
{
   byte* myText = (byte*)malloc(1);
   myText[4] = "e";
   // the following line outputs an `e' in a messagebox
   // die folgende Zeile gibt ein `e' in einer Messagebox aus
   printf("%c", myText[4]);
}



Using A7 Free
Click and join the 3dgs irc community!
Room: #3dgs