Navigation Menu

Skip to content
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

Additional check to avoid evaluating an expression if it is a comment #3494

Merged
merged 1 commit into from Apr 30, 2020

Conversation

rgroothuijsen
Copy link
Contributor

While investigating #3443, it was found that the evaluation of the expression became stuck in an infinite loop, filling up the entities array until Less runs out of memory. The cause appears to be the attempted evaluation of a comment as an entity, which should have been caught just beforehand but for some reason wasn't. Maybe an issue with cleaning up the loop variable?

A second check has now been added to the entity retrieval, since an entity can also be a comment. This fix removes the value from e if that is the case, preventing the infinite loop.

@matthew-dean
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants