Skip to content

Instantly share code, notes, and snippets.

@PythonJedi
Created February 27, 2018 18:04
Show Gist options
  • Save PythonJedi/a9ca0dfd0c180e68f951be47b756234e to your computer and use it in GitHub Desktop.
Save PythonJedi/a9ca0dfd0c180e68f951be47b756234e to your computer and use it in GitHub Desktop.
infinipointer
#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