Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Return correct error on all zero length codes. Fix from Gent...



details:   https://anonhg.NetBSD.org/src/rev/b4176171a0d0
branches:  trunk
changeset: 583391:b4176171a0d0
user:      tron <tron%NetBSD.org@localhost>
date:      Thu Aug 04 14:36:42 2005 +0000

description:
Return correct error on all zero length codes. Fix from Gentoo bug 94584.

diffstat:

 lib/libz/inftrees.c     |  6 +++---
 sys/lib/libz/inftrees.c |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 33b3175571cb -r b4176171a0d0 lib/libz/inftrees.c
--- a/lib/libz/inftrees.c       Thu Aug 04 07:51:09 2005 +0000
+++ b/lib/libz/inftrees.c       Thu Aug 04 14:36:42 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inftrees.c,v 1.9 2003/03/18 19:53:16 mycroft Exp $ */
+/* $NetBSD: inftrees.c,v 1.10 2005/08/04 14:36:42 tron Exp $ */
 
 /* inftrees.c -- generate Huffman trees for efficient decoding
  * Copyright (C) 1995-2002 Mark Adler
@@ -6,7 +6,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: inftrees.c,v 1.9 2003/03/18 19:53:16 mycroft Exp $");
+__RCSID("$NetBSD: inftrees.c,v 1.10 2005/08/04 14:36:42 tron Exp $");
 
 #include "zutil.h"
 #include "inftrees.h"
@@ -147,7 +147,7 @@
   {
     *t = (inflate_huft *)Z_NULL;
     *m = 0;
-    return Z_OK;
+    return Z_NEED_DICT;
   }
 
 
diff -r 33b3175571cb -r b4176171a0d0 sys/lib/libz/inftrees.c
--- a/sys/lib/libz/inftrees.c   Thu Aug 04 07:51:09 2005 +0000
+++ b/sys/lib/libz/inftrees.c   Thu Aug 04 14:36:42 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inftrees.c,v 1.9 2005/02/26 22:58:57 perry Exp $ */
+/* $NetBSD: inftrees.c,v 1.10 2005/08/04 14:38:45 tron Exp $ */
 
 /* inftrees.c -- generate Huffman trees for efficient decoding
  * Copyright (C) 1995-2002 Mark Adler
@@ -144,7 +144,7 @@
   {
     *t = (inflate_huft *)Z_NULL;
     *m = 0;
-    return Z_OK;
+    return Z_NEED_DICT;
   }
 
 



Home | Main Index | Thread Index | Old Index