Source-Changes-HG archive

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

[src/netbsd-2-0]: src Pull up revision 1.10 (requested by tron in ticket #5550):



details:   https://anonhg.NetBSD.org/src/rev/e84706981abd
branches:  netbsd-2-0
changeset: 564818:e84706981abd
user:      snj <snj%NetBSD.org@localhost>
date:      Fri Aug 05 20:22:04 2005 +0000

description:
Pull up revision 1.10 (requested by tron in ticket #5550):
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 395c3342cbfb -r e84706981abd lib/libz/inftrees.c
--- a/lib/libz/inftrees.c       Thu Jul 28 20:28:58 2005 +0000
+++ b/lib/libz/inftrees.c       Fri Aug 05 20:22:04 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.9.2.1 2005/08/05 20:22:04 snj 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.9.2.1 2005/08/05 20:22:04 snj 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 395c3342cbfb -r e84706981abd sys/lib/libz/inftrees.c
--- a/sys/lib/libz/inftrees.c   Thu Jul 28 20:28:58 2005 +0000
+++ b/sys/lib/libz/inftrees.c   Fri Aug 05 20:22:04 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inftrees.c,v 1.7 2003/08/31 22:40:49 fvdl Exp $ */
+/* $NetBSD: inftrees.c,v 1.7.2.1 2005/08/05 20:22:25 snj 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