Unnamed: 0
int64
0
56k
source_code
stringlengths
55
5.98k
comments
stringlengths
2
1.76k
label
stringclasses
68 values
dataset_name
stringclasses
1 value
file_name
stringlengths
208
265
function
stringlengths
27
87
decompiled_code
stringlengths
68
3.97k
compiler_options
stringclasses
1 value
10,500
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112982/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53_good(void) { goodB2G(); return; }
['gcc']
10,501
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53b_badSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c_badSink(data); }
[]
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112982/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53b_badSink(undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c_badSink(param_1); return; }
['gcc']
10,502
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53b_goodB2GSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112982/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53b_goodB2GSink(undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c_goodB2GSink(param_1); return; }
['gcc']
10,503
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c_badSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d_badSink(data); }
[]
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112982/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c_badSink(undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d_badSink(param_1); return; }
['gcc']
10,504
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c_goodB2GSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112982/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53c_goodB2GSink(undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d_goodB2GSink(param_1); return; }
['gcc']
10,505
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d_badSink(wchar_t * data) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112982/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d_badSink(int *param_1) { int *piStack_10; piStack_10 = param_1; do { if (*piStack_10 == 0) { code_r0x00400d66: func_0x00400b40(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_004013f4); goto code_r0x00400d66; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,506
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d_goodB2GSink(wchar_t * data) { { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112982/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_53d_goodB2GSink(long param_1) { ulong uVar1; ulong uStack_10; uStack_10 = 0; do { uVar1 = func_0x00400ba0(param_1); if (uVar1 <= uStack_10) { code_r0x00400d85: func_0x00400b40(param_1); return; } if (*(int *)(param_1 + uStack_10 * 4) == 0x53) { printLine(&UNK_00401424); goto code_r0x00400d85; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,507
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; { /* Read input from a file */ size_t dataLen = wcslen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54b_badSink(data); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112983/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54_bad(void) { undefined4 *puVar1; long lVar2; long lVar3; long lVar4; puVar1 = (undefined4 *)func_0x00400c00(400); *puVar1 = 0; lVar2 = func_0x00400ba0(puVar1); if (1 < 100U - lVar2) { lVar3 = func_0x00400c30(&UNK_00401416,&UNK_00401414); if (lVar3 != 0) { lVar4 = func_0x00400b50(puVar1 + lVar2,100 - (int)lVar2,lVar3); if (lVar4 == 0) { printLine(&UNK_00401424); puVar1[lVar2] = 0; } func_0x00400b80(lVar3); } } CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54b_badSink(puVar1); return; }
['gcc']
10,508
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112983/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54_good(void) { goodB2G(); return; }
['gcc']
10,509
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54b_badSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c_badSink(data); }
[]
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112983/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54b_badSink(undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c_badSink(param_1); return; }
['gcc']
10,510
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54b_goodB2GSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112983/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54b_goodB2GSink(undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c_goodB2GSink(param_1); return; }
['gcc']
10,511
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c_badSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d_badSink(data); }
[]
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112983/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c_badSink(undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d_badSink(param_1); return; }
['gcc']
10,512
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c_goodB2GSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112983/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54c_goodB2GSink(undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d_goodB2GSink(param_1); return; }
['gcc']
10,513
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d_badSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e_badSink(data); }
[]
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112983/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d_badSink(undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e_badSink(param_1); return; }
['gcc']
10,514
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d_goodB2GSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112983/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54d_goodB2GSink(undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e_goodB2GSink(param_1); return; }
['gcc']
10,515
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e_badSink(wchar_t * data) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112983/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e_badSink(int *param_1) { int *piStack_10; piStack_10 = param_1; do { if (*piStack_10 == 0) { code_r0x00400d66: func_0x00400b40(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_00401414); goto code_r0x00400d66; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,516
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e_goodB2GSink(wchar_t * data) { { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112983/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_54e_goodB2GSink(long param_1) { ulong uVar1; ulong uStack_10; uStack_10 = 0; do { uVar1 = func_0x00400ba0(param_1); if (uVar1 <= uStack_10) { code_r0x00400d85: func_0x00400b40(param_1); return; } if (*(int *)(param_1 + uStack_10 * 4) == 0x53) { printLine(&UNK_00401444); goto code_r0x00400d85; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,517
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; data = CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61b_badSource(data); /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112984/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61_bad(void) { undefined4 *puVar1; int *piStack_10; puVar1 = (undefined4 *)func_0x00400c00(400); *puVar1 = 0; piStack_10 = (int *)CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61b_badSource(puVar1) ; do { if (*piStack_10 == 0) { code_r0x00400d8a: func_0x00400b40(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_004013d4); goto code_r0x00400d8a; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,518
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112984/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61_good(void) { goodB2G(); return; }
['gcc']
10,519
wchar_t * CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61b_badSource(wchar_t * data) { { /* Read input from a file */ size_t dataLen = wcslen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } return data; }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112984/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61b_badSource
long CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61b_badSource(long param_1) { long lVar1; long lVar2; long lVar3; lVar1 = func_0x00400ba0(param_1); if (1 < 100U - lVar1) { lVar2 = func_0x00400c30(&UNK_004013d6,&UNK_004013d4); if (lVar2 != 0) { lVar3 = func_0x00400b50(lVar1 * 4 + param_1,100 - (int)lVar1,lVar2); if (lVar3 == 0) { printLine(&UNK_004013e4); *(undefined4 *)(param_1 + lVar1 * 4) = 0; } func_0x00400b80(lVar2); } } return param_1; }
['gcc']
10,520
wchar_t * CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61b_goodB2GSource(wchar_t * data) { { /* Read input from a file */ size_t dataLen = wcslen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } return data; }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112984/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61b_goodB2GSource
long CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_61b_goodB2GSource(long param_1) { long lVar1; long lVar2; long lVar3; lVar1 = func_0x00400ba0(param_1); if (1 < 100U - lVar1) { lVar2 = func_0x00400c30(&UNK_00401406,&UNK_00401404); if (lVar2 != 0) { lVar3 = func_0x00400b50(lVar1 * 4 + param_1,100 - (int)lVar1,lVar2); if (lVar3 == 0) { printLine(&UNK_00401414); *(undefined4 *)(param_1 + lVar1 * 4) = 0; } func_0x00400b80(lVar2); } } return param_1; }
['gcc']
10,521
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; { /* Read input from a file */ size_t dataLen = wcslen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63b_badSink(&data); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112986/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63_bad(void) { long lVar1; undefined4 *puStack_20; long lStack_18; long lStack_10; puStack_20 = (undefined4 *)func_0x00400c00(400); *puStack_20 = 0; lStack_10 = func_0x00400ba0(puStack_20); if (1 < 100U - lStack_10) { lStack_18 = func_0x00400c30(&UNK_004013c6,&UNK_004013c4); if (lStack_18 != 0) { lVar1 = func_0x00400b50(puStack_20 + lStack_10,100 - (int)lStack_10,lStack_18); if (lVar1 == 0) { printLine(&UNK_004013d4); puStack_20[lStack_10] = 0; } func_0x00400b80(lStack_18); } } CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63b_badSink(&puStack_20); return; }
['gcc']
10,522
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112986/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63_good(void) { goodB2G(); return; }
['gcc']
10,523
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63b_badSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112986/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63b_badSink(int **param_1) { int *piStack_10; piStack_10 = *param_1; do { if (*piStack_10 == 0) { code_r0x00400d71: func_0x00400b40(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_004013c4); goto code_r0x00400d71; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,524
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63b_goodB2GSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112986/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_63b_goodB2GSink(long *param_1) { long lVar1; ulong uVar2; ulong uStack_10; lVar1 = *param_1; uStack_10 = 0; do { uVar2 = func_0x00400ba0(lVar1); if (uVar2 <= uStack_10) { code_r0x00400d90: func_0x00400b40(lVar1); return; } if (*(int *)(lVar1 + uStack_10 * 4) == 0x53) { printLine(&UNK_004013f4); goto code_r0x00400d90; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,525
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; { /* Read input from a file */ size_t dataLen = wcslen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64b_badSink(&data); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112987/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64_bad(void) { long lVar1; undefined4 *puStack_20; long lStack_18; long lStack_10; puStack_20 = (undefined4 *)func_0x00400c00(400); *puStack_20 = 0; lStack_10 = func_0x00400ba0(puStack_20); if (1 < 100U - lStack_10) { lStack_18 = func_0x00400c30(&UNK_004013d6,&UNK_004013d4); if (lStack_18 != 0) { lVar1 = func_0x00400b50(puStack_20 + lStack_10,100 - (int)lStack_10,lStack_18); if (lVar1 == 0) { printLine(&UNK_004013e4); puStack_20[lStack_10] = 0; } func_0x00400b80(lStack_18); } } CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64b_badSink(&puStack_20); return; }
['gcc']
10,526
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112987/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64_good(void) { goodB2G(); return; }
['gcc']
10,527
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112987/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64b_badSink(int **param_1) { int *piStack_10; piStack_10 = *param_1; do { if (*piStack_10 == 0) { code_r0x00400d79: func_0x00400b40(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_004013d4); goto code_r0x00400d79; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,528
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112987/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_64b_goodB2GSink(long *param_1) { long lVar1; ulong uVar2; ulong uStack_10; lVar1 = *param_1; uStack_10 = 0; do { uVar2 = func_0x00400ba0(lVar1); if (uVar2 <= uStack_10) { code_r0x00400d98: func_0x00400b40(lVar1); return; } if (*(int *)(lVar1 + uStack_10 * 4) == 0x53) { printLine(&UNK_00401404); goto code_r0x00400d98; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,529
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65_bad() { wchar_t * data; /* define a function pointer */ void (*funcPtr) (wchar_t *) = CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65b_badSink; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; { /* Read input from a file */ size_t dataLen = wcslen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } /* use the function pointer */ funcPtr(data); }
['/* define a function pointer */', '/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */', '/* use the function pointer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112988/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65_bad(void) { undefined4 *puVar1; long lVar2; long lVar3; long lVar4; puVar1 = (undefined4 *)func_0x00400c00(400); *puVar1 = 0; lVar2 = func_0x00400ba0(puVar1); if (1 < 100U - lVar2) { lVar3 = func_0x00400c30(&UNK_004013d6,&UNK_004013d4); if (lVar3 != 0) { lVar4 = func_0x00400b50(puVar1 + lVar2,100 - (int)lVar2,lVar3); if (lVar4 == 0) { printLine(&UNK_004013e4); puVar1[lVar2] = 0; } func_0x00400b80(lVar3); } } CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65b_badSink(puVar1); return; }
['gcc']
10,530
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112988/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65_good(void) { goodB2G(); return; }
['gcc']
10,531
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65b_badSink(wchar_t * data) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112988/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65b_badSink(int *param_1) { int *piStack_10; piStack_10 = param_1; do { if (*piStack_10 == 0) { code_r0x00400d66: func_0x00400b40(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_004013d4); goto code_r0x00400d66; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,532
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65b_goodB2GSink(wchar_t * data) { { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112988/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_65b_goodB2GSink(long param_1) { ulong uVar1; ulong uStack_10; uStack_10 = 0; do { uVar1 = func_0x00400ba0(param_1); if (uVar1 <= uStack_10) { code_r0x00400d85: func_0x00400b40(param_1); return; } if (*(int *)(param_1 + uStack_10 * 4) == 0x53) { printLine(&UNK_00401404); goto code_r0x00400d85; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,533
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66_bad() { wchar_t * data; wchar_t * dataArray[5]; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; { /* Read input from a file */ size_t dataLen = wcslen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } /* put data in array */ dataArray[2] = data; CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66b_badSink(dataArray); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */', '/* put data in array */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112989/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66_bad(void) { long lVar1; undefined auStack_48 [16]; undefined4 *puStack_38; long lStack_20; long lStack_18; undefined4 *puStack_10; puStack_10 = (undefined4 *)func_0x00400c00(400); *puStack_10 = 0; lStack_18 = func_0x00400ba0(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c30(&UNK_004013d6,&UNK_004013d4); if (lStack_20 != 0) { lVar1 = func_0x00400b50(puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013e4); puStack_10[lStack_18] = 0; } func_0x00400b80(lStack_20); } } puStack_38 = puStack_10; CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66b_badSink(auStack_48); return; }
['gcc']
10,534
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112989/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66_good(void) { goodB2G(); return; }
['gcc']
10,535
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66b_badSink(wchar_t * dataArray[]) { /* copy data out of dataArray */ wchar_t * data = dataArray[2]; /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* copy data out of dataArray */', '/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112989/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66b_badSink(long param_1) { int *piStack_10; piStack_10 = *(int **)(param_1 + 0x10); do { if (*piStack_10 == 0) { code_r0x00400d72: func_0x00400b40(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_004013d4); goto code_r0x00400d72; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,536
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66b_goodB2GSink(wchar_t * dataArray[]) { wchar_t * data = dataArray[2]; { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112989/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_66b_goodB2GSink(long param_1) { long lVar1; ulong uVar2; ulong uStack_10; lVar1 = *(long *)(param_1 + 0x10); uStack_10 = 0; do { uVar2 = func_0x00400ba0(lVar1); if (uVar2 <= uStack_10) { code_r0x00400d91: func_0x00400b40(lVar1); return; } if (*(int *)(lVar1 + uStack_10 * 4) == 0x53) { printLine(&UNK_00401404); goto code_r0x00400d91; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,537
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67_bad() { wchar_t * data; CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67_structType myStruct; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; { /* Read input from a file */ size_t dataLen = wcslen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } myStruct.structFirst = data; CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67b_badSink(myStruct); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112990/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67_bad(void) { undefined4 *puVar1; long lVar2; long lVar3; long lVar4; puVar1 = (undefined4 *)func_0x00400c00(400); *puVar1 = 0; lVar2 = func_0x00400ba0(puVar1); if (1 < 100U - lVar2) { lVar3 = func_0x00400c30(&UNK_004013d6,&UNK_004013d4); if (lVar3 != 0) { lVar4 = func_0x00400b50(puVar1 + lVar2,100 - (int)lVar2,lVar3); if (lVar4 == 0) { printLine(&UNK_004013e4); puVar1[lVar2] = 0; } func_0x00400b80(lVar3); } } CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67b_badSink(puVar1); return; }
['gcc']
10,538
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112990/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67_good(void) { goodB2G(); return; }
['gcc']
10,539
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67b_badSink(CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67_structType myStruct) { wchar_t * data = myStruct.structFirst; /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112990/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67b_badSink(int *param_1) { int *piStack_10; piStack_10 = param_1; do { if (*piStack_10 == 0) { code_r0x00400d6e: func_0x00400b40(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_004013d4); goto code_r0x00400d6e; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,540
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67b_goodB2GSink(CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67_structType myStruct) { wchar_t * data = myStruct.structFirst; { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112990/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_67b_goodB2GSink(long param_1) { ulong uVar1; ulong uStack_10; uStack_10 = 0; do { uVar1 = func_0x00400ba0(param_1); if (uVar1 <= uStack_10) { code_r0x00400d8d: func_0x00400b40(param_1); return; } if (*(int *)(param_1 + uStack_10 * 4) == 0x53) { printLine(&UNK_00401404); goto code_r0x00400d8d; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,541
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; { /* Read input from a file */ size_t dataLen = wcslen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68_badDataForBadSink = data; CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68b_badSink(); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112991/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68_bad(void) { undefined4 *puVar1; long lVar2; long lVar3; long lVar4; puVar1 = (undefined4 *)func_0x00400c00(400); *puVar1 = 0; lVar2 = func_0x00400ba0(puVar1); if (1 < 100U - lVar2) { lVar3 = func_0x00400c30(&UNK_004013d6,&UNK_004013d4); if (lVar3 != 0) { lVar4 = func_0x00400b50(puVar1 + lVar2,100 - (int)lVar2,lVar3); if (lVar4 == 0) { printLine(&UNK_004013e4); puVar1[lVar2] = 0; } func_0x00400b80(lVar3); } } CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68_badDataForBadSink = puVar1; CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68b_badSink(); return; }
['gcc']
10,542
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68b_badSink() { wchar_t * data = CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68_badDataForBadSink; /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112991/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68b_badSink(void) { int *piStack_10; piStack_10 = CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68_badDataForBadSink; do { if (*piStack_10 == 0) { code_r0x00400d6d: func_0x00400b40(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_004013d4); goto code_r0x00400d6d; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,543
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68b_goodB2GSink() { wchar_t * data = CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68_badDataForGoodSink; { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112991/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68b_goodB2GSink(void) { long lVar1; ulong uVar2; ulong uStack_10; lVar1 = CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_68_badDataForGoodSink; uStack_10 = 0; do { uVar2 = func_0x00400ba0(lVar1); if (uVar2 <= uStack_10) { code_r0x00400d8c: func_0x00400b40(lVar1); return; } if (*(int *)(lVar1 + uStack_10 * 4) == 0x53) { printLine(&UNK_00401404); goto code_r0x00400d8c; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,544
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_08_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); if(staticReturnsTrue()) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */', '/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113006/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_08.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_08_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_08_bad(void) { int iVar1; int *piStack_10; piStack_10 = (int *)func_0x00400b00(400); *piStack_10 = 0; func_0x00400ad0(piStack_10,&UNK_00401238); iVar1 = staticReturnsTrue(); if (iVar1 != 0) { for (; *piStack_10 != 0; piStack_10 = piStack_10 + 1) { if (*piStack_10 == 0x53) { printLine(&UNK_0040126c); break; } } func_0x00400a60(piStack_10); } return; }
['gcc']
10,545
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_08_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113006/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_08.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_08_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_08_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
10,546
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_11_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); if(globalReturnsTrue()) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */', '/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113009/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_11.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_11_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_11_bad(void) { int iVar1; int *piStack_10; piStack_10 = (int *)func_0x00400b00(400); *piStack_10 = 0; func_0x00400ad0(piStack_10,&UNK_00401218); iVar1 = globalReturnsTrue(); if (iVar1 != 0) { for (; *piStack_10 != 0; piStack_10 = piStack_10 + 1) { if (*piStack_10 == 0x53) { printLine(&UNK_0040124c); break; } } func_0x00400a60(piStack_10); } return; }
['gcc']
10,547
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_11_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113009/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_11.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_11_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_11_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
10,548
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_12_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); if(globalReturnsTrueOrFalse()) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } else { { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } } }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */', '/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */', '/* FIX: Use a loop variable to traverse through the string pointed to by data */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113010/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_12.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_12_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_12_bad(void) { int iVar1; ulong uVar2; ulong uStack_18; int *piStack_10; piStack_10 = (int *)func_0x00400b40(400); *piStack_10 = 0; func_0x00400b10(piStack_10,&UNK_004012a8); iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { for (uStack_18 = 0; uVar2 = func_0x00400ad0(piStack_10), uStack_18 < uVar2; uStack_18 = uStack_18 + 1) { if (piStack_10[uStack_18] == 0x53) { printLine(&UNK_004012dc); break; } } func_0x00400a90(piStack_10); } else { for (; *piStack_10 != 0; piStack_10 = piStack_10 + 1) { if (*piStack_10 == 0x53) { printLine(&UNK_004012dc); break; } } func_0x00400a90(piStack_10); } return; }
['gcc']
10,549
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_12_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113010/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_12.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_12_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_12_good(void) { goodB2G(); return; }
['gcc']
10,550
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_17_bad() { int j; wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); for(j = 0; j < 1; j++) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */', '/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113015/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_17.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_17_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_17_bad(void) { int *piStack_18; int iStack_c; piStack_18 = (int *)func_0x00400b00(400); *piStack_18 = 0; func_0x00400ad0(piStack_18,&UNK_00401218); iStack_c = 0; do { if (0 < iStack_c) { return; } for (; *piStack_18 != 0; piStack_18 = piStack_18 + 1) { if (*piStack_18 == 0x53) { printLine(&UNK_0040124c); break; } } func_0x00400a60(piStack_18); iStack_c = iStack_c + 1; } while( true ); }
['gcc']
10,551
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_17_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113015/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_17.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_17_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_17_good(void) { goodB2G(); return; }
['gcc']
10,552
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_21_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); badStatic = 1; /* true */ badSink(data); }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */', '/* true */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113017/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_21.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_21_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_21_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400b00(400); *puVar1 = 0; func_0x00400ad0(puVar1,&UNK_00401250); badStatic = 1; badSink(puVar1); return; }
['gcc']
10,553
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_21_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113017/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_21.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_21_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_21_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
10,554
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_badGlobal = 1; /* true */ CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_badSink(data); }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */', '/* true */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113018/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400b00(400); *puVar1 = 0; func_0x00400ad0(puVar1,&UNK_00401238); CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_badGlobal = 1; CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_badSink(puVar1); return; }
['gcc']
10,555
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113018/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
10,556
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_badSink(wchar_t * data) { if(CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_badGlobal) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113018/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_badSink(int *param_1) { int *piStack_10; piStack_10 = param_1; if (CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_badGlobal != 0) { for (; *piStack_10 != 0; piStack_10 = piStack_10 + 1) { if (*piStack_10 == 0x53) { printLine(&UNK_00401234); break; } } func_0x00400a60(piStack_10); } return; }
['gcc']
10,557
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_goodB2G1Sink(wchar_t * data) { if(CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_goodB2G1Global) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } } }
['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113018/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_goodB2G1Sink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_goodB2G1Sink(long param_1) { ulong uVar1; ulong uStack_10; if (CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_goodB2G1Global == 0) { uStack_10 = 0; while( true ) { uVar1 = func_0x00400ad0(param_1); if (uVar1 <= uStack_10) break; if (*(int *)(param_1 + uStack_10 * 4) == 0x53) { printLine(&UNK_00401389); break; } uStack_10 = uStack_10 + 1; } func_0x00400a90(param_1); } else { printLine(&UNK_00401374); } return; }
['gcc']
10,558
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_goodB2G2Sink(wchar_t * data) { if(CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_goodB2G2Global) { { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113018/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_goodB2G2Sink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_goodB2G2Sink(long param_1) { ulong uVar1; ulong uStack_10; if (CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_22_goodB2G2Global != 0) { uStack_10 = 0; while( true ) { uVar1 = func_0x00400ad0(param_1); if (uVar1 <= uStack_10) break; if (*(int *)(param_1 + uStack_10 * 4) == 0x53) { printLine(&UNK_00401389); break; } uStack_10 = uStack_10 + 1; } func_0x00400a90(param_1); } return; }
['gcc']
10,559
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_31_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); { wchar_t * dataCopy = data; wchar_t * data = dataCopy; /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */', '/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113019/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_31.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_31_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_31_bad(void) { int *piStack_10; piStack_10 = (int *)func_0x00400b00(400); *piStack_10 = 0; func_0x00400ad0(piStack_10,&UNK_00401218); do { if (*piStack_10 == 0) { code_r0x00400c8b: func_0x00400a60(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_0040124c); goto code_r0x00400c8b; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,560
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_31_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113019/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_31.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_31_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_31_good(void) { goodB2G(); return; }
['gcc']
10,561
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_32_bad() { wchar_t * data; wchar_t * *dataPtr1 = &data; wchar_t * *dataPtr2 = &data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; { wchar_t * data = *dataPtr1; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); *dataPtr1 = data; } { wchar_t * data = *dataPtr2; /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */', '/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113020/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_32.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_32_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_32_bad(void) { int *piStack_30; int *piStack_28; int **ppiStack_20; int **ppiStack_18; int *piStack_10; ppiStack_18 = &piStack_30; ppiStack_20 = &piStack_30; piStack_30 = (int *)func_0x00400b00(400); *piStack_30 = 0; piStack_28 = *ppiStack_18; func_0x00400ad0(piStack_28,&UNK_00401238); *ppiStack_18 = piStack_28; piStack_10 = *ppiStack_20; do { if (*piStack_10 == 0) { code_r0x00400cac: func_0x00400a60(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_0040126c); goto code_r0x00400cac; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,562
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_32_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113020/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_32.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_32_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_32_good(void) { goodB2G(); return; }
['gcc']
10,563
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_34_bad() { wchar_t * data; CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_34_unionType myUnion; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); myUnion.unionFirst = data; { wchar_t * data = myUnion.unionSecond; /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */', '/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113022/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_34.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_34_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_34_bad(void) { int *piStack_10; piStack_10 = (int *)func_0x00400b00(400); *piStack_10 = 0; func_0x00400ad0(piStack_10,&UNK_00401218); do { if (*piStack_10 == 0) { code_r0x00400c8b: func_0x00400a60(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_0040124c); goto code_r0x00400c8b; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,564
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_34_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113022/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_34.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_34_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_34_good(void) { goodB2G(); return; }
['gcc']
10,565
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_41_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); badSink(data); }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113023/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_41.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_41_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_41_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400b00(400); *puVar1 = 0; func_0x00400ad0(puVar1,&UNK_00401240); badSink(puVar1); return; }
['gcc']
10,566
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_41_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113023/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_41.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_41_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_41_good(void) { goodB2G(); return; }
['gcc']
10,567
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_42_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; data = badSource(data); /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113024/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_42.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_42_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_42_bad(void) { undefined4 *puVar1; int *piStack_10; puVar1 = (undefined4 *)func_0x00400b00(400); *puVar1 = 0; piStack_10 = (int *)badSource(puVar1); do { if (*piStack_10 == 0) { code_r0x00400c9d: func_0x00400a60(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_0040125c); goto code_r0x00400c9d; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,568
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_42_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113024/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_42.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_42_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_42_good(void) { goodB2G(); return; }
['gcc']
10,569
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51b_badSink(data); }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113028/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400b00(400); *puVar1 = 0; func_0x00400ad0(puVar1,&UNK_00401228); CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51b_badSink(puVar1); return; }
['gcc']
10,570
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113028/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51_good(void) { goodB2G(); return; }
['gcc']
10,571
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51b_badSink(wchar_t * data) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113028/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51b_badSink(int *param_1) { int *piStack_10; piStack_10 = param_1; do { if (*piStack_10 == 0) { code_r0x00400c56: func_0x00400a60(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_00401224); goto code_r0x00400c56; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,572
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51b_goodB2GSink(wchar_t * data) { { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113028/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_51b_goodB2GSink(long param_1) { ulong uVar1; ulong uStack_10; uStack_10 = 0; do { uVar1 = func_0x00400ad0(param_1); if (uVar1 <= uStack_10) { code_r0x00400cb5: func_0x00400a90(param_1); return; } if (*(int *)(param_1 + uStack_10 * 4) == 0x53) { printLine(&UNK_00401294); goto code_r0x00400cb5; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,573
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52b_badSink(data); }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113029/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400b00(400); *puVar1 = 0; func_0x00400ad0(puVar1,&UNK_00401248); CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52b_badSink(puVar1); return; }
['gcc']
10,574
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113029/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52_good(void) { goodB2G(); return; }
['gcc']
10,575
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52b_badSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c_badSink(data); }
[]
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113029/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52b_badSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c_badSink(param_1); return; }
['gcc']
10,576
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52b_goodB2GSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113029/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52b_goodB2GSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c_goodB2GSink(param_1); return; }
['gcc']
10,577
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c_badSink(wchar_t * data) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113029/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c_badSink(int *param_1) { int *piStack_10; piStack_10 = param_1; do { if (*piStack_10 == 0) { code_r0x00400c56: func_0x00400a60(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_00401244); goto code_r0x00400c56; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,578
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c_goodB2GSink(wchar_t * data) { { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113029/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_52c_goodB2GSink(long param_1) { ulong uVar1; ulong uStack_10; uStack_10 = 0; do { uVar1 = func_0x00400ad0(param_1); if (uVar1 <= uStack_10) { code_r0x00400cb5: func_0x00400a90(param_1); return; } if (*(int *)(param_1 + uStack_10 * 4) == 0x53) { printLine(&UNK_004012b4); goto code_r0x00400cb5; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,579
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53b_badSink(data); }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113030/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400b00(400); *puVar1 = 0; func_0x00400ad0(puVar1,&UNK_00401258); CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53b_badSink(puVar1); return; }
['gcc']
10,580
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113030/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53_good(void) { goodB2G(); return; }
['gcc']
10,581
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53b_badSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c_badSink(data); }
[]
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113030/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53b_badSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c_badSink(param_1); return; }
['gcc']
10,582
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53b_goodB2GSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113030/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53b_goodB2GSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c_goodB2GSink(param_1); return; }
['gcc']
10,583
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c_badSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d_badSink(data); }
[]
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113030/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c_badSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d_badSink(param_1); return; }
['gcc']
10,584
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c_goodB2GSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113030/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53c_goodB2GSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d_goodB2GSink(param_1); return; }
['gcc']
10,585
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d_badSink(wchar_t * data) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113030/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d_badSink(int *param_1) { int *piStack_10; piStack_10 = param_1; do { if (*piStack_10 == 0) { code_r0x00400c56: func_0x00400a60(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_00401254); goto code_r0x00400c56; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,586
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d_goodB2GSink(wchar_t * data) { { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113030/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_53d_goodB2GSink(long param_1) { ulong uVar1; ulong uStack_10; uStack_10 = 0; do { uVar1 = func_0x00400ad0(param_1); if (uVar1 <= uStack_10) { code_r0x00400cb5: func_0x00400a90(param_1); return; } if (*(int *)(param_1 + uStack_10 * 4) == 0x53) { printLine(&UNK_004012c4); goto code_r0x00400cb5; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,587
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54b_badSink(data); }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113031/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400b00(400); *puVar1 = 0; func_0x00400ad0(puVar1,&UNK_00401278); CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54b_badSink(puVar1); return; }
['gcc']
10,588
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113031/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54_good(void) { goodB2G(); return; }
['gcc']
10,589
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54b_badSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c_badSink(data); }
[]
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113031/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54b_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54b_badSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c_badSink(param_1); return; }
['gcc']
10,590
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54b_goodB2GSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113031/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54b_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54b_goodB2GSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c_goodB2GSink(param_1); return; }
['gcc']
10,591
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c_badSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d_badSink(data); }
[]
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113031/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c_badSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d_badSink(param_1); return; }
['gcc']
10,592
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c_goodB2GSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113031/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54c_goodB2GSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d_goodB2GSink(param_1); return; }
['gcc']
10,593
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d_badSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e_badSink(data); }
[]
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113031/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d_badSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e_badSink(param_1); return; }
['gcc']
10,594
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d_goodB2GSink(wchar_t * data) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113031/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54d_goodB2GSink (undefined8 param_1) { CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e_goodB2GSink(param_1); return; }
['gcc']
10,595
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e_badSink(wchar_t * data) { /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113031/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e_badSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e_badSink(int *param_1) { int *piStack_10; piStack_10 = param_1; do { if (*piStack_10 == 0) { code_r0x00400c56: func_0x00400a60(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_00401274); goto code_r0x00400c56; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,596
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e_goodB2GSink(wchar_t * data) { { size_t i; /* FIX: Use a loop variable to traverse through the string pointed to by data */ for (i=0; i < wcslen(data); i++) { if (data[i] == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); } }
['/* FIX: Use a loop variable to traverse through the string pointed to by data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113031/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e_goodB2GSink
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_54e_goodB2GSink(long param_1) { ulong uVar1; ulong uStack_10; uStack_10 = 0; do { uVar1 = func_0x00400ad0(param_1); if (uVar1 <= uStack_10) { code_r0x00400cb5: func_0x00400a90(param_1); return; } if (*(int *)(param_1 + uStack_10 * 4) == 0x53) { printLine(&UNK_004012e4); goto code_r0x00400cb5; } uStack_10 = uStack_10 + 1; } while( true ); }
['gcc']
10,597
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61_bad() { wchar_t * data; data = (wchar_t *)malloc(100*sizeof(wchar_t)); data[0] = L'\0'; data = CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61b_badSource(data); /* FLAW: We are incrementing the pointer in the loop - this will cause us to free the * memory block not at the start of the buffer */ for (; *data != L'\0'; data++) { if (*data == SEARCH_CHAR) { printLine("We have a match!"); break; } } free(data); }
['/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the\r\n * memory block not at the start of the buffer */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113032/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61_bad
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61_bad(void) { undefined4 *puVar1; int *piStack_10; puVar1 = (undefined4 *)func_0x00400b00(400); *puVar1 = 0; piStack_10 = (int *)CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61b_badSource (puVar1); do { if (*piStack_10 == 0) { code_r0x00400c7a: func_0x00400a60(piStack_10); return; } if (*piStack_10 == 0x53) { printLine(&UNK_00401224); goto code_r0x00400c7a; } piStack_10 = piStack_10 + 1; } while( true ); }
['gcc']
10,598
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113032/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61a.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61_good
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61_good(void) { goodB2G(); return; }
['gcc']
10,599
wchar_t * CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61b_badSource(wchar_t * data) { /* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */ wcscpy(data, BAD_SOURCE_FIXED_STRING); return data; }
['/* POTENTIAL FLAW: Initialize data to be a fixed string that contains the search character in the sinks */']
['CWE761']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/113032/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61b.c
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61b_badSource
undefined8 CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_fixed_string_61b_badSource(undefined8 param_1) { func_0x00400ad0(param_1,&UNK_00401228); return param_1; }
['gcc']