goccy / go-yaml

YAML support for the Go language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty null value with line comment causes seg fault

mikefarah opened this issue · comments

Describe the bug

This causes a segfault:

cat:
# comment

To Reproduce

https://go.dev/play/p/MNVPesMed_y

Expected behavior
Parses correctly with the comment

Version Variables

  • Go version: 1.21
  • go-yaml's Version: v1.11.2

Additional context