From 62dcda82635103ed1aebb76af61542b640f8ee82 Mon Sep 17 00:00:00 2001 From: Karchnu Date: Tue, 21 Jul 2020 00:47:01 +0200 Subject: [PATCH] Message size for input callback in switch context: fixed. --- src/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network.c b/src/network.c index 273b527..60aee61 100644 --- a/src/network.c +++ b/src/network.c @@ -200,8 +200,8 @@ enum ipccb default_cb_in(int fd, struct ipc_message *m) { // TODO: fix buffer size for switching messages - size_t msize = 4096; - char buf[msize]; + size_t msize = IPC_MAX_MESSAGE_SIZE; + SECURE_BUFFER_DECLARATION (char, buf, msize); char *pbuf = buf; // By default, usock_read (a wrapper around read(2)) is used.