diff --git a/glibc_2.33/fastbin_dup_into_stack.c b/glibc_2.33/fastbin_dup_into_stack.c index b84be5a1..f397a285 100644 --- a/glibc_2.33/fastbin_dup_into_stack.c +++ b/glibc_2.33/fastbin_dup_into_stack.c @@ -20,9 +20,9 @@ int main() } - unsigned long stack_var[2] __attribute__ ((aligned (0x10))); + unsigned long stack_var[4] __attribute__ ((aligned (0x10))); - fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var); + fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var + 2); fprintf(stderr, "Allocating 3 buffers.\n"); int *a = calloc(1,8); diff --git a/glibc_2.34/fastbin_dup_into_stack.c b/glibc_2.34/fastbin_dup_into_stack.c index b84be5a1..f397a285 100644 --- a/glibc_2.34/fastbin_dup_into_stack.c +++ b/glibc_2.34/fastbin_dup_into_stack.c @@ -20,9 +20,9 @@ int main() } - unsigned long stack_var[2] __attribute__ ((aligned (0x10))); + unsigned long stack_var[4] __attribute__ ((aligned (0x10))); - fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var); + fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var + 2); fprintf(stderr, "Allocating 3 buffers.\n"); int *a = calloc(1,8); diff --git a/glibc_2.36/fastbin_dup_into_stack.c b/glibc_2.36/fastbin_dup_into_stack.c index b84be5a1..f397a285 100644 --- a/glibc_2.36/fastbin_dup_into_stack.c +++ b/glibc_2.36/fastbin_dup_into_stack.c @@ -20,9 +20,9 @@ int main() } - unsigned long stack_var[2] __attribute__ ((aligned (0x10))); + unsigned long stack_var[4] __attribute__ ((aligned (0x10))); - fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var); + fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var + 2); fprintf(stderr, "Allocating 3 buffers.\n"); int *a = calloc(1,8); diff --git a/glibc_2.37/fastbin_dup_into_stack.c b/glibc_2.37/fastbin_dup_into_stack.c index b84be5a1..f397a285 100644 --- a/glibc_2.37/fastbin_dup_into_stack.c +++ b/glibc_2.37/fastbin_dup_into_stack.c @@ -20,9 +20,9 @@ int main() } - unsigned long stack_var[2] __attribute__ ((aligned (0x10))); + unsigned long stack_var[4] __attribute__ ((aligned (0x10))); - fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var); + fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var + 2); fprintf(stderr, "Allocating 3 buffers.\n"); int *a = calloc(1,8); diff --git a/glibc_2.38/fastbin_dup_into_stack.c b/glibc_2.38/fastbin_dup_into_stack.c index b84be5a1..f397a285 100644 --- a/glibc_2.38/fastbin_dup_into_stack.c +++ b/glibc_2.38/fastbin_dup_into_stack.c @@ -20,9 +20,9 @@ int main() } - unsigned long stack_var[2] __attribute__ ((aligned (0x10))); + unsigned long stack_var[4] __attribute__ ((aligned (0x10))); - fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var); + fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var + 2); fprintf(stderr, "Allocating 3 buffers.\n"); int *a = calloc(1,8); diff --git a/glibc_2.39/fastbin_dup_into_stack.c b/glibc_2.39/fastbin_dup_into_stack.c index b84be5a1..f397a285 100644 --- a/glibc_2.39/fastbin_dup_into_stack.c +++ b/glibc_2.39/fastbin_dup_into_stack.c @@ -20,9 +20,9 @@ int main() } - unsigned long stack_var[2] __attribute__ ((aligned (0x10))); + unsigned long stack_var[4] __attribute__ ((aligned (0x10))); - fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var); + fprintf(stderr, "The address we want calloc() to return is %p.\n", stack_var + 2); fprintf(stderr, "Allocating 3 buffers.\n"); int *a = calloc(1,8);