Skip to content

Instantly share code, notes, and snippets.

@awreece
Created October 28, 2013 23:25
Show Gist options
  • Save awreece/7206608 to your computer and use it in GitHub Desktop.
Save awreece/7206608 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void vulnerable_function() {
char buffer[100];
read(STDIN_FILENO, buffer, 200);
}
int main(int argc, char** argv) {
vulnerable_function();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment