diff options
Diffstat (limited to 'tests/analysis/hm.c')
-rw-r--r-- | tests/analysis/hm.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/analysis/hm.c b/tests/analysis/hm.c new file mode 100644 index 0000000..9d49352 --- /dev/null +++ b/tests/analysis/hm.c @@ -0,0 +1,20 @@ + +#include <stdio.h> +#include <string.h> + +int main(int argc, char **argv) +{ + int a; + char cmd[128]; + + memcpy(&a, (int []) { 4 }, sizeof(int)); + + sprintf(cmd, "cat /proc/%d/maps", getpid()); + + system(cmd); + + printf("Hello %d\n", a); + + return 0; + +} |