Skip to content

Commit

Permalink
[aot] mono_aot_split_options: reset state after a backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdageek committed Sep 20, 2024
1 parent 82cb4f1 commit 2d69fd0
Showing 1 changed file with 7 additions and 1 deletion.
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 @@ -8744,8 +8744,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

0 comments on commit 2d69fd0

Please sign in to comment.