summaryrefslogtreecommitdiff
path: root/tests/test_strcpy_dynamic_write.c
blob: d50749bba4718aafa5bc6a8ef5df02213a3dec7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "common.h"

#include <string.h>

int main(int argc, char** argv) {
  char buffer[8] = {0};
  strcpy(buffer, "1234567");
  puts(buffer);

  CHK_FAIL_START
  strcpy(buffer, argv[1]);
  CHK_FAIL_END

  puts(buffer);
  return ret;
}