Fuzzed - a program to find DMDFE parser crash
newshound2 at digitalmars.com
Sun Dec 16 01:57:17 UTC 2018
On 12/15/2018 2:48 PM, Neia Neutuladh wrote:
> The way to fix this is to replace the entire parser and get rid of the
> idea of AST poisoning; at the first error, you give up on parsing the
> entire file. From there, you can try recovering from specific errors with
> proper testing.
DMD tries to continue parsing after a syntax error, but it does not attempt
semantic analysis if there were any errors.
More information about the Digitalmars-d-announce