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