Created
December 3, 2024 11:30
-
-
Save miura1729/46663c19e130533dad691b52eb5b7ede to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int baz(int i, int *j) { | |
printf("%d %x", i, *j); | |
return i; | |
} | |
void* bar(int i, int *j) { | |
void *foo = __builtin_apply_args(); | |
void *nnn = malloc(512); | |
memcpy(nnn, foo, 512); | |
return nnn; | |
} | |
void kkk() { | |
int b = 123; | |
int *a = &b; | |
void *foo = bar(1, a); | |
__builtin_apply((void (*)())baz, foo, 512); | |
} | |
main() { | |
kkk(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment