Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions