623fdc
diff --git a/extract.c b/extract.c
623fdc
index a0a4929..9ef80b3 100644
623fdc
--- a/extract.c
623fdc
+++ b/extract.c
623fdc
@@ -2214,6 +2214,7 @@ static int test_compr_eb(__G__ eb, eb_size, compr_offset, test_uc_ebdata)
623fdc
     ulg eb_ucsize;
623fdc
     uch *eb_ucptr;
623fdc
     int r;
623fdc
+    ush method;
623fdc
 
623fdc
     if (compr_offset < 4)                /* field is not compressed: */
623fdc
         return PK_OK;                    /* do nothing and signal OK */
623fdc
@@ -2223,6 +2224,12 @@ static int test_compr_eb(__G__ eb, eb_size, compr_offset, test_uc_ebdata)
623fdc
          eb_size <= (compr_offset + EB_CMPRHEADLEN)))
623fdc
         return IZ_EF_TRUNC;               /* no compressed data! */
623fdc
 
623fdc
+    method = makeword(eb + (EB_HEADSIZE + compr_offset));
623fdc
+    if ((method == STORED) && (eb_size != compr_offset + EB_CMPRHEADLEN + eb_ucsize))
623fdc
+        return PK_ERR;            /* compressed & uncompressed
623fdc
+                                   * should match in STORED
623fdc
+                                   * method */
623fdc
+
623fdc
     if (
623fdc
 #ifdef INT_16BIT
623fdc
         (((ulg)(extent)eb_ucsize) != eb_ucsize) ||