From 8d86aa69bc9270338b4fa0e3d1e508e3d6df40a9 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 25 Apr 2021 18:02:31 -0400 Subject: [PATCH] Adds an assert to check handling of compressed data. --- Storage/State/Z80.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Storage/State/Z80.cpp b/Storage/State/Z80.cpp index 7a8ca8a21..d59b8a7d4 100644 --- a/Storage/State/Z80.cpp +++ b/Storage/State/Z80.cpp @@ -193,6 +193,7 @@ std::unique_ptr Z80::load(const std::string &file_name } } + assert(location + block_size == file.tell()); file.seek(location + block_size, SEEK_SET); }