Skip to content

Consumes all memory and crashes on unclosed invalid calc( at EOF #229

Closed
@tophf

Description

@tophf

Consumes all memory and crashes on unclosed invalid calc( at EOF.

Test case:

#test{width:calc(100% =

The bug is caused by Parser.js#L2012:

while (lt !== Tokens.COMMA && lt !== Tokens.S && lt !== Tokens.RPAREN) {

which should also check for Tokens.EOF

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions