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 crash during parsing #40

Merged
merged 1 commit into from
Aug 8, 2023
Merged

Fix crash during parsing #40

merged 1 commit into from
Aug 8, 2023

Conversation

peterzhu2118
Copy link
Member

The following script causes a crash on my machine (Ruby 3.1.2 on macOS):

require "syck"

GC.stress = true
GC.auto_compact = true

yaml = Syck::Parser.new
yaml.load(<<-YAML)
- foobar
YAML

Enabling compaction causes it to reliably crash, but I think it could also crash without compaction.

The following script causes a crash on my machine (Ruby 3.1.2 on macOS):

```ruby
require "syck"

GC.stress = true
GC.auto_compact = true

yaml = Syck::Parser.new
yaml.load(<<-YAML)
- foobar
YAML
```

Enabling compaction causes it to reliably crash, but I think it could
also crash without compaction.
@hsbt hsbt merged commit 4a84c77 into master Aug 8, 2023
@hsbt hsbt deleted the pz-compact-crash-1 branch August 8, 2023 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants