From 787e7ef616c7fec78d687324168c8d84d5349d37 Mon Sep 17 00:00:00 2001 From: B1Z0N Date: Sun, 1 Sep 2019 00:35:04 +0300 Subject: [PATCH] Thanks to @stayprivates fixed out of bounds access in "TestNotNullostream" --- tests/notnull_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp index ce5a123..010dd00 100644 --- a/tests/notnull_tests.cpp +++ b/tests/notnull_tests.cpp @@ -234,8 +234,8 @@ void ostream_helper(T v) { std::ostringstream os; std::ostringstream ref; - os << p; - ref << &v; + os << static_cast(p); + ref << static_cast(&v); CHECK(os.str() == ref.str()); } {