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 |
|---|---|---|---|---|---|---|---|---|
5,200 | void CWE606_Unchecked_Loop_Condition__char_environment_09_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
if(GLOBAL_CONST_TRUE)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
if(GLOBAL_CONST_TRUE)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109034/CWE606_Unchecked_Loop_Condition__char_environment_09.c | CWE606_Unchecked_Loop_Condition__char_environment_09_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_09_bad(void)
{
int iVar1;
int iStack_9c;
undefined8 uStack_98;
undefined8 uStack_90;
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;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_18 = &uStack_98;
if (GLOBAL_CONST_TRUE != 0) {
lStack_20 = func_0x00400a90(puStack_18);
lStack_28 = func_0x00400a60(&UNK_004012d4);
if (lStack_28 != 0) {
func_0x00400ab0((long)puStack_18 + lStack_20,lStack_28,99 - lStack_20);
}
}
if (GLOBAL_CONST_TRUE != 0) {
iVar1 = func_0x00400b20(puStack_18,&UNK_004012d8,&iStack_9c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_9c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
}
return;
}
| ['gcc'] |
5,201 | void CWE606_Unchecked_Loop_Condition__char_environment_09_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109034/CWE606_Unchecked_Loop_Condition__char_environment_09.c | CWE606_Unchecked_Loop_Condition__char_environment_09_good |
void CWE606_Unchecked_Loop_Condition__char_environment_09_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
5,202 | void CWE606_Unchecked_Loop_Condition__char_environment_10_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
if(globalTrue)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
if(globalTrue)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109035/CWE606_Unchecked_Loop_Condition__char_environment_10.c | CWE606_Unchecked_Loop_Condition__char_environment_10_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_10_bad(void)
{
int iVar1;
int iStack_9c;
undefined8 uStack_98;
undefined8 uStack_90;
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;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_18 = &uStack_98;
if (globalTrue != 0) {
lStack_20 = func_0x00400a90(puStack_18);
lStack_28 = func_0x00400a60(&UNK_004012d4);
if (lStack_28 != 0) {
func_0x00400ab0((long)puStack_18 + lStack_20,lStack_28,99 - lStack_20);
}
}
if (globalTrue != 0) {
iVar1 = func_0x00400b20(puStack_18,&UNK_004012d8,&iStack_9c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_9c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
}
return;
}
| ['gcc'] |
5,203 | void CWE606_Unchecked_Loop_Condition__char_environment_10_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109035/CWE606_Unchecked_Loop_Condition__char_environment_10.c | CWE606_Unchecked_Loop_Condition__char_environment_10_good |
void CWE606_Unchecked_Loop_Condition__char_environment_10_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
5,204 | void CWE606_Unchecked_Loop_Condition__char_environment_11_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
if(globalReturnsTrue())
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
if(globalReturnsTrue())
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109036/CWE606_Unchecked_Loop_Condition__char_environment_11.c | CWE606_Unchecked_Loop_Condition__char_environment_11_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_11_bad(void)
{
int iVar1;
int iStack_9c;
undefined8 uStack_98;
undefined8 uStack_90;
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;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_18 = &uStack_98;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
lStack_20 = func_0x00400a90(puStack_18);
lStack_28 = func_0x00400a60(&UNK_004012e4);
if (lStack_28 != 0) {
func_0x00400ab0((long)puStack_18 + lStack_20,lStack_28,99 - lStack_20);
}
}
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
iVar1 = func_0x00400b20(puStack_18,&UNK_004012e8,&iStack_9c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_9c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
}
return;
}
| ['gcc'] |
5,205 | void CWE606_Unchecked_Loop_Condition__char_environment_11_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109036/CWE606_Unchecked_Loop_Condition__char_environment_11.c | CWE606_Unchecked_Loop_Condition__char_environment_11_good |
void CWE606_Unchecked_Loop_Condition__char_environment_11_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
5,206 | void CWE606_Unchecked_Loop_Condition__char_environment_12_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
if(globalReturnsTrueOrFalse())
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
else
{
/* FIX: Set data to a number less than MAX_LOOP */
strcpy(data, "15");
}
if(globalReturnsTrueOrFalse())
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
else
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* FIX: limit loop iteration counts */
if (n < MAX_LOOP)
{
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* FIX: Set data to a number less than MAX_LOOP */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */', '/* FIX: limit loop iteration counts */', '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109037/CWE606_Unchecked_Loop_Condition__char_environment_12.c | CWE606_Unchecked_Loop_Condition__char_environment_12_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_12_bad(void)
{
undefined8 *puVar1;
int iVar2;
int iStack_a0;
int iStack_9c;
undefined8 uStack_98;
undefined8 uStack_90;
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;
undefined4 uStack_38;
long lStack_30;
long lStack_28;
undefined8 *puStack_20;
int iStack_18;
int iStack_14;
int iStack_10;
int iStack_c;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_20 = &uStack_98;
iVar2 = globalReturnsTrueOrFalse();
puVar1 = puStack_20;
if (iVar2 == 0) {
*(undefined2 *)puStack_20 = 0x3531;
*(undefined *)((long)puVar1 + 2) = 0;
}
else {
lStack_28 = func_0x00400a90(puStack_20);
lStack_30 = func_0x00400a60(&UNK_00401354);
if (lStack_30 != 0) {
func_0x00400ab0((long)puStack_20 + lStack_28,lStack_30,99 - lStack_28);
}
}
iVar2 = globalReturnsTrueOrFalse();
if (iVar2 == 0) {
iVar2 = func_0x00400b20(puStack_20,&UNK_00401358,&iStack_a0);
if ((iVar2 == 1) && (iStack_a0 < 10000)) {
iStack_18 = 0;
for (iStack_14 = 0; iStack_14 < iStack_a0; iStack_14 = iStack_14 + 1) {
iStack_18 = iStack_18 + 1;
}
printIntLine(iStack_18);
}
}
else {
iVar2 = func_0x00400b20(puStack_20,&UNK_00401358,&iStack_9c);
if (iVar2 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_9c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
}
return;
}
| ['gcc'] |
5,207 | void CWE606_Unchecked_Loop_Condition__char_environment_12_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109037/CWE606_Unchecked_Loop_Condition__char_environment_12.c | CWE606_Unchecked_Loop_Condition__char_environment_12_good |
void CWE606_Unchecked_Loop_Condition__char_environment_12_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
5,208 | void CWE606_Unchecked_Loop_Condition__char_environment_13_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
if(GLOBAL_CONST_FIVE==5)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
if(GLOBAL_CONST_FIVE==5)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109038/CWE606_Unchecked_Loop_Condition__char_environment_13.c | CWE606_Unchecked_Loop_Condition__char_environment_13_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_13_bad(void)
{
int iVar1;
int iStack_9c;
undefined8 uStack_98;
undefined8 uStack_90;
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;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_18 = &uStack_98;
if (GLOBAL_CONST_FIVE == 5) {
lStack_20 = func_0x00400a90(puStack_18);
lStack_28 = func_0x00400a60(&UNK_004012d4);
if (lStack_28 != 0) {
func_0x00400ab0((long)puStack_18 + lStack_20,lStack_28,99 - lStack_20);
}
}
if (GLOBAL_CONST_FIVE == 5) {
iVar1 = func_0x00400b20(puStack_18,&UNK_004012d8,&iStack_9c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_9c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
}
return;
}
| ['gcc'] |
5,209 | void CWE606_Unchecked_Loop_Condition__char_environment_13_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109038/CWE606_Unchecked_Loop_Condition__char_environment_13.c | CWE606_Unchecked_Loop_Condition__char_environment_13_good |
void CWE606_Unchecked_Loop_Condition__char_environment_13_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
5,210 | void CWE606_Unchecked_Loop_Condition__char_environment_14_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
if(globalFive==5)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
if(globalFive==5)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109039/CWE606_Unchecked_Loop_Condition__char_environment_14.c | CWE606_Unchecked_Loop_Condition__char_environment_14_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_14_bad(void)
{
int iVar1;
int iStack_9c;
undefined8 uStack_98;
undefined8 uStack_90;
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;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_18 = &uStack_98;
if (globalFive == 5) {
lStack_20 = func_0x00400a90(puStack_18);
lStack_28 = func_0x00400a60(&UNK_004012d4);
if (lStack_28 != 0) {
func_0x00400ab0((long)puStack_18 + lStack_20,lStack_28,99 - lStack_20);
}
}
if (globalFive == 5) {
iVar1 = func_0x00400b20(puStack_18,&UNK_004012d8,&iStack_9c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_9c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
}
return;
}
| ['gcc'] |
5,211 | void CWE606_Unchecked_Loop_Condition__char_environment_14_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109039/CWE606_Unchecked_Loop_Condition__char_environment_14.c | CWE606_Unchecked_Loop_Condition__char_environment_14_good |
void CWE606_Unchecked_Loop_Condition__char_environment_14_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
5,212 | void CWE606_Unchecked_Loop_Condition__char_environment_15_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
switch(6)
{
case 6:
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
switch(7)
{
case 7:
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109040/CWE606_Unchecked_Loop_Condition__char_environment_15.c | CWE606_Unchecked_Loop_Condition__char_environment_15_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_15_bad(void)
{
int iVar1;
int iStack_9c;
undefined8 uStack_98;
undefined8 uStack_90;
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;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_18 = &uStack_98;
lStack_20 = func_0x00400a90(puStack_18);
lStack_28 = func_0x00400a60(&UNK_004012c4);
if (lStack_28 != 0) {
func_0x00400ab0((long)puStack_18 + lStack_20,lStack_28,99 - lStack_20);
}
iVar1 = func_0x00400b20(puStack_18,&UNK_004012c8,&iStack_9c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_9c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,213 | void CWE606_Unchecked_Loop_Condition__char_environment_15_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109040/CWE606_Unchecked_Loop_Condition__char_environment_15.c | CWE606_Unchecked_Loop_Condition__char_environment_15_good |
void CWE606_Unchecked_Loop_Condition__char_environment_15_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
5,214 | void CWE606_Unchecked_Loop_Condition__char_environment_16_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
while(1)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
break;
}
while(1)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
break;
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109041/CWE606_Unchecked_Loop_Condition__char_environment_16.c | CWE606_Unchecked_Loop_Condition__char_environment_16_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_16_bad(void)
{
int iVar1;
int iStack_9c;
undefined8 uStack_98;
undefined8 uStack_90;
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;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_18 = &uStack_98;
lStack_20 = func_0x00400a90(puStack_18);
lStack_28 = func_0x00400a60(&UNK_004012c4);
if (lStack_28 != 0) {
func_0x00400ab0((long)puStack_18 + lStack_20,lStack_28,99 - lStack_20);
}
iVar1 = func_0x00400b20(puStack_18,&UNK_004012c8,&iStack_9c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_9c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,215 | void CWE606_Unchecked_Loop_Condition__char_environment_16_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109041/CWE606_Unchecked_Loop_Condition__char_environment_16.c | CWE606_Unchecked_Loop_Condition__char_environment_16_good |
void CWE606_Unchecked_Loop_Condition__char_environment_16_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
5,216 | void CWE606_Unchecked_Loop_Condition__char_environment_17_bad()
{
int i,j;
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
for(i = 0; i < 1; i++)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
for(j = 0; j < 1; j++)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109042/CWE606_Unchecked_Loop_Condition__char_environment_17.c | CWE606_Unchecked_Loop_Condition__char_environment_17_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_17_bad(void)
{
int iVar1;
int iStack_9c;
undefined8 uStack_98;
undefined8 uStack_90;
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;
undefined4 uStack_38;
long lStack_30;
long lStack_28;
undefined8 *puStack_20;
int iStack_18;
int iStack_14;
int iStack_10;
int iStack_c;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_20 = &uStack_98;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
lStack_28 = func_0x00400a90(puStack_20);
lStack_30 = func_0x00400a60(&UNK_004012e4);
if (lStack_30 != 0) {
func_0x00400ab0((long)puStack_20 + lStack_28,lStack_30,99 - lStack_28);
}
}
for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) {
iVar1 = func_0x00400b20(puStack_20,&UNK_004012e8,&iStack_9c);
if (iVar1 == 1) {
iStack_18 = 0;
for (iStack_14 = 0; iStack_14 < iStack_9c; iStack_14 = iStack_14 + 1) {
iStack_18 = iStack_18 + 1;
}
printIntLine(iStack_18);
}
}
return;
}
| ['gcc'] |
5,217 | void CWE606_Unchecked_Loop_Condition__char_environment_17_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109042/CWE606_Unchecked_Loop_Condition__char_environment_17.c | CWE606_Unchecked_Loop_Condition__char_environment_17_good |
void CWE606_Unchecked_Loop_Condition__char_environment_17_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
5,218 | void CWE606_Unchecked_Loop_Condition__char_environment_21_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
badStatic = 1; /* true */
badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* true */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109044/CWE606_Unchecked_Loop_Condition__char_environment_21.c | CWE606_Unchecked_Loop_Condition__char_environment_21_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_21_bad(void)
{
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;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
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;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400a90(puStack_10);
lStack_20 = func_0x00400a60(&UNK_004012e7);
if (lStack_20 != 0) {
func_0x00400ab0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
badStatic = 1;
badSink(puStack_10);
return;
}
| ['gcc'] |
5,219 | void CWE606_Unchecked_Loop_Condition__char_environment_21_good()
{
goodB2G1();
goodB2G2();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109044/CWE606_Unchecked_Loop_Condition__char_environment_21.c | CWE606_Unchecked_Loop_Condition__char_environment_21_good |
void CWE606_Unchecked_Loop_Condition__char_environment_21_good(void)
{
goodB2G1();
goodB2G2();
goodG2B();
return;
}
| ['gcc'] |
5,220 | void CWE606_Unchecked_Loop_Condition__char_environment_22_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE606_Unchecked_Loop_Condition__char_environment_22_badGlobal = 1; /* true */
CWE606_Unchecked_Loop_Condition__char_environment_22_badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* true */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109045/CWE606_Unchecked_Loop_Condition__char_environment_22a.c | CWE606_Unchecked_Loop_Condition__char_environment_22_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_22_bad(void)
{
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;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
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;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400a90(puStack_10);
lStack_20 = func_0x00400a60(&UNK_004012e4);
if (lStack_20 != 0) {
func_0x00400ab0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE606_Unchecked_Loop_Condition__char_environment_22_badGlobal = 1;
CWE606_Unchecked_Loop_Condition__char_environment_22_badSink(puStack_10);
return;
}
| ['gcc'] |
5,221 | void CWE606_Unchecked_Loop_Condition__char_environment_22_good()
{
goodB2G1();
goodB2G2();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109045/CWE606_Unchecked_Loop_Condition__char_environment_22a.c | CWE606_Unchecked_Loop_Condition__char_environment_22_good |
void CWE606_Unchecked_Loop_Condition__char_environment_22_good(void)
{
goodB2G1();
goodB2G2();
goodG2B();
return;
}
| ['gcc'] |
5,222 | void CWE606_Unchecked_Loop_Condition__char_environment_22_badSink(char * data)
{
if(CWE606_Unchecked_Loop_Condition__char_environment_22_badGlobal)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109045/CWE606_Unchecked_Loop_Condition__char_environment_22b.c | CWE606_Unchecked_Loop_Condition__char_environment_22_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_22_badSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
if (CWE606_Unchecked_Loop_Condition__char_environment_22_badGlobal != 0) {
iVar1 = func_0x00400b20(param_1,&UNK_004012e4,&iStack_14);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
}
return;
}
| ['gcc'] |
5,223 | void CWE606_Unchecked_Loop_Condition__char_environment_22_goodB2G1Sink(char * data)
{
if(CWE606_Unchecked_Loop_Condition__char_environment_22_goodB2G1Global)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* FIX: limit loop iteration counts */
if (n < MAX_LOOP)
{
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
}
} | ['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: limit loop iteration counts */', '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109045/CWE606_Unchecked_Loop_Condition__char_environment_22b.c | CWE606_Unchecked_Loop_Condition__char_environment_22_goodB2G1Sink |
void CWE606_Unchecked_Loop_Condition__char_environment_22_goodB2G1Sink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
if (CWE606_Unchecked_Loop_Condition__char_environment_22_goodB2G1Global == 0) {
iVar1 = func_0x00400b20(param_1,&UNK_00401579,&iStack_14);
if ((iVar1 == 1) && (iStack_14 < 10000)) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
}
else {
printLine(&UNK_00401564);
}
return;
}
| ['gcc'] |
5,224 | void CWE606_Unchecked_Loop_Condition__char_environment_22_goodB2G2Sink(char * data)
{
if(CWE606_Unchecked_Loop_Condition__char_environment_22_goodB2G2Global)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* FIX: limit loop iteration counts */
if (n < MAX_LOOP)
{
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
}
} | ['/* FIX: limit loop iteration counts */', '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109045/CWE606_Unchecked_Loop_Condition__char_environment_22b.c | CWE606_Unchecked_Loop_Condition__char_environment_22_goodB2G2Sink |
void CWE606_Unchecked_Loop_Condition__char_environment_22_goodB2G2Sink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
if (CWE606_Unchecked_Loop_Condition__char_environment_22_goodB2G2Global != 0) {
iVar1 = func_0x00400b20(param_1,&UNK_00401579,&iStack_14);
if ((iVar1 == 1) && (iStack_14 < 10000)) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
}
return;
}
| ['gcc'] |
5,225 | void CWE606_Unchecked_Loop_Condition__char_environment_22_goodG2BSink(char * data)
{
if(CWE606_Unchecked_Loop_Condition__char_environment_22_goodG2BGlobal)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109045/CWE606_Unchecked_Loop_Condition__char_environment_22b.c | CWE606_Unchecked_Loop_Condition__char_environment_22_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_22_goodG2BSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
if (CWE606_Unchecked_Loop_Condition__char_environment_22_goodG2BGlobal != 0) {
iVar1 = func_0x00400b20(param_1,&UNK_00401579,&iStack_14);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
}
return;
}
| ['gcc'] |
5,226 | void CWE606_Unchecked_Loop_Condition__char_environment_31_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
{
char * dataCopy = data;
char * data = dataCopy;
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109046/CWE606_Unchecked_Loop_Condition__char_environment_31.c | CWE606_Unchecked_Loop_Condition__char_environment_31_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_31_bad(void)
{
int iVar1;
int iStack_ac;
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined4 uStack_48;
undefined8 *puStack_38;
undefined8 *puStack_30;
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_a8 = 0;
uStack_a0 = 0;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_18 = &uStack_a8;
lStack_20 = func_0x00400a90(puStack_18);
lStack_28 = func_0x00400a60(&UNK_004012d4);
if (lStack_28 != 0) {
func_0x00400ab0((long)puStack_18 + lStack_20,lStack_28,99 - lStack_20);
}
puStack_30 = puStack_18;
puStack_38 = puStack_18;
iVar1 = func_0x00400b20(puStack_18,&UNK_004012d8,&iStack_ac);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_ac; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,227 | void CWE606_Unchecked_Loop_Condition__char_environment_31_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109046/CWE606_Unchecked_Loop_Condition__char_environment_31.c | CWE606_Unchecked_Loop_Condition__char_environment_31_good |
void CWE606_Unchecked_Loop_Condition__char_environment_31_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,228 | void CWE606_Unchecked_Loop_Condition__char_environment_32_bad()
{
char * data;
char * *dataPtr1 = &data;
char * *dataPtr2 = &data;
char dataBuffer[100] = "";
data = dataBuffer;
{
char * data = *dataPtr1;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
*dataPtr1 = data;
}
{
char * data = *dataPtr2;
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109047/CWE606_Unchecked_Loop_Condition__char_environment_32.c | CWE606_Unchecked_Loop_Condition__char_environment_32_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE606_Unchecked_Loop_Condition__char_environment_32_bad(void)
{
int iVar1;
int iStack_bc;
undefined8 uStack_b8;
undefined8 uStack_b0;
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined4 uStack_58;
undefined8 *puStack_48;
undefined8 *puStack_40;
long lStack_38;
long lStack_30;
undefined8 *puStack_28;
undefined8 **ppuStack_20;
undefined8 **ppuStack_18;
int iStack_10;
int iStack_c;
ppuStack_18 = &puStack_48;
ppuStack_20 = &puStack_48;
uStack_b8 = 0;
uStack_b0 = 0;
uStack_a8 = 0;
uStack_a0 = 0;
uStack_98 = 0;
uStack_90 = 0;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
puStack_48 = &uStack_b8;
puStack_28 = puStack_48;
lStack_30 = func_0x00400a90(puStack_48);
lStack_38 = func_0x00400a60(&UNK_00401304);
if (lStack_38 != 0) {
func_0x00400ab0((long)puStack_28 + lStack_30,lStack_38,99 - lStack_30);
}
*ppuStack_18 = puStack_28;
puStack_40 = *ppuStack_20;
iVar1 = func_0x00400b20(puStack_40,&UNK_00401308,&iStack_bc);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_bc; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,229 | void CWE606_Unchecked_Loop_Condition__char_environment_32_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109047/CWE606_Unchecked_Loop_Condition__char_environment_32.c | CWE606_Unchecked_Loop_Condition__char_environment_32_good |
void CWE606_Unchecked_Loop_Condition__char_environment_32_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,230 | void CWE606_Unchecked_Loop_Condition__char_environment_34_bad()
{
char * data;
CWE606_Unchecked_Loop_Condition__char_environment_34_unionType myUnion;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
myUnion.unionFirst = data;
{
char * data = myUnion.unionSecond;
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109049/CWE606_Unchecked_Loop_Condition__char_environment_34.c | CWE606_Unchecked_Loop_Condition__char_environment_34_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_34_bad(void)
{
int iVar1;
int iStack_ac;
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined4 uStack_48;
undefined8 *puStack_38;
undefined8 *puStack_30;
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_a8 = 0;
uStack_a0 = 0;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_18 = &uStack_a8;
lStack_20 = func_0x00400a90(puStack_18);
lStack_28 = func_0x00400a60(&UNK_004012d4);
if (lStack_28 != 0) {
func_0x00400ab0((long)puStack_18 + lStack_20,lStack_28,99 - lStack_20);
}
puStack_38 = puStack_18;
puStack_30 = puStack_18;
iVar1 = func_0x00400b20(puStack_18,&UNK_004012d8,&iStack_ac);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_ac; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,231 | void CWE606_Unchecked_Loop_Condition__char_environment_34_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109049/CWE606_Unchecked_Loop_Condition__char_environment_34.c | CWE606_Unchecked_Loop_Condition__char_environment_34_good |
void CWE606_Unchecked_Loop_Condition__char_environment_34_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,232 | void CWE606_Unchecked_Loop_Condition__char_environment_41_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109050/CWE606_Unchecked_Loop_Condition__char_environment_41.c | CWE606_Unchecked_Loop_Condition__char_environment_41_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_41_bad(void)
{
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;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
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;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400a90(puStack_10);
lStack_20 = func_0x00400a60(&UNK_004012c7);
if (lStack_20 != 0) {
func_0x00400ab0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
badSink(puStack_10);
return;
}
| ['gcc'] |
5,233 | void CWE606_Unchecked_Loop_Condition__char_environment_41_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109050/CWE606_Unchecked_Loop_Condition__char_environment_41.c | CWE606_Unchecked_Loop_Condition__char_environment_41_good |
void CWE606_Unchecked_Loop_Condition__char_environment_41_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
5,234 | void CWE606_Unchecked_Loop_Condition__char_environment_42_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
data = badSource(data);
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109051/CWE606_Unchecked_Loop_Condition__char_environment_42.c | CWE606_Unchecked_Loop_Condition__char_environment_42_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_42_bad(void)
{
int iVar1;
int iStack_8c;
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;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
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;
puStack_18 = &uStack_88;
puStack_18 = (undefined8 *)badSource(puStack_18);
iVar1 = func_0x00400b20(puStack_18,&UNK_004012d8,&iStack_8c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_8c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,235 | void CWE606_Unchecked_Loop_Condition__char_environment_42_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109051/CWE606_Unchecked_Loop_Condition__char_environment_42.c | CWE606_Unchecked_Loop_Condition__char_environment_42_good |
void CWE606_Unchecked_Loop_Condition__char_environment_42_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
5,236 | void CWE606_Unchecked_Loop_Condition__char_environment_51_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE606_Unchecked_Loop_Condition__char_environment_51b_badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109055/CWE606_Unchecked_Loop_Condition__char_environment_51a.c | CWE606_Unchecked_Loop_Condition__char_environment_51_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_51_bad(void)
{
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;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
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;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400a90(puStack_10);
lStack_20 = func_0x00400a60(&UNK_004012c4);
if (lStack_20 != 0) {
func_0x00400ab0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE606_Unchecked_Loop_Condition__char_environment_51b_badSink(puStack_10);
return;
}
| ['gcc'] |
5,237 | void CWE606_Unchecked_Loop_Condition__char_environment_51_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109055/CWE606_Unchecked_Loop_Condition__char_environment_51a.c | CWE606_Unchecked_Loop_Condition__char_environment_51_good |
void CWE606_Unchecked_Loop_Condition__char_environment_51_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,238 | void CWE606_Unchecked_Loop_Condition__char_environment_51b_badSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109055/CWE606_Unchecked_Loop_Condition__char_environment_51b.c | CWE606_Unchecked_Loop_Condition__char_environment_51b_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_51b_badSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_004012c4,&iStack_14);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,239 | void CWE606_Unchecked_Loop_Condition__char_environment_51b_goodG2BSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109055/CWE606_Unchecked_Loop_Condition__char_environment_51b.c | CWE606_Unchecked_Loop_Condition__char_environment_51b_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_51b_goodG2BSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_004013d4,&iStack_14);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,240 | void CWE606_Unchecked_Loop_Condition__char_environment_51b_goodB2GSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* FIX: limit loop iteration counts */
if (n < MAX_LOOP)
{
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* FIX: limit loop iteration counts */', '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109055/CWE606_Unchecked_Loop_Condition__char_environment_51b.c | CWE606_Unchecked_Loop_Condition__char_environment_51b_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_51b_goodB2GSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_004013d4,&iStack_14);
if ((iVar1 == 1) && (iStack_14 < 10000)) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,241 | void CWE606_Unchecked_Loop_Condition__char_environment_52_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE606_Unchecked_Loop_Condition__char_environment_52b_badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109056/CWE606_Unchecked_Loop_Condition__char_environment_52a.c | CWE606_Unchecked_Loop_Condition__char_environment_52_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_52_bad(void)
{
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;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
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;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400a90(puStack_10);
lStack_20 = func_0x00400a60(&UNK_004012e4);
if (lStack_20 != 0) {
func_0x00400ab0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE606_Unchecked_Loop_Condition__char_environment_52b_badSink(puStack_10);
return;
}
| ['gcc'] |
5,242 | void CWE606_Unchecked_Loop_Condition__char_environment_52_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109056/CWE606_Unchecked_Loop_Condition__char_environment_52a.c | CWE606_Unchecked_Loop_Condition__char_environment_52_good |
void CWE606_Unchecked_Loop_Condition__char_environment_52_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,243 | void CWE606_Unchecked_Loop_Condition__char_environment_52b_badSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_52c_badSink(data);
} | [] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109056/CWE606_Unchecked_Loop_Condition__char_environment_52b.c | CWE606_Unchecked_Loop_Condition__char_environment_52b_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_52b_badSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_52c_badSink(param_1);
return;
}
| ['gcc'] |
5,244 | void CWE606_Unchecked_Loop_Condition__char_environment_52b_goodG2BSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109056/CWE606_Unchecked_Loop_Condition__char_environment_52b.c | CWE606_Unchecked_Loop_Condition__char_environment_52b_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_52b_goodG2BSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
5,245 | void CWE606_Unchecked_Loop_Condition__char_environment_52b_goodB2GSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_52c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109056/CWE606_Unchecked_Loop_Condition__char_environment_52b.c | CWE606_Unchecked_Loop_Condition__char_environment_52b_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_52b_goodB2GSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_52c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
5,246 | void CWE606_Unchecked_Loop_Condition__char_environment_52c_badSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109056/CWE606_Unchecked_Loop_Condition__char_environment_52c.c | CWE606_Unchecked_Loop_Condition__char_environment_52c_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_52c_badSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_004012e4,&iStack_14);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,247 | void CWE606_Unchecked_Loop_Condition__char_environment_52c_goodG2BSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109056/CWE606_Unchecked_Loop_Condition__char_environment_52c.c | CWE606_Unchecked_Loop_Condition__char_environment_52c_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_52c_goodG2BSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_00401414,&iStack_14);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,248 | void CWE606_Unchecked_Loop_Condition__char_environment_52c_goodB2GSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* FIX: limit loop iteration counts */
if (n < MAX_LOOP)
{
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* FIX: limit loop iteration counts */', '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109056/CWE606_Unchecked_Loop_Condition__char_environment_52c.c | CWE606_Unchecked_Loop_Condition__char_environment_52c_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_52c_goodB2GSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_00401414,&iStack_14);
if ((iVar1 == 1) && (iStack_14 < 10000)) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,249 | void CWE606_Unchecked_Loop_Condition__char_environment_53_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE606_Unchecked_Loop_Condition__char_environment_53b_badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109057/CWE606_Unchecked_Loop_Condition__char_environment_53a.c | CWE606_Unchecked_Loop_Condition__char_environment_53_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_53_bad(void)
{
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;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
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;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400a90(puStack_10);
lStack_20 = func_0x00400a60(&UNK_00401304);
if (lStack_20 != 0) {
func_0x00400ab0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE606_Unchecked_Loop_Condition__char_environment_53b_badSink(puStack_10);
return;
}
| ['gcc'] |
5,250 | void CWE606_Unchecked_Loop_Condition__char_environment_53_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109057/CWE606_Unchecked_Loop_Condition__char_environment_53a.c | CWE606_Unchecked_Loop_Condition__char_environment_53_good |
void CWE606_Unchecked_Loop_Condition__char_environment_53_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,251 | void CWE606_Unchecked_Loop_Condition__char_environment_53b_badSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_53c_badSink(data);
} | [] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109057/CWE606_Unchecked_Loop_Condition__char_environment_53b.c | CWE606_Unchecked_Loop_Condition__char_environment_53b_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_53b_badSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_53c_badSink(param_1);
return;
}
| ['gcc'] |
5,252 | void CWE606_Unchecked_Loop_Condition__char_environment_53b_goodG2BSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109057/CWE606_Unchecked_Loop_Condition__char_environment_53b.c | CWE606_Unchecked_Loop_Condition__char_environment_53b_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_53b_goodG2BSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
5,253 | void CWE606_Unchecked_Loop_Condition__char_environment_53b_goodB2GSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_53c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109057/CWE606_Unchecked_Loop_Condition__char_environment_53b.c | CWE606_Unchecked_Loop_Condition__char_environment_53b_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_53b_goodB2GSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_53c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
5,254 | void CWE606_Unchecked_Loop_Condition__char_environment_53c_badSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_53d_badSink(data);
} | [] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109057/CWE606_Unchecked_Loop_Condition__char_environment_53c.c | CWE606_Unchecked_Loop_Condition__char_environment_53c_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_53c_badSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_53d_badSink(param_1);
return;
}
| ['gcc'] |
5,255 | void CWE606_Unchecked_Loop_Condition__char_environment_53c_goodG2BSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109057/CWE606_Unchecked_Loop_Condition__char_environment_53c.c | CWE606_Unchecked_Loop_Condition__char_environment_53c_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_53c_goodG2BSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
5,256 | void CWE606_Unchecked_Loop_Condition__char_environment_53c_goodB2GSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_53d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109057/CWE606_Unchecked_Loop_Condition__char_environment_53c.c | CWE606_Unchecked_Loop_Condition__char_environment_53c_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_53c_goodB2GSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_53d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
5,257 | void CWE606_Unchecked_Loop_Condition__char_environment_53d_badSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109057/CWE606_Unchecked_Loop_Condition__char_environment_53d.c | CWE606_Unchecked_Loop_Condition__char_environment_53d_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_53d_badSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_00401304,&iStack_14);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,258 | void CWE606_Unchecked_Loop_Condition__char_environment_53d_goodG2BSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109057/CWE606_Unchecked_Loop_Condition__char_environment_53d.c | CWE606_Unchecked_Loop_Condition__char_environment_53d_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_53d_goodG2BSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_00401444,&iStack_14);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,259 | void CWE606_Unchecked_Loop_Condition__char_environment_53d_goodB2GSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* FIX: limit loop iteration counts */
if (n < MAX_LOOP)
{
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* FIX: limit loop iteration counts */', '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109057/CWE606_Unchecked_Loop_Condition__char_environment_53d.c | CWE606_Unchecked_Loop_Condition__char_environment_53d_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_53d_goodB2GSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_00401444,&iStack_14);
if ((iVar1 == 1) && (iStack_14 < 10000)) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,260 | void CWE606_Unchecked_Loop_Condition__char_environment_54_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE606_Unchecked_Loop_Condition__char_environment_54b_badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54a.c | CWE606_Unchecked_Loop_Condition__char_environment_54_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_54_bad(void)
{
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;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
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;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400a90(puStack_10);
lStack_20 = func_0x00400a60(&UNK_00401314);
if (lStack_20 != 0) {
func_0x00400ab0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE606_Unchecked_Loop_Condition__char_environment_54b_badSink(puStack_10);
return;
}
| ['gcc'] |
5,261 | void CWE606_Unchecked_Loop_Condition__char_environment_54_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54a.c | CWE606_Unchecked_Loop_Condition__char_environment_54_good |
void CWE606_Unchecked_Loop_Condition__char_environment_54_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,262 | void CWE606_Unchecked_Loop_Condition__char_environment_54b_badSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_54c_badSink(data);
} | [] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54b.c | CWE606_Unchecked_Loop_Condition__char_environment_54b_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54b_badSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_54c_badSink(param_1);
return;
}
| ['gcc'] |
5,263 | void CWE606_Unchecked_Loop_Condition__char_environment_54b_goodG2BSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54b.c | CWE606_Unchecked_Loop_Condition__char_environment_54b_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54b_goodG2BSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
5,264 | void CWE606_Unchecked_Loop_Condition__char_environment_54b_goodB2GSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_54c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54b.c | CWE606_Unchecked_Loop_Condition__char_environment_54b_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54b_goodB2GSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_54c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
5,265 | void CWE606_Unchecked_Loop_Condition__char_environment_54c_badSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_54d_badSink(data);
} | [] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54c.c | CWE606_Unchecked_Loop_Condition__char_environment_54c_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54c_badSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_54d_badSink(param_1);
return;
}
| ['gcc'] |
5,266 | void CWE606_Unchecked_Loop_Condition__char_environment_54c_goodG2BSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54c.c | CWE606_Unchecked_Loop_Condition__char_environment_54c_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54c_goodG2BSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
5,267 | void CWE606_Unchecked_Loop_Condition__char_environment_54c_goodB2GSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_54d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54c.c | CWE606_Unchecked_Loop_Condition__char_environment_54c_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54c_goodB2GSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_54d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
5,268 | void CWE606_Unchecked_Loop_Condition__char_environment_54d_badSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_54e_badSink(data);
} | [] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54d.c | CWE606_Unchecked_Loop_Condition__char_environment_54d_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54d_badSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_54e_badSink(param_1);
return;
}
| ['gcc'] |
5,269 | void CWE606_Unchecked_Loop_Condition__char_environment_54d_goodG2BSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54d.c | CWE606_Unchecked_Loop_Condition__char_environment_54d_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54d_goodG2BSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
5,270 | void CWE606_Unchecked_Loop_Condition__char_environment_54d_goodB2GSink(char * data)
{
CWE606_Unchecked_Loop_Condition__char_environment_54e_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54d.c | CWE606_Unchecked_Loop_Condition__char_environment_54d_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54d_goodB2GSink(undefined8 param_1)
{
CWE606_Unchecked_Loop_Condition__char_environment_54e_goodB2GSink(param_1);
return;
}
| ['gcc'] |
5,271 | void CWE606_Unchecked_Loop_Condition__char_environment_54e_badSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54e.c | CWE606_Unchecked_Loop_Condition__char_environment_54e_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54e_badSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_00401314,&iStack_14);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,272 | void CWE606_Unchecked_Loop_Condition__char_environment_54e_goodG2BSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54e.c | CWE606_Unchecked_Loop_Condition__char_environment_54e_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54e_goodG2BSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_00401474,&iStack_14);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,273 | void CWE606_Unchecked_Loop_Condition__char_environment_54e_goodB2GSink(char * data)
{
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* FIX: limit loop iteration counts */
if (n < MAX_LOOP)
{
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* FIX: limit loop iteration counts */', '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109058/CWE606_Unchecked_Loop_Condition__char_environment_54e.c | CWE606_Unchecked_Loop_Condition__char_environment_54e_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_54e_goodB2GSink(undefined8 param_1)
{
int iVar1;
int iStack_14;
int iStack_10;
int iStack_c;
iVar1 = func_0x00400b20(param_1,&UNK_00401474,&iStack_14);
if ((iVar1 == 1) && (iStack_14 < 10000)) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_14; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,274 | void CWE606_Unchecked_Loop_Condition__char_environment_61_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
data = CWE606_Unchecked_Loop_Condition__char_environment_61b_badSource(data);
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109059/CWE606_Unchecked_Loop_Condition__char_environment_61a.c | CWE606_Unchecked_Loop_Condition__char_environment_61_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_61_bad(void)
{
int iVar1;
int iStack_8c;
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;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
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;
puStack_18 = &uStack_88;
puStack_18 = (undefined8 *)
CWE606_Unchecked_Loop_Condition__char_environment_61b_badSource(puStack_18);
iVar1 = func_0x00400b20(puStack_18,&UNK_004012d4,&iStack_8c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_8c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,275 | void CWE606_Unchecked_Loop_Condition__char_environment_61_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109059/CWE606_Unchecked_Loop_Condition__char_environment_61a.c | CWE606_Unchecked_Loop_Condition__char_environment_61_good |
void CWE606_Unchecked_Loop_Condition__char_environment_61_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,276 | char * CWE606_Unchecked_Loop_Condition__char_environment_61b_badSource(char * data)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
return data;
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109059/CWE606_Unchecked_Loop_Condition__char_environment_61b.c | CWE606_Unchecked_Loop_Condition__char_environment_61b_badSource |
long CWE606_Unchecked_Loop_Condition__char_environment_61b_badSource(long param_1)
{
long lVar1;
long lVar2;
lVar1 = func_0x00400a90(param_1);
lVar2 = func_0x00400a60(&UNK_004012d4);
if (lVar2 != 0) {
func_0x00400ab0(param_1 + lVar1,lVar2,99 - lVar1);
}
return param_1;
}
| ['gcc'] |
5,277 | char * CWE606_Unchecked_Loop_Condition__char_environment_61b_goodG2BSource(char * data)
{
/* FIX: Set data to a number less than MAX_LOOP */
strcpy(data, "15");
return data;
} | ['/* FIX: Set data to a number less than MAX_LOOP */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109059/CWE606_Unchecked_Loop_Condition__char_environment_61b.c | CWE606_Unchecked_Loop_Condition__char_environment_61b_goodG2BSource |
undefined2 *
CWE606_Unchecked_Loop_Condition__char_environment_61b_goodG2BSource(undefined2 *param_1)
{
*param_1 = 0x3531;
*(undefined *)(param_1 + 1) = 0;
return param_1;
}
| ['gcc'] |
5,278 | char * CWE606_Unchecked_Loop_Condition__char_environment_61b_goodB2GSource(char * data)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
return data;
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109059/CWE606_Unchecked_Loop_Condition__char_environment_61b.c | CWE606_Unchecked_Loop_Condition__char_environment_61b_goodB2GSource |
long CWE606_Unchecked_Loop_Condition__char_environment_61b_goodB2GSource(long param_1)
{
long lVar1;
long lVar2;
lVar1 = func_0x00400a90(param_1);
lVar2 = func_0x00400a60(&UNK_004013f4);
if (lVar2 != 0) {
func_0x00400ab0(param_1 + lVar1,lVar2,99 - lVar1);
}
return param_1;
}
| ['gcc'] |
5,279 | void CWE606_Unchecked_Loop_Condition__char_environment_63_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE606_Unchecked_Loop_Condition__char_environment_63b_badSink(&data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109061/CWE606_Unchecked_Loop_Condition__char_environment_63a.c | CWE606_Unchecked_Loop_Condition__char_environment_63_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_63_bad(void)
{
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;
undefined8 *puStack_20;
long lStack_18;
long lStack_10;
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;
puStack_20 = &uStack_88;
lStack_10 = func_0x00400a90(puStack_20);
lStack_18 = func_0x00400a60(&UNK_004012d4);
if (lStack_18 != 0) {
func_0x00400ab0((long)puStack_20 + lStack_10,lStack_18,99 - lStack_10);
}
CWE606_Unchecked_Loop_Condition__char_environment_63b_badSink(&puStack_20);
return;
}
| ['gcc'] |
5,280 | void CWE606_Unchecked_Loop_Condition__char_environment_63_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109061/CWE606_Unchecked_Loop_Condition__char_environment_63a.c | CWE606_Unchecked_Loop_Condition__char_environment_63_good |
void CWE606_Unchecked_Loop_Condition__char_environment_63_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,281 | void CWE606_Unchecked_Loop_Condition__char_environment_63b_badSink(char * * dataPtr)
{
char * data = *dataPtr;
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109061/CWE606_Unchecked_Loop_Condition__char_environment_63b.c | CWE606_Unchecked_Loop_Condition__char_environment_63b_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_63b_badSink(undefined8 *param_1)
{
int iVar1;
int iStack_1c;
undefined8 uStack_18;
int iStack_10;
int iStack_c;
uStack_18 = *param_1;
iVar1 = func_0x00400b20(uStack_18,&UNK_004012d4,&iStack_1c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_1c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,282 | void CWE606_Unchecked_Loop_Condition__char_environment_63b_goodG2BSink(char * * dataPtr)
{
char * data = *dataPtr;
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109061/CWE606_Unchecked_Loop_Condition__char_environment_63b.c | CWE606_Unchecked_Loop_Condition__char_environment_63b_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_63b_goodG2BSink(undefined8 *param_1)
{
int iVar1;
int iStack_1c;
undefined8 uStack_18;
int iStack_10;
int iStack_c;
uStack_18 = *param_1;
iVar1 = func_0x00400b20(uStack_18,&UNK_004013f4,&iStack_1c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_1c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,283 | void CWE606_Unchecked_Loop_Condition__char_environment_63b_goodB2GSink(char * * dataPtr)
{
char * data = *dataPtr;
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* FIX: limit loop iteration counts */
if (n < MAX_LOOP)
{
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* FIX: limit loop iteration counts */', '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109061/CWE606_Unchecked_Loop_Condition__char_environment_63b.c | CWE606_Unchecked_Loop_Condition__char_environment_63b_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_63b_goodB2GSink(undefined8 *param_1)
{
int iVar1;
int iStack_1c;
undefined8 uStack_18;
int iStack_10;
int iStack_c;
uStack_18 = *param_1;
iVar1 = func_0x00400b20(uStack_18,&UNK_004013f4,&iStack_1c);
if ((iVar1 == 1) && (iStack_1c < 10000)) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_1c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,284 | void CWE606_Unchecked_Loop_Condition__char_environment_64_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE606_Unchecked_Loop_Condition__char_environment_64b_badSink(&data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109062/CWE606_Unchecked_Loop_Condition__char_environment_64a.c | CWE606_Unchecked_Loop_Condition__char_environment_64_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_64_bad(void)
{
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;
undefined8 *puStack_20;
long lStack_18;
long lStack_10;
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;
puStack_20 = &uStack_88;
lStack_10 = func_0x00400a90(puStack_20);
lStack_18 = func_0x00400a60(&UNK_004012e4);
if (lStack_18 != 0) {
func_0x00400ab0((long)puStack_20 + lStack_10,lStack_18,99 - lStack_10);
}
CWE606_Unchecked_Loop_Condition__char_environment_64b_badSink(&puStack_20);
return;
}
| ['gcc'] |
5,285 | void CWE606_Unchecked_Loop_Condition__char_environment_64_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109062/CWE606_Unchecked_Loop_Condition__char_environment_64a.c | CWE606_Unchecked_Loop_Condition__char_environment_64_good |
void CWE606_Unchecked_Loop_Condition__char_environment_64_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,286 | void CWE606_Unchecked_Loop_Condition__char_environment_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);
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109062/CWE606_Unchecked_Loop_Condition__char_environment_64b.c | CWE606_Unchecked_Loop_Condition__char_environment_64b_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_64b_badSink(undefined8 *param_1)
{
int iVar1;
int iStack_24;
undefined8 uStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_20 = *param_1;
puStack_18 = param_1;
iVar1 = func_0x00400b20(uStack_20,&UNK_004012e4,&iStack_24);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_24; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,287 | void CWE606_Unchecked_Loop_Condition__char_environment_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);
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109062/CWE606_Unchecked_Loop_Condition__char_environment_64b.c | CWE606_Unchecked_Loop_Condition__char_environment_64b_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_64b_goodG2BSink(undefined8 *param_1)
{
int iVar1;
int iStack_24;
undefined8 uStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_20 = *param_1;
puStack_18 = param_1;
iVar1 = func_0x00400b20(uStack_20,&UNK_00401404,&iStack_24);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_24; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,288 | void CWE606_Unchecked_Loop_Condition__char_environment_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* FIX: limit loop iteration counts */
if (n < MAX_LOOP)
{
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: limit loop iteration counts */', '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109062/CWE606_Unchecked_Loop_Condition__char_environment_64b.c | CWE606_Unchecked_Loop_Condition__char_environment_64b_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_64b_goodB2GSink(undefined8 *param_1)
{
int iVar1;
int iStack_24;
undefined8 uStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_20 = *param_1;
puStack_18 = param_1;
iVar1 = func_0x00400b20(uStack_20,&UNK_00401404,&iStack_24);
if ((iVar1 == 1) && (iStack_24 < 10000)) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_24; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,289 | void CWE606_Unchecked_Loop_Condition__char_environment_66_bad()
{
char * data;
char * dataArray[5];
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
/* put data in array */
dataArray[2] = data;
CWE606_Unchecked_Loop_Condition__char_environment_66b_badSink(dataArray);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* put data in array */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109064/CWE606_Unchecked_Loop_Condition__char_environment_66a.c | CWE606_Unchecked_Loop_Condition__char_environment_66_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_66_bad(void)
{
undefined8 uStack_b8;
undefined8 uStack_b0;
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined4 uStack_58;
undefined auStack_48 [16];
undefined8 *puStack_38;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_b8 = 0;
uStack_b0 = 0;
uStack_a8 = 0;
uStack_a0 = 0;
uStack_98 = 0;
uStack_90 = 0;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
puStack_10 = &uStack_b8;
lStack_18 = func_0x00400a90(puStack_10);
lStack_20 = func_0x00400a60(&UNK_004012f4);
if (lStack_20 != 0) {
func_0x00400ab0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
puStack_38 = puStack_10;
CWE606_Unchecked_Loop_Condition__char_environment_66b_badSink(auStack_48);
return;
}
| ['gcc'] |
5,290 | void CWE606_Unchecked_Loop_Condition__char_environment_66_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109064/CWE606_Unchecked_Loop_Condition__char_environment_66a.c | CWE606_Unchecked_Loop_Condition__char_environment_66_good |
void CWE606_Unchecked_Loop_Condition__char_environment_66_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,291 | void CWE606_Unchecked_Loop_Condition__char_environment_66b_badSink(char * dataArray[])
{
/* copy data out of dataArray */
char * data = dataArray[2];
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ['/* copy data out of dataArray */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109064/CWE606_Unchecked_Loop_Condition__char_environment_66b.c | CWE606_Unchecked_Loop_Condition__char_environment_66b_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_66b_badSink(long param_1)
{
int iVar1;
int iStack_1c;
undefined8 uStack_18;
int iStack_10;
int iStack_c;
uStack_18 = *(undefined8 *)(param_1 + 0x10);
iVar1 = func_0x00400b20(uStack_18,&UNK_004012f4,&iStack_1c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_1c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,292 | void CWE606_Unchecked_Loop_Condition__char_environment_66b_goodG2BSink(char * dataArray[])
{
char * data = dataArray[2];
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109064/CWE606_Unchecked_Loop_Condition__char_environment_66b.c | CWE606_Unchecked_Loop_Condition__char_environment_66b_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_66b_goodG2BSink(long param_1)
{
int iVar1;
int iStack_1c;
undefined8 uStack_18;
int iStack_10;
int iStack_c;
uStack_18 = *(undefined8 *)(param_1 + 0x10);
iVar1 = func_0x00400b20(uStack_18,&UNK_00401424,&iStack_1c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_1c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,293 | void CWE606_Unchecked_Loop_Condition__char_environment_66b_goodB2GSink(char * dataArray[])
{
char * data = dataArray[2];
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* FIX: limit loop iteration counts */
if (n < MAX_LOOP)
{
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* FIX: limit loop iteration counts */', '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109064/CWE606_Unchecked_Loop_Condition__char_environment_66b.c | CWE606_Unchecked_Loop_Condition__char_environment_66b_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_66b_goodB2GSink(long param_1)
{
int iVar1;
int iStack_1c;
undefined8 uStack_18;
int iStack_10;
int iStack_c;
uStack_18 = *(undefined8 *)(param_1 + 0x10);
iVar1 = func_0x00400b20(uStack_18,&UNK_00401424,&iStack_1c);
if ((iVar1 == 1) && (iStack_1c < 10000)) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_1c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,294 | void CWE606_Unchecked_Loop_Condition__char_environment_67_bad()
{
char * data;
CWE606_Unchecked_Loop_Condition__char_environment_67_structType myStruct;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
myStruct.structFirst = data;
CWE606_Unchecked_Loop_Condition__char_environment_67b_badSink(myStruct);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109065/CWE606_Unchecked_Loop_Condition__char_environment_67a.c | CWE606_Unchecked_Loop_Condition__char_environment_67_bad |
void CWE606_Unchecked_Loop_Condition__char_environment_67_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
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;
undefined4 uStack_38;
undefined8 *puStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_10 = &uStack_98;
lStack_18 = func_0x00400a90(puStack_10);
lStack_20 = func_0x00400a60(&UNK_004012e4);
if (lStack_20 != 0) {
func_0x00400ab0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
puStack_28 = puStack_10;
CWE606_Unchecked_Loop_Condition__char_environment_67b_badSink(puStack_10);
return;
}
| ['gcc'] |
5,295 | void CWE606_Unchecked_Loop_Condition__char_environment_67_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109065/CWE606_Unchecked_Loop_Condition__char_environment_67a.c | CWE606_Unchecked_Loop_Condition__char_environment_67_good |
void CWE606_Unchecked_Loop_Condition__char_environment_67_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
5,296 | void CWE606_Unchecked_Loop_Condition__char_environment_67b_badSink(CWE606_Unchecked_Loop_Condition__char_environment_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109065/CWE606_Unchecked_Loop_Condition__char_environment_67b.c | CWE606_Unchecked_Loop_Condition__char_environment_67b_badSink |
void CWE606_Unchecked_Loop_Condition__char_environment_67b_badSink(undefined8 param_1)
{
int iVar1;
int iStack_1c;
undefined8 uStack_18;
int iStack_10;
int iStack_c;
uStack_18 = param_1;
iVar1 = func_0x00400b20(param_1,&UNK_004012e4,&iStack_1c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_1c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,297 | void CWE606_Unchecked_Loop_Condition__char_environment_67b_goodG2BSink(CWE606_Unchecked_Loop_Condition__char_environment_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ["/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109065/CWE606_Unchecked_Loop_Condition__char_environment_67b.c | CWE606_Unchecked_Loop_Condition__char_environment_67b_goodG2BSink |
void CWE606_Unchecked_Loop_Condition__char_environment_67b_goodG2BSink(undefined8 param_1)
{
int iVar1;
int iStack_1c;
undefined8 uStack_18;
int iStack_10;
int iStack_c;
uStack_18 = param_1;
iVar1 = func_0x00400b20(param_1,&UNK_00401404,&iStack_1c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_1c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,298 | void CWE606_Unchecked_Loop_Condition__char_environment_67b_goodB2GSink(CWE606_Unchecked_Loop_Condition__char_environment_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* FIX: limit loop iteration counts */
if (n < MAX_LOOP)
{
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
}
} | ['/* FIX: limit loop iteration counts */', '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109065/CWE606_Unchecked_Loop_Condition__char_environment_67b.c | CWE606_Unchecked_Loop_Condition__char_environment_67b_goodB2GSink |
void CWE606_Unchecked_Loop_Condition__char_environment_67b_goodB2GSink(undefined8 param_1)
{
int iVar1;
int iStack_1c;
undefined8 uStack_18;
int iStack_10;
int iStack_c;
uStack_18 = param_1;
iVar1 = func_0x00400b20(param_1,&UNK_00401404,&iStack_1c);
if ((iVar1 == 1) && (iStack_1c < 10000)) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_1c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
5,299 | void CWE606_Unchecked_Loop_Condition__char_file_01_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = strlen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgets() failed");
/* Restore NUL terminator if fgets fails */
data[dataLen] = '\0';
}
fclose(pFile);
}
}
}
{
int i, n, intVariable;
if (sscanf(data, "%d", &n) == 1)
{
/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */
intVariable = 0;
for (i = 0; i < n; i++)
{
/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */
intVariable++; /* avoid a dead/empty code block issue */
}
printIntLine(intVariable);
}
}
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', "/* POTENTIAL FLAW: user-supplied value 'n' could lead to very large loop iteration */", '/* INCIDENTAL: CWE 561: Dead Code - non-avoidable if n <= 0 */', '/* avoid a dead/empty code block issue */'] | ['CWE606'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/109074/CWE606_Unchecked_Loop_Condition__char_file_01.c | CWE606_Unchecked_Loop_Condition__char_file_01_bad |
void CWE606_Unchecked_Loop_Condition__char_file_01_bad(void)
{
int iVar1;
long lVar2;
int iStack_9c;
undefined8 uStack_98;
undefined8 uStack_90;
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;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_98 = 0;
uStack_90 = 0;
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;
puStack_18 = &uStack_98;
lStack_20 = func_0x00400ac0(puStack_18);
if (1 < 100U - lStack_20) {
lStack_28 = func_0x00400b60(&UNK_00401346,&UNK_00401344);
if (lStack_28 != 0) {
lVar2 = func_0x00400b00((long)puStack_18 + lStack_20,100 - (int)lStack_20,lStack_28);
if (lVar2 == 0) {
printLine(&UNK_00401354);
*(undefined *)(lStack_20 + (long)puStack_18) = 0;
}
func_0x00400ab0(lStack_28);
}
}
iVar1 = func_0x00400b50(puStack_18,&UNK_00401363,&iStack_9c);
if (iVar1 == 1) {
iStack_10 = 0;
for (iStack_c = 0; iStack_c < iStack_9c; iStack_c = iStack_c + 1) {
iStack_10 = iStack_10 + 1;
}
printIntLine(iStack_10);
}
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.