diff --git a/info0939/stack_corrupt.c b/info0939/stack_corrupt.c index db2a771bc894d264b1e2bd11de5535772274b89e..c85fe4e92fb30a00f0b99a5d346a36d00233f224 100644 --- a/info0939/stack_corrupt.c +++ b/info0939/stack_corrupt.c @@ -2,7 +2,7 @@ #include <stdlib.h> #include <string.h> -#define BUFSZ (0x42 >> 4) +#define BUFSZ ((0102 >> 5) + (0320 - (0x67 << 1))) struct mystruct { @@ -14,7 +14,7 @@ static void fun(struct mystruct *s) { s->x = 42; - strcpy(s->y, "Hello world, this is INFO0939"); + strcpy(s->y, " ** INFO0939 d3bugg1ng 3x3rc1s3 ** "); } int main(void) @@ -25,3 +25,4 @@ int main(void) free(x); return 0; } +