mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
b9c2d57630
git-svn-id: file:///home/svn/framework3/trunk@6941 4d416f70-5f16-0410-b530-b9f4589650da
28 lines
361 B
C
28 lines
361 B
C
#include <windows.h>
|
|
|
|
#define NUMPTRS 10
|
|
|
|
int main(int argc, char **argv) {
|
|
char *foo[NUMPTRS];
|
|
int i;
|
|
|
|
Sleep(10000);
|
|
|
|
for (i = 0; i < NUMPTRS; i++) {
|
|
foo[i] = malloc(256);
|
|
printf("%d: 0x%08x\n", i, foo[i]);
|
|
}
|
|
__asm {
|
|
int 3
|
|
}
|
|
for (i = 0; i < NUMPTRS; i+=2) {
|
|
free(foo[i]);
|
|
}
|
|
free(foo[1]);
|
|
free(foo[7]);
|
|
free(foo[3]);
|
|
__asm {
|
|
int 3
|
|
}
|
|
}
|