From dcc8e8632a3fdc8f99843f4a1326bb14bc699085 Mon Sep 17 00:00:00 2001
From: devttys0 <cheffner@refirmlabs.com>
Date: Wed, 24 Jun 2020 06:28:39 -0700
Subject: [PATCH] Added validation of ZIP footers

---
 src/binwalk/magic/archives | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/binwalk/magic/archives b/src/binwalk/magic/archives
index e307aa4..571ecba 100644
--- a/src/binwalk/magic/archives
+++ b/src/binwalk/magic/archives
@@ -49,6 +49,7 @@
 
 # ZIP footer
 0       string      PK\x05\x06      End of Zip archive,
+>20	leshort+22  <1		    invalid{invalid}
 >20     leshort+22  x               footer length: %d
 >20     leshort     >0
 >>20    leshort     x               \b, comment:
--
libgit2 0.26.0