lkml.org 
[lkml]   [2003]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[Patch] 2.5.70-bk11 zlib merge #2 return code
Hi Linus!

Don't think anyone actually bothers to check specific error codes, but
it shouldn't hurt either.

Jörn

--
A surrounded army must be given a way out.
-- Sun Tzu

--- linux-2.5.70-bk11/lib/zlib_inflate/inftrees.c~zlib_merge_return 2003-06-06 20:47:11.000000000 +0200
+++ linux-2.5.70-bk11/lib/zlib_inflate/inftrees.c 2003-06-06 21:25:10.000000000 +0200
@@ -229,7 +229,7 @@

/* allocate new table */
if (*hn + z > MANY) /* (note: doesn't matter for fixed) */
- return Z_MEM_ERROR; /* not enough memory */
+ return Z_DATA_ERROR; /* overflow of MANY */
u[h] = q = hp + *hn;
*hn += z;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:1.216 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site