From d23604a5088154a0f3c253faf387cefc3b15fe31 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 24 Aug 2015 17:05:39 +0200 Subject: mds-registry: fix buffer overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-registry/slave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mds-registry/slave.c b/src/mds-registry/slave.c index 8799cf4..b7f0456 100644 --- a/src/mds-registry/slave.c +++ b/src/mds-registry/slave.c @@ -40,7 +40,7 @@ */ static int slave_notify_client(slave_t* slave) { - char buf[sizeof("To: %s\nIn response to: %s\nMessage ID: %" PRIu32 "\n\n") / sizeof(char) + 40]; + char buf[sizeof("To: %s\nIn response to: %s\nMessage ID: %" PRIu32 "\n\n") / sizeof(char) + 41]; size_t ptr = 0, sent, left; /* Construct message headers. */ -- cgit v1.2.3-70-g09d2