Skip to content

fix: UB when calling empty YAML::Binary::data() - #1482

Merged
SGSSGene merged 1 commit into
jbeder:masterfrom
SGSSGene:fix/binary
Aug 14, 2026
Merged

fix: UB when calling empty YAML::Binary::data()#1482
SGSSGene merged 1 commit into
jbeder:masterfrom
SGSSGene:fix/binary

Conversation

@SGSSGene

Copy link
Copy Markdown
Collaborator

fix #1248

calling YAML::Binary::data() on binary data of length zero caused undefined behavior. This PR fixes this.

@SGSSGene
SGSSGene requested a review from jbeder August 11, 2026 14:12
@SGSSGene
SGSSGene merged commit 4b68172 into jbeder:master Aug 14, 2026
46 checks passed
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.

Reference binding to null pointer @ Binary::data()

1 participant