On Wed, 14 Sep 2022, LIU Hao wrote:

在 2022-09-14 15:33, Martin Storsjö 写道:
+
+void __cdecl __attribute__((__noreturn__)) __chk_fail(void) {
+  char msg[] = "*** buffer overflow detected ***: terminated\n";
+  write(STDERR_FILENO, msg, strlen(msg));
+  abort();
+}

Are there any reasons why `msg` is not `static const`? I just had a quick glance here and will look into others later.

No specific reason; I can amend the patches with that change.

// Martin

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to