| Index: snapshot/mac/mach_o_image_segment_reader.cc
|
| diff --git a/snapshot/mac/mach_o_image_segment_reader.cc b/snapshot/mac/mach_o_image_segment_reader.cc
|
| index 5c74d80dd1815ac10a9a6202e003abd1679ec727..9b07e904ea87c6cd47c44bba36d657ae9ae22e6c 100644
|
| --- a/snapshot/mac/mach_o_image_segment_reader.cc
|
| +++ b/snapshot/mac/mach_o_image_segment_reader.cc
|
| @@ -95,7 +95,8 @@ bool MachOImageSegmentReader::Initialize(ProcessReader* process_reader,
|
| }
|
|
|
| sections_.resize(segment_command_.nsects);
|
| - if (!process_types::section::ReadArrayInto(
|
| + if (!sections_.empty() &&
|
| + !process_types::section::ReadArrayInto(
|
| process_reader,
|
| load_command_address + segment_command_.Size(),
|
| segment_command_.nsects,
|
|
|