From a4037959dde12cd46c936a5ba13a501351743792 Mon Sep 17 00:00:00 2001 From: Bartlomiej Grzelewski Date: Mon, 17 Jul 2017 19:04:36 +0200 Subject: [PATCH] Fix buffer overflow in exception.h Change-Id: Idaf6e6c8afa4936370e97c5870dfb5b7b5149e24 --- src/dpl/core/include/dpl/exception.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpl/core/include/dpl/exception.h b/src/dpl/core/include/dpl/exception.h index 005e735..2409265 100644 --- a/src/dpl/core/include/dpl/exception.h +++ b/src/dpl/core/include/dpl/exception.h @@ -250,7 +250,7 @@ class Exception m_className.c_str(), m_message.empty() ? "" : m_message.c_str()); - buf[sizeof(buf) - 1] = '\n'; + buf[sizeof(buf) - 1] = '\0'; ret += buf; return ret; -- 2.7.4