Skip to content

Initialize filepath option to the empty string - #4253

Merged
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:filepath-nonnull
Oct 12, 2026
Merged

kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:filepath-nonnull

Conversation

@Earlopain

Copy link
Copy Markdown
Collaborator

Same as current_string, set it to be empty.
Similarly, when populating user-provided options, we need to check the lengh, same as for encoding.

Closes #4249

Same as `current_string`, set it to be empty.
Similarly, when populating user-provided options, we need to check the lengh, same as for `encoding`.

Closes ruby#4249
@Earlopain Earlopain changed the title Default-initialize filepath option Initialize filepath option to the empty string Oct 12, 2026
@kddnewton
kddnewton merged commit 03ffb38 into ruby:main Oct 12, 2026
110 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.

[Bug]Serializing the AST of __FILE__ passes a NULL source pointer to pm_buffer_append() (memcpy), UBSan nonnull violation → ILL (CWE-476)

2 participants