Crash in compiling a script with a certain error
Issue #16
resolved
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)
-
-
repo owner - changed status to resolved
Fixed Issue
#16→ <<cset 5f7d2ecaba91>>
- Log in to comment
Reproduced; The crash is an AV.
In
TdwsCompiler.ReadConstSymbol
the firstexpr:=factory.ReadExpr(nil)
returns nil and the rest of the method wasn't designed to deal with that -> AV.