You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you intend to report a security vulnerability, please do so at HackerOne following the process detailed in SECURITY.md. Do not report it through GitHub.
Describe the bug
Use jruby 9.13.0-p0 with nokogiri 1.10.0 parse the one xml file (pretty big file [4MB/ 3.5W line])
use xpath to locate the node. and then get very fast memory leak
To Reproduce
#! /usr/bin/env rubyrequire'nokogiri'require'minitest/autorun'classTest < MiniTest::Specdescribe"Node#css"doit"should find a div using chained classes"doifFile.exist?index_fileindex_xml=Nokogiri::XML(File.open(index_file))all_file=index_xml.xpath("//compound[@kind='file']")all_file.eachdo |one_file|
file_name="#{one_file.xpath('./name').first.inner_text}"ifCODE_LOGGER_CFG['doxygen']['filter_header']iffile_name =~ /.*\.(h|hpp|h\+\+|hh)$/nextendendone_file_hash={:name=>file_name,:id=>one_file['refid'],:functions=>{}}file_hash[one_file['refid']]=one_file_hashfunctions=one_file.xpath('./member[@kind="function"]')functions.eachdo |one_func|
one_func_hash={:name=>"#{one_func.xpath('./name').first.inner_text}",:id=>one_func['refid'],:file=>one_file_hash}function_hash[one_func['refid']]=one_func_hashendendassert_equal1,1endendend
If you haven't included a test, please provide whatever code you can, the inputs if any, along with the output that you're seeing. We need to reproduce what you're seeing to be able to help.
Expected behavior
memory not leak.
Environment
nokogiri 1.10.0 - jruby 9.13.0-p0
Additional context
The text was updated successfully, but these errors were encountered:
.... oh i figure it out , the logstash Entrance use the old version 1.8.5 nokogiri which has this problem, but the new 1.10.0 is fix, but the jruby has two version of nokogiri the logstash has gemfile lock to 1.8.5, make it to 1.10.0 the problem fix.
Do not report Security Vulnerabilities here
If you intend to report a security vulnerability, please do so at HackerOne following the process detailed in
SECURITY.md
. Do not report it through GitHub.Describe the bug
Use jruby 9.13.0-p0 with nokogiri 1.10.0 parse the one xml file (pretty big file [4MB/ 3.5W line])
use xpath to locate the node. and then get very fast memory leak
To Reproduce
index.xml.docx
If you haven't included a test, please provide whatever code you can, the inputs if any, along with the output that you're seeing. We need to reproduce what you're seeing to be able to help.
Expected behavior
memory not leak.
Environment
nokogiri 1.10.0 - jruby 9.13.0-p0
Additional context
The text was updated successfully, but these errors were encountered: