projects
/
linux-flexiantxendom0-3.2.10.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d998729
)
[PATCH] Remove pointless check in zlib
author
Dave Jones <davej@redhat.com>
Thu, 2 Sep 2004 07:37:29 +0000
(
00:37
-0700)
committer
Linus Torvalds <torvalds@ppc970.osdl.org>
Thu, 2 Sep 2004 07:37:29 +0000
(
00:37
-0700)
We dereference 'z' a few lines above this check.
If it was possible to hit this condition, it wouldve
triggered long ago, in the form of a crash.
Spotted with the source checker from Coverity.com.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/zlib_inflate/inflate.c
patch
|
blob
|
history
diff --git
a/lib/zlib_inflate/inflate.c
b/lib/zlib_inflate/inflate.c
index
974a0fe
..
70d3d9a
100644
(file)
--- a/
lib/zlib_inflate/inflate.c
+++ b/
lib/zlib_inflate/inflate.c
@@
-53,8
+53,6
@@
int zlib_inflateInit2_(
return Z_VERSION_ERROR;
/* initialize state */
- if (z == NULL)
- return Z_STREAM_ERROR;
z->msg = NULL;
z->state = &WS(z)->internal_state;
z->state->blocks = NULL;