]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Testing hacklet, to fill the vex tmp allocation area before each
authorJulian Seward <jseward@acm.org>
Thu, 3 Dec 2009 09:50:38 +0000 (09:50 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 3 Dec 2009 09:50:38 +0000 (09:50 +0000)
translation, with 0x00 or 0xFF or whatever.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1938

VEX/priv/main_util.c

index 0bba6d4bbb20e0050019711c09800ba2a1f6686f..097a8ddf64d2e6593ec0184ec5c4e592ba2a320e 100644 (file)
@@ -192,6 +192,16 @@ void vexSetAllocModeTEMP_and_clear ( void )
    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();
 }