From: Kees Cook <kees@outflux.net>
To: trivial@kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] lib: zlib_inflate "r.base" uninitialized compile warnings
Date: Sun, 25 Dec 2005 10:07:58 -0800 [thread overview]
Message-ID: <20051225180758.GM18040@outflux.net> (raw)
Eliminates compile-time warnings from "r" being uninitialized.
Signed-of-by: Kees Cook <kees@outflux.net>
---
--- linux-2.6.15-rc7/lib/zlib_inflate/inftrees.c.orig 2005-12-25 09:51:01.000000000 -0800
+++ linux-2.6.15-rc7/lib/zlib_inflate/inftrees.c 2005-12-25 09:46:06.000000000 -0800
@@ -196,6 +196,7 @@ static int huft_build(
u[0] = NULL; /* just to keep compilers happy */
q = NULL; /* ditto */
z = 0; /* ditto */
+ r.word.pad = r.base = 0; /* ditto */
/* go through the bit lengths (k already is bits in shortest code) */
for (; k <= g; k++)
--
Kees Cook @outflux.net
next reply other threads:[~2005-12-25 18:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-25 18:07 Kees Cook [this message]
2005-12-25 18:34 ` Al Viro
2005-12-25 20:39 ` Kees Cook
2005-12-25 20:08 James Lamanna
2005-12-25 20:35 ` Kees Cook
2005-12-25 20:43 ` Al Viro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051225180758.GM18040@outflux.net \
--to=kees@outflux.net \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®