From df13f9389239a4b99cee45acdec41278e10162b3 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 16 Jun 2018 11:47:36 +0200 Subject: [PATCH] fix extraction of Doubutsu no Mori files --- heuristics.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/heuristics.py b/heuristics.py index 3f1a595..bec2690 100644 --- a/heuristics.py +++ b/heuristics.py @@ -22,6 +22,8 @@ def try_actor(f): return False f.seek(-section_size, 2) section_start = f.tell() + if section_start + 12 >= file_size: + return False data_offset = R4(f.read(4)) data_size = R4(f.read(4)) misc_size = R4(f.read(4))