Internal dangling pointer

Issue #45 resolved
Christian Budde created an issue

Adding the below, invalid script, a dangling pointer is created internally that has the potential to destroys data.

const CData = [ [3.3, 2.5, 3.1], [4.3, 2.2, 6.5, 2.9],
[3.2, 3.1] ];

On first compile, a proper error message is (often) created. However, on subsequent edits (filling the data to match the requirements), the entire edit environment might crash or spurious data manipulations can be noticed.

In a test case, the other source code in the editor(!) was mysteriously, but reproducible altered. It has to be noted, that there is no direct connection from the compiler back to the editor, so it could only be done by a dangling pointer.

It was reproducible, because after performing the very same changes, the same characters in the editor were altered (both to some Chinese letters, which might have been different itself).

Comments (2)

  1. Eric Grange repo owner

    Committed a fix that will trigger an error instead (static array constants with different number of elements in nested arrays are not supported yet)

  2. Log in to comment