|
From: <sv...@va...> - 2005-05-03 18:19:14
|
Author: sewardj
Date: 2005-05-03 19:19:05 +0100 (Tue, 03 May 2005)
New Revision: 3609
Modified:
trunk/memcheck/mc_main.c
Log:
Fix really stupid bug I introduced during recent 64-bitification of
mc_main.c. As so often the case, the regtest system saved the day by
being the first to notice this idiocy.
Modified: trunk/memcheck/mc_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/memcheck/mc_main.c 2005-05-03 18:16:12 UTC (rev 3608)
+++ trunk/memcheck/mc_main.c 2005-05-03 18:19:05 UTC (rev 3609)
@@ -1158,7 +1158,7 @@
=20
/* When some chunk of guest state is written, mark the corresponding
shadow area as valid. This is used to initialise arbitrarily large
- chunks of guest state, hence the (somewhat arbitrary) 512 limit.
+ chunks of guest state, hence the (somewhat arbitrary) 1024 limit.
*/
static void mc_post_reg_write ( CorePart part, ThreadId tid,=20
OffT offset, SizeT size)
@@ -1195,7 +1195,7 @@
bad =3D False;
for (i =3D 0; i < size; i++) {
if (area[i] !=3D VGM_BYTE_VALID) {
- bad =3D False;
+ bad =3D True;
break;
}
}
|