Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/9.0] [aot] mono_aot_split_options: reset state after a backslash #108212

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/mono/mono/mini/aot-compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -8746,8 +8746,14 @@ mono_aot_split_options (const char *aot_options)
g_return_val_if_fail (aot_options != NULL, NULL);

while ((cur = *aot_options) != '\0') {
if (state == MONO_AOT_OPTION_STATE_ESCAPE)
if (state == MONO_AOT_OPTION_STATE_ESCAPE) {
// After the escaped character, we're back inside quotes
//
// Note: we don't seem to remove the "" or the \ from the option here.
// Perhaps the caller is expected to take care of it?
state = MONO_AOT_OPTION_STATE_STRING;
goto next;
}

switch (cur) {
case '"':
Expand Down
Loading