]> mj.ucw.cz Git - libucw.git/commitdiff
tiny bugfix
authorRobert Spalek <robert@ucw.cz>
Fri, 16 Jul 2004 10:50:14 +0000 (10:50 +0000)
committerRobert Spalek <robert@ucw.cz>
Fri, 16 Jul 2004 10:50:14 +0000 (10:50 +0000)
lib/buck2obj.c

index 15aac17474919ac691286b58828edfed16ce7ebe..81d67856691ea9990aa60beb5d57f7387a4f74ad 100644 (file)
@@ -130,7 +130,7 @@ buck2obj_parse(struct buck2obj_buf *buf, uns buck_type, uns buck_len, struct fas
     }
     if (buck_type == BUCKET_TYPE_V33_LIZARD)           // decompression
     {
-      if (ptr + 4 > end)
+      if (ptr + 8 > end)
        RET_ERR(EINVAL);
       len = GET_U32(ptr);
       ptr += 4;