[hackers] [flate] deflate fix empty input case || nsz

From: <hg_AT_suckless.org>
Date: Fri, 21 Aug 2009 13:50:13 +0000 (UTC)

changeset: 102:4a4dda29bc6a
user: nsz <nszabolcs_AT_gmail.com>
date: Sun Aug 16 15:26:55 2009 +0200
files: deflate.c
description:
deflate fix empty input case

diff -r 33793714fbe1 -r 4a4dda29bc6a deflate.c
--- a/deflate.c Sun Aug 16 13:53:56 2009 +0200
+++ b/deflate.c Sun Aug 16 15:26:55 2009 +0200
@@ -677,6 +677,7 @@
                 if (!s)
                         return stream->err = "no mem.", FlateErr;
                 s->state = FlateOut;
+ s->src = s->srcend = 0;
         }
         if (stream->nin) {
                 s->src = stream->in;
Received on Fri Aug 21 2009 - 13:50:13 UTC

This archive was generated by hypermail 2.2.0 : Fri Aug 21 2009 - 14:00:08 UTC