//#Unsafe /* Check that we do not write more memory than we have allocated. * Date: 2016-02-22 * Author: heizmann@informatik.uni-freiburg.de * */ #include #include #include int nonMain() { char *src = malloc(3*sizeof(char)); char *dst = malloc(3*sizeof(char)); void *res = memcpy(dst+2,src,2); free(src); free(dst); return 0; }