Index: snapshot/minidump/process_snapshot_minidump.cc |
diff --git a/snapshot/minidump/process_snapshot_minidump.cc b/snapshot/minidump/process_snapshot_minidump.cc |
index fa87981b5c2437e87d923f15bd53081c863c0381..5344118c169f91956d92a213230dbc74bf92d9ca 100644 |
--- a/snapshot/minidump/process_snapshot_minidump.cc |
+++ b/snapshot/minidump/process_snapshot_minidump.cc |
@@ -65,7 +65,8 @@ bool ProcessSnapshotMinidump::Initialize(FileReaderInterface* file_reader) { |
} |
stream_directory_.resize(header_.NumberOfStreams); |
- if (!file_reader_->ReadExactly( |
+ if (!stream_directory_.empty() && |
+ !file_reader_->ReadExactly( |
&stream_directory_[0], |
header_.NumberOfStreams * sizeof(stream_directory_[0]))) { |
return false; |