Skip to content

[javascript] Failing with OutOfMemoryError parsing a Javascript file #2081

@lolgab

Description

@lolgab

At Codacy we ran into this issue analysing some Javascript files. It seems to loop infinitely consuming the entire heap and failing with OutOfMemoryError
You can find a reproducing repository here
Affects PMD Version:

Description:
PMD fails with OutOfMemoryError parsing a Javascript file
Code Sample demonstrating the issue:

(``
);

note: Removing the newline changes behavior:

(``);

is parsed correctly.
Running PMD through: CLI

Codacy Issue:
https://github.com/codacy/codacy-meta/issues/207

cc: @andreaTP

Metadata

Metadata

Assignees

Labels

a:bugPMD crashes or fails to analyse a file.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions