We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21dab45 commit 4a75c0eCopy full SHA for 4a75c0e
1 file changed
src/core/modules/core/core.cpp
@@ -33,7 +33,8 @@
33
34
void ConsoleMessage(const char* msg)
35
{
36
- char* pMsg = (char*) msg;
+ // Ensure all formatting specifiers are escaped to prevent a crash (fix for issue #275).
37
+ char* pMsg = (char*) extract<char *>(str(msg).replace("%", "%%"));
38
int iLen = strlen(msg);
39
40
while(iLen > 0) {
@@ -77,4 +78,4 @@ list GetCoreModules()
77
78
}
79
80
return result;
-}
81
+}
0 commit comments