Created
November 5, 2020 17:46
-
-
Save b1tninja/ba058530a32c2c8014be309bcadf6b3f to your computer and use it in GitHub Desktop.
peek last ret
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
int private(void) { | |
return 42; | |
} | |
void public(void) { | |
volatile int sec_ret; | |
sec_ret = private(); | |
// Do not return sec_ret!!1one. | |
} | |
int main(void) { | |
// peek last ret | |
return ((int (*)(void))public)(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Someone said voids don't have a return value, bs!