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
45,400
void CWE190_Integer_Overflow__int_fgets_add_03_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83120/CWE190_Integer_Overflow__int_fgets_add_03.c
CWE190_Integer_Overflow__int_fgets_add_03_good
void CWE190_Integer_Overflow__int_fgets_add_03_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,401
void CWE190_Integer_Overflow__int_fgets_add_04_bad() { int data; /* Initialize data */ data = 0; if(STATIC_CONST_TRUE) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } if(STATIC_CONST_TRUE) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83121/CWE190_Integer_Overflow__int_fgets_add_04.c
CWE190_Integer_Overflow__int_fgets_add_04_bad
void CWE190_Integer_Overflow__int_fgets_add_04_bad(void) { long lVar1; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar1 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_0040121c); } else { iStack_c = func_0x00400b10(&uStack_1e); } iStack_10 = iStack_c + 1; printIntLine(iStack_10); return; }
['gcc']
45,402
void CWE190_Integer_Overflow__int_fgets_add_04_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83121/CWE190_Integer_Overflow__int_fgets_add_04.c
CWE190_Integer_Overflow__int_fgets_add_04_good
void CWE190_Integer_Overflow__int_fgets_add_04_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,403
void CWE190_Integer_Overflow__int_fgets_add_05_bad() { int data; /* Initialize data */ data = 0; if(staticTrue) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } if(staticTrue) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83122/CWE190_Integer_Overflow__int_fgets_add_05.c
CWE190_Integer_Overflow__int_fgets_add_05_bad
void CWE190_Integer_Overflow__int_fgets_add_05_bad(void) { long lVar1; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; if (staticTrue != 0) { uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar1 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401214); } else { iStack_c = func_0x00400b10(&uStack_1e); } } if (staticTrue != 0) { iStack_10 = iStack_c + 1; printIntLine(iStack_10); } return; }
['gcc']
45,404
void CWE190_Integer_Overflow__int_fgets_add_05_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83122/CWE190_Integer_Overflow__int_fgets_add_05.c
CWE190_Integer_Overflow__int_fgets_add_05_good
void CWE190_Integer_Overflow__int_fgets_add_05_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,405
void CWE190_Integer_Overflow__int_fgets_add_06_bad() { int data; /* Initialize data */ data = 0; if(STATIC_CONST_FIVE==5) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } if(STATIC_CONST_FIVE==5) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83123/CWE190_Integer_Overflow__int_fgets_add_06.c
CWE190_Integer_Overflow__int_fgets_add_06_bad
void CWE190_Integer_Overflow__int_fgets_add_06_bad(void) { long lVar1; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar1 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401218); } else { iStack_c = func_0x00400b10(&uStack_1e); } iStack_10 = iStack_c + 1; printIntLine(iStack_10); return; }
['gcc']
45,406
void CWE190_Integer_Overflow__int_fgets_add_06_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83123/CWE190_Integer_Overflow__int_fgets_add_06.c
CWE190_Integer_Overflow__int_fgets_add_06_good
void CWE190_Integer_Overflow__int_fgets_add_06_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,407
void CWE190_Integer_Overflow__int_fgets_add_07_bad() { int data; /* Initialize data */ data = 0; if(staticFive==5) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } if(staticFive==5) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83124/CWE190_Integer_Overflow__int_fgets_add_07.c
CWE190_Integer_Overflow__int_fgets_add_07_bad
void CWE190_Integer_Overflow__int_fgets_add_07_bad(void) { long lVar1; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; if (staticFive == 5) { uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar1 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401214); } else { iStack_c = func_0x00400b10(&uStack_1e); } } if (staticFive == 5) { iStack_10 = iStack_c + 1; printIntLine(iStack_10); } return; }
['gcc']
45,408
void CWE190_Integer_Overflow__int_fgets_add_07_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83124/CWE190_Integer_Overflow__int_fgets_add_07.c
CWE190_Integer_Overflow__int_fgets_add_07_good
void CWE190_Integer_Overflow__int_fgets_add_07_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,409
void CWE190_Integer_Overflow__int_fgets_add_08_bad() { int data; /* Initialize data */ data = 0; if(staticReturnsTrue()) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } if(staticReturnsTrue()) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83125/CWE190_Integer_Overflow__int_fgets_add_08.c
CWE190_Integer_Overflow__int_fgets_add_08_bad
void CWE190_Integer_Overflow__int_fgets_add_08_bad(void) { int iVar1; long lVar2; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar2 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar2 == 0) { printLine(&UNK_00401234); } else { iStack_c = func_0x00400b10(&uStack_1e); } } iVar1 = staticReturnsTrue(); if (iVar1 != 0) { iStack_10 = iStack_c + 1; printIntLine(iStack_10); } return; }
['gcc']
45,410
void CWE190_Integer_Overflow__int_fgets_add_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83125/CWE190_Integer_Overflow__int_fgets_add_08.c
CWE190_Integer_Overflow__int_fgets_add_08_good
void CWE190_Integer_Overflow__int_fgets_add_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,411
void CWE190_Integer_Overflow__int_fgets_add_09_bad() { int data; /* Initialize data */ data = 0; if(GLOBAL_CONST_TRUE) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } if(GLOBAL_CONST_TRUE) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83126/CWE190_Integer_Overflow__int_fgets_add_09.c
CWE190_Integer_Overflow__int_fgets_add_09_bad
void CWE190_Integer_Overflow__int_fgets_add_09_bad(void) { long lVar1; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; if (GLOBAL_CONST_TRUE != 0) { uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar1 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401214); } else { iStack_c = func_0x00400b10(&uStack_1e); } } if (GLOBAL_CONST_TRUE != 0) { iStack_10 = iStack_c + 1; printIntLine(iStack_10); } return; }
['gcc']
45,412
void CWE190_Integer_Overflow__int_fgets_add_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83126/CWE190_Integer_Overflow__int_fgets_add_09.c
CWE190_Integer_Overflow__int_fgets_add_09_good
void CWE190_Integer_Overflow__int_fgets_add_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,413
void CWE190_Integer_Overflow__int_fgets_add_10_bad() { int data; /* Initialize data */ data = 0; if(globalTrue) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } if(globalTrue) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83127/CWE190_Integer_Overflow__int_fgets_add_10.c
CWE190_Integer_Overflow__int_fgets_add_10_bad
void CWE190_Integer_Overflow__int_fgets_add_10_bad(void) { long lVar1; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; if (globalTrue != 0) { uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar1 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401214); } else { iStack_c = func_0x00400b10(&uStack_1e); } } if (globalTrue != 0) { iStack_10 = iStack_c + 1; printIntLine(iStack_10); } return; }
['gcc']
45,414
void CWE190_Integer_Overflow__int_fgets_add_10_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83127/CWE190_Integer_Overflow__int_fgets_add_10.c
CWE190_Integer_Overflow__int_fgets_add_10_good
void CWE190_Integer_Overflow__int_fgets_add_10_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,415
void CWE190_Integer_Overflow__int_fgets_add_11_bad() { int data; /* Initialize data */ data = 0; if(globalReturnsTrue()) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } if(globalReturnsTrue()) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83128/CWE190_Integer_Overflow__int_fgets_add_11.c
CWE190_Integer_Overflow__int_fgets_add_11_bad
void CWE190_Integer_Overflow__int_fgets_add_11_bad(void) { int iVar1; long lVar2; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar2 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar2 == 0) { printLine(&UNK_00401224); } else { iStack_c = func_0x00400b10(&uStack_1e); } } iVar1 = globalReturnsTrue(); if (iVar1 != 0) { iStack_10 = iStack_c + 1; printIntLine(iStack_10); } return; }
['gcc']
45,416
void CWE190_Integer_Overflow__int_fgets_add_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83128/CWE190_Integer_Overflow__int_fgets_add_11.c
CWE190_Integer_Overflow__int_fgets_add_11_good
void CWE190_Integer_Overflow__int_fgets_add_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,417
void CWE190_Integer_Overflow__int_fgets_add_12_bad() { int data; /* Initialize data */ data = 0; if(globalReturnsTrueOrFalse()) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } else { /* FIX: Use a small, non-zero value that will not cause an integer overflow in the sinks */ data = 2; } if(globalReturnsTrueOrFalse()) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } else { /* FIX: Add a check to prevent an overflow from occurring */ if (data < INT_MAX) { int result = data + 1; printIntLine(result); } else { printLine("data value is too large to perform arithmetic safely."); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* FIX: Use a small, non-zero value that will not cause an integer overflow in the sinks */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */', '/* FIX: Add a check to prevent an overflow from occurring */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83129/CWE190_Integer_Overflow__int_fgets_add_12.c
CWE190_Integer_Overflow__int_fgets_add_12_bad
void CWE190_Integer_Overflow__int_fgets_add_12_bad(void) { int iVar1; long lVar2; undefined8 uStack_22; undefined4 uStack_1a; undefined2 uStack_16; int iStack_14; int iStack_10; int iStack_c; iStack_c = 0; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { iStack_c = 2; } else { uStack_22 = 0; uStack_1a = 0; uStack_16 = 0; lVar2 = func_0x00400ab0(&uStack_22,0xe,stdin); if (lVar2 == 0) { printLine(&UNK_00401258); } else { iStack_c = func_0x00400b10(&uStack_22); } } iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { if (iStack_c == 0x7fffffff) { printLine(&UNK_00401268); } else { iStack_10 = iStack_c + 1; printIntLine(iStack_10); } } else { iStack_14 = iStack_c + 1; printIntLine(iStack_14); } return; }
['gcc']
45,418
void CWE190_Integer_Overflow__int_fgets_add_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83129/CWE190_Integer_Overflow__int_fgets_add_12.c
CWE190_Integer_Overflow__int_fgets_add_12_good
void CWE190_Integer_Overflow__int_fgets_add_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
45,419
void CWE190_Integer_Overflow__int_fgets_add_13_bad() { int data; /* Initialize data */ data = 0; if(GLOBAL_CONST_FIVE==5) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } if(GLOBAL_CONST_FIVE==5) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83130/CWE190_Integer_Overflow__int_fgets_add_13.c
CWE190_Integer_Overflow__int_fgets_add_13_bad
void CWE190_Integer_Overflow__int_fgets_add_13_bad(void) { long lVar1; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; if (GLOBAL_CONST_FIVE == 5) { uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar1 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401214); } else { iStack_c = func_0x00400b10(&uStack_1e); } } if (GLOBAL_CONST_FIVE == 5) { iStack_10 = iStack_c + 1; printIntLine(iStack_10); } return; }
['gcc']
45,420
void CWE190_Integer_Overflow__int_fgets_add_13_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83130/CWE190_Integer_Overflow__int_fgets_add_13.c
CWE190_Integer_Overflow__int_fgets_add_13_good
void CWE190_Integer_Overflow__int_fgets_add_13_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,421
void CWE190_Integer_Overflow__int_fgets_add_14_bad() { int data; /* Initialize data */ data = 0; if(globalFive==5) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } if(globalFive==5) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83131/CWE190_Integer_Overflow__int_fgets_add_14.c
CWE190_Integer_Overflow__int_fgets_add_14_bad
void CWE190_Integer_Overflow__int_fgets_add_14_bad(void) { long lVar1; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; if (globalFive == 5) { uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar1 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401214); } else { iStack_c = func_0x00400b10(&uStack_1e); } } if (globalFive == 5) { iStack_10 = iStack_c + 1; printIntLine(iStack_10); } return; }
['gcc']
45,422
void CWE190_Integer_Overflow__int_fgets_add_14_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83131/CWE190_Integer_Overflow__int_fgets_add_14.c
CWE190_Integer_Overflow__int_fgets_add_14_good
void CWE190_Integer_Overflow__int_fgets_add_14_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,423
void CWE190_Integer_Overflow__int_fgets_add_15_bad() { int data; /* Initialize data */ data = 0; switch(6) { case 6: { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } switch(7) { case 7: { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83132/CWE190_Integer_Overflow__int_fgets_add_15.c
CWE190_Integer_Overflow__int_fgets_add_15_bad
void CWE190_Integer_Overflow__int_fgets_add_15_bad(void) { long lVar1; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar1 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401204); } else { iStack_c = func_0x00400b10(&uStack_1e); } iStack_10 = iStack_c + 1; printIntLine(iStack_10); return; }
['gcc']
45,424
void CWE190_Integer_Overflow__int_fgets_add_15_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83132/CWE190_Integer_Overflow__int_fgets_add_15.c
CWE190_Integer_Overflow__int_fgets_add_15_good
void CWE190_Integer_Overflow__int_fgets_add_15_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
45,425
void CWE190_Integer_Overflow__int_fgets_add_16_bad() { int data; /* Initialize data */ data = 0; while(1) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } break; } while(1) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } break; } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83133/CWE190_Integer_Overflow__int_fgets_add_16.c
CWE190_Integer_Overflow__int_fgets_add_16_bad
void CWE190_Integer_Overflow__int_fgets_add_16_bad(void) { long lVar1; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; int iStack_10; int iStack_c; iStack_c = 0; uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar1 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401204); } else { iStack_c = func_0x00400b10(&uStack_1e); } iStack_10 = iStack_c + 1; printIntLine(iStack_10); return; }
['gcc']
45,426
void CWE190_Integer_Overflow__int_fgets_add_16_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83133/CWE190_Integer_Overflow__int_fgets_add_16.c
CWE190_Integer_Overflow__int_fgets_add_16_good
void CWE190_Integer_Overflow__int_fgets_add_16_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
45,427
void CWE190_Integer_Overflow__int_fgets_add_17_bad() { int i,j; int data; /* Initialize data */ data = 0; for(i = 0; i < 1; i++) { { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } } for(j = 0; j < 1; j++) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83134/CWE190_Integer_Overflow__int_fgets_add_17.c
CWE190_Integer_Overflow__int_fgets_add_17_bad
void CWE190_Integer_Overflow__int_fgets_add_17_bad(void) { long lVar1; undefined8 uStack_26; undefined4 uStack_1e; undefined2 uStack_1a; int iStack_18; int iStack_14; int iStack_10; int iStack_c; iStack_14 = 0; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { uStack_26 = 0; uStack_1e = 0; uStack_1a = 0; lVar1 = func_0x00400ab0(&uStack_26,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401224); } else { iStack_14 = func_0x00400b10(&uStack_26); } } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { iStack_18 = iStack_14 + 1; printIntLine(iStack_18); } return; }
['gcc']
45,428
void CWE190_Integer_Overflow__int_fgets_add_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83134/CWE190_Integer_Overflow__int_fgets_add_17.c
CWE190_Integer_Overflow__int_fgets_add_17_good
void CWE190_Integer_Overflow__int_fgets_add_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
45,429
void CWE190_Integer_Overflow__int_fgets_add_21_bad() { int data; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } badStatic = 1; /* true */ badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* true */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83136/CWE190_Integer_Overflow__int_fgets_add_21.c
CWE190_Integer_Overflow__int_fgets_add_21_bad
void CWE190_Integer_Overflow__int_fgets_add_21_bad(void) { long lVar1; undefined8 uStack_1a; undefined4 uStack_12; undefined2 uStack_e; undefined4 uStack_c; uStack_c = 0; uStack_1a = 0; uStack_12 = 0; uStack_e = 0; lVar1 = func_0x00400ab0(&uStack_1a,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401234); } else { uStack_c = func_0x00400b10(&uStack_1a); } badStatic = 1; badSink(uStack_c); return; }
['gcc']
45,430
void CWE190_Integer_Overflow__int_fgets_add_21_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83136/CWE190_Integer_Overflow__int_fgets_add_21.c
CWE190_Integer_Overflow__int_fgets_add_21_good
void CWE190_Integer_Overflow__int_fgets_add_21_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
45,431
void CWE190_Integer_Overflow__int_fgets_add_22_bad() { int data; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } CWE190_Integer_Overflow__int_fgets_add_22_badGlobal = 1; /* true */ CWE190_Integer_Overflow__int_fgets_add_22_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* true */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83137/CWE190_Integer_Overflow__int_fgets_add_22a.c
CWE190_Integer_Overflow__int_fgets_add_22_bad
void CWE190_Integer_Overflow__int_fgets_add_22_bad(void) { long lVar1; undefined8 uStack_1a; undefined4 uStack_12; undefined2 uStack_e; undefined4 uStack_c; uStack_c = 0; uStack_1a = 0; uStack_12 = 0; uStack_e = 0; lVar1 = func_0x00400ab0(&uStack_1a,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401234); } else { uStack_c = func_0x00400b10(&uStack_1a); } CWE190_Integer_Overflow__int_fgets_add_22_badGlobal = 1; CWE190_Integer_Overflow__int_fgets_add_22_badSink(uStack_c); return; }
['gcc']
45,432
void CWE190_Integer_Overflow__int_fgets_add_22_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83137/CWE190_Integer_Overflow__int_fgets_add_22a.c
CWE190_Integer_Overflow__int_fgets_add_22_good
void CWE190_Integer_Overflow__int_fgets_add_22_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
45,433
void CWE190_Integer_Overflow__int_fgets_add_22_badSink(int data) { if(CWE190_Integer_Overflow__int_fgets_add_22_badGlobal) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83137/CWE190_Integer_Overflow__int_fgets_add_22b.c
CWE190_Integer_Overflow__int_fgets_add_22_badSink
void CWE190_Integer_Overflow__int_fgets_add_22_badSink(int param_1) { if (CWE190_Integer_Overflow__int_fgets_add_22_badGlobal != 0) { printIntLine(param_1 + 1); } return; }
['gcc']
45,434
void CWE190_Integer_Overflow__int_fgets_add_22_goodB2G1Sink(int data) { if(CWE190_Integer_Overflow__int_fgets_add_22_goodB2G1Global) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Add a check to prevent an overflow from occurring */ if (data < INT_MAX) { int result = data + 1; printIntLine(result); } else { printLine("data value is too large to perform arithmetic safely."); } } }
['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Add a check to prevent an overflow from occurring */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83137/CWE190_Integer_Overflow__int_fgets_add_22b.c
CWE190_Integer_Overflow__int_fgets_add_22_goodB2G1Sink
void CWE190_Integer_Overflow__int_fgets_add_22_goodB2G1Sink(int param_1) { if (CWE190_Integer_Overflow__int_fgets_add_22_goodB2G1Global == 0) { if (param_1 == 0x7fffffff) { printLine(&UNK_004013a0); } else { printIntLine(param_1 + 1); } } else { printLine(&UNK_00401388); } return; }
['gcc']
45,435
void CWE190_Integer_Overflow__int_fgets_add_22_goodB2G2Sink(int data) { if(CWE190_Integer_Overflow__int_fgets_add_22_goodB2G2Global) { /* FIX: Add a check to prevent an overflow from occurring */ if (data < INT_MAX) { int result = data + 1; printIntLine(result); } else { printLine("data value is too large to perform arithmetic safely."); } } }
['/* FIX: Add a check to prevent an overflow from occurring */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83137/CWE190_Integer_Overflow__int_fgets_add_22b.c
CWE190_Integer_Overflow__int_fgets_add_22_goodB2G2Sink
void CWE190_Integer_Overflow__int_fgets_add_22_goodB2G2Sink(int param_1) { if (CWE190_Integer_Overflow__int_fgets_add_22_goodB2G2Global != 0) { if (param_1 == 0x7fffffff) { printLine(&UNK_004013a0); } else { printIntLine(param_1 + 1); } } return; }
['gcc']
45,436
void CWE190_Integer_Overflow__int_fgets_add_22_goodG2BSink(int data) { if(CWE190_Integer_Overflow__int_fgets_add_22_goodG2BGlobal) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83137/CWE190_Integer_Overflow__int_fgets_add_22b.c
CWE190_Integer_Overflow__int_fgets_add_22_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_22_goodG2BSink(int param_1) { if (CWE190_Integer_Overflow__int_fgets_add_22_goodG2BGlobal != 0) { printIntLine(param_1 + 1); } return; }
['gcc']
45,437
void CWE190_Integer_Overflow__int_fgets_add_31_bad() { int data; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } { int dataCopy = data; int data = dataCopy; { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83138/CWE190_Integer_Overflow__int_fgets_add_31.c
CWE190_Integer_Overflow__int_fgets_add_31_bad
void CWE190_Integer_Overflow__int_fgets_add_31_bad(void) { long lVar1; undefined8 uStack_26; undefined4 uStack_1e; undefined2 uStack_1a; int iStack_18; int iStack_14; int iStack_10; int iStack_c; iStack_c = 0; uStack_26 = 0; uStack_1e = 0; uStack_1a = 0; lVar1 = func_0x00400ab0(&uStack_26,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401214); } else { iStack_c = func_0x00400b10(&uStack_26); } iStack_10 = iStack_c; iStack_14 = iStack_c; iStack_18 = iStack_c + 1; printIntLine(iStack_18); return; }
['gcc']
45,438
void CWE190_Integer_Overflow__int_fgets_add_31_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83138/CWE190_Integer_Overflow__int_fgets_add_31.c
CWE190_Integer_Overflow__int_fgets_add_31_good
void CWE190_Integer_Overflow__int_fgets_add_31_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
45,439
void CWE190_Integer_Overflow__int_fgets_add_32_bad() { int data; int *dataPtr1 = &data; int *dataPtr2 = &data; /* Initialize data */ data = 0; { int data = *dataPtr1; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } *dataPtr1 = data; } { int data = *dataPtr2; { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83139/CWE190_Integer_Overflow__int_fgets_add_32.c
CWE190_Integer_Overflow__int_fgets_add_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE190_Integer_Overflow__int_fgets_add_32_bad(void) { long lVar1; undefined8 uStack_3a; undefined4 uStack_32; undefined2 uStack_2e; int iStack_2c; int iStack_28; int iStack_24; int *piStack_20; int *piStack_18; int iStack_c; piStack_18 = &iStack_2c; piStack_20 = &iStack_2c; iStack_2c = 0; iStack_c = 0; uStack_3a = 0; uStack_32 = 0; uStack_2e = 0; lVar1 = func_0x00400ab0(&uStack_3a,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401234); } else { iStack_c = func_0x00400b10(&uStack_3a); } *piStack_18 = iStack_c; iStack_24 = *piStack_20; iStack_28 = iStack_24 + 1; printIntLine(iStack_28); return; }
['gcc']
45,440
void CWE190_Integer_Overflow__int_fgets_add_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83139/CWE190_Integer_Overflow__int_fgets_add_32.c
CWE190_Integer_Overflow__int_fgets_add_32_good
void CWE190_Integer_Overflow__int_fgets_add_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
45,441
void CWE190_Integer_Overflow__int_fgets_add_34_bad() { int data; CWE190_Integer_Overflow__int_fgets_add_34_unionType myUnion; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } myUnion.unionFirst = data; { int data = myUnion.unionSecond; { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83141/CWE190_Integer_Overflow__int_fgets_add_34.c
CWE190_Integer_Overflow__int_fgets_add_34_bad
void CWE190_Integer_Overflow__int_fgets_add_34_bad(void) { long lVar1; undefined8 uStack_26; undefined4 uStack_1e; undefined2 uStack_1a; int iStack_18; int iStack_14; int iStack_10; int iStack_c; iStack_c = 0; uStack_26 = 0; uStack_1e = 0; uStack_1a = 0; lVar1 = func_0x00400ab0(&uStack_26,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401214); } else { iStack_c = func_0x00400b10(&uStack_26); } iStack_18 = iStack_c; iStack_10 = iStack_c; iStack_14 = iStack_c + 1; printIntLine(iStack_14); return; }
['gcc']
45,442
void CWE190_Integer_Overflow__int_fgets_add_34_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83141/CWE190_Integer_Overflow__int_fgets_add_34.c
CWE190_Integer_Overflow__int_fgets_add_34_good
void CWE190_Integer_Overflow__int_fgets_add_34_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
45,443
void CWE190_Integer_Overflow__int_fgets_add_41_bad() { int data; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83142/CWE190_Integer_Overflow__int_fgets_add_41.c
CWE190_Integer_Overflow__int_fgets_add_41_bad
void CWE190_Integer_Overflow__int_fgets_add_41_bad(void) { long lVar1; undefined8 uStack_1a; undefined4 uStack_12; undefined2 uStack_e; undefined4 uStack_c; uStack_c = 0; uStack_1a = 0; uStack_12 = 0; uStack_e = 0; lVar1 = func_0x00400ab0(&uStack_1a,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401214); } else { uStack_c = func_0x00400b10(&uStack_1a); } badSink(uStack_c); return; }
['gcc']
45,444
void CWE190_Integer_Overflow__int_fgets_add_41_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83142/CWE190_Integer_Overflow__int_fgets_add_41.c
CWE190_Integer_Overflow__int_fgets_add_41_good
void CWE190_Integer_Overflow__int_fgets_add_41_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
45,445
void CWE190_Integer_Overflow__int_fgets_add_51_bad() { int data; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } CWE190_Integer_Overflow__int_fgets_add_51b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83147/CWE190_Integer_Overflow__int_fgets_add_51a.c
CWE190_Integer_Overflow__int_fgets_add_51_bad
void CWE190_Integer_Overflow__int_fgets_add_51_bad(void) { long lVar1; undefined8 uStack_1a; undefined4 uStack_12; undefined2 uStack_e; undefined4 uStack_c; uStack_c = 0; uStack_1a = 0; uStack_12 = 0; uStack_e = 0; lVar1 = func_0x00400ab0(&uStack_1a,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401214); } else { uStack_c = func_0x00400b10(&uStack_1a); } CWE190_Integer_Overflow__int_fgets_add_51b_badSink(uStack_c); return; }
['gcc']
45,446
void CWE190_Integer_Overflow__int_fgets_add_51_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83147/CWE190_Integer_Overflow__int_fgets_add_51a.c
CWE190_Integer_Overflow__int_fgets_add_51_good
void CWE190_Integer_Overflow__int_fgets_add_51_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
45,447
void CWE190_Integer_Overflow__int_fgets_add_51b_badSink(int data) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83147/CWE190_Integer_Overflow__int_fgets_add_51b.c
CWE190_Integer_Overflow__int_fgets_add_51b_badSink
void CWE190_Integer_Overflow__int_fgets_add_51b_badSink(int param_1) { printIntLine(param_1 + 1); return; }
['gcc']
45,448
void CWE190_Integer_Overflow__int_fgets_add_51b_goodG2BSink(int data) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83147/CWE190_Integer_Overflow__int_fgets_add_51b.c
CWE190_Integer_Overflow__int_fgets_add_51b_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_51b_goodG2BSink(int param_1) { printIntLine(param_1 + 1); return; }
['gcc']
45,449
void CWE190_Integer_Overflow__int_fgets_add_51b_goodB2GSink(int data) { /* FIX: Add a check to prevent an overflow from occurring */ if (data < INT_MAX) { int result = data + 1; printIntLine(result); } else { printLine("data value is too large to perform arithmetic safely."); } }
['/* FIX: Add a check to prevent an overflow from occurring */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83147/CWE190_Integer_Overflow__int_fgets_add_51b.c
CWE190_Integer_Overflow__int_fgets_add_51b_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_51b_goodB2GSink(int param_1) { if (param_1 == 0x7fffffff) { printLine(&UNK_00401298); } else { printIntLine(param_1 + 1); } return; }
['gcc']
45,450
void CWE190_Integer_Overflow__int_fgets_add_52_bad() { int data; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } CWE190_Integer_Overflow__int_fgets_add_52b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83148/CWE190_Integer_Overflow__int_fgets_add_52a.c
CWE190_Integer_Overflow__int_fgets_add_52_bad
void CWE190_Integer_Overflow__int_fgets_add_52_bad(void) { long lVar1; undefined8 uStack_1a; undefined4 uStack_12; undefined2 uStack_e; undefined4 uStack_c; uStack_c = 0; uStack_1a = 0; uStack_12 = 0; uStack_e = 0; lVar1 = func_0x00400ab0(&uStack_1a,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401234); } else { uStack_c = func_0x00400b10(&uStack_1a); } CWE190_Integer_Overflow__int_fgets_add_52b_badSink(uStack_c); return; }
['gcc']
45,451
void CWE190_Integer_Overflow__int_fgets_add_52_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83148/CWE190_Integer_Overflow__int_fgets_add_52a.c
CWE190_Integer_Overflow__int_fgets_add_52_good
void CWE190_Integer_Overflow__int_fgets_add_52_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
45,452
void CWE190_Integer_Overflow__int_fgets_add_52b_badSink(int data) { CWE190_Integer_Overflow__int_fgets_add_52c_badSink(data); }
[]
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83148/CWE190_Integer_Overflow__int_fgets_add_52b.c
CWE190_Integer_Overflow__int_fgets_add_52b_badSink
void CWE190_Integer_Overflow__int_fgets_add_52b_badSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_52c_badSink(param_1); return; }
['gcc']
45,453
void CWE190_Integer_Overflow__int_fgets_add_52b_goodG2BSink(int data) { CWE190_Integer_Overflow__int_fgets_add_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83148/CWE190_Integer_Overflow__int_fgets_add_52b.c
CWE190_Integer_Overflow__int_fgets_add_52b_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_52b_goodG2BSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_52c_goodG2BSink(param_1); return; }
['gcc']
45,454
void CWE190_Integer_Overflow__int_fgets_add_52b_goodB2GSink(int data) { CWE190_Integer_Overflow__int_fgets_add_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83148/CWE190_Integer_Overflow__int_fgets_add_52b.c
CWE190_Integer_Overflow__int_fgets_add_52b_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_52b_goodB2GSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_52c_goodB2GSink(param_1); return; }
['gcc']
45,455
void CWE190_Integer_Overflow__int_fgets_add_52c_badSink(int data) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83148/CWE190_Integer_Overflow__int_fgets_add_52c.c
CWE190_Integer_Overflow__int_fgets_add_52c_badSink
void CWE190_Integer_Overflow__int_fgets_add_52c_badSink(int param_1) { printIntLine(param_1 + 1); return; }
['gcc']
45,456
void CWE190_Integer_Overflow__int_fgets_add_52c_goodG2BSink(int data) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83148/CWE190_Integer_Overflow__int_fgets_add_52c.c
CWE190_Integer_Overflow__int_fgets_add_52c_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_52c_goodG2BSink(int param_1) { printIntLine(param_1 + 1); return; }
['gcc']
45,457
void CWE190_Integer_Overflow__int_fgets_add_52c_goodB2GSink(int data) { /* FIX: Add a check to prevent an overflow from occurring */ if (data < INT_MAX) { int result = data + 1; printIntLine(result); } else { printLine("data value is too large to perform arithmetic safely."); } }
['/* FIX: Add a check to prevent an overflow from occurring */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83148/CWE190_Integer_Overflow__int_fgets_add_52c.c
CWE190_Integer_Overflow__int_fgets_add_52c_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_52c_goodB2GSink(int param_1) { if (param_1 == 0x7fffffff) { printLine(&UNK_004012c8); } else { printIntLine(param_1 + 1); } return; }
['gcc']
45,458
void CWE190_Integer_Overflow__int_fgets_add_53_bad() { int data; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } CWE190_Integer_Overflow__int_fgets_add_53b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83149/CWE190_Integer_Overflow__int_fgets_add_53a.c
CWE190_Integer_Overflow__int_fgets_add_53_bad
void CWE190_Integer_Overflow__int_fgets_add_53_bad(void) { long lVar1; undefined8 uStack_1a; undefined4 uStack_12; undefined2 uStack_e; undefined4 uStack_c; uStack_c = 0; uStack_1a = 0; uStack_12 = 0; uStack_e = 0; lVar1 = func_0x00400ab0(&uStack_1a,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401244); } else { uStack_c = func_0x00400b10(&uStack_1a); } CWE190_Integer_Overflow__int_fgets_add_53b_badSink(uStack_c); return; }
['gcc']
45,459
void CWE190_Integer_Overflow__int_fgets_add_53_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83149/CWE190_Integer_Overflow__int_fgets_add_53a.c
CWE190_Integer_Overflow__int_fgets_add_53_good
void CWE190_Integer_Overflow__int_fgets_add_53_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
45,460
void CWE190_Integer_Overflow__int_fgets_add_53b_badSink(int data) { CWE190_Integer_Overflow__int_fgets_add_53c_badSink(data); }
[]
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83149/CWE190_Integer_Overflow__int_fgets_add_53b.c
CWE190_Integer_Overflow__int_fgets_add_53b_badSink
void CWE190_Integer_Overflow__int_fgets_add_53b_badSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_53c_badSink(param_1); return; }
['gcc']
45,461
void CWE190_Integer_Overflow__int_fgets_add_53b_goodG2BSink(int data) { CWE190_Integer_Overflow__int_fgets_add_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83149/CWE190_Integer_Overflow__int_fgets_add_53b.c
CWE190_Integer_Overflow__int_fgets_add_53b_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_53b_goodG2BSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_53c_goodG2BSink(param_1); return; }
['gcc']
45,462
void CWE190_Integer_Overflow__int_fgets_add_53b_goodB2GSink(int data) { CWE190_Integer_Overflow__int_fgets_add_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83149/CWE190_Integer_Overflow__int_fgets_add_53b.c
CWE190_Integer_Overflow__int_fgets_add_53b_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_53b_goodB2GSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_53c_goodB2GSink(param_1); return; }
['gcc']
45,463
void CWE190_Integer_Overflow__int_fgets_add_53c_badSink(int data) { CWE190_Integer_Overflow__int_fgets_add_53d_badSink(data); }
[]
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83149/CWE190_Integer_Overflow__int_fgets_add_53c.c
CWE190_Integer_Overflow__int_fgets_add_53c_badSink
void CWE190_Integer_Overflow__int_fgets_add_53c_badSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_53d_badSink(param_1); return; }
['gcc']
45,464
void CWE190_Integer_Overflow__int_fgets_add_53c_goodG2BSink(int data) { CWE190_Integer_Overflow__int_fgets_add_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83149/CWE190_Integer_Overflow__int_fgets_add_53c.c
CWE190_Integer_Overflow__int_fgets_add_53c_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_53c_goodG2BSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_53d_goodG2BSink(param_1); return; }
['gcc']
45,465
void CWE190_Integer_Overflow__int_fgets_add_53c_goodB2GSink(int data) { CWE190_Integer_Overflow__int_fgets_add_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83149/CWE190_Integer_Overflow__int_fgets_add_53c.c
CWE190_Integer_Overflow__int_fgets_add_53c_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_53c_goodB2GSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_53d_goodB2GSink(param_1); return; }
['gcc']
45,466
void CWE190_Integer_Overflow__int_fgets_add_53d_badSink(int data) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83149/CWE190_Integer_Overflow__int_fgets_add_53d.c
CWE190_Integer_Overflow__int_fgets_add_53d_badSink
void CWE190_Integer_Overflow__int_fgets_add_53d_badSink(int param_1) { printIntLine(param_1 + 1); return; }
['gcc']
45,467
void CWE190_Integer_Overflow__int_fgets_add_53d_goodG2BSink(int data) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83149/CWE190_Integer_Overflow__int_fgets_add_53d.c
CWE190_Integer_Overflow__int_fgets_add_53d_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_53d_goodG2BSink(int param_1) { printIntLine(param_1 + 1); return; }
['gcc']
45,468
void CWE190_Integer_Overflow__int_fgets_add_53d_goodB2GSink(int data) { /* FIX: Add a check to prevent an overflow from occurring */ if (data < INT_MAX) { int result = data + 1; printIntLine(result); } else { printLine("data value is too large to perform arithmetic safely."); } }
['/* FIX: Add a check to prevent an overflow from occurring */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83149/CWE190_Integer_Overflow__int_fgets_add_53d.c
CWE190_Integer_Overflow__int_fgets_add_53d_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_53d_goodB2GSink(int param_1) { if (param_1 == 0x7fffffff) { printLine(&UNK_004012f8); } else { printIntLine(param_1 + 1); } return; }
['gcc']
45,469
void CWE190_Integer_Overflow__int_fgets_add_54_bad() { int data; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } CWE190_Integer_Overflow__int_fgets_add_54b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54a.c
CWE190_Integer_Overflow__int_fgets_add_54_bad
void CWE190_Integer_Overflow__int_fgets_add_54_bad(void) { long lVar1; undefined8 uStack_1a; undefined4 uStack_12; undefined2 uStack_e; undefined4 uStack_c; uStack_c = 0; uStack_1a = 0; uStack_12 = 0; uStack_e = 0; lVar1 = func_0x00400ab0(&uStack_1a,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401264); } else { uStack_c = func_0x00400b10(&uStack_1a); } CWE190_Integer_Overflow__int_fgets_add_54b_badSink(uStack_c); return; }
['gcc']
45,470
void CWE190_Integer_Overflow__int_fgets_add_54_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54a.c
CWE190_Integer_Overflow__int_fgets_add_54_good
void CWE190_Integer_Overflow__int_fgets_add_54_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
45,471
void CWE190_Integer_Overflow__int_fgets_add_54b_badSink(int data) { CWE190_Integer_Overflow__int_fgets_add_54c_badSink(data); }
[]
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54b.c
CWE190_Integer_Overflow__int_fgets_add_54b_badSink
void CWE190_Integer_Overflow__int_fgets_add_54b_badSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_54c_badSink(param_1); return; }
['gcc']
45,472
void CWE190_Integer_Overflow__int_fgets_add_54b_goodG2BSink(int data) { CWE190_Integer_Overflow__int_fgets_add_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54b.c
CWE190_Integer_Overflow__int_fgets_add_54b_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_54b_goodG2BSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_54c_goodG2BSink(param_1); return; }
['gcc']
45,473
void CWE190_Integer_Overflow__int_fgets_add_54b_goodB2GSink(int data) { CWE190_Integer_Overflow__int_fgets_add_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54b.c
CWE190_Integer_Overflow__int_fgets_add_54b_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_54b_goodB2GSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_54c_goodB2GSink(param_1); return; }
['gcc']
45,474
void CWE190_Integer_Overflow__int_fgets_add_54c_badSink(int data) { CWE190_Integer_Overflow__int_fgets_add_54d_badSink(data); }
[]
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54c.c
CWE190_Integer_Overflow__int_fgets_add_54c_badSink
void CWE190_Integer_Overflow__int_fgets_add_54c_badSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_54d_badSink(param_1); return; }
['gcc']
45,475
void CWE190_Integer_Overflow__int_fgets_add_54c_goodG2BSink(int data) { CWE190_Integer_Overflow__int_fgets_add_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54c.c
CWE190_Integer_Overflow__int_fgets_add_54c_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_54c_goodG2BSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_54d_goodG2BSink(param_1); return; }
['gcc']
45,476
void CWE190_Integer_Overflow__int_fgets_add_54c_goodB2GSink(int data) { CWE190_Integer_Overflow__int_fgets_add_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54c.c
CWE190_Integer_Overflow__int_fgets_add_54c_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_54c_goodB2GSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_54d_goodB2GSink(param_1); return; }
['gcc']
45,477
void CWE190_Integer_Overflow__int_fgets_add_54d_badSink(int data) { CWE190_Integer_Overflow__int_fgets_add_54e_badSink(data); }
[]
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54d.c
CWE190_Integer_Overflow__int_fgets_add_54d_badSink
void CWE190_Integer_Overflow__int_fgets_add_54d_badSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_54e_badSink(param_1); return; }
['gcc']
45,478
void CWE190_Integer_Overflow__int_fgets_add_54d_goodG2BSink(int data) { CWE190_Integer_Overflow__int_fgets_add_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54d.c
CWE190_Integer_Overflow__int_fgets_add_54d_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_54d_goodG2BSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_54e_goodG2BSink(param_1); return; }
['gcc']
45,479
void CWE190_Integer_Overflow__int_fgets_add_54d_goodB2GSink(int data) { CWE190_Integer_Overflow__int_fgets_add_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54d.c
CWE190_Integer_Overflow__int_fgets_add_54d_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_54d_goodB2GSink(undefined4 param_1) { CWE190_Integer_Overflow__int_fgets_add_54e_goodB2GSink(param_1); return; }
['gcc']
45,480
void CWE190_Integer_Overflow__int_fgets_add_54e_badSink(int data) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54e.c
CWE190_Integer_Overflow__int_fgets_add_54e_badSink
void CWE190_Integer_Overflow__int_fgets_add_54e_badSink(int param_1) { printIntLine(param_1 + 1); return; }
['gcc']
45,481
void CWE190_Integer_Overflow__int_fgets_add_54e_goodG2BSink(int data) { { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54e.c
CWE190_Integer_Overflow__int_fgets_add_54e_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_54e_goodG2BSink(int param_1) { printIntLine(param_1 + 1); return; }
['gcc']
45,482
void CWE190_Integer_Overflow__int_fgets_add_54e_goodB2GSink(int data) { /* FIX: Add a check to prevent an overflow from occurring */ if (data < INT_MAX) { int result = data + 1; printIntLine(result); } else { printLine("data value is too large to perform arithmetic safely."); } }
['/* FIX: Add a check to prevent an overflow from occurring */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83150/CWE190_Integer_Overflow__int_fgets_add_54e.c
CWE190_Integer_Overflow__int_fgets_add_54e_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_54e_goodB2GSink(int param_1) { if (param_1 == 0x7fffffff) { printLine(&UNK_00401328); } else { printIntLine(param_1 + 1); } return; }
['gcc']
45,483
void CWE190_Integer_Overflow__int_fgets_add_63_bad() { int data; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } CWE190_Integer_Overflow__int_fgets_add_63b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83153/CWE190_Integer_Overflow__int_fgets_add_63a.c
CWE190_Integer_Overflow__int_fgets_add_63_bad
void CWE190_Integer_Overflow__int_fgets_add_63_bad(void) { long lVar1; undefined8 uStack_1a; undefined4 uStack_12; undefined2 uStack_e; undefined4 uStack_c; uStack_c = 0; uStack_1a = 0; uStack_12 = 0; uStack_e = 0; lVar1 = func_0x00400ab0(&uStack_1a,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401224); } else { uStack_c = func_0x00400b10(&uStack_1a); } CWE190_Integer_Overflow__int_fgets_add_63b_badSink(&uStack_c); return; }
['gcc']
45,484
void CWE190_Integer_Overflow__int_fgets_add_63_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83153/CWE190_Integer_Overflow__int_fgets_add_63a.c
CWE190_Integer_Overflow__int_fgets_add_63_good
void CWE190_Integer_Overflow__int_fgets_add_63_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
45,485
void CWE190_Integer_Overflow__int_fgets_add_63b_badSink(int * dataPtr) { int data = *dataPtr; { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83153/CWE190_Integer_Overflow__int_fgets_add_63b.c
CWE190_Integer_Overflow__int_fgets_add_63b_badSink
void CWE190_Integer_Overflow__int_fgets_add_63b_badSink(int *param_1) { printIntLine(*param_1 + 1); return; }
['gcc']
45,486
void CWE190_Integer_Overflow__int_fgets_add_63b_goodG2BSink(int * dataPtr) { int data = *dataPtr; { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83153/CWE190_Integer_Overflow__int_fgets_add_63b.c
CWE190_Integer_Overflow__int_fgets_add_63b_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_63b_goodG2BSink(int *param_1) { printIntLine(*param_1 + 1); return; }
['gcc']
45,487
void CWE190_Integer_Overflow__int_fgets_add_63b_goodB2GSink(int * dataPtr) { int data = *dataPtr; /* FIX: Add a check to prevent an overflow from occurring */ if (data < INT_MAX) { int result = data + 1; printIntLine(result); } else { printLine("data value is too large to perform arithmetic safely."); } }
['/* FIX: Add a check to prevent an overflow from occurring */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83153/CWE190_Integer_Overflow__int_fgets_add_63b.c
CWE190_Integer_Overflow__int_fgets_add_63b_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_63b_goodB2GSink(int *param_1) { if (*param_1 == 0x7fffffff) { printLine(&UNK_004012a8); } else { printIntLine(*param_1 + 1); } return; }
['gcc']
45,488
void CWE190_Integer_Overflow__int_fgets_add_64_bad() { int data; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } CWE190_Integer_Overflow__int_fgets_add_64b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83154/CWE190_Integer_Overflow__int_fgets_add_64a.c
CWE190_Integer_Overflow__int_fgets_add_64_bad
void CWE190_Integer_Overflow__int_fgets_add_64_bad(void) { long lVar1; undefined8 uStack_1a; undefined4 uStack_12; undefined2 uStack_e; undefined4 uStack_c; uStack_c = 0; uStack_1a = 0; uStack_12 = 0; uStack_e = 0; lVar1 = func_0x00400ab0(&uStack_1a,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401234); } else { uStack_c = func_0x00400b10(&uStack_1a); } CWE190_Integer_Overflow__int_fgets_add_64b_badSink(&uStack_c); return; }
['gcc']
45,489
void CWE190_Integer_Overflow__int_fgets_add_64_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83154/CWE190_Integer_Overflow__int_fgets_add_64a.c
CWE190_Integer_Overflow__int_fgets_add_64_good
void CWE190_Integer_Overflow__int_fgets_add_64_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
45,490
void CWE190_Integer_Overflow__int_fgets_add_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * dataPtr = (int *)dataVoidPtr; /* dereference dataPtr into data */ int data = (*dataPtr); { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83154/CWE190_Integer_Overflow__int_fgets_add_64b.c
CWE190_Integer_Overflow__int_fgets_add_64b_badSink
void CWE190_Integer_Overflow__int_fgets_add_64b_badSink(int *param_1) { printIntLine(*param_1 + 1); return; }
['gcc']
45,491
void CWE190_Integer_Overflow__int_fgets_add_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * dataPtr = (int *)dataVoidPtr; /* dereference dataPtr into data */ int data = (*dataPtr); { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83154/CWE190_Integer_Overflow__int_fgets_add_64b.c
CWE190_Integer_Overflow__int_fgets_add_64b_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_64b_goodG2BSink(int *param_1) { printIntLine(*param_1 + 1); return; }
['gcc']
45,492
void CWE190_Integer_Overflow__int_fgets_add_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * dataPtr = (int *)dataVoidPtr; /* dereference dataPtr into data */ int data = (*dataPtr); /* FIX: Add a check to prevent an overflow from occurring */ if (data < INT_MAX) { int result = data + 1; printIntLine(result); } else { printLine("data value is too large to perform arithmetic safely."); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Add a check to prevent an overflow from occurring */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83154/CWE190_Integer_Overflow__int_fgets_add_64b.c
CWE190_Integer_Overflow__int_fgets_add_64b_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_64b_goodB2GSink(int *param_1) { if (*param_1 == 0x7fffffff) { printLine(&UNK_004012b8); } else { printIntLine(*param_1 + 1); } return; }
['gcc']
45,493
void CWE190_Integer_Overflow__int_fgets_add_66_bad() { int data; int dataArray[5]; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } /* put data in array */ dataArray[2] = data; CWE190_Integer_Overflow__int_fgets_add_66b_badSink(dataArray); }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */', '/* put data in array */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83156/CWE190_Integer_Overflow__int_fgets_add_66a.c
CWE190_Integer_Overflow__int_fgets_add_66_bad
void CWE190_Integer_Overflow__int_fgets_add_66_bad(void) { long lVar1; undefined8 uStack_36; undefined4 uStack_2e; undefined2 uStack_2a; undefined auStack_28 [8]; undefined4 uStack_20; undefined4 uStack_c; uStack_c = 0; uStack_36 = 0; uStack_2e = 0; uStack_2a = 0; lVar1 = func_0x00400ab0(&uStack_36,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401234); } else { uStack_c = func_0x00400b10(&uStack_36); } uStack_20 = uStack_c; CWE190_Integer_Overflow__int_fgets_add_66b_badSink(auStack_28); return; }
['gcc']
45,494
void CWE190_Integer_Overflow__int_fgets_add_66_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83156/CWE190_Integer_Overflow__int_fgets_add_66a.c
CWE190_Integer_Overflow__int_fgets_add_66_good
void CWE190_Integer_Overflow__int_fgets_add_66_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
45,495
void CWE190_Integer_Overflow__int_fgets_add_66b_badSink(int dataArray[]) { /* copy data out of dataArray */ int data = dataArray[2]; { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83156/CWE190_Integer_Overflow__int_fgets_add_66b.c
CWE190_Integer_Overflow__int_fgets_add_66b_badSink
void CWE190_Integer_Overflow__int_fgets_add_66b_badSink(long param_1) { printIntLine(*(int *)(param_1 + 8) + 1); return; }
['gcc']
45,496
void CWE190_Integer_Overflow__int_fgets_add_66b_goodG2BSink(int dataArray[]) { int data = dataArray[2]; { /* POTENTIAL FLAW: Adding 1 to data could cause an overflow */ int result = data + 1; printIntLine(result); } }
['/* POTENTIAL FLAW: Adding 1 to data could cause an overflow */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83156/CWE190_Integer_Overflow__int_fgets_add_66b.c
CWE190_Integer_Overflow__int_fgets_add_66b_goodG2BSink
void CWE190_Integer_Overflow__int_fgets_add_66b_goodG2BSink(long param_1) { printIntLine(*(int *)(param_1 + 8) + 1); return; }
['gcc']
45,497
void CWE190_Integer_Overflow__int_fgets_add_66b_goodB2GSink(int dataArray[]) { int data = dataArray[2]; /* FIX: Add a check to prevent an overflow from occurring */ if (data < INT_MAX) { int result = data + 1; printIntLine(result); } else { printLine("data value is too large to perform arithmetic safely."); } }
['/* FIX: Add a check to prevent an overflow from occurring */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83156/CWE190_Integer_Overflow__int_fgets_add_66b.c
CWE190_Integer_Overflow__int_fgets_add_66b_goodB2GSink
void CWE190_Integer_Overflow__int_fgets_add_66b_goodB2GSink(long param_1) { if (*(int *)(param_1 + 8) == 0x7fffffff) { printLine(&UNK_004012b8); } else { printIntLine(*(int *)(param_1 + 8) + 1); } return; }
['gcc']
45,498
void CWE190_Integer_Overflow__int_fgets_add_67_bad() { int data; CWE190_Integer_Overflow__int_fgets_add_67_structType myStruct; /* Initialize data */ data = 0; { char inputBuffer[CHAR_ARRAY_SIZE] = ""; /* POTENTIAL FLAW: Read data from the console using fgets() */ if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL) { /* Convert to int */ data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } myStruct.structFirst = data; CWE190_Integer_Overflow__int_fgets_add_67b_badSink(myStruct); }
['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fgets() */', '/* Convert to int */']
['CWE190']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83157/CWE190_Integer_Overflow__int_fgets_add_67a.c
CWE190_Integer_Overflow__int_fgets_add_67_bad
void CWE190_Integer_Overflow__int_fgets_add_67_bad(void) { long lVar1; undefined8 uStack_1e; undefined4 uStack_16; undefined2 uStack_12; undefined4 uStack_10; undefined4 uStack_c; uStack_c = 0; uStack_1e = 0; uStack_16 = 0; uStack_12 = 0; lVar1 = func_0x00400ab0(&uStack_1e,0xe,stdin); if (lVar1 == 0) { printLine(&UNK_00401224); } else { uStack_c = func_0x00400b10(&uStack_1e); } uStack_10 = uStack_c; CWE190_Integer_Overflow__int_fgets_add_67b_badSink(uStack_c); return; }
['gcc']
45,499
void CWE190_Integer_Overflow__int_fgets_add_67_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/83157/CWE190_Integer_Overflow__int_fgets_add_67a.c
CWE190_Integer_Overflow__int_fgets_add_67_good
void CWE190_Integer_Overflow__int_fgets_add_67_good(void) { goodG2B(); goodB2G(); return; }
['gcc']