Created
February 27, 2018 18:04
-
-
Save PythonJedi/a9ca0dfd0c180e68f951be47b756234e to your computer and use it in GitHub Desktop.
infinipointer
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<stdlib.h> | |
#include<stdio.h> | |
int main(int argv, char* argc[]) { | |
void** loop = malloc(sizeof(void**)); | |
*loop = (void*) loop; | |
printf("loop: %p, *loop: %p\n", loop, *loop); | |
free(loop); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment