Re: [PATCH UPDATE] deflate stack usage in lib/inflate.c

From: Jeremy Fitzhardinge
Date: Thu Apr 12 2007 - 18:58:41 EST


Matt Mackall wrote:
> On Thu, Apr 12, 2007 at 01:50:54PM -0700, Jeremy Fitzhardinge wrote:
>
>> -#define HEAP_SIZE 0x3000
>> +#define HEAP_SIZE 0x4000
>>
>
> There are a bunch more of these that'll need fixing.
>

Like this?

diff -r 2ad8a0729f26 arch/alpha/boot/misc.c
--- a/arch/alpha/boot/misc.c Thu Apr 12 13:44:02 2007 -0700
+++ b/arch/alpha/boot/misc.c Thu Apr 12 15:48:43 2007 -0700
@@ -98,7 +98,7 @@ static ulg free_mem_ptr;
static ulg free_mem_ptr;
static ulg free_mem_ptr_end;

-#define HEAP_SIZE 0x2000
+#define HEAP_SIZE 0x3000

#include "../../../lib/inflate.c"

diff -r 2ad8a0729f26 arch/arm/boot/compressed/misc.c
--- a/arch/arm/boot/compressed/misc.c Thu Apr 12 13:44:02 2007 -0700
+++ b/arch/arm/boot/compressed/misc.c Thu Apr 12 15:48:43 2007 -0700
@@ -239,7 +239,7 @@ static ulg free_mem_ptr;
static ulg free_mem_ptr;
static ulg free_mem_ptr_end;

-#define HEAP_SIZE 0x2000
+#define HEAP_SIZE 0x3000

#include "../../../../lib/inflate.c"

diff -r 2ad8a0729f26 arch/arm26/boot/compressed/misc.c
--- a/arch/arm26/boot/compressed/misc.c Thu Apr 12 13:44:02 2007 -0700
+++ b/arch/arm26/boot/compressed/misc.c Thu Apr 12 15:48:43 2007 -0700
@@ -182,7 +182,7 @@ static ulg free_mem_ptr;
static ulg free_mem_ptr;
static ulg free_mem_ptr_end;

-#define HEAP_SIZE 0x2000
+#define HEAP_SIZE 0x3000

#include "../../../../lib/inflate.c"

diff -r 2ad8a0729f26 arch/x86_64/boot/compressed/misc.c
--- a/arch/x86_64/boot/compressed/misc.c Thu Apr 12 13:44:02 2007 -0700
+++ b/arch/x86_64/boot/compressed/misc.c Thu Apr 12 15:48:43 2007 -0700
@@ -189,7 +189,7 @@ static long free_mem_ptr;
static long free_mem_ptr;
static long free_mem_end_ptr;

-#define HEAP_SIZE 0x6000
+#define HEAP_SIZE 0x7000

static char *vidmem = (char *)0xb8000;
static int vidport;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/