Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tophf opened this issue Apr 12, 2017 · 0 comments
Closed

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

tophf opened this issue Apr 12, 2017 · 0 comments
Assignees
Labels

Comments

@tophf
Copy link
Contributor

tophf commented Apr 12, 2017

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

@nschonni nschonni added the bug label Apr 24, 2017
@frvge frvge self-assigned this May 28, 2017
@tophf tophf closed this as completed Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants