func: void CWE122_Heap_Based_Buffer_Overflow__c_CWE129_fgets_67_bad() char inputBuffer [ CHAR_ARRAY_SIZE ] = "" ; if ( fgets ( inputBuffer , CHAR_ARRAY_SIZE , stdin ) != NULL )  data = atoi ( inputBuffer ); myStruct . structFirst = data; CWE122_Heap_Based_Buffer_Overflow__c_CWE129_fgets_67b_badSink ( myStruct ); void CWE122_Heap_Based_Buffer_Overflow__c_CWE129_fgets_67b_badSink(CWE122_Heap_Based_Buffer_Overflow__c_CWE129_fgets_67_structType myStruct) int data = myStruct . structFirst ; if ( data >= 0 )  buffer [ data ] = 1; printIntLine ( buffer [ i ] ); void printIntLine (int intNumber) printf ( "%d\n" , intNumber ); free ( buffer ); 