Skip to content

Null-check hb_language_t before CStr::from_ptr#273

Merged
mrobinson merged 1 commit intoservo:mainfrom
hsivonen:langstring
Feb 17, 2026
Merged

Null-check hb_language_t before CStr::from_ptr#273
mrobinson merged 1 commit intoservo:mainfrom
hsivonen:langstring

Conversation

@hsivonen
Copy link
Contributor

AFAICT, CStr::from_ptr requires the argument to be non-null and HarfBuzz may have returned a null pointer upon allocation failure.

@mrobinson mrobinson added this pull request to the merge queue Feb 17, 2026
Merged via the queue into servo:main with commit 647c411 Feb 17, 2026
8 checks passed
@hsivonen hsivonen deleted the langstring branch February 17, 2026 09:24
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