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
51,700
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88529/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63_bad(void) { int iVar1; int iVar2; uint auStack_1c [3]; auStack_1c[0] = 0xffffffff; iVar1 = func_0x00400af0(); iVar2 = func_0x00400af0(); auStack_1c[0] = func_0x00400af0(); auStack_1c[0] = auStack_1c[0] ^ iVar1 << 0x1e ^ iVar2 << 0xf; CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63b_badSink(auStack_1c); return; }
['gcc']
51,701
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88529/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63_good(void) { goodG2B(); return; }
['gcc']
51,702
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63b_badSink(int * dataPtr) { int data = *dataPtr; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ memmove(dest, source, data); dest[data] = '\0'; /* NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88529/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63b_badSink(int *param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = *param_1; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,703
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63b_goodG2BSink(int * dataPtr) { int data = *dataPtr; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ memmove(dest, source, data); dest[data] = '\0'; /* NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88529/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_63b_goodG2BSink(int *param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = *param_1; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,704
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88530/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64_bad(void) { int iVar1; int iVar2; uint auStack_1c [3]; auStack_1c[0] = 0xffffffff; iVar1 = func_0x00400af0(); iVar2 = func_0x00400af0(); auStack_1c[0] = func_0x00400af0(); auStack_1c[0] = auStack_1c[0] ^ iVar1 << 0x1e ^ iVar2 << 0xf; CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64b_badSink(auStack_1c); return; }
['gcc']
51,705
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88530/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64_good(void) { goodG2B(); return; }
['gcc']
51,706
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * dataPtr = (int *)dataVoidPtr; /* dereference dataPtr into data */ int data = (*dataPtr); { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ memmove(dest, source, data); dest[data] = '\0'; /* NULL terminate */ } printLine(dest); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88530/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64b_badSink(int *param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_14; int *piStack_10; iStack_14 = *param_1; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; piStack_10 = param_1; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_14 < 100) { func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_14); *(undefined *)((long)&uStack_78 + (long)iStack_14) = 0; } printLine(&uStack_78); return; }
['gcc']
51,707
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * dataPtr = (int *)dataVoidPtr; /* dereference dataPtr into data */ int data = (*dataPtr); { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ memmove(dest, source, data); dest[data] = '\0'; /* NULL terminate */ } printLine(dest); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88530/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_64b_goodG2BSink(int *param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_14; int *piStack_10; iStack_14 = *param_1; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; piStack_10 = param_1; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_14 < 100) { func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_14); *(undefined *)((long)&uStack_78 + (long)iStack_14) = 0; } printLine(&uStack_78); return; }
['gcc']
51,708
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66_bad() { int data; int dataArray[5]; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); /* put data in array */ dataArray[2] = data; CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66b_badSink(dataArray); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* put data in array */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88532/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66_bad(void) { int iVar1; int iVar2; undefined auStack_38 [8]; uint uStack_30; uint uStack_1c; uStack_1c = 0xffffffff; iVar1 = func_0x00400af0(); iVar2 = func_0x00400af0(); uStack_30 = func_0x00400af0(); uStack_30 = uStack_30 ^ iVar1 << 0x1e ^ iVar2 << 0xf; uStack_1c = uStack_30; CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66b_badSink(auStack_38); return; }
['gcc']
51,709
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88532/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66_good(void) { goodG2B(); return; }
['gcc']
51,710
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66b_badSink(int dataArray[]) { /* copy data out of dataArray */ int data = dataArray[2]; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ memmove(dest, source, data); dest[data] = '\0'; /* NULL terminate */ } printLine(dest); } }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88532/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66b_badSink(long param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = *(int *)(param_1 + 8); uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,711
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66b_goodG2BSink(int dataArray[]) { int data = dataArray[2]; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ memmove(dest, source, data); dest[data] = '\0'; /* NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88532/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_66b_goodG2BSink(long param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = *(int *)(param_1 + 8); uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,712
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67_bad() { int data; CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67_structType myStruct; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); myStruct.structFirst = data; CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67b_badSink(myStruct); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88533/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67_bad(void) { int iVar1; int iVar2; uint uVar3; iVar1 = func_0x00400af0(); iVar2 = func_0x00400af0(); uVar3 = func_0x00400af0(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67b_badSink (uVar3 ^ iVar1 << 0x1e ^ iVar2 << 0xf); return; }
['gcc']
51,713
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88533/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67_good(void) { goodG2B(); return; }
['gcc']
51,714
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67b_badSink(CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67_structType myStruct) { int data = myStruct.structFirst; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ memmove(dest, source, data); dest[data] = '\0'; /* NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88533/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67b_badSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; iStack_c = param_1; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,715
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67b_goodG2BSink(CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67_structType myStruct) { int data = myStruct.structFirst; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ memmove(dest, source, data); dest[data] = '\0'; /* NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88533/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_67b_goodG2BSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; iStack_c = param_1; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,716
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_badData = data; CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68b_badSink(); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88534/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_bad(void) { int iVar1; int iVar2; uint uVar3; iVar1 = func_0x00400af0(); iVar2 = func_0x00400af0(); uVar3 = func_0x00400af0(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_badData = uVar3 ^ iVar1 << 0x1e ^ iVar2 << 0xf; CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68b_badSink(); return; }
['gcc']
51,717
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88534/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_good(void) { goodG2B(); return; }
['gcc']
51,718
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68b_badSink() { int data = CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_badData; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ memmove(dest, source, data); dest[data] = '\0'; /* NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88534/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68b_badSink(void) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_badData; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,719
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68b_goodG2BSink() { int data = CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_goodG2BData; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ memmove(dest, source, data); dest[data] = '\0'; /* NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88534/CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68b_goodG2BSink(void) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = CWE195_Signed_to_Unsigned_Conversion_Error__rand_memmove_68_goodG2BData; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,720
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_01_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88542/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_01.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_01_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_01_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_1c; uStack_1c = 0xffffffff; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_1c = func_0x00400ae0(); uStack_1c = uStack_1c ^ iVar1 << 0x1e ^ iVar2 << 0xf; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_1c < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_1c); *(undefined *)((long)&uStack_88 + (long)(int)uStack_1c) = 0; } printLine(&uStack_88); return; }
['gcc']
51,721
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_01_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88542/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_01.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_01_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_01_good(void) { goodG2B(); return; }
['gcc']
51,722
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_02_bad() { int data; /* Initialize data */ data = -1; if(1) { /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); } { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88543/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_02.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_02_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_02_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_1c; uStack_1c = 0xffffffff; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_1c = func_0x00400ae0(); uStack_1c = uStack_1c ^ iVar1 << 0x1e ^ iVar2 << 0xf; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_1c < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_1c); *(undefined *)((long)&uStack_88 + (long)(int)uStack_1c) = 0; } printLine(&uStack_88); return; }
['gcc']
51,723
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88543/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_02.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_02_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
51,724
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_03_bad() { int data; /* Initialize data */ data = -1; if(5==5) { /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); } { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88544/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_03.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_03_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_03_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_1c; uStack_1c = 0xffffffff; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_1c = func_0x00400ae0(); uStack_1c = uStack_1c ^ iVar1 << 0x1e ^ iVar2 << 0xf; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_1c < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_1c); *(undefined *)((long)&uStack_88 + (long)(int)uStack_1c) = 0; } printLine(&uStack_88); return; }
['gcc']
51,725
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88544/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_03.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_03_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
51,726
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_04_bad() { int data; /* Initialize data */ data = -1; if(STATIC_CONST_TRUE) { /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); } { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88545/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_04.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_04_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_04_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_1c; uStack_1c = 0xffffffff; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_1c = func_0x00400ae0(); uStack_1c = uStack_1c ^ iVar1 << 0x1e ^ iVar2 << 0xf; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_1c < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_1c); *(undefined *)((long)&uStack_88 + (long)(int)uStack_1c) = 0; } printLine(&uStack_88); return; }
['gcc']
51,727
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88545/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_04.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_04_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
51,728
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_05_bad() { int data; /* Initialize data */ data = -1; if(staticTrue) { /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); } { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88546/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_05.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_05_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_05_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_1c; uStack_1c = 0xffffffff; if (staticTrue != 0) { iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_1c = func_0x00400ae0(); uStack_1c = uStack_1c ^ iVar1 << 0x1e ^ iVar2 << 0xf; } uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_1c < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_1c); *(undefined *)((long)&uStack_88 + (long)(int)uStack_1c) = 0; } printLine(&uStack_88); return; }
['gcc']
51,729
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88546/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_05.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_05_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
51,730
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_06_bad() { int data; /* Initialize data */ data = -1; if(STATIC_CONST_FIVE==5) { /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); } { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88547/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_06.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_06_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_06_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_1c; uStack_1c = 0xffffffff; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_1c = func_0x00400ae0(); uStack_1c = uStack_1c ^ iVar1 << 0x1e ^ iVar2 << 0xf; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_1c < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_1c); *(undefined *)((long)&uStack_88 + (long)(int)uStack_1c) = 0; } printLine(&uStack_88); return; }
['gcc']
51,731
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88547/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_06.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_06_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
51,732
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_07_bad() { int data; /* Initialize data */ data = -1; if(staticFive==5) { /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); } { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88548/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_07.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_07_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_07_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_1c; uStack_1c = 0xffffffff; if (staticFive == 5) { iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_1c = func_0x00400ae0(); uStack_1c = uStack_1c ^ iVar1 << 0x1e ^ iVar2 << 0xf; } uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_1c < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_1c); *(undefined *)((long)&uStack_88 + (long)(int)uStack_1c) = 0; } printLine(&uStack_88); return; }
['gcc']
51,733
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88548/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_07.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_07_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
51,734
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_08_bad() { int data; /* Initialize data */ data = -1; if(staticReturnsTrue()) { /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); } { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88549/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_08.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_08_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_08_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_1c; uStack_1c = 0xffffffff; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_1c = func_0x00400ae0(); uStack_1c = uStack_1c ^ iVar1 << 0x1e ^ iVar2 << 0xf; } uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_1c < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_1c); *(undefined *)((long)&uStack_88 + (long)(int)uStack_1c) = 0; } printLine(&uStack_88); return; }
['gcc']
51,735
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88549/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_08.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_08_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
51,736
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_17_bad() { int i; int data; /* Initialize data */ data = -1; for(i = 0; i < 1; i++) { /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); } { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88558/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_17.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_17_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_17_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_20; int iStack_1c; uStack_20 = 0xffffffff; for (iStack_1c = 0; iStack_1c < 1; iStack_1c = iStack_1c + 1) { iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_20 = func_0x00400ae0(); uStack_20 = uStack_20 ^ iVar1 << 0x1e ^ iVar2 << 0xf; } uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_20 < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_20); *(undefined *)((long)&uStack_88 + (long)(int)uStack_20) = 0; } printLine(&uStack_88); return; }
['gcc']
51,737
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88558/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_17.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_17_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_17_good(void) { goodG2B(); return; }
['gcc']
51,738
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_18_bad() { int data; /* Initialize data */ data = -1; goto source; source: /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88559/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_18.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_18_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_18_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_1c; uStack_1c = 0xffffffff; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_1c = func_0x00400ae0(); uStack_1c = uStack_1c ^ iVar1 << 0x1e ^ iVar2 << 0xf; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_1c < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_1c); *(undefined *)((long)&uStack_88 + (long)(int)uStack_1c) = 0; } printLine(&uStack_88); return; }
['gcc']
51,739
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88559/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_18.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_18_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_18_good(void) { goodG2B(); return; }
['gcc']
51,740
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_31_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); { int dataCopy = data; int data = dataCopy; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88562/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_31.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_31_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_31_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_24; uint uStack_20; uint uStack_1c; uStack_1c = 0xffffffff; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_24 = func_0x00400ae0(); uStack_24 = uStack_24 ^ iVar1 << 0x1e ^ iVar2 << 0xf; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = uStack_24; uStack_1c = uStack_24; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_24 < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_24); *(undefined *)((long)&uStack_88 + (long)(int)uStack_24) = 0; } printLine(&uStack_88); return; }
['gcc']
51,741
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88562/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_31.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_31_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_31_good(void) { goodG2B(); return; }
['gcc']
51,742
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_34_bad() { int data; CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_34_unionType myUnion; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); myUnion.unionFirst = data; { int data = myUnion.unionSecond; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88565/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_34.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_34_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_34_bad(void) { int iVar1; int iVar2; undefined auStack_f8 [99]; undefined uStack_95; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; uint uStack_24; uint uStack_20; uint uStack_1c; uStack_1c = 0xffffffff; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_24 = func_0x00400ae0(); uStack_24 = uStack_24 ^ iVar1 << 0x1e ^ iVar2 << 0xf; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = uStack_24; uStack_1c = uStack_24; func_0x00400a60(auStack_f8,0x41,99); uStack_95 = 0; if ((int)uStack_20 < 100) { func_0x00400a20(&uStack_88,auStack_f8,(long)(int)uStack_20); *(undefined *)((long)&uStack_88 + (long)(int)uStack_20) = 0; } printLine(&uStack_88); return; }
['gcc']
51,743
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88565/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_34.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_34_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_34_good(void) { goodG2B(); return; }
['gcc']
51,744
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_badSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88566/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_badSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,745
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88566/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_bad(void) { int iVar1; int iVar2; uint uVar3; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uVar3 = func_0x00400ae0(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_badSink (uVar3 ^ iVar1 << 0x1e ^ iVar2 << 0xf); return; }
['gcc']
51,746
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_goodG2BSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88566/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_goodG2BSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,747
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88566/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_41_good(void) { goodG2B(); return; }
['gcc']
51,748
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_42_bad() { int data; /* Initialize data */ data = -1; data = badSource(data); { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88567/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_42.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_42_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_42_bad(void) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = 0xffffffff; iStack_c = badSource(0xffffffff); uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,749
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_42_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88567/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_42.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_42_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_42_good(void) { goodG2B(); return; }
['gcc']
51,750
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_45_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_45_badData = data; badSink(); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88570/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_45.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_45_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_45_bad(void) { int iVar1; int iVar2; uint uVar3; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uVar3 = func_0x00400ae0(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_45_badData = uVar3 ^ iVar1 << 0x1e ^ iVar2 << 0xf; badSink(); return; }
['gcc']
51,751
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_45_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88570/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_45.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_45_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_45_good(void) { goodG2B(); return; }
['gcc']
51,752
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88571/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51_bad(void) { int iVar1; int iVar2; uint uVar3; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uVar3 = func_0x00400ae0(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51b_badSink (uVar3 ^ iVar1 << 0x1e ^ iVar2 << 0xf); return; }
['gcc']
51,753
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88571/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51_good(void) { goodG2B(); return; }
['gcc']
51,754
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51b_badSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88571/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51b_badSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,755
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51b_goodG2BSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88571/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_51b_goodG2BSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,756
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88572/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52_bad(void) { int iVar1; int iVar2; uint uVar3; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uVar3 = func_0x00400ae0(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52b_badSink (uVar3 ^ iVar1 << 0x1e ^ iVar2 << 0xf); return; }
['gcc']
51,757
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88572/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52_good(void) { goodG2B(); return; }
['gcc']
51,758
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52b_badSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c_badSink(data); }
[]
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88572/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52b_badSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c_badSink(param_1); return; }
['gcc']
51,759
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52b_goodG2BSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88572/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52b_goodG2BSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c_goodG2BSink(param_1); return; }
['gcc']
51,760
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c_badSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88572/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c_badSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,761
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c_goodG2BSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88572/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_52c_goodG2BSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,762
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88573/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53_bad(void) { int iVar1; int iVar2; uint uVar3; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uVar3 = func_0x00400ae0(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53b_badSink (uVar3 ^ iVar1 << 0x1e ^ iVar2 << 0xf); return; }
['gcc']
51,763
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88573/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53_good(void) { goodG2B(); return; }
['gcc']
51,764
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53b_badSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c_badSink(data); }
[]
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88573/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53b_badSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c_badSink(param_1); return; }
['gcc']
51,765
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53b_goodG2BSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88573/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53b_goodG2BSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c_goodG2BSink(param_1); return; }
['gcc']
51,766
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c_badSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d_badSink(data); }
[]
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88573/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c_badSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d_badSink(param_1); return; }
['gcc']
51,767
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c_goodG2BSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88573/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53c_goodG2BSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d_goodG2BSink(param_1); return; }
['gcc']
51,768
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d_badSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88573/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d_badSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,769
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d_goodG2BSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88573/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_53d_goodG2BSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,770
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88574/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54_bad(void) { int iVar1; int iVar2; uint uVar3; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uVar3 = func_0x00400ae0(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54b_badSink (uVar3 ^ iVar1 << 0x1e ^ iVar2 << 0xf); return; }
['gcc']
51,771
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88574/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54_good(void) { goodG2B(); return; }
['gcc']
51,772
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54b_badSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c_badSink(data); }
[]
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88574/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54b_badSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c_badSink(param_1); return; }
['gcc']
51,773
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54b_goodG2BSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88574/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54b_goodG2BSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c_goodG2BSink(param_1); return; }
['gcc']
51,774
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c_badSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d_badSink(data); }
[]
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88574/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c_badSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d_badSink(param_1); return; }
['gcc']
51,775
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c_goodG2BSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88574/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54c_goodG2BSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d_goodG2BSink(param_1); return; }
['gcc']
51,776
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d_badSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e_badSink(data); }
[]
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88574/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d_badSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e_badSink(param_1); return; }
['gcc']
51,777
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d_goodG2BSink(int data) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88574/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54d_goodG2BSink(undefined4 param_1) { CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e_goodG2BSink(param_1); return; }
['gcc']
51,778
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e_badSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88574/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e_badSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,779
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e_goodG2BSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88574/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_54e_goodG2BSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,780
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61_bad() { int data; /* Initialize data */ data = -1; data = CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61b_badSource(data); { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* Initialize data */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88575/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61_bad(void) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = 0xffffffff; iStack_c = CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61b_badSource(0xffffffff); uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,781
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88575/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61_good(void) { goodG2B(); return; }
['gcc']
51,782
int CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61b_badSource(int data) { /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); return data; }
['/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88575/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61b_badSource
uint CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61b_badSource(void) { int iVar1; int iVar2; uint uVar3; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uVar3 = func_0x00400ae0(); return uVar3 ^ iVar1 << 0x1e ^ iVar2 << 0xf; }
['gcc']
51,783
int CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61b_goodG2BSource(int data) { /* FIX: Use a positive integer less than &InitialDataSize&*/ data = 100-1; return data; }
['/* FIX: Use a positive integer less than &InitialDataSize&*/']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88575/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61b_goodG2BSource
undefined4 CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_61b_goodG2BSource(void) { return 99; }
['gcc']
51,784
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88577/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63_bad(void) { int iVar1; int iVar2; uint auStack_1c [3]; auStack_1c[0] = 0xffffffff; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); auStack_1c[0] = func_0x00400ae0(); auStack_1c[0] = auStack_1c[0] ^ iVar1 << 0x1e ^ iVar2 << 0xf; CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63b_badSink(auStack_1c); return; }
['gcc']
51,785
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88577/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63_good(void) { goodG2B(); return; }
['gcc']
51,786
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63b_badSink(int * dataPtr) { int data = *dataPtr; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88577/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63b_badSink(int *param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = *param_1; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,787
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63b_goodG2BSink(int * dataPtr) { int data = *dataPtr; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88577/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_63b_goodG2BSink(int *param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = *param_1; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,788
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88578/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64_bad(void) { int iVar1; int iVar2; uint auStack_1c [3]; auStack_1c[0] = 0xffffffff; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); auStack_1c[0] = func_0x00400ae0(); auStack_1c[0] = auStack_1c[0] ^ iVar1 << 0x1e ^ iVar2 << 0xf; CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64b_badSink(auStack_1c); return; }
['gcc']
51,789
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88578/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64_good(void) { goodG2B(); return; }
['gcc']
51,790
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * dataPtr = (int *)dataVoidPtr; /* dereference dataPtr into data */ int data = (*dataPtr); { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88578/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64b_badSink(int *param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_14; int *piStack_10; iStack_14 = *param_1; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; piStack_10 = param_1; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_14 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)iStack_14); *(undefined *)((long)&uStack_78 + (long)iStack_14) = 0; } printLine(&uStack_78); return; }
['gcc']
51,791
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * dataPtr = (int *)dataVoidPtr; /* dereference dataPtr into data */ int data = (*dataPtr); { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88578/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_64b_goodG2BSink(int *param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_14; int *piStack_10; iStack_14 = *param_1; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; piStack_10 = param_1; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_14 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)iStack_14); *(undefined *)((long)&uStack_78 + (long)iStack_14) = 0; } printLine(&uStack_78); return; }
['gcc']
51,792
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65_bad() { int data; /* define a function pointer */ void (*funcPtr) (int) = CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65b_badSink; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); /* use the function pointer */ funcPtr(data); }
['/* define a function pointer */', '/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* use the function pointer */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88579/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65_bad(void) { int iVar1; int iVar2; uint uVar3; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uVar3 = func_0x00400ae0(); CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65b_badSink (uVar3 ^ iVar1 << 0x1e ^ iVar2 << 0xf); return; }
['gcc']
51,793
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88579/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65_good(void) { goodG2B(); return; }
['gcc']
51,794
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65b_badSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88579/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65b_badSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,795
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65b_goodG2BSink(int data) { { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88579/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_65b_goodG2BSink(int param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (param_1 < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)param_1); *(undefined *)((long)&uStack_78 + (long)param_1) = 0; } printLine(&uStack_78); return; }
['gcc']
51,796
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66_bad() { int data; int dataArray[5]; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); /* put data in array */ dataArray[2] = data; CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66b_badSink(dataArray); }
['/* Initialize data */', '/* POTENTIAL FLAW: Set data to a random value */', '/* put data in array */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88580/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66_bad
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66_bad(void) { int iVar1; int iVar2; undefined auStack_38 [8]; uint uStack_30; uint uStack_1c; uStack_1c = 0xffffffff; iVar1 = func_0x00400ae0(); iVar2 = func_0x00400ae0(); uStack_30 = func_0x00400ae0(); uStack_30 = uStack_30 ^ iVar1 << 0x1e ^ iVar2 << 0xf; uStack_1c = uStack_30; CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66b_badSink(auStack_38); return; }
['gcc']
51,797
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88580/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66a.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66_good
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66_good(void) { goodG2B(); return; }
['gcc']
51,798
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66b_badSink(int dataArray[]) { /* copy data out of dataArray */ int data = dataArray[2]; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
['CWE195']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88580/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66b_badSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66b_badSink(long param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = *(int *)(param_1 + 8); uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']
51,799
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66b_goodG2BSink(int dataArray[]) { int data = dataArray[2]; { char source[100]; char dest[100] = ""; memset(source, 'A', 100-1); source[100-1] = '\0'; if (data < 100) { /* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative, * the sign conversion could result in a very large number */ strncpy(dest, source, data); dest[data] = '\0'; /* strncpy() does not always NULL terminate */ } printLine(dest); } }
['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* strncpy() does not always NULL terminate */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/88580/CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66b.c
CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66b_goodG2BSink
void CWE195_Signed_to_Unsigned_Conversion_Error__rand_strncpy_66b_goodG2BSink(long param_1) { undefined auStack_e8 [99]; undefined uStack_85; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; int iStack_c; iStack_c = *(int *)(param_1 + 8); uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a60(auStack_e8,0x41,99); uStack_85 = 0; if (iStack_c < 100) { func_0x00400a20(&uStack_78,auStack_e8,(long)iStack_c); *(undefined *)((long)&uStack_78 + (long)iStack_c) = 0; } printLine(&uStack_78); return; }
['gcc']