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

segfault if IO reader given to Nokogiri::XML::Reader returns non string #898

Closed
nvloff opened this issue May 5, 2013 · 1 comment
Closed

Comments

@nvloff
Copy link

nvloff commented May 5, 2013

The following test leads to a segfault

class TestReader < Nokogiri::TestCase
  class NonStringIO
    def read(size)
      :invalid_object
    end
  end

  def test_io_non_string
    io = NonStringIO.new
    Nokogiri::XML::Reader(io)
  end
end
@leejarvis
Copy link
Member

The problem is when hooking into libxml2 here. Leaving this here so I can look into it when I have a little more time.

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

No branches or pull requests

2 participants