OSDN Git Service

Increase the Retouch buffer size from 550,000 to 600,000
authorSteve Block <steveblock@google.com>
Fri, 27 Aug 2010 12:18:46 +0000 (13:18 +0100)
committerSteve Block <steveblock@google.com>
Fri, 27 Aug 2010 12:18:46 +0000 (13:18 +0100)
The WebKit merge to r66079 built with JSC JavaScript engine triggers the
overflow.

Change-Id: Ifcb92aa019cfb0e7a93d667e15a792554fc0f676

tools/apriori/apriori.c
tools/soslim/main.c

index 0e5b5d2..b827375 100644 (file)
@@ -62,7 +62,7 @@ static source_t *sources = NULL;
 
 // We will store retouch entries into this buffer, then dump them at the
 // end of the .so file before setup_prelink_info().
-#define RETOUCH_MAX_SIZE 550000
+#define RETOUCH_MAX_SIZE 600000
 static char *retouch_buf;
 static unsigned int retouch_byte_cnt;
 // Compression state.
index affc2bc..df48484 100644 (file)
@@ -191,7 +191,7 @@ int main(int argc, char **argv)
         int prelinked = 0, retouched = 0;
         int elf_little; /* valid if prelinked != 0 */
         long prelink_addr; /* valid if prelinked != 0 */
-#define RETOUCH_MAX_SIZE 550000
+#define RETOUCH_MAX_SIZE 600000
         /* _cnt valid if retouched != 0 */
         unsigned int retouch_byte_cnt = RETOUCH_MAX_SIZE;
         char retouch_buf[RETOUCH_MAX_SIZE]; /* valid if retouched != 0 */