sass / libsass

A C/C++ implementation of a Sass compiler
https://sass-lang.com/libsass
Other
4.33k stars 462 forks source link

Fix extend edge case going endlessly #3156

Closed mgreter closed 3 years ago

mgreter commented 3 years ago

Properly avoiding to add duplicate selectors already seems to improve the situation heavily. Also added a hard-limit of 500 selectors to create at maximum. Hoping nobody needs more.

To bad I didn't see/find this fix one year ago when the issue was introduced. The change should IMHO be sane and I hope it doesn't break anything.

Addresses https://github.com/sass/libsass/issues/3081