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

Jeremy Fitzhardinge
2007-04-12T22:58:26Z

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;