Skip to content

Commit

Permalink
Fix LogcatTextWriter_Log interpreting messages it logs, potentially w…
Browse files Browse the repository at this point in the history
…riting random garbage and/or crashing (introduced by mono@984f648) (Fixes dotnet/android#1951)
  • Loading branch information
mathieubourgeois authored and monojenkins committed Jul 17, 2018
1 parent 6716456 commit 0904d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/metadata/icall.c
Original file line number Diff line number Diff line change
Expand Up @@ -8060,7 +8060,7 @@ ves_icall_System_Runtime_InteropServices_WindowsRuntime_UnsafeNativeMethods_Wind
ICALL_EXPORT void
ves_icall_System_IO_LogcatTextWriter_Log (const char *appname, gint32 level, const char *message)
{
g_log (appname, (GLogLevelFlags)level, message);
g_log (appname, (GLogLevelFlags)level, "%s", message);
}

static MonoIcallTableCallbacks icall_table;
Expand Down

0 comments on commit 0904d0a

Please sign in to comment.