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 |
|---|---|---|---|---|---|---|---|---|
3,100
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_64_good()
{
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104357/CWE464_Addition_of_Data_Structure_Sentinel__basic_64a.c
|
CWE464_Addition_of_Data_Structure_Sentinel__basic_64_good
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_64_good(void)
{
goodG2B();
return;
}
|
['gcc']
|
3,101
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * dataPtr = (char *)dataVoidPtr;
/* dereference dataPtr into data */
char data = (*dataPtr);
{
char charArraySink[4];
charArraySink[0] = 'x';
/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */
charArraySink[1] = data;
charArraySink[2] = 'z';
charArraySink[3] = '\0';
printLine(charArraySink);
}
}
|
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */']
|
['CWE464']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104357/CWE464_Addition_of_Data_Structure_Sentinel__basic_64b.c
|
CWE464_Addition_of_Data_Structure_Sentinel__basic_64b_badSink
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_64b_badSink(undefined *param_1)
{
undefined uStack_15;
undefined uStack_14;
undefined uStack_13;
undefined uStack_12;
undefined uStack_11;
undefined *puStack_10;
uStack_14 = *param_1;
uStack_15 = 0x78;
uStack_13 = 0x7a;
uStack_12 = 0;
uStack_11 = uStack_14;
puStack_10 = param_1;
printLine(&uStack_15);
return;
}
|
['gcc']
|
3,102
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * dataPtr = (char *)dataVoidPtr;
/* dereference dataPtr into data */
char data = (*dataPtr);
{
char charArraySink[4];
charArraySink[0] = 'x';
/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */
charArraySink[1] = data;
charArraySink[2] = 'z';
charArraySink[3] = '\0';
printLine(charArraySink);
}
}
|
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104357/CWE464_Addition_of_Data_Structure_Sentinel__basic_64b.c
|
CWE464_Addition_of_Data_Structure_Sentinel__basic_64b_goodG2BSink
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_64b_goodG2BSink(undefined *param_1)
{
undefined uStack_15;
undefined uStack_14;
undefined uStack_13;
undefined uStack_12;
undefined uStack_11;
undefined *puStack_10;
uStack_14 = *param_1;
uStack_15 = 0x78;
uStack_13 = 0x7a;
uStack_12 = 0;
uStack_11 = uStack_14;
puStack_10 = param_1;
printLine(&uStack_15);
return;
}
|
['gcc']
|
3,103
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_66_bad()
{
char data;
char dataArray[5];
data = ' ';
{
char charArraySource[2];
charArraySource[0] = (char)getc(stdin);
charArraySource[1] = '\0';
/* FLAW: If the character entered on the command line is not an int,
* a null value will be returned */
data = (char)atoi(charArraySource);
}
/* put data in array */
dataArray[2] = data;
CWE464_Addition_of_Data_Structure_Sentinel__basic_66b_badSink(dataArray);
}
|
['/* FLAW: If the character entered on the command line is not an int,\r\n * a null value will be returned */', '/* put data in array */']
|
['CWE464']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104359/CWE464_Addition_of_Data_Structure_Sentinel__basic_66a.c
|
CWE464_Addition_of_Data_Structure_Sentinel__basic_66_bad
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_66_bad(void)
{
undefined uStack_10;
undefined uStack_f;
undefined auStack_e [2];
undefined uStack_c;
undefined uStack_9;
uStack_9 = 0x20;
uStack_10 = func_0x00400ae0(stdin);
uStack_f = 0;
uStack_c = func_0x00400b10(&uStack_10);
uStack_9 = uStack_c;
CWE464_Addition_of_Data_Structure_Sentinel__basic_66b_badSink(auStack_e);
return;
}
|
['gcc']
|
3,104
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_66_good()
{
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104359/CWE464_Addition_of_Data_Structure_Sentinel__basic_66a.c
|
CWE464_Addition_of_Data_Structure_Sentinel__basic_66_good
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_66_good(void)
{
goodG2B();
return;
}
|
['gcc']
|
3,105
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_66b_badSink(char dataArray[])
{
/* copy data out of dataArray */
char data = dataArray[2];
{
char charArraySink[4];
charArraySink[0] = 'x';
/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */
charArraySink[1] = data;
charArraySink[2] = 'z';
charArraySink[3] = '\0';
printLine(charArraySink);
}
}
|
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */']
|
['CWE464']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104359/CWE464_Addition_of_Data_Structure_Sentinel__basic_66b.c
|
CWE464_Addition_of_Data_Structure_Sentinel__basic_66b_badSink
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_66b_badSink(long param_1)
{
undefined uStack_d;
undefined uStack_c;
undefined uStack_b;
undefined uStack_a;
undefined uStack_9;
uStack_c = *(undefined *)(param_1 + 2);
uStack_d = 0x78;
uStack_b = 0x7a;
uStack_a = 0;
uStack_9 = uStack_c;
printLine(&uStack_d);
return;
}
|
['gcc']
|
3,106
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_66b_goodG2BSink(char dataArray[])
{
char data = dataArray[2];
{
char charArraySink[4];
charArraySink[0] = 'x';
/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */
charArraySink[1] = data;
charArraySink[2] = 'z';
charArraySink[3] = '\0';
printLine(charArraySink);
}
}
|
['/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104359/CWE464_Addition_of_Data_Structure_Sentinel__basic_66b.c
|
CWE464_Addition_of_Data_Structure_Sentinel__basic_66b_goodG2BSink
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_66b_goodG2BSink(long param_1)
{
undefined uStack_d;
undefined uStack_c;
undefined uStack_b;
undefined uStack_a;
undefined uStack_9;
uStack_c = *(undefined *)(param_1 + 2);
uStack_d = 0x78;
uStack_b = 0x7a;
uStack_a = 0;
uStack_9 = uStack_c;
printLine(&uStack_d);
return;
}
|
['gcc']
|
3,107
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_67_bad()
{
char data;
CWE464_Addition_of_Data_Structure_Sentinel__basic_67_structType myStruct;
data = ' ';
{
char charArraySource[2];
charArraySource[0] = (char)getc(stdin);
charArraySource[1] = '\0';
/* FLAW: If the character entered on the command line is not an int,
* a null value will be returned */
data = (char)atoi(charArraySource);
}
myStruct.structFirst = data;
CWE464_Addition_of_Data_Structure_Sentinel__basic_67b_badSink(myStruct);
}
|
['/* FLAW: If the character entered on the command line is not an int,\r\n * a null value will be returned */']
|
['CWE464']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104360/CWE464_Addition_of_Data_Structure_Sentinel__basic_67a.c
|
CWE464_Addition_of_Data_Structure_Sentinel__basic_67_bad
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_67_bad(void)
{
undefined uStack_c;
undefined uStack_b;
undefined uStack_a;
undefined uStack_9;
uStack_9 = 0x20;
uStack_c = func_0x00400ae0(stdin);
uStack_b = 0;
uStack_a = func_0x00400b10(&uStack_c);
uStack_9 = uStack_a;
CWE464_Addition_of_Data_Structure_Sentinel__basic_67b_badSink(uStack_a);
return;
}
|
['gcc']
|
3,108
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_67_good()
{
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104360/CWE464_Addition_of_Data_Structure_Sentinel__basic_67a.c
|
CWE464_Addition_of_Data_Structure_Sentinel__basic_67_good
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_67_good(void)
{
goodG2B();
return;
}
|
['gcc']
|
3,109
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_67b_badSink(CWE464_Addition_of_Data_Structure_Sentinel__basic_67_structType myStruct)
{
char data = myStruct.structFirst;
{
char charArraySink[4];
charArraySink[0] = 'x';
/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */
charArraySink[1] = data;
charArraySink[2] = 'z';
charArraySink[3] = '\0';
printLine(charArraySink);
}
}
|
['/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */']
|
['CWE464']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104360/CWE464_Addition_of_Data_Structure_Sentinel__basic_67b.c
|
CWE464_Addition_of_Data_Structure_Sentinel__basic_67b_badSink
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_67b_badSink(undefined param_1)
{
undefined uStack_d;
undefined uStack_c;
undefined uStack_b;
undefined uStack_a;
undefined uStack_9;
uStack_d = 0x78;
uStack_b = 0x7a;
uStack_a = 0;
uStack_c = param_1;
uStack_9 = param_1;
printLine(&uStack_d);
return;
}
|
['gcc']
|
3,110
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_67b_goodG2BSink(CWE464_Addition_of_Data_Structure_Sentinel__basic_67_structType myStruct)
{
char data = myStruct.structFirst;
{
char charArraySink[4];
charArraySink[0] = 'x';
/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */
charArraySink[1] = data;
charArraySink[2] = 'z';
charArraySink[3] = '\0';
printLine(charArraySink);
}
}
|
['/* POTENTIAL FLAW: If data is null, the rest of the array will not be printed */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104360/CWE464_Addition_of_Data_Structure_Sentinel__basic_67b.c
|
CWE464_Addition_of_Data_Structure_Sentinel__basic_67b_goodG2BSink
|
void CWE464_Addition_of_Data_Structure_Sentinel__basic_67b_goodG2BSink(undefined param_1)
{
undefined uStack_d;
undefined uStack_c;
undefined uStack_b;
undefined uStack_a;
undefined uStack_9;
uStack_d = 0x78;
uStack_b = 0x7a;
uStack_a = 0;
uStack_c = param_1;
uStack_9 = param_1;
printLine(&uStack_d);
return;
}
|
['gcc']
|
3,111
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_02_bad()
{
if(1)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104370/CWE467_Use_of_sizeof_on_Pointer_Type__char_02.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_02_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_02_bad(void)
{
char *pcVar1;
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
return;
}
|
['gcc']
|
3,112
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_02_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104370/CWE467_Use_of_sizeof_on_Pointer_Type__char_02.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_02_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_02_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,113
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_03_bad()
{
if(5==5)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104371/CWE467_Use_of_sizeof_on_Pointer_Type__char_03.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_03_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_03_bad(void)
{
char *pcVar1;
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
return;
}
|
['gcc']
|
3,114
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_03_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104371/CWE467_Use_of_sizeof_on_Pointer_Type__char_03.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_03_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_03_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,115
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_04_bad()
{
if(STATIC_CONST_TRUE)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104372/CWE467_Use_of_sizeof_on_Pointer_Type__char_04.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_04_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_04_bad(void)
{
char *pcVar1;
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
return;
}
|
['gcc']
|
3,116
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_04_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104372/CWE467_Use_of_sizeof_on_Pointer_Type__char_04.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_04_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_04_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,117
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_05_bad()
{
if(staticTrue)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104373/CWE467_Use_of_sizeof_on_Pointer_Type__char_05.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_05_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_05_bad(void)
{
char *pcVar1;
if (staticTrue != 0) {
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
}
return;
}
|
['gcc']
|
3,118
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_05_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104373/CWE467_Use_of_sizeof_on_Pointer_Type__char_05.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_05_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_05_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,119
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_06_bad()
{
if(STATIC_CONST_FIVE==5)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104374/CWE467_Use_of_sizeof_on_Pointer_Type__char_06.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_06_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_06_bad(void)
{
char *pcVar1;
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
return;
}
|
['gcc']
|
3,120
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_06_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104374/CWE467_Use_of_sizeof_on_Pointer_Type__char_06.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_06_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_06_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,121
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_07_bad()
{
if(staticFive==5)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104375/CWE467_Use_of_sizeof_on_Pointer_Type__char_07.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_07_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_07_bad(void)
{
char *pcVar1;
if (staticFive == 5) {
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
}
return;
}
|
['gcc']
|
3,122
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_07_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104375/CWE467_Use_of_sizeof_on_Pointer_Type__char_07.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_07_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_07_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,123
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_08_bad()
{
if(staticReturnsTrue())
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104376/CWE467_Use_of_sizeof_on_Pointer_Type__char_08.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_08_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_08_bad(void)
{
int iVar1;
char *pcVar2;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
pcVar2 = (char *)func_0x00400ab0(8);
*pcVar2 = 'B';
printHexCharLine((int)*pcVar2);
func_0x00400a20(pcVar2);
}
return;
}
|
['gcc']
|
3,124
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_08_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104376/CWE467_Use_of_sizeof_on_Pointer_Type__char_08.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_08_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_08_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,125
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_09_bad()
{
if(GLOBAL_CONST_TRUE)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104377/CWE467_Use_of_sizeof_on_Pointer_Type__char_09.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_09_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_09_bad(void)
{
char *pcVar1;
if (GLOBAL_CONST_TRUE != 0) {
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
}
return;
}
|
['gcc']
|
3,126
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_09_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104377/CWE467_Use_of_sizeof_on_Pointer_Type__char_09.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_09_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_09_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,127
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_10_bad()
{
if(globalTrue)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104378/CWE467_Use_of_sizeof_on_Pointer_Type__char_10.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_10_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_10_bad(void)
{
char *pcVar1;
if (globalTrue != 0) {
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
}
return;
}
|
['gcc']
|
3,128
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_10_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104378/CWE467_Use_of_sizeof_on_Pointer_Type__char_10.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_10_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_10_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,129
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_11_bad()
{
if(globalReturnsTrue())
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104379/CWE467_Use_of_sizeof_on_Pointer_Type__char_11.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_11_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_11_bad(void)
{
int iVar1;
char *pcVar2;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
pcVar2 = (char *)func_0x00400ab0(8);
*pcVar2 = 'B';
printHexCharLine((int)*pcVar2);
func_0x00400a20(pcVar2);
}
return;
}
|
['gcc']
|
3,130
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_11_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104379/CWE467_Use_of_sizeof_on_Pointer_Type__char_11.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_11_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_11_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,131
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_12_bad()
{
if(globalReturnsTrueOrFalse())
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
else
{
{
char * goodChar = NULL;
/* FIX: Using sizeof the data type in malloc() */
goodChar = (char *)malloc(sizeof(*goodChar));
*goodChar = 'G';
printHexCharLine(*goodChar);
free(goodChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */', '/* FIX: Using sizeof the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104380/CWE467_Use_of_sizeof_on_Pointer_Type__char_12.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_12_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_12_bad(void)
{
int iVar1;
char *pcVar2;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
pcVar2 = (char *)func_0x00400ab0(1);
*pcVar2 = 'G';
printHexCharLine((int)*pcVar2);
func_0x00400a20(pcVar2);
}
else {
pcVar2 = (char *)func_0x00400ab0(8);
*pcVar2 = 'B';
printHexCharLine((int)*pcVar2);
func_0x00400a20(pcVar2);
}
return;
}
|
['gcc']
|
3,132
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_12_good()
{
good1();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104380/CWE467_Use_of_sizeof_on_Pointer_Type__char_12.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_12_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_12_good(void)
{
good1();
return;
}
|
['gcc']
|
3,133
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_13_bad()
{
if(GLOBAL_CONST_FIVE==5)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104381/CWE467_Use_of_sizeof_on_Pointer_Type__char_13.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_13_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_13_bad(void)
{
char *pcVar1;
if (GLOBAL_CONST_FIVE == 5) {
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
}
return;
}
|
['gcc']
|
3,134
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_13_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104381/CWE467_Use_of_sizeof_on_Pointer_Type__char_13.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_13_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_13_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,135
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_14_bad()
{
if(globalFive==5)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104382/CWE467_Use_of_sizeof_on_Pointer_Type__char_14.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_14_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_14_bad(void)
{
char *pcVar1;
if (globalFive == 5) {
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
}
return;
}
|
['gcc']
|
3,136
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_14_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104382/CWE467_Use_of_sizeof_on_Pointer_Type__char_14.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_14_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_14_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,137
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_15_bad()
{
switch(6)
{
case 6:
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104383/CWE467_Use_of_sizeof_on_Pointer_Type__char_15.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_15_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_15_bad(void)
{
char *pcVar1;
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
return;
}
|
['gcc']
|
3,138
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_15_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104383/CWE467_Use_of_sizeof_on_Pointer_Type__char_15.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_15_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_15_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,139
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_16_bad()
{
while(1)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
break;
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104384/CWE467_Use_of_sizeof_on_Pointer_Type__char_16.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_16_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_16_bad(void)
{
char *pcVar1;
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
return;
}
|
['gcc']
|
3,140
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_16_good()
{
good1();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104384/CWE467_Use_of_sizeof_on_Pointer_Type__char_16.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_16_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_16_good(void)
{
good1();
return;
}
|
['gcc']
|
3,141
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_17_bad()
{
int j;
for(j = 0; j < 1; j++)
{
{
char * badChar = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badChar = (char *)malloc(sizeof(badChar));
*badChar = 'B';
printHexCharLine(*badChar);
free(badChar);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104385/CWE467_Use_of_sizeof_on_Pointer_Type__char_17.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_17_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_17_bad(void)
{
char *pcVar1;
int iStack_c;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
pcVar1 = (char *)func_0x00400ab0(8);
*pcVar1 = 'B';
printHexCharLine((int)*pcVar1);
func_0x00400a20(pcVar1);
}
return;
}
|
['gcc']
|
3,142
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_17_good()
{
good1();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104385/CWE467_Use_of_sizeof_on_Pointer_Type__char_17.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__char_17_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__char_17_good(void)
{
good1();
return;
}
|
['gcc']
|
3,143
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_02_bad()
{
if(1)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104388/CWE467_Use_of_sizeof_on_Pointer_Type__int_02.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_02_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_02_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
|
['gcc']
|
3,144
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_02_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104388/CWE467_Use_of_sizeof_on_Pointer_Type__int_02.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_02_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_02_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,145
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_03_bad()
{
if(5==5)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104389/CWE467_Use_of_sizeof_on_Pointer_Type__int_03.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_03_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_03_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
|
['gcc']
|
3,146
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_03_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104389/CWE467_Use_of_sizeof_on_Pointer_Type__int_03.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_03_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_03_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,147
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_04_bad()
{
if(STATIC_CONST_TRUE)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104390/CWE467_Use_of_sizeof_on_Pointer_Type__int_04.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_04_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_04_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
|
['gcc']
|
3,148
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_04_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104390/CWE467_Use_of_sizeof_on_Pointer_Type__int_04.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_04_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_04_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,149
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_05_bad()
{
if(staticTrue)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104391/CWE467_Use_of_sizeof_on_Pointer_Type__int_05.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_05_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_05_bad(void)
{
undefined4 *puVar1;
if (staticTrue != 0) {
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
|
['gcc']
|
3,150
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_05_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104391/CWE467_Use_of_sizeof_on_Pointer_Type__int_05.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_05_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_05_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,151
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_06_bad()
{
if(STATIC_CONST_FIVE==5)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104392/CWE467_Use_of_sizeof_on_Pointer_Type__int_06.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_06_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_06_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
|
['gcc']
|
3,152
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_06_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104392/CWE467_Use_of_sizeof_on_Pointer_Type__int_06.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_06_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_06_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,153
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_07_bad()
{
if(staticFive==5)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104393/CWE467_Use_of_sizeof_on_Pointer_Type__int_07.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_07_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_07_bad(void)
{
undefined4 *puVar1;
if (staticFive == 5) {
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
|
['gcc']
|
3,154
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_07_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104393/CWE467_Use_of_sizeof_on_Pointer_Type__int_07.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_07_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_07_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,155
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_08_bad()
{
if(staticReturnsTrue())
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104394/CWE467_Use_of_sizeof_on_Pointer_Type__int_08.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_08_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_08_bad(void)
{
int iVar1;
undefined4 *puVar2;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
puVar2 = (undefined4 *)func_0x00400ab0(8);
*puVar2 = 5;
printIntLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
|
['gcc']
|
3,156
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_08_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104394/CWE467_Use_of_sizeof_on_Pointer_Type__int_08.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_08_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_08_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,157
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_09_bad()
{
if(GLOBAL_CONST_TRUE)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104395/CWE467_Use_of_sizeof_on_Pointer_Type__int_09.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_09_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_09_bad(void)
{
undefined4 *puVar1;
if (GLOBAL_CONST_TRUE != 0) {
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
|
['gcc']
|
3,158
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_09_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104395/CWE467_Use_of_sizeof_on_Pointer_Type__int_09.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_09_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_09_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,159
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_10_bad()
{
if(globalTrue)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104396/CWE467_Use_of_sizeof_on_Pointer_Type__int_10.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_10_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_10_bad(void)
{
undefined4 *puVar1;
if (globalTrue != 0) {
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
|
['gcc']
|
3,160
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_10_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104396/CWE467_Use_of_sizeof_on_Pointer_Type__int_10.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_10_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_10_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,161
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_11_bad()
{
if(globalReturnsTrue())
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104397/CWE467_Use_of_sizeof_on_Pointer_Type__int_11.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_11_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_11_bad(void)
{
int iVar1;
undefined4 *puVar2;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
puVar2 = (undefined4 *)func_0x00400ab0(8);
*puVar2 = 5;
printIntLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
|
['gcc']
|
3,162
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_11_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104397/CWE467_Use_of_sizeof_on_Pointer_Type__int_11.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_11_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_11_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,163
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_12_bad()
{
if(globalReturnsTrueOrFalse())
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
else
{
{
int * goodInt = NULL;
/* FIX: Using sizeof the data type in malloc() */
goodInt = (int *)malloc(sizeof(*goodInt));
*goodInt = 6;
printIntLine(*goodInt);
free(goodInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */', '/* FIX: Using sizeof the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104398/CWE467_Use_of_sizeof_on_Pointer_Type__int_12.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_12_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_12_bad(void)
{
int iVar1;
undefined4 *puVar2;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
puVar2 = (undefined4 *)func_0x00400ab0(4);
*puVar2 = 6;
printIntLine(*puVar2);
func_0x00400a20(puVar2);
}
else {
puVar2 = (undefined4 *)func_0x00400ab0(8);
*puVar2 = 5;
printIntLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
|
['gcc']
|
3,164
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_12_good()
{
good1();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104398/CWE467_Use_of_sizeof_on_Pointer_Type__int_12.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_12_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_12_good(void)
{
good1();
return;
}
|
['gcc']
|
3,165
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_13_bad()
{
if(GLOBAL_CONST_FIVE==5)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104399/CWE467_Use_of_sizeof_on_Pointer_Type__int_13.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_13_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_13_bad(void)
{
undefined4 *puVar1;
if (GLOBAL_CONST_FIVE == 5) {
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
|
['gcc']
|
3,166
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_13_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104399/CWE467_Use_of_sizeof_on_Pointer_Type__int_13.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_13_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_13_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,167
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_14_bad()
{
if(globalFive==5)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104400/CWE467_Use_of_sizeof_on_Pointer_Type__int_14.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_14_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_14_bad(void)
{
undefined4 *puVar1;
if (globalFive == 5) {
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
|
['gcc']
|
3,168
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_14_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104400/CWE467_Use_of_sizeof_on_Pointer_Type__int_14.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_14_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_14_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,169
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_15_bad()
{
switch(6)
{
case 6:
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104401/CWE467_Use_of_sizeof_on_Pointer_Type__int_15.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_15_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_15_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
|
['gcc']
|
3,170
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_15_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104401/CWE467_Use_of_sizeof_on_Pointer_Type__int_15.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_15_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_15_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,171
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_16_bad()
{
while(1)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
break;
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104402/CWE467_Use_of_sizeof_on_Pointer_Type__int_16.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_16_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_16_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
|
['gcc']
|
3,172
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_16_good()
{
good1();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104402/CWE467_Use_of_sizeof_on_Pointer_Type__int_16.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_16_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_16_good(void)
{
good1();
return;
}
|
['gcc']
|
3,173
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_17_bad()
{
int j;
for(j = 0; j < 1; j++)
{
{
int * badInt = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badInt = (int *)malloc(sizeof(badInt));
*badInt = 5;
printIntLine(*badInt);
free(badInt);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104403/CWE467_Use_of_sizeof_on_Pointer_Type__int_17.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_17_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_17_bad(void)
{
undefined4 *puVar1;
int iStack_c;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puVar1 = (undefined4 *)func_0x00400ab0(8);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
|
['gcc']
|
3,174
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_17_good()
{
good1();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104403/CWE467_Use_of_sizeof_on_Pointer_Type__int_17.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__int_17_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__int_17_good(void)
{
good1();
return;
}
|
['gcc']
|
3,175
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_02_bad()
{
if(1)
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104406/CWE467_Use_of_sizeof_on_Pointer_Type__short_02.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_02_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_02_bad(void)
{
short *psVar1;
psVar1 = (short *)func_0x00400ab0(8);
*psVar1 = 5;
printShortLine((int)*psVar1);
func_0x00400a20(psVar1);
return;
}
|
['gcc']
|
3,176
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_02_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104406/CWE467_Use_of_sizeof_on_Pointer_Type__short_02.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_02_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_02_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,177
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_03_bad()
{
if(5==5)
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104407/CWE467_Use_of_sizeof_on_Pointer_Type__short_03.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_03_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_03_bad(void)
{
short *psVar1;
psVar1 = (short *)func_0x00400ab0(8);
*psVar1 = 5;
printShortLine((int)*psVar1);
func_0x00400a20(psVar1);
return;
}
|
['gcc']
|
3,178
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_03_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104407/CWE467_Use_of_sizeof_on_Pointer_Type__short_03.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_03_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_03_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,179
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_04_bad()
{
if(STATIC_CONST_TRUE)
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104408/CWE467_Use_of_sizeof_on_Pointer_Type__short_04.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_04_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_04_bad(void)
{
short *psVar1;
psVar1 = (short *)func_0x00400ab0(8);
*psVar1 = 5;
printShortLine((int)*psVar1);
func_0x00400a20(psVar1);
return;
}
|
['gcc']
|
3,180
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_04_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104408/CWE467_Use_of_sizeof_on_Pointer_Type__short_04.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_04_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_04_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,181
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_05_bad()
{
if(staticTrue)
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104409/CWE467_Use_of_sizeof_on_Pointer_Type__short_05.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_05_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_05_bad(void)
{
short *psVar1;
if (staticTrue != 0) {
psVar1 = (short *)func_0x00400ab0(8);
*psVar1 = 5;
printShortLine((int)*psVar1);
func_0x00400a20(psVar1);
}
return;
}
|
['gcc']
|
3,182
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_05_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104409/CWE467_Use_of_sizeof_on_Pointer_Type__short_05.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_05_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_05_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,183
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_06_bad()
{
if(STATIC_CONST_FIVE==5)
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104410/CWE467_Use_of_sizeof_on_Pointer_Type__short_06.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_06_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_06_bad(void)
{
short *psVar1;
psVar1 = (short *)func_0x00400ab0(8);
*psVar1 = 5;
printShortLine((int)*psVar1);
func_0x00400a20(psVar1);
return;
}
|
['gcc']
|
3,184
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_06_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104410/CWE467_Use_of_sizeof_on_Pointer_Type__short_06.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_06_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_06_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,185
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_07_bad()
{
if(staticFive==5)
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104411/CWE467_Use_of_sizeof_on_Pointer_Type__short_07.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_07_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_07_bad(void)
{
short *psVar1;
if (staticFive == 5) {
psVar1 = (short *)func_0x00400ab0(8);
*psVar1 = 5;
printShortLine((int)*psVar1);
func_0x00400a20(psVar1);
}
return;
}
|
['gcc']
|
3,186
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_07_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104411/CWE467_Use_of_sizeof_on_Pointer_Type__short_07.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_07_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_07_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,187
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_08_bad()
{
if(staticReturnsTrue())
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104412/CWE467_Use_of_sizeof_on_Pointer_Type__short_08.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_08_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_08_bad(void)
{
int iVar1;
short *psVar2;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
psVar2 = (short *)func_0x00400ab0(8);
*psVar2 = 5;
printShortLine((int)*psVar2);
func_0x00400a20(psVar2);
}
return;
}
|
['gcc']
|
3,188
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_08_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104412/CWE467_Use_of_sizeof_on_Pointer_Type__short_08.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_08_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_08_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,189
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_09_bad()
{
if(GLOBAL_CONST_TRUE)
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104413/CWE467_Use_of_sizeof_on_Pointer_Type__short_09.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_09_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_09_bad(void)
{
short *psVar1;
if (GLOBAL_CONST_TRUE != 0) {
psVar1 = (short *)func_0x00400ab0(8);
*psVar1 = 5;
printShortLine((int)*psVar1);
func_0x00400a20(psVar1);
}
return;
}
|
['gcc']
|
3,190
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_09_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104413/CWE467_Use_of_sizeof_on_Pointer_Type__short_09.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_09_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_09_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,191
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_10_bad()
{
if(globalTrue)
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104414/CWE467_Use_of_sizeof_on_Pointer_Type__short_10.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_10_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_10_bad(void)
{
short *psVar1;
if (globalTrue != 0) {
psVar1 = (short *)func_0x00400ab0(8);
*psVar1 = 5;
printShortLine((int)*psVar1);
func_0x00400a20(psVar1);
}
return;
}
|
['gcc']
|
3,192
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_10_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104414/CWE467_Use_of_sizeof_on_Pointer_Type__short_10.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_10_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_10_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,193
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_11_bad()
{
if(globalReturnsTrue())
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104415/CWE467_Use_of_sizeof_on_Pointer_Type__short_11.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_11_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_11_bad(void)
{
int iVar1;
short *psVar2;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
psVar2 = (short *)func_0x00400ab0(8);
*psVar2 = 5;
printShortLine((int)*psVar2);
func_0x00400a20(psVar2);
}
return;
}
|
['gcc']
|
3,194
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_11_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104415/CWE467_Use_of_sizeof_on_Pointer_Type__short_11.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_11_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_11_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,195
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_12_bad()
{
if(globalReturnsTrueOrFalse())
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
else
{
{
short * goodShort = NULL;
/* FIX: Using sizeof the data type in malloc() */
goodShort = (short *)malloc(sizeof(*goodShort));
*goodShort = 6;
printShortLine(*goodShort);
free(goodShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */', '/* FIX: Using sizeof the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104416/CWE467_Use_of_sizeof_on_Pointer_Type__short_12.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_12_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_12_bad(void)
{
int iVar1;
short *psVar2;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
psVar2 = (short *)func_0x00400ab0(2);
*psVar2 = 6;
printShortLine((int)*psVar2);
func_0x00400a20(psVar2);
}
else {
psVar2 = (short *)func_0x00400ab0(8);
*psVar2 = 5;
printShortLine((int)*psVar2);
func_0x00400a20(psVar2);
}
return;
}
|
['gcc']
|
3,196
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_12_good()
{
good1();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104416/CWE467_Use_of_sizeof_on_Pointer_Type__short_12.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_12_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_12_good(void)
{
good1();
return;
}
|
['gcc']
|
3,197
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_13_bad()
{
if(GLOBAL_CONST_FIVE==5)
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104417/CWE467_Use_of_sizeof_on_Pointer_Type__short_13.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_13_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_13_bad(void)
{
short *psVar1;
if (GLOBAL_CONST_FIVE == 5) {
psVar1 = (short *)func_0x00400ab0(8);
*psVar1 = 5;
printShortLine((int)*psVar1);
func_0x00400a20(psVar1);
}
return;
}
|
['gcc']
|
3,198
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_13_good()
{
good1();
good2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104417/CWE467_Use_of_sizeof_on_Pointer_Type__short_13.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_13_good
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_13_good(void)
{
good1();
good2();
return;
}
|
['gcc']
|
3,199
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_14_bad()
{
if(globalFive==5)
{
{
short * badShort = NULL;
/* FLAW: Using sizeof the pointer and not the data type in malloc() */
badShort = (short *)malloc(sizeof(badShort));
*badShort = 5;
printShortLine(*badShort);
free(badShort);
}
}
}
|
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
|
['CWE467']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104418/CWE467_Use_of_sizeof_on_Pointer_Type__short_14.c
|
CWE467_Use_of_sizeof_on_Pointer_Type__short_14_bad
|
void CWE467_Use_of_sizeof_on_Pointer_Type__short_14_bad(void)
{
short *psVar1;
if (globalFive == 5) {
psVar1 = (short *)func_0x00400ab0(8);
*psVar1 = 5;
printShortLine((int)*psVar1);
func_0x00400a20(psVar1);
}
return;
}
|
['gcc']
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.