Increase the Retouch buffer size.
New WebKit merge built with JSC javascript engine triggers the overflow. Change-Id: I71a9bbc9b27c9a0e7f3680f20be2696f61c3b266
This commit is contained in:
@@ -62,7 +62,7 @@ static source_t *sources = NULL;
|
|||||||
|
|
||||||
// We will store retouch entries into this buffer, then dump them at the
|
// We will store retouch entries into this buffer, then dump them at the
|
||||||
// end of the .so file before setup_prelink_info().
|
// end of the .so file before setup_prelink_info().
|
||||||
#define RETOUCH_MAX_SIZE 500000
|
#define RETOUCH_MAX_SIZE 550000
|
||||||
static char *retouch_buf;
|
static char *retouch_buf;
|
||||||
static unsigned int retouch_byte_cnt;
|
static unsigned int retouch_byte_cnt;
|
||||||
// Compression state.
|
// Compression state.
|
||||||
|
@@ -191,7 +191,7 @@ int main(int argc, char **argv)
|
|||||||
int prelinked = 0, retouched = 0;
|
int prelinked = 0, retouched = 0;
|
||||||
int elf_little; /* valid if prelinked != 0 */
|
int elf_little; /* valid if prelinked != 0 */
|
||||||
long prelink_addr; /* valid if prelinked != 0 */
|
long prelink_addr; /* valid if prelinked != 0 */
|
||||||
#define RETOUCH_MAX_SIZE 500000
|
#define RETOUCH_MAX_SIZE 550000
|
||||||
/* _cnt valid if retouched != 0 */
|
/* _cnt valid if retouched != 0 */
|
||||||
unsigned int retouch_byte_cnt = RETOUCH_MAX_SIZE;
|
unsigned int retouch_byte_cnt = RETOUCH_MAX_SIZE;
|
||||||
char retouch_buf[RETOUCH_MAX_SIZE]; /* valid if retouched != 0 */
|
char retouch_buf[RETOUCH_MAX_SIZE]; /* valid if retouched != 0 */
|
||||||
|
Reference in New Issue
Block a user