Crash in compiling a script with a certain error

Issue #16 resolved
Christian Budde created an issue

The compiler crashes compiling the following snippet:

const
   Strings: array [0..1] of string = )'

Obviously the script contains an error, but it should just show it and not crash the compiler.

Comments (2)

  1. Anders Melander

    Reproduced; The crash is an AV.

    In TdwsCompiler.ReadConstSymbol the first expr:=factory.ReadExpr(nil) returns nil and the rest of the method wasn't designed to deal with that -> AV.

  2. Log in to comment