about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2024-07-30 00:51:20 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-07-30 16:59:12 +0200
commit11ad033e1c09c8b8e7bbaa72420f41ab8bcf0f63 (patch)
treef8ba4f44ab61feb78302c969c66fd62da2a9427d
parentf6ba993e0cda0ca5554fd47b00e6a87be5fdf05e (diff)
downloadglibc-11ad033e1c09c8b8e7bbaa72420f41ab8bcf0f63.tar.gz
glibc-11ad033e1c09c8b8e7bbaa72420f41ab8bcf0f63.tar.xz
glibc-11ad033e1c09c8b8e7bbaa72420f41ab8bcf0f63.zip
x86_64 hurd: ensure we have a large enough buffer to receive exception_raise requests.
Message-ID: <gtxd6s4s7fi7hdrlb7zayq3akij7x6jqawwq3zfl3v4nqspulo@euucuzeonrl6>
-rw-r--r--hurd/hurdfault.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/hurd/hurdfault.c b/hurd/hurdfault.c
index 5110c6030f..1fe973f54d 100644
--- a/hurd/hurdfault.c
+++ b/hurd/hurdfault.c
@@ -121,7 +121,14 @@ faulted (void)
   struct
     {
       mach_msg_header_t head;
-      char buf[64];
+        /* This is the size of the exception_raise request
+         * including mach_msg_header_t.
+         * See generated code in faultexc_server.c.  */
+#ifdef __LP64__
+        char buf[112];
+#else
+        char buf[64];
+#endif
     } request;
   mig_reply_header_t reply;
   extern int _hurdsig_fault_exc_server (mach_msg_header_t *,