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

Fix vertex.inspect #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

lukaso
Copy link
Contributor

@lukaso lukaso commented Dec 27, 2020

This fails in bundler when doing dependency_graph.inspect as ruby and rubygems dependencies are named "Ruby\0" and "RubyGems\0".

The call will cause an ArgumentError with message string contains null byte.

There appears to be some bug in how inspect is called, as testing inspect on a string with a null byte such as "Ruby\0" works without issue.

This fails in bundler when doing `dependency_graph.inspect` as ruby and rubygems dependencies are
named "Ruby\0" and "RubyGems\0" which
causes a `ArgumentError` with message `string contains null byte`
@segiddins
Copy link
Member

Should we add a test covering this? is it potentially an encoding issue?

@lukaso
Copy link
Contributor Author

lukaso commented Jan 25, 2021

Should we add a test covering this? is it potentially an encoding issue?

I could only reproduce it while using inside bundler. I've tried causing the error using just a string, and even various components with no luck. It's quite weird how it is happening. So unfortunately I wasn't able to come up with an independent test. I'm guessing it's not used very often.

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

Successfully merging this pull request may close these issues.

None yet

2 participants