-
Notifications
You must be signed in to change notification settings - Fork 34
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
Segmentation fault on compressing some css files #12
Comments
in fact the original YUI Compressor library also breaks on this file |
This is probably another stack overflow on PCRE due to recursion in a regex in a preg_replace Pavlo (cfr. #11). If you can identify the line that breaks you can then try to rewrite the regex so PCRE uses less stack. |
My colleague found workaround for this issue. See #13 |
Great! Did you guys run the tests that included in cssmin/tests/ ? Same results? |
I'll look into this ASAP and report soon. |
I've inspected the CSS @PavloKovalov linked. It turns out it's invalid/broken CSS and broken CSS will not compress correctly most of the times. Take a look at line 1088. There you can see clearly the Change this: endColorstr='url(data:image/svg+xml;base64,P' to: endColorstr='url(data:image/svg+xml;base64,P)' I'm closing this issue right away. |
I get 'segmentation fault' when compressing some css files.
Here is my test script:
output:
phpStorm with xDebug attached process to line 93 and then fails
i'll update if got more details
UPD: sorry, this is css that breaks https://gist.github.com/PavloKovalov/8582652
The text was updated successfully, but these errors were encountered: