diff options
author | B1Z0N <kolausf@gmail.com> | 2019-09-01 00:35:04 +0300 |
---|---|---|
committer | B1Z0N <kolausf@gmail.com> | 2019-09-01 00:35:04 +0300 |
commit | 787e7ef616c7fec78d687324168c8d84d5349d37 (patch) | |
tree | dda89c076aaf4555e04464b4720a6474f69abdb5 | |
parent | 1212beae777dba02c230ece8c0c0ec12790047ea (diff) | |
download | Microsoft-GSL-787e7ef616c7fec78d687324168c8d84d5349d37.tar.gz |
Thanks to @stayprivates fixed out of bounds access in "TestNotNullostream"
-rw-r--r-- | tests/notnull_tests.cpp | 4 |
1 files 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<void*>(p); + ref << static_cast<void*>(&v); CHECK(os.str() == ref.str()); } { |