Skip to content

Reference::is_valid_name(): handle errors in CString conversion#1229

Merged
ehuss merged 1 commit intorust-lang:masterfrom
DanielEScherzer:reference-name-null
Mar 31, 2026
Merged

Reference::is_valid_name(): handle errors in CString conversion#1229
ehuss merged 1 commit intorust-lang:masterfrom
DanielEScherzer:reference-name-null

Conversation

@DanielEScherzer
Copy link
Copy Markdown
Contributor

Instead of panicking, treat failure to create a CString as indicating that the name is not valid.

Closes #1218

Instead of panicking, treat failure to create a `CString` as indicating that
the name is not valid.

Closes rust-lang#1218
@rustbot rustbot added the S-waiting-on-review Status: Waiting on review label Mar 31, 2026
Copy link
Copy Markdown
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

@ehuss ehuss added this pull request to the merge queue Mar 31, 2026
Merged via the queue into rust-lang:master with commit ce4dc01 Mar 31, 2026
7 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Waiting on review label Mar 31, 2026
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.

Panic in git2-rs Reference::is_valid_name() on Null Byte Input

3 participants