-
-
Notifications
You must be signed in to change notification settings - Fork 901
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
Race condition in Nokogiri::CSS::Parser #1935
Comments
Thanks for reporting, I'll take a look as soon as I can. |
The reason why it happens is because there is no locking around nokogiri/lib/nokogiri/css/parser_extras.rb Lines 34 to 39 in 24a2b5e
|
The solution is to use |
fixes #1935 also: - remove internal method `Nokogiri::CSS::Parser.cache_on=` in favor of`.set_cache` - add more test coverage to the CSS cache
I found it by manual analysis supported by some tools like grep and custom scripts to narrow down on potential issues. |
The text was updated successfully, but these errors were encountered: