diff --git a/src/processor/minidump_unittest.cc b/src/processor/minidump_unittest.cc index 719adf78..c34ccd4d 100644 --- a/src/processor/minidump_unittest.cc +++ b/src/processor/minidump_unittest.cc @@ -111,7 +111,7 @@ TEST_F(MinidumpTest, TestMinidumpFromFile) { TEST_F(MinidumpTest, TestMinidumpFromStream) { // read minidump contents into memory, construct a stringstream around them - ifstream file_stream(minidump_file_.c_str(), std::ios::in); + ifstream file_stream(minidump_file_.c_str(), std::ios::in | std::ios::binary); ASSERT_TRUE(file_stream.good()); vector bytes; file_stream.seekg(0, std::ios_base::end);