func: void CWE122_Heap_Based_Buffer_Overflow__sizeof_double_67_bad() double * data ; data = ( double * ) malloc ( sizeof ( data ) ); * data = 1.7E300; myStruct . structFirst = data; CWE122_Heap_Based_Buffer_Overflow__sizeof_double_67b_badSink ( myStruct ); void CWE122_Heap_Based_Buffer_Overflow__sizeof_double_67b_badSink(CWE122_Heap_Based_Buffer_Overflow__sizeof_double_67_structType myStruct) double * data = myStruct . structFirst ; printDoubleLine ( * data ); void printDoubleLine(double doubleNumber) printf ( "%g\n" , doubleNumber ); free ( data ); 