|
From: <sv...@va...> - 2009-12-03 09:50:51
|
Author: sewardj
Date: 2009-12-03 09:50:38 +0000 (Thu, 03 Dec 2009)
New Revision: 1938
Log:
Testing hacklet, to fill the vex tmp allocation area before each
translation, with 0x00 or 0xFF or whatever.
Modified:
trunk/priv/main_util.c
Modified: trunk/priv/main_util.c
===================================================================
--- trunk/priv/main_util.c 2009-12-02 01:27:22 UTC (rev 1937)
+++ trunk/priv/main_util.c 2009-12-03 09:50:38 UTC (rev 1938)
@@ -192,6 +192,16 @@
mode = VexAllocModeTEMP;
temporary_curr = &temporary[0];
private_LibVEX_alloc_curr = &temporary[0];
+
+ /* Set to (1) and change the fill byte to 0x00 or 0xFF to test for
+ any potential bugs due to using uninitialised memory in the main
+ VEX storage area. */
+ if (0) {
+ Int i;
+ for (i = 0; i < N_TEMPORARY_BYTES; i++)
+ temporary[i] = 0x00;
+ }
+
vexAllocSanityCheck();
}
|