+++ /dev/null
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdio.h>
-
-#include "../memcheck.h"
-
-int baaaad ( void )
-{
- int spacer0[10];
- int aaa[10] __attribute__((unused));
- int spacer1[10];
- int bbb[10] __attribute__((unused));
- int spacer2[10];
- int ccc[10] __attribute__((unused));
- int spacer3[10];
- VALGRIND_MAKE_NOACCESS_STACK(spacer0, sizeof spacer0);
- VALGRIND_MAKE_NOACCESS_STACK(spacer1, sizeof spacer1);
- VALGRIND_MAKE_NOACCESS_STACK(spacer2, sizeof spacer2);
- VALGRIND_MAKE_NOACCESS_STACK(spacer3, sizeof spacer3);
- printf("reading memory\n");
- if ((int*)0xDEADBEEF == &aaa[-3]) { printf("DEAD BEEF!\n"); }
- return aaa[-3];
-}
-
-
-int main ( void )
-{
- int z = baaaad();
- return z;
-}
+++ /dev/null
-
-Invalid read of size 4
- at 0x........: baaaad (clientstackperm.c:23)
- by 0x........: main (clientstackperm.c:29)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: (within /.../tests/clientstackperm)
- Address 0x........ is 36 bytes inside a 40-byte stack red-zone created
- at 0x........: baaaad (clientstackperm.c:18)
- by 0x........: main (clientstackperm.c:29)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: (within /.../tests/clientstackperm)
-
-ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
-For a detailed leak analysis, rerun with: --leak-check=yes
-For counts of detected errors, rerun with: -v
+++ /dev/null
-
-discard 0 (0 -> 0) translations in range 0x........ .. 0x........
-discard 0 (0 -> 0) translations in range 0x........ .. 0x........
-discard 0 (0 -> 0) translations in range 0x........ .. 0x........
-discard 0 (0 -> 0) translations in range 0x........ .. 0x........
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
-For a detailed leak analysis, rerun with: --leak-check=yes
-For counts of detected errors, rerun with: -v
+++ /dev/null
-reading memory