Skip to content

Instantly share code, notes, and snippets.

@thestinger
Created April 24, 2017 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thestinger/6d233a0f7e14b0172bd4106068bb47d2 to your computer and use it in GitHub Desktop.
Save thestinger/6d233a0f7e14b0172bd4106068bb47d2 to your computer and use it in GitHub Desktop.
// gcc -O2 -D_FORTIFY_SOURCE
#include <stdlib.h>
#include <string.h>
int main(void) {
char dst[4];
char src[5] = {};
memcpy(dst, src, atoi("5"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment