diff options
Diffstat (limited to 'xdelta3/testing/file.h')
-rw-r--r-- | xdelta3/testing/file.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xdelta3/testing/file.h b/xdelta3/testing/file.h index 4153e5f..9511d1c 100644 --- a/xdelta3/testing/file.h +++ b/xdelta3/testing/file.h | |||
@@ -215,6 +215,10 @@ inline void BlockIterator::Get(Block *block) const { | |||
215 | block->SetSize(BytesOnBlock()); | 215 | block->SetSize(BytesOnBlock()); |
216 | 216 | ||
217 | SegmentMap::const_iterator pos = table.upper_bound(offset); | 217 | SegmentMap::const_iterator pos = table.upper_bound(offset); |
218 | if (pos == table.begin()) { | ||
219 | CHECK_EQ(0, spec_.Size()); | ||
220 | return; | ||
221 | } | ||
218 | --pos; | 222 | --pos; |
219 | 223 | ||
220 | while (got < block->size_) { | 224 | while (got < block->size_) { |