source
stringlengths 23
1.83k
| target
stringlengths 42
1.55k
|
---|---|
void b_main_sink(wchar_t * * data_ptr);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);wchar_t * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){wcsncat(data+data_len, environment, 100-data_len-1);}}b_main_sink(&data);}static void main_vasink(wchar_t * data, ...){{wchar_t dest[100]=L"";va_list args;va_start(args, data);_vsnwprintf(dest, 100-1, data, args);va_end(args);printWLine(dest);}}void b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;main_vasink(data, data);} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);wchar_t * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){wcsncat(data+data_len, environment, 100-data_len-1);}}b_main_sink(&data);}static void main_vasink(wchar_t * data, ...){{wchar_t dest[100]=L"";va_list args;va_start(args, data);_vsnwprintf(dest, 100-1, L"%s", args);va_end(args);printWLine(dest);}}void b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;main_vasink(data, data);} |
void _main(){wchar_t * data;data=(wchar_t *)malloc(100*sizeof(wchar_t));{wchar_t dest[50]=L"";wcsncat(dest, data, wcslen(data));printWLine(data);free(data);}} | static void main(){wchar_t * data;data=(wchar_t *)malloc(100*sizeof(wchar_t));{wchar_t dest[50]=L"";wcsncat(dest, data, wcslen(data));printWLine(data);free(data);}} |
static char * main_source(char * password){{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t password_len=strlen(password);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char*)password+password_len, (int)(100-password_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;password[recv_rv]='\0';replace=strchr(password, '\r');if (replace) *replace='\0';replace=strchr(password, '\n');if (replace) *replace='\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}return password;}void _main(){char * password;char password_buf[100]="";password=password_buf;password=main_source(password);{HANDLE pHandle;char * username="User";char * domain="Domain";if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}}} | static char * main_source(char * password){strcpy(password, "Password1234!");return password;}static void main(){char * password;char password_buf[100]="";password=password_buf;password=main_source(password);{HANDLE pHandle;char * username="User";char * domain="Domain";if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}}} |
void _main_sink(short data){{if (data < 100){char * data_buf=(char *)malloc(data);memset(data_buf, 'A', data-1);data_buf[data-1]='\0';printLine(data_buf);free(data_buf);}}}void _main(){short data;data=0;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=(short)atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}_main_sink(data);} | void _main_sink(short data){{if (data < 100){char * data_buf=(char *)malloc(data);memset(data_buf, 'A', data-1);data_buf[data-1]='\0';printLine(data_buf);free(data_buf);}}}static void main(){short data;data=0;data=100-1;_main_sink(data);} |
static void main_sink(){unsigned int data=_main_data;{unsigned int result=data+1;printUnsignedLine(result);}}void _main(){unsigned int data;data=0;fscanf (stdin, "%u", &data);_main_data=data;main_sink();} | static void main_sink(){unsigned int data=_main_data;{unsigned int result=data+1;printUnsignedLine(result);}}static void main(){unsigned int data;data=0;data=5;_main_data=data;main_sink();} |
static void main_sink(wchar_t * data){{int i, n, v;if (swscanf(data, L"%d", &n)==1){v=0;for (i=0;i < n;i++){}printIntLine(v);}}}void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}func_ptr(data);} | static void main_sink(wchar_t * data){{int i, n, v;if (swscanf(data, L"%d", &n)==1){v=0;for (i=0;i < n;i++){}printIntLine(v);}}}static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"15");func_ptr(data);} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}func_ptr(data);}void b_main_sink(wchar_t * data){{int i, n, v;if (swscanf(data, L"%d", &n)==1){v=0;for (i=0;i < n;i++){}printIntLine(v);}}} | static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"15");func_ptr(data);}void b_main_sink(wchar_t * data){{int i, n, v;if (swscanf(data, L"%d", &n)==1){v=0;for (i=0;i < n;i++){}printIntLine(v);}}} |
void main_sink(char * data);void main(){char * data;void (*func_ptr) (char *)=main_sink;data=NULL;data=new char[100];func_ptr(data);}void main_sink(char * data){free(data);} | static void main(){char * data;void (*func_ptr) (char *)=main_sink;data=NULL;data=new char[100];func_ptr(data);}void main_sink(char * data){delete [] data;} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(FILENAME_MAX-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){{FILE *file=NULL;file=FOPEN(data, L"wb+");if (file!=NULL) fclose(file);}} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;wcscat(data, L"file.txt");b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){{FILE *file=NULL;file=FOPEN(data, L"wb+");if (file!=NULL) fclose(file);}} |
void _main(){char * data;char data_buf[100]="";data=data_buf;if(global_returns_t_or_f()){{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}}else{strcat(data, "*.*");}{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, args);}} | static void main(){char * data;char data_buf[100]="";data=data_buf;if(global_returns_t_or_f()){strcat(data, "*.*");}else{strcat(data, "*.*");}{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, args);}} |
void b_main_sink(int data_array[]);void _main(){int data;int data_array[5];data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}data_array[2]=data;b_main_sink(data_array);}void b_main_sink(int data_array[]){int data=data_array[2];assert(data > ASSERT_VALUE);} | void b_main_sink(int data_array[]);static void main(){int data;int data_array[5];data=-1;data=ASSERT_VALUE+1;data_array[2]=data;b_main_sink(data_array);}void b_main_sink(int data_array[]){int data=data_array[2];assert(data > ASSERT_VALUE);} |
void b_main_sink(void * void_data_ptr);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(&data);}void b_main_sink(void * void_data_ptr){wchar_t * * data_ptr=(wchar_t * *)void_data_ptr;wchar_t * data=(*data_ptr);if (wcsstr(PASSWORD, data)!=NULL) printLine("Access granted");else printLine("Access denied!");} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(&data);}void b_main_sink(void * void_data_ptr){wchar_t * * data_ptr=(wchar_t * *)void_data_ptr;wchar_t * data=(*data_ptr);if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");} |
void _main(){int data;data=-1;data=0;{int data_copy=data;int data=data_copy;printIntLine(100/data);}} | static void main(){int data;data=-1;data=7;{int data_copy=data;int data=data_copy;printIntLine(100/data);}} |
void _main(){int * data;data=(int *)malloc(100);{int * data_copy=data;int * data=data_copy;data[0]=5;printIntLine(data[0]);free(data);}} | static void main(){int * data;data=(int *)malloc(100);{int * data_copy=data;int * data=data_copy;if (data!=NULL){data[0]=5;printIntLine(data[0]);free(data);}}} |
void b_main_sink(FILE * data);void _main(){FILE * data;void (*func_ptr) (FILE *)=b_main_sink;data=freopen("BadSource_freopen.txt","w+",stdin);fclose(data);func_ptr(data);}void b_main_sink(FILE * data){fclose(data);} | static void main(){FILE * data;void (*func_ptr) (FILE *)=b_main_sink;data=freopen("BadSource_freopen.txt","w+",stdin);fclose(data);func_ptr(data);}void b_main_sink(FILE * data){} |
void _main(){int * data;int data_uninit_array[10];data=data_uninit_array;{int i;for(i=0;i<(10/2);i++){data[i]=i;}}{int i;for(i=0;i<10;i++){printIntLine(data[i]);}}} | static void main(){int * data;int data_uninit_array[10];data=data_uninit_array;{int i;for(i=0;i<(10/2);i++){data[i]=i;}}{int i;for(i=0;i<10;i++){data[i]=i;}}{int i;for(i=0;i<10;i++){printIntLine(data[i]);}}} |
void _main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char data_buf[FILENAME_MAX]="";data=data_buf;{char * data=*data_ptr1;{size_t data_len=strlen(data);if(FILENAME_MAX-data_len > 1){fgets(data+data_len, (int)(FILENAME_MAX-data_len), stdin);data_len=strlen(data);if (data_len > 0){data[data_len-1]='\0';}}}}{char * data=*data_ptr2;{int fd;fd=OPEN(data, O_RDWR|O_CREAT, S_IREAD|S_IWRITE);if (fd!=-1){CLOSE(fd);}}}} | static void main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char data_buf[FILENAME_MAX]="";data=data_buf;{char * data=*data_ptr1;strcpy(data, "c:\\temp\\file.txt");strcpy(data, "/tmp/file.txt");}{char * data=*data_ptr2;{int fd;fd=OPEN(data, O_RDWR|O_CREAT, S_IREAD|S_IWRITE);if (fd!=-1){CLOSE(fd);}}}} |
void _main(){char * password;password="";password=(char *)malloc(100*sizeof(char));strcpy(password, "Password1234!");{HANDLE pHandle;char * username="User";char * domain="Domain";if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}}} | static void main(){char * password;password="";password=(char *)malloc(100*sizeof(char));if(!VirtualLock(password, 100*sizeof(char))){printLine("Memory could not be locked");exit(1);}strcpy(password, "Password1234!");{HANDLE pHandle;char * username="User";char * domain="Domain";if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}}} |
void _main(){long long * data;long long data_mainbuf[50];long long data_goodbuf[100];data=data_mainbuf;{{size_t i;for (i=0;i < 100;i++){data[i]=src[i];}printLongLongLine(data[0]);}}} | static void main(){long long * data;long long data_badbuf[50];long long data_goodbuf[100];data=data_goodbuf;{{size_t i;for (i=0;i < 100;i++){data[i]=src[i];}printLongLongLine(data[0]);}}} |
void main_source(long long * &data);void main(){long long * data;data=NULL;main_source(data);delete [] data;}void main_source(long long * &data){data=(long long *)calloc(100, sizeof(long long));} | static void main(){long long * data;data=NULL;main_source(data);delete [] data;}void main_source(long long * &data){data=new long long[100];} |
void _main(){int count;count=-1;if(global_returns_t_or_f()){fscanf (stdin, "%d", &count);}else{count=20;}if(global_returns_t_or_f()){{size_t i=0;for (i=0;i < (size_t)count;i++){printLine("Hello");}}}else{{size_t i=0;if (count > 0 && count <=20){for (i=0;i < (size_t)count;i++){printLine("Hello");}}}}} | static void main(){int count;count=-1;if(global_returns_t_or_f()){fscanf (stdin, "%d", &count);}else{fscanf (stdin, "%d", &count);}if(global_returns_t_or_f()){{size_t i=0;if (count > 0 && count <=20){for (i=0;i < (size_t)count;i++){printLine("Hello");}}}}else{{size_t i=0;if (count > 0 && count <=20){for (i=0;i < (size_t)count;i++){printLine("Hello");}}}}} |
void main(){int data;int *data_ptr1=&data;int *data_ptr2=&data;data=-1;{int data=*data_ptr1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}}{int data=*data_ptr2;{char * char_string;if (data > 0){char_string=new char[data];strcpy(char_string, HELLO_STRING);printLine(char_string);delete [] char_string;}else{printLine("Input is less than 0");}}}} | static void main(){int data;int *data_ptr1=&data;int *data_ptr2=&data;data=-1;{int data=*data_ptr1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}}{int data=*data_ptr2;{char * char_string;if ((size_t)data > strlen(HELLO_STRING) && data < 100){char_string=new char[data];strcpy(char_string, HELLO_STRING);printLine(char_string);delete [] char_string;}else{printLine("Input is less than the length of the source string or too large");}}}} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}func_ptr(data);}void b_main_sink(wchar_t * data){EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t data_buf[100]=L"";data=data_buf;wcscat(data, L"*.*");func_ptr(data);}void b_main_sink(wchar_t * data){EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);} |
static void main_sink(){unsigned char data=_main_data;{unsigned char result=data+1;printHexUnsignedCharLine(result);}}void _main(){unsigned char data;data=' ';data=(unsigned char)rand();_main_data=data;main_sink();} | static void main_sink(){unsigned char data=_main_data;{unsigned char result=data+1;printHexUnsignedCharLine(result);}}static void main(){unsigned char data;data=' ';data=5;_main_data=data;main_sink();} |
void _main(){int data;int *data_ptr1=&data;int *data_ptr2=&data;data=-1;{int data=*data_ptr1;data=INT_MAX;}{int data=*data_ptr2;{int result=data * data;printIntLine(result);}}} | static void main(){int data;int *data_ptr1=&data;int *data_ptr2=&data;data=-1;{int data=*data_ptr1;data=5;}{int data=*data_ptr2;{int result=data * data;printIntLine(result);}}} |
void _main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}printf(data);} | static void main(){char * data;char data_buf[100]="";data=data_buf;strcpy(data, "fixedstringtest");printf(data);} |
void main_sink(struct_type my_struct);void main(){wchar_t * data;struct_type my_struct;data=NULL;data=new wchar_t;delete data;my_struct.a=data;main_sink(my_struct);}void main_sink(struct_type my_struct){wchar_t * data=my_struct.a;delete data;} | static void main(){wchar_t * data;struct_type my_struct;data=NULL;data=new wchar_t;delete data;my_struct.a=data;main_sink(my_struct);}void main_sink(struct_type my_struct){wchar_t * data=my_struct.a;} |
void main_sink_b(wchar_t * data);void main(){wchar_t * data;data=NULL;data=new wchar_t[50];main_sink_b(data);}void main_sink_c(wchar_t * data);void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_d(wchar_t * data);void main_sink_c(wchar_t * data){main_sink_d(data);}void main_sink_e(wchar_t * data);void main_sink_d(wchar_t * data){main_sink_e(data);}void main_sink_e(wchar_t * data){{wchar_t src[100];memmove(data, src, 100*sizeof(wchar_t));printWLine(data);delete [] data;}} | void main_sink_b(wchar_t * data);static void main(){wchar_t * data;data=NULL;data=new wchar_t[100];main_sink_b(data);}void main_sink_c(wchar_t * data);void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_d(wchar_t * data);void main_sink_c(wchar_t * data){main_sink_d(data);}void main_sink_e(wchar_t * data);void main_sink_d(wchar_t * data){main_sink_e(data);}void main_sink_e(wchar_t * data){{wchar_t src[100];memmove(data, src, 100*sizeof(wchar_t));printWLine(data);delete [] data;}} |
void b_main_sink(unsigned int data);void _main(){unsigned int data;data=0;data=(unsigned int)RAND32();b_main_sink(data);}void c_main_sink(unsigned int data);void b_main_sink(unsigned int data){c_main_sink(data);}void c_main_sink(unsigned int data){{unsigned int result=data+1;printUnsignedLine(result);}} | static void main(){unsigned int data;data=0;data=5;b_main_sink(data);}void b_main_sink(unsigned int data){c_main_sink(data);}void c_main_sink(unsigned int data){{unsigned int result=data+1;printUnsignedLine(result);}} |
void b_main_sink(char * data_array[]);void _main(){char * data;char * data_array[5];char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);char * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){strncat(data+data_len, environment, 100-data_len-1);}}data_array[2]=data;b_main_sink(data_array);}void b_main_sink(char * data_array[]){char * data=data_array[2];if (strstr(PASSWORD, data)!=NULL) printLine("Access granted");else printLine("Access denied!");} | static void main(){char * data;char * data_array[5];char data_buf[100]="";data=data_buf;data=PASSWORD;data_array[2]=data;b_main_sink(data_array);}void b_main_sink(char * data_array[]){char * data=data_array[2];if (strstr(PASSWORD, data)!=NULL) printLine("Access granted");else printLine("Access denied!");} |
void b_main_sink(FILE * data);void _main(){FILE * data;data=NULL;data=freopen("BadSource_freopen.txt","w+",stdin);b_main_sink(data);}void c_main_sink(FILE * data);void b_main_sink(FILE * data){c_main_sink(data);}void c_main_sink(FILE * data){} | void b_main_sink(FILE * data);static void main(){FILE * data;data=NULL;data=freopen("BadSource_freopen.txt","w+",stdin);b_main_sink(data);}void c_main_sink(FILE * data);void b_main_sink(FILE * data){c_main_sink(data);}void c_main_sink(FILE * data){if (data!=NULL){fclose(data);}} |
void main(){wchar_t * data;wchar_t * &data_ref=data;data=NULL;{wchar_t * data_buf=new wchar_t[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;}{wchar_t * data=data_ref;{size_t i;wchar_t src[100];for (i=0;i < 100;i++){data[i]=src[i];}data[100-1]=L'\0';printWLine(data);}}} | static void main(){wchar_t * data;wchar_t * &data_ref=data;data=NULL;{wchar_t * data_buf=new wchar_t[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;}{wchar_t * data=data_ref;{size_t i;wchar_t src[100];for (i=0;i < 100;i++){data[i]=src[i];}data[100-1]=L'\0';printWLine(data);}}} |
static wchar_t * _main_data;static wchar_t * _goodG2B_data;static wchar_t * _goodB2G_data;static void main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vfwprintf(stdout, data, args);va_end(args);}}static void main_sink(){wchar_t * data=_main_data;main_vasink(data, data);}void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}_main_data=data;main_sink();} | static void main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vfwprintf(stdout, L"%s", args);va_end(args);}}static void main_sink(){wchar_t * data=_main_data;main_vasink(data, data);}static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}_main_data=data;main_sink();} |
static void main_sink(){char * data=_main_data;if (strncmp(PASSWORD, data, strlen(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");}void _main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);char * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){strncat(data+data_len, environment, 100-data_len-1);}}_main_data=data;main_sink();} | static void main_sink(){char * data=_main_data;if (strcmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}static void main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);char * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){strncat(data+data_len, environment, 100-data_len-1);}}_main_data=data;main_sink();} |
void b_main_sink(char * data);void _main(){char * data;data=NULL;data=(char *)malloc(100*sizeof(char));strcpy(data, "A String");printLine(data);b_main_sink(data);}void c_main_sink(char * data);void b_main_sink(char * data){c_main_sink(data);}void d_main_sink(char * data);void c_main_sink(char * data){d_main_sink(data);}void d_main_sink(char * data){} | static void main(){char * data;data=NULL;{char data_goodbuf[100];data=data_goodbuf;strcpy(data, "A String");printLine(data);}b_main_sink(data);}void b_main_sink(char * data){c_main_sink(data);}void c_main_sink(char * data){d_main_sink(data);}void d_main_sink(char * data){} |
void _main(){int data;int *data_ptr1=&data;int *data_ptr2=&data;data=-1;{int data=*data_ptr1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}}{int data=*data_ptr2;{int result=data-1;printIntLine(result);}}} | static void main(){int data;int *data_ptr1=&data;int *data_ptr2=&data;data=-1;{int data=*data_ptr1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}}{int data=*data_ptr2;{int result=0;if (data > INT_MIN){result=data-1;printIntLine(result);}else{printLine("Input value is too small to perform arithmetic safely.");}}}} |
void main(){char * data;data=NULL;data=new char[100];strcpy(data, "A String");printLine(data);} | static void main(){char * data;data=NULL;{char data_goodbuf[100];data=data_goodbuf;strcpy(data, "A String");printLine(data);}} |
static void main_sink(){int * data=main_data;delete data;}void main(){int * data;data=NULL;data=(int *)calloc(100, sizeof(int));main_data=data;main_sink();} | static void main_sink(){int * data=main_data;free(data);}static void main(){int * data;data=NULL;data=(int *)calloc(100, sizeof(int));main_data=data;main_sink();} |
void main(){int data;data=-1;if(global_returns_t_or_f()){data=RAND32();}else{data=20;}{size_t a,i;int *b;b=(int*)new char[a];for (i=0;i < (size_t)data;i++){}printIntLine(b[0]);delete [] b;}} | static void main(){int data;data=-1;if(global_returns_t_or_f()){data=20;}else{data=20;}{size_t a,i;int *b;b=(int*)new char[a];for (i=0;i < (size_t)data;i++){}printIntLine(b[0]);delete [] b;}} |
FILE * b_main_source(FILE * data);void _main(){FILE * data;data=NULL;data=b_main_source(data);if (data!=NULL){CLOSE((int)data);}}FILE * b_main_source(FILE * data){data=freopen("BadSource_freopen.txt","w+",stdin);return data;} | FILE * b_main_source(FILE * data);static void main(){FILE * data;data=NULL;data=b_main_source(data);if (data!=NULL){fclose(data);}}FILE * b_main_source(FILE * data){data=freopen("BadSource_freopen.txt","w+",stdin);return data;} |
static int main_source(int data){data=10000;return data;}void main(){int data;data=-1;data=main_source(data);{wchar_t * wchar_t_string;if (data > 0){wchar_t_string=new wchar_t[data];wcscpy(wchar_t_string, HELLO_STRING);printWLine(wchar_t_string);delete [] wchar_t_string;}else{printLine("Input is less than 0");}}} | static int main_source(int data){data=20;return data;}static void main(){int data;data=-1;data=main_source(data);{wchar_t * wchar_t_string;if (data > 0){wchar_t_string=new wchar_t[data];wcscpy(wchar_t_string, HELLO_STRING);printWLine(wchar_t_string);delete [] wchar_t_string;}else{printLine("Input is less than 0");}}} |
void _main(){wchar_t * data;_union_type my_union;wchar_t * data_mainbuf=(wchar_t *)ALLOCA(50*sizeof(wchar_t));wchar_t * data_goodbuf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_mainbuf;my_union.a=data;{wchar_t * data=my_union.b;{wchar_t src[100];wcscpy(data, src);printWLine(data);}}} | static void main(){wchar_t * data;_union_type my_union;wchar_t * data_badbuf=(wchar_t *)ALLOCA(50*sizeof(wchar_t));wchar_t * data_goodbuf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_goodbuf;my_union.a=data;{wchar_t * data=my_union.b;{wchar_t src[100];wcscpy(data, src);printWLine(data);}}} |
void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;if(global_returns_t_or_f()){data=L"P";}else{data=PASSWORD;}if(global_returns_t_or_f()){if (wcsstr(PASSWORD, data)!=NULL) printLine("Access granted");else printLine("Access denied!");}else{if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;if(global_returns_t_or_f()){data=L"P";}else{data=L"P";}if(global_returns_t_or_f()){if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}else{if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}} |
void b_main_sink();void _main(){twoints * data;data=NULL;data=(twoints *)malloc(50*sizeof(twoints));_main_data=data;b_main_sink();}void b_main_sink(){twoints * data=_main_data;{twoints src[100];{size_t i;for (i=0;i < 100;i++){src[i].a=0;src[i].b=0;}}memcpy(data, src, 100*sizeof(twoints));printStructLine(&data[0]);free(data);}} | void b_main_sink();static void main(){twoints * data;data=NULL;data=(twoints *)malloc(100*sizeof(twoints));_main_data=data;b_main_sink();}void b_main_sink(){twoints * data=_main_data;{twoints src[100];{size_t i;for (i=0;i < 100;i++){src[i].a=0;src[i].b=0;}}memcpy(data, src, 100*sizeof(twoints));printStructLine(&data[0]);free(data);}} |
void b_main_sink(_struct_type my_struct);void _main(){char * data;_struct_type my_struct;char data_buf[100];data=data_buf;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){char * data=my_struct.a;{char dest[50]="";strcat(dest, data);printLine(data);}} | void b_main_sink(_struct_type my_struct);static void main(){char * data;_struct_type my_struct;char data_buf[100];data=data_buf;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){char * data=my_struct.a;{char dest[50]="";strcat(dest, data);printLine(data);}} |
void _main(){unsigned char data;data=' ';if(global_returns_t_or_f()){data=UCHAR_MAX;}else{data=5;}if(global_returns_t_or_f()){{unsigned char result=data * 2;printHexUnsignedCharLine(result);}}else{{unsigned char result=-1;if (data <=(UCHAR_MAX/2)){result=data * 2;printHexUnsignedCharLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}}} | static void main(){unsigned char data;data=' ';if(global_returns_t_or_f()){data=5;}else{data=5;}if(global_returns_t_or_f()){{unsigned char result=data * 2;printHexUnsignedCharLine(result);}}else{{unsigned char result=data * 2;printHexUnsignedCharLine(result);}}} |
void main_sink_b(wchar_t * data);void main(){wchar_t * data;data=NULL;data=new wchar_t[50];main_sink_b(data);}void main_sink_c(wchar_t * data);void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_d(wchar_t * data);void main_sink_c(wchar_t * data){main_sink_d(data);}void main_sink_e(wchar_t * data);void main_sink_d(wchar_t * data){main_sink_e(data);}void main_sink_e(wchar_t * data){{wchar_t src[100];wcsncpy(data, src, 100);printWLine(data);delete [] data;}} | void main_sink_b(wchar_t * data);static void main(){wchar_t * data;data=NULL;data=new wchar_t[100];main_sink_b(data);}void main_sink_c(wchar_t * data);void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_d(wchar_t * data);void main_sink_c(wchar_t * data){main_sink_d(data);}void main_sink_e(wchar_t * data);void main_sink_d(wchar_t * data){main_sink_e(data);}void main_sink_e(wchar_t * data){{wchar_t src[100];wcsncpy(data, src, 100);printWLine(data);delete [] data;}} |
void main(){int * data;data=NULL;data=new int[50];{int * data_copy=data;int * data=data_copy;{memcpy(data, src, 100*sizeof(int));printIntLine(data[0]);delete [] data;}}} | static void main(){int * data;data=NULL;data=new int[100];{int * data_copy=data;int * data=data_copy;{memcpy(data, src, 100*sizeof(int));printIntLine(data[0]);delete [] data;}}} |
void _main(){short data;data=0;data=(short)RAND32();{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){memmove(dest, src, data);}printLine(dest);}} | static void main(){short data;data=0;data=100-1;{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){memmove(dest, src, data);}printLine(dest);}} |
void b_main_sink(void * void_data_ptr);void _main(){twoints * data;data=NULL;data=NULL;b_main_sink(&data);}void b_main_sink(void * void_data_ptr){twoints * * data_ptr=(twoints * *)void_data_ptr;twoints * data=(*data_ptr);printStructLine(data);} | void b_main_sink(void * void_data_ptr);static void main(){twoints * data;data=NULL;{twoints tmp;tmp.a=0;tmp.b=0;data=&tmp;}b_main_sink(&data);}void b_main_sink(void * void_data_ptr){twoints * * data_ptr=(twoints * *)void_data_ptr;twoints * data=(*data_ptr);printStructLine(data);} |
wchar_t * b_main_source(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=b_main_source(data);wprintf(data);}wchar_t * b_main_source(wchar_t * data){{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}return data;} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=b_main_source(data);wprintf(data);}wchar_t * b_main_source(wchar_t * data){wcscpy(data, L"fixedstringtest");return data;} |
void _main(){HANDLE data;data=INVALID_HANDLE_VALUE;data=CreateFile("BadSource_w32CreateFile.txt", (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if(global_returns_t_or_f()){if (data!=INVALID_HANDLE_VALUE){CLOSE((int)data);}}else{if (data!=INVALID_HANDLE_VALUE){CloseHandle(data);}}} | static void main(){HANDLE data;data=INVALID_HANDLE_VALUE;data=CreateFile("BadSource_w32CreateFile.txt", (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if(global_returns_t_or_f()){if (data!=INVALID_HANDLE_VALUE){CloseHandle(data);}}else{if (data!=INVALID_HANDLE_VALUE){CloseHandle(data);}}} |
void _main(){wchar_t * data;data=(wchar_t *)malloc(100*sizeof(wchar_t));data[0]=L'\0';{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}{wchar_t * data_copy=data;wchar_t * data=data_copy;for (;*data!=L'\0';data++){if (*data==SEARCH_CHAR){printLine("We have a match!");break;}}free(data);}} | static void main(){wchar_t * data;data=(wchar_t *)malloc(100*sizeof(wchar_t));data[0]=L'\0';{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}{wchar_t * data_copy=data;wchar_t * data=data_copy;{size_t i;for (i=0;i < wcslen(data);i++){if (data[i]==SEARCH_CHAR){printLine("We have a match!");break;}}free(data);}}} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t data_buf[100];data=data_buf;func_ptr(data);}void b_main_sink(wchar_t * data){{wchar_t src[100];wcscat(data, src);printWLine(data);}} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t data_buf[100];data=data_buf;func_ptr(data);}void b_main_sink(wchar_t * data){{wchar_t src[100];wcscat(data, src);printWLine(data);}} |
void _main(){double * data;data=(double *)malloc(10*sizeof(double));if(global_returns_t_or_f()){}else{{int i;for(i=0;i<10;i++){data[i]=(double)i;}}}if(global_returns_t_or_f()){{int i;for(i=0;i<10;i++){printDoubleLine(data[i]);}}}else{{int i;for(i=0;i<10;i++){data[i]=(double)i;}}{int i;for(i=0;i<10;i++){printDoubleLine(data[i]);}}}} | static void main(){double * data;data=(double *)malloc(10*sizeof(double));if(global_returns_t_or_f()){}else{}if(global_returns_t_or_f()){{int i;for(i=0;i<10;i++){data[i]=(double)i;}}{int i;for(i=0;i<10;i++){printDoubleLine(data[i]);}}}else{{int i;for(i=0;i<10;i++){data[i]=(double)i;}}{int i;for(i=0;i<10;i++){printDoubleLine(data[i]);}}}} |
void _main(){char data;data=' ';data=CHAR_MIN;{char result=data-1;printHexCharLine(result);}} | static void main(){char data;data=' ';data=CHAR_MIN;{char result=0;if (data > CHAR_MIN){result=data-1;printHexCharLine(result);}else{printLine("Input value is too small to perform arithmetic safely.");}}} |
static int main_source(int data){{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}return data;}void _main(){int data;data=-1;data=main_source(data);{size_t i;int *b;b=(int*)malloc(data * sizeof(int));for (i=0;i < (size_t)data;i++){}printIntLine(b[0]);free(b);}} | static int main_source(int data){data=20;return data;}static void main(){int data;data=-1;data=main_source(data);{size_t i;int *b;b=(int*)malloc(data * sizeof(int));for (i=0;i < (size_t)data;i++){}printIntLine(b[0]);free(b);}} |
static void main_sink(twointsclass * data){delete [] data;}void main(){twointsclass * data;void (*func_ptr) (twointsclass *)=main_sink;data=NULL;data=(twointsclass *)malloc(100*sizeof(twointsclass));func_ptr(data);} | static void main_sink(twointsclass * data){free(data);}static void main(){twointsclass * data;void (*func_ptr) (twointsclass *)=main_sink;data=NULL;data=(twointsclass *)malloc(100*sizeof(twointsclass));func_ptr(data);} |
void _main(){wchar_t * data;wchar_t * data_mainbuf=(wchar_t *)ALLOCA(50*sizeof(wchar_t));wchar_t * data_goodbuf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));if(global_returns_t_or_f()){data=data_mainbuf;}else{data=data_goodbuf;}{wchar_t dest[100];wmemset(dest, L'C', 100-1);memcpy(dest, data, wcslen(dest)*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);}} | static void main(){wchar_t * data;wchar_t * data_badbuf=(wchar_t *)ALLOCA(50*sizeof(wchar_t));wchar_t * data_goodbuf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));if(global_returns_t_or_f()){data=data_goodbuf;}else{data=data_goodbuf;}{wchar_t dest[100];wmemset(dest, L'C', 100-1);memcpy(dest, data, wcslen(dest)*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);}} |
void b_main_sink(int data);void _main(){int data;data=-1;data=RAND32();b_main_sink(data);}void b_main_sink(int data){{char c=(char)data;printHexCharLine(c);}} | void b_main_sink(int data);static void main(){int data;data=-1;data=CHAR_MAX-5;b_main_sink(data);}void b_main_sink(int data){{char c=(char)data;printHexCharLine(c);}} |
unsigned int b_main_source(unsigned int data);void _main(){unsigned int data;data=0;data=b_main_source(data);{unsigned int result=data * data;printUnsignedLine(result);}}unsigned int b_main_source(unsigned int data){fscanf (stdin, "%u", &data);return data;} | static void main(){unsigned int data;data=0;data=b_main_source(data);{unsigned int result=data * data;printUnsignedLine(result);}}unsigned int b_main_source(unsigned int data){data=5;return data;} |
void b_main_sink(wchar_t * data_array[]);void _main(){wchar_t * data;wchar_t * data_array[5];data=NULL;data=(wchar_t *)malloc(10*sizeof(wchar_t));data_array[2]=data;b_main_sink(data_array);}void b_main_sink(wchar_t * data_array[]){wchar_t * data=data_array[2];{wchar_t data_src[10+1]=SRC_STRING;memcpy(data, data_src, wcslen(data_src)*sizeof(wchar_t));printWLine(data);free(data);}} | void b_main_sink(wchar_t * data_array[]);static void main(){wchar_t * data;wchar_t * data_array[5];data=NULL;data=(wchar_t *)malloc((10+1)*sizeof(wchar_t));data_array[2]=data;b_main_sink(data_array);}void b_main_sink(wchar_t * data_array[]){wchar_t * data=data_array[2];{wchar_t data_src[10+1]=SRC_STRING;memcpy(data, data_src, wcslen(data_src)*sizeof(wchar_t));printWLine(data);free(data);}} |
void _main(){int count;int *count_ptr1=&count;int *count_ptr2=&count;count=-1;{int count=*count_ptr1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);count=atoi(input_buf);}}{int count=*count_ptr2;{size_t i=0;for (i=0;i < (size_t)count;i++){printLine("Hello");}}}} | static void main(){int count;int *count_ptr1=&count;int *count_ptr2=&count;count=-1;{int count=*count_ptr1;count=20;}{int count=*count_ptr2;{size_t i=0;for (i=0;i < (size_t)count;i++){printLine("Hello");}}}} |
void _main(){int data;int *data_ptr1=&data;int *data_ptr2=&data;data=-1;{int data=*data_ptr1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}}{int data=*data_ptr2;{short s=(short)data;printf("%hd\n", s);}}} | static void main(){int data;int *data_ptr1=&data;int *data_ptr2=&data;data=-1;{int data=*data_ptr1;data=CHAR_MAX-5;}{int data=*data_ptr2;{short s=(short)data;printf("%hd\n", s);}}} |
void b_main_sink();void _main(){wchar_t * password;wchar_t password_buf[100]=L"";password=password_buf;{FILE *password_file;password_file=fopen("passwords.txt", "r");fgetws(password, 100, password_file);fclose(password_file);}_main_data=password;b_main_sink();}void b_main_sink(){wchar_t * password=_main_data;{HANDLE pHandle;wchar_t * username=L"User";wchar_t * domain=L"Domain";if (LogonUserW( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}}} | void b_main_sink();static void main(){wchar_t * password;wchar_t password_buf[100]=L"";password=password_buf;{size_t password_len=0;fgetws(password, 100, stdin);password_len=wcslen(password);if (password_len > 0){password[password_len-1]=L'\0';}}_main_data=password;b_main_sink();}void b_main_sink(){wchar_t * password=_main_data;{HANDLE pHandle;wchar_t * username=L"User";wchar_t * domain=L"Domain";if (LogonUserW( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}}} |
void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}{wchar_t * data_copy=data;wchar_t * data=data_copy;_wspawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscat(data, L"*.*");{wchar_t * data_copy=data;wchar_t * data=data_copy;_wspawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}} |
void main_source(twointsclass * &data);void main(){twointsclass * data;data=NULL;main_source(data);{twointsclass src[100];{size_t i;for (i=0;i < 100;i++){src[i].a=0;src[i].b=0;}}{size_t i;for (i=0;i < 100;i++){data[i]=src[i];}printIntLine(data[0].a);delete [] data;}}}void main_source(twointsclass * &data){data=new twointsclass[50];} | void main_source(twointsclass * &data);static void main(){twointsclass * data;data=NULL;main_source(data);{twointsclass src[100];{size_t i;for (i=0;i < 100;i++){src[i].a=0;src[i].b=0;}}{size_t i;for (i=0;i < 100;i++){data[i]=src[i];}printIntLine(data[0].a);delete [] data;}}}void main_source(twointsclass * &data){data=new twointsclass[100];} |
int b_main_source(int data);void _main(){int data;data=-1;data=b_main_source(data);{int result=data+1;printIntLine(result);}}int b_main_source(int data){data=INT_MAX;return data;} | static void main(){int data;data=-1;data=b_main_source(data);{int result=data+1;printIntLine(result);}}int b_main_source(int data){data=5;return data;} |
static void main_sink(char * data){printf(data);}void _main(){char * data;void (*func_ptr) (char *)=main_sink;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN("C:\\temp\\file.txt", "r");if (pFile!=NULL){fgets(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}func_ptr(data);} | static void main_sink(char * data){printf(data);}static void main(){char * data;void (*func_ptr) (char *)=main_sink;char data_buf[100]="";data=data_buf;strcpy(data, "fixedstringtest");func_ptr(data);} |
void main_sink_b(wchar_t * data);void main(){wchar_t * data;data=NULL;{wchar_t * data_buf=new wchar_t[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;}main_sink_b(data);}void main_sink_c(wchar_t * data);void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_d(wchar_t * data);void main_sink_c(wchar_t * data){main_sink_d(data);}void main_sink_e(wchar_t * data);void main_sink_d(wchar_t * data){main_sink_e(data);}void main_sink_e(wchar_t * data){{wchar_t src[100];memmove(data, src, 100*sizeof(wchar_t));data[100-1]=L'\0';printWLine(data);}} | void main_sink_b(wchar_t * data);static void main(){wchar_t * data;data=NULL;{wchar_t * data_buf=new wchar_t[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;}main_sink_b(data);}void main_sink_c(wchar_t * data);void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_d(wchar_t * data);void main_sink_c(wchar_t * data){main_sink_d(data);}void main_sink_e(wchar_t * data);void main_sink_d(wchar_t * data){main_sink_e(data);}void main_sink_e(wchar_t * data){{wchar_t src[100];memmove(data, src, 100*sizeof(wchar_t));data[100-1]=L'\0';printWLine(data);}} |
static void main_sink(wchar_t * data){{wchar_t dest[100]=L"";SNPRINTF(dest, 100-1, data);printWLine(dest);}}void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}main_sink(data);} | static void main_sink(wchar_t * data){{wchar_t dest[100]=L"";SNPRINTF(dest, 100-1, L"%s", data);printWLine(dest);}}static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}main_sink(data);} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;func_ptr(data);}void b_main_sink(wchar_t * data){{size_t i;wchar_t src[100];for (i=0;i < 100;i++){data[i]=src[i];}data[100-1]=L'\0';printWLine(data);}} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;func_ptr(data);}void b_main_sink(wchar_t * data){{size_t i;wchar_t src[100];for (i=0;i < 100;i++){data[i]=src[i];}data[100-1]=L'\0';printWLine(data);}} |
static void main_sink(int * data){delete data;}void main(){int * data;data=NULL;data=(int *)malloc(100*sizeof(int));main_sink(data);} | static void main_sink(int * data){free(data);}static void main(){int * data;data=NULL;data=(int *)malloc(100*sizeof(int));main_sink(data);} |
void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;if(global_returns_t_or_f()){{size_t data_len=wcslen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}}else{data=PASSWORD;}if(global_returns_t_or_f()){if (wcsncmp(PASSWORD, data, wcslen(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");}else{if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;if(global_returns_t_or_f()){{size_t data_len=wcslen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}}else{{size_t data_len=wcslen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}}if(global_returns_t_or_f()){if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}else{if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}} |
void b_main_sink(char * data);void _main(){char * data;char data_mainbuf[50];char data_goodbuf[100];data=data_mainbuf;b_main_sink(data);}void b_main_sink(char * data){{size_t i;char src[100];for (i=0;i < 100;i++){data[i]=src[i];}printLine(data);}} | void b_main_sink(char * data);static void main(){char * data;char data_badbuf[50];char data_goodbuf[100];data=data_goodbuf;b_main_sink(data);}void b_main_sink(char * data){{size_t i;char src[100];for (i=0;i < 100;i++){data[i]=src[i];}printLine(data);}} |
void main(){long long * data;data=NULL;data=new long long[100];delete data;} | static void main(){long long * data;data=NULL;data=new long long[100];delete [] data;} |
void b_main_sink(char * * data_ptr);void _main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN("C:\\temp\\file.txt", "r");if (pFile!=NULL){fgets(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}b_main_sink(&data);}static void main_vasink(char * data, ...){{char dest[100]="";va_list args;va_start(args, data);vsnprintf(dest, 100-1, data, args);va_end(args);printLine(dest);}}void b_main_sink(char * * data_ptr){char * data=*data_ptr;main_vasink(data, data);} | static void main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN("C:\\temp\\file.txt", "r");if (pFile!=NULL){fgets(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}b_main_sink(&data);}static void main_vasink(char * data, ...){{char dest[100]="";va_list args;va_start(args, data);vsnprintf(dest, 100-1, "%s", args);va_end(args);printLine(dest);}}void b_main_sink(char * * data_ptr){char * data=*data_ptr;main_vasink(data, data);} |
static void main_sink(twointsclass * data){delete [] data;}void main(){twointsclass * data;void (*func_ptr) (twointsclass *)=main_sink;data=NULL;data=(twointsclass *)calloc(100, sizeof(twointsclass));func_ptr(data);} | static void main_sink(twointsclass * data){free(data);}static void main(){twointsclass * data;void (*func_ptr) (twointsclass *)=main_sink;data=NULL;data=(twointsclass *)calloc(100, sizeof(twointsclass));func_ptr(data);} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void d_main_sink(wchar_t * data);void c_main_sink(wchar_t * data){d_main_sink(data);}void e_main_sink(wchar_t * data);void d_main_sink(wchar_t * data){e_main_sink(data);}void e_main_sink(wchar_t * data){wprintf(data);} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){d_main_sink(data);}void d_main_sink(wchar_t * data){e_main_sink(data);}void e_main_sink(wchar_t * data){wprintf(L"%s\n", data);} |
void _main(){char * data;data=NULL;if(global_returns_t_or_f()){data=(char *)malloc(50*sizeof(char));}else{data=(char *)malloc(100*sizeof(char));}{char dest[100];memset(dest, 'C', 100-1);memcpy(dest, data, strlen(dest)*sizeof(char));dest[100-1]='\0';printLine(dest);free(data);}} | static void main(){char * data;data=NULL;if(global_returns_t_or_f()){data=(char *)malloc(100*sizeof(char));}else{data=(char *)malloc(100*sizeof(char));}{char dest[100];memset(dest, 'C', 100-1);memcpy(dest, data, strlen(dest)*sizeof(char));dest[100-1]='\0';printLine(dest);free(data);}} |
void main_sink();void main(){char * data;data=NULL;data=(char *)malloc(100*sizeof(char));main_data=data;main_sink();}void main_sink(){char * data=main_data;delete [] data;} | static void main(){char * data;data=NULL;data=(char *)malloc(100*sizeof(char));main_data=data;main_sink();}void main_sink(){char * data=main_data;free(data);} |
static void main_sink(){int data=_main_data;{wchar_t * wchar_t_string;if (data > 0){wchar_t_string=(wchar_t *)malloc(data*sizeof(wchar_t));wcscpy(wchar_t_string, HELLO_STRING);printWLine(wchar_t_string);free(wchar_t_string);}else{printLine("Input is less than 0");}}}void _main(){int data;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}_main_data=data;main_sink();} | static void main_sink(){int data=_main_data;{wchar_t * wchar_t_string;if ((size_t)data > wcslen(HELLO_STRING) && data < 100){wchar_t_string=(wchar_t *)malloc(data*sizeof(wchar_t));wcscpy(wchar_t_string, HELLO_STRING);printWLine(wchar_t_string);free(wchar_t_string);}else{printLine("Input is less than the length of the source string or too large");}}}static void main(){int data;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}_main_data=data;main_sink();} |
void _main(){FILE * data;data=NULL;data=fopen("BadSource_fopen.txt", "w+");if (data!=NULL){CloseHandle((HANDLE)data);}} | static void main(){FILE * data;data=NULL;data=fopen("BadSource_fopen.txt", "w+");if (data!=NULL){fclose(data);}} |
static void main_sink(wchar_t * data){if (wcsstr(PASSWORD, data)!=NULL) printLine("Access granted");else printLine("Access denied!");}void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}main_sink(data);} | static void main_sink(wchar_t * data){if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}main_sink(data);} |
void _main(){{char * pointer=(char *)malloc(sizeof(char));free(pointer);printHexCharLine(data);}} | static void main(){{char data;char * pointer=(char *)malloc(sizeof(char));data=5;{char data=*pointer;printHexCharLine(data);}free(pointer);}} |
void main_sink_b(int * data);void main(){int * data;data=NULL;data=(int *)malloc(100*sizeof(int));main_sink_b(data);}void main_sink_c(int * data);void main_sink_b(int * data){main_sink_c(data);}void main_sink_c(int * data){delete [] data;} | static void main(){int * data;data=NULL;data=new int[100];main_sink_b(data);}void main_sink_b(int * data){main_sink_c(data);}void main_sink_c(int * data){delete [] data;} |
void b_main_sink(char * * data_ptr);void _main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN("C:\\temp\\file.txt", "r");if (pFile!=NULL){fgets(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}b_main_sink(&data);}static void main_vasink(char * data, ...){{char dest[100]="";va_list args;va_start(args, data);vsnprintf(dest, 100-1, data, args);va_end(args);printLine(dest);}}void b_main_sink(char * * data_ptr){char * data=*data_ptr;main_vasink(data, data);} | static void main(){char * data;char data_buf[100]="";data=data_buf;strcpy(data, "fixedstringtest");b_main_sink(&data);}static void main_vasink(char * data, ...){{char dest[100]="";va_list args;va_start(args, data);vsnprintf(dest, 100-1, data, args);va_end(args);printLine(dest);}}void b_main_sink(char * * data_ptr){char * data=*data_ptr;main_vasink(data, data);} |
void main_sink_b(char * data);void main(){char * data;data=new char[100];main_sink_b(data);}void main_sink_c(char * data);void main_sink_b(char * data){main_sink_c(data);}void main_sink_d(char * data);void main_sink_c(char * data){main_sink_d(data);}void main_sink_e(char * data);void main_sink_d(char * data){main_sink_e(data);}void main_sink_e(char * data){{char dest[50]="";strncpy(dest, data, strlen(data));printLine(data);delete [] data;}} | void main_sink_b(char * data);static void main(){char * data;data=new char[100];main_sink_b(data);}void main_sink_c(char * data);void main_sink_b(char * data){main_sink_c(data);}void main_sink_d(char * data);void main_sink_c(char * data){main_sink_d(data);}void main_sink_e(char * data);void main_sink_d(char * data){main_sink_e(data);}void main_sink_e(char * data){{char dest[50]="";strncpy(dest, data, strlen(data));printLine(data);delete [] data;}} |
void b_main_sink(void * void_data_ptr);void _main(){long long data;b_main_sink(&data);}void b_main_sink(void * void_data_ptr){long long * data_ptr=(long long *)void_data_ptr;long long data=(*data_ptr);printLongLongLine(data);} | static void main(){long long data;b_main_sink(&data);}void b_main_sink(void * void_data_ptr){long long * data_ptr=(long long *)void_data_ptr;long long data=(*data_ptr);data=5L;printLongLongLine(data);} |
void _main(){wchar_t * data;_union_type my_union;wchar_t data_buf[100]=L"";data=data_buf;data=L"P";my_union.a=data;{wchar_t * data=my_union.b;if (wcsncmp(PASSWORD, data, wcslen(data))==0) printLine("Access granted");else printLine("Access denied!");}} | static void main(){wchar_t * data;_union_type my_union;wchar_t data_buf[100]=L"";data=data_buf;data=L"P";my_union.a=data;{wchar_t * data=my_union.b;if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}} |
static int main_source(int data){data=RAND32();return data;}void _main(){int data;data=-1;data=main_source(data);{char * char_string;if (data > 0){char_string=(char *)malloc(data*sizeof(char));strcpy(char_string, HELLO_STRING);printLine(char_string);free(char_string);}else{printLine("Input is less than 0");}}} | static int main_source(int data){data=20;return data;}static void main(){int data;data=-1;data=main_source(data);{char * char_string;if (data > 0){char_string=(char *)malloc(data*sizeof(char));strcpy(char_string, HELLO_STRING);printLine(char_string);free(char_string);}else{printLine("Input is less than 0");}}} |
static void main_sink(){char * data=_main_data;{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};EXECVP(COMMAND_INT, args);}}void _main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN("C:\\temp\\file.txt", "r");if (pFile!=NULL){fgets(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}_main_data=data;main_sink();} | static void main_sink(){char * data=_main_data;{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};EXECVP(COMMAND_INT, args);}}static void main(){char * data;char data_buf[100]="";data=data_buf;strcat(data, "*.*");_main_data=data;main_sink();} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[250]=L"PATH=";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(250-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void d_main_sink(wchar_t * data);void c_main_sink(wchar_t * data){d_main_sink(data);}void d_main_sink(wchar_t * data){PUTENV(data);} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[250]=L"PATH=";data=data_buf;wcscat(data, NEW_PATH);b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void d_main_sink(wchar_t * data);void c_main_sink(wchar_t * data){d_main_sink(data);}void d_main_sink(wchar_t * data){PUTENV(data);} |
void _main(){int data;_union_type my_union;data=10;my_union.a=data;{int data=my_union.b;{char data_buf[10]="AAAAAAAAA";if (data >=0){printHexCharLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}}} | static void main(){int data;_union_type my_union;data=10;my_union.a=data;{int data=my_union.b;{char data_buf[10]="AAAAAAAAA";{printHexCharLine(data_buf[data]);}else{printLine("ERROR: Array index is out-of-bounds");}}}} |
void b_main_sink();void _main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(100*sizeof(wchar_t));wmemset(data, L'A', 100-1);data[100-1]=L'\0';free(data);_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;printWLine(data);} | static void main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(100*sizeof(wchar_t));wmemset(data, L'A', 100-1);data[100-1]=L'\0';_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;printWLine(data);} |
void b_main_sink(long long * data_array[]);void _main(){long long * data;long long * data_array[5];data=NULL;data=NULL;data=(long long *)realloc(data, 100*sizeof(long long));data[0]=5L;printLongLongLine(data[0]);data_array[2]=data;b_main_sink(data_array);}void b_main_sink(long long * data_array[]){long long * data=data_array[2];} | static void main(){long long * data;long long * data_array[5];data=NULL;{long long data_goodbuf[100];data=data_goodbuf;data[0]=5L;printLongLongLine(data[0]);}data_array[2]=data;b_main_sink(data_array);}void b_main_sink(long long * data_array[]){long long * data=data_array[2];} |
void b_main_sink(char * * data_ptr);void _main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(&data);}static void main_vasink(char * data, ...){{char dest[100]="";va_list args;va_start(args, data);vsnprintf(dest, 100-1, data, args);va_end(args);printLine(dest);}}void b_main_sink(char * * data_ptr){char * data=*data_ptr;main_vasink(data, data);} | static void main(){char * data;char data_buf[100]="";data=data_buf;strcpy(data, "fixedstringtest");b_main_sink(&data);}static void main_vasink(char * data, ...){{char dest[100]="";va_list args;va_start(args, data);vsnprintf(dest, 100-1, data, args);va_end(args);printLine(dest);}}void b_main_sink(char * * data_ptr){char * data=*data_ptr;main_vasink(data, data);} |
void _main(){wchar_t * data;_union_type my_union;wchar_t data_buf[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;my_union.a=data;{wchar_t * data=my_union.b;{wchar_t dest[100];wcsncpy(dest, data, wcslen(dest));dest[100-1]=L'\0';printWLine(dest);}}} | static void main(){wchar_t * data;_union_type my_union;wchar_t data_buf[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;my_union.a=data;{wchar_t * data=my_union.b;{wchar_t dest[100];wcsncpy(dest, data, wcslen(dest));dest[100-1]=L'\0';printWLine(dest);}}} |
void _main(){char * data;char data_buf[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';if(global_returns_t_or_f()){data=data_buf-8;}else{data=data_buf;}{char dest[100];strcpy(dest, data);printLine(dest);}} | static void main(){char * data;char data_buf[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';if(global_returns_t_or_f()){data=data_buf;}else{data=data_buf;}{char dest[100];strcpy(dest, data);printLine(dest);}} |
void _main(){short data;data=0;if(global_returns_t_or_f()){data=(short)RAND32();}else{data=100-1;}{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){memcpy(dest, src, data);}printLine(dest);}} | static void main(){short data;data=0;if(global_returns_t_or_f()){data=100-1;}else{data=100-1;}{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){memcpy(dest, src, data);}printLine(dest);}} |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
- Downloads last month
- 40