Skip to content

Don't use rb_str_new_static on heap data#322

Merged
XrXr merged 1 commit intomasterfrom
these-are-not-static
Oct 24, 2020
Merged

Don't use rb_str_new_static on heap data#322
XrXr merged 1 commit intomasterfrom
these-are-not-static

Conversation

@XrXr
Copy link
Copy Markdown
Contributor

@XrXr XrXr commented Oct 24, 2020

rb_str_new_static() only takes C string literals.
Using rb_str_new() means an extra memcpy(), but let's go for correctness
first.

rb_str_new_static() only takes C string literals.
Using rb_str_new() means an extra memcpy(), but let's go for correctness
first.
@XrXr XrXr requested a review from burke as a code owner October 24, 2020 02:44
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.

3 participants