Skip to content

Conversation

@AdamKorcz
Copy link

a.children can be nil which results in a NilClass bug on when resolving a.children.first. This PR fixes that. The crash can be tested by removing the line in lib/psych/visitors/to_ruby.rb and running the test. This was found by fuzz_load in this PR: google/oss-fuzz#14706.

Signed-off-by: Adam Korczynski <adam@adalogics.com>
Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

Thanks for supplying the reader with enough context to see the issue.

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.

2 participants