|
From: <sv...@va...> - 2007-05-05 16:46:22
|
Author: sewardj
Date: 2007-05-05 17:46:21 +0100 (Sat, 05 May 2007)
New Revision: 6729
Log:
Merge r6728 (Fix stack overflow which lead to totally mysterious .bss
corruption)
Modified:
branches/VALGRIND_3_2_BRANCH/coregrind/m_ume.c
Modified: branches/VALGRIND_3_2_BRANCH/coregrind/m_ume.c
===================================================================
--- branches/VALGRIND_3_2_BRANCH/coregrind/m_ume.c 2007-05-05 11:40:35 UTC (rev 6728)
+++ branches/VALGRIND_3_2_BRANCH/coregrind/m_ume.c 2007-05-05 16:46:21 UTC (rev 6729)
@@ -553,8 +553,8 @@
/* returns: 0 = success, non-0 is failure */
static Int load_script(Int fd, const HChar* name, ExeInfo* info)
{
- Char hdr[VKI_MAX_PAGE_SIZE];
- Int len = VKI_PAGE_SIZE;
+ Char hdr[4096];
+ Int len = 4096;
Int eol;
Char* interp;
Char* end;
@@ -628,8 +628,8 @@
{
Int fd, ret;
SysRes res;
- Char buf[VKI_MAX_PAGE_SIZE];
- SizeT bufsz = VKI_PAGE_SIZE, fsz;
+ Char buf[4096];
+ SizeT bufsz = 4096, fsz;
// Check it's readable
res = VG_(open)(exe_name, VKI_O_RDONLY, 0);
|