-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[aot] mono_aot_split_options handles \ incorrectly #108066
Labels
Milestone
Comments
dotnet-policy-service
bot
added
the
untriaged
New issue has not been triaged by the area owner
label
Sep 20, 2024
lambdageek
removed
the
untriaged
New issue has not been triaged by the area owner
label
Sep 20, 2024
Not a regression, this seems to go back all the way to ~2015 |
lambdageek
added a commit
to lambdageek/runtime
that referenced
this issue
Sep 20, 2024
dotnet-policy-service
bot
added
the
in-pr
There is an active PR which will close this issue when it is merged
label
Sep 20, 2024
sirntar
pushed a commit
to sirntar/runtime
that referenced
this issue
Sep 30, 2024
jeffschwMSFT
added a commit
that referenced
this issue
Oct 3, 2024
Fixes #108066 Co-authored-by: Aleksey Kliger <alklig@microsoft.com> Co-authored-by: Jeff Schwartz <jeffschw@microsoft.com>
mikelle-rogers
pushed a commit
to mikelle-rogers/runtime
that referenced
this issue
Dec 10, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
The idea is that you can pass an option like
--aot=foo=bar,baz="abc\"def\",xyz=012
and the AOT compiler will see optionsfoo=bar
,baz=abc"def
andzyx=012
.But this line that is supposed to handle the character following a
\
is wrongruntime/src/mono/mono/mini/aot-compiler.c
Lines 8749 to 8750 in 68b90ac
it never resets the state back to
MONO_AOT_OPTION_STATE_STRING
, so everything after the\
until the end of the options is treated as a single long option:foo=bar
,baz=abc\"def",xyz=012
Also the
\
is itself never removed from the option - instead ofbar=abc"def
we getbar=abc\"def
. (And this is a hard problem because we woudl need to copy or modify the string, which we don't otherwise do)The text was updated successfully, but these errors were encountered: