text: /* TEMPLATE GENERATED TESTCASE FILE
  Filename: CWE690_NULL_Deref_From_Return__struct_malloc_53c.c
  Label Definition File: CWE690_NULL_Deref_From_Return.free.label.xml
  Template File: source-sinks-53c.tmpl.c
  */
  /*
   * @description
   * CWE: 690 Unchecked Return Value To NULL Pointer
   * BadSource: malloc Allocate data using malloc()
   * Sinks:
   *    GoodSink: Check to see if the data allocation failed and if not, use data
   *    BadSink : Don't check for NULL and use data
   * Flow Variant: 53 Data flow: data passed as an argument from one function through two others to a fourth; all four functions are in different source files
   *
   * */
  
  #include "std_testcase.h"
  
  #include <wchar.h>
  
  #ifndef OMITBAD
  
  /* bad function declaration */
  void CWE690_NULL_Deref_From_Return__struct_malloc_53d_badSink(twoIntsStruct * data);
  
  void CWE690_NULL_Deref_From_Return__struct_malloc_53c_badSink(twoIntsStruct * data)
  {
      CWE690_NULL_Deref_From_Return__struct_malloc_53d_badSink(data);
  }
  
  #endif /* OMITBAD */
  
  #ifndef OMITGOOD
  
  /* goodB2G uses the BadSource with the GoodSink */
  void CWE690_NULL_Deref_From_Return__struct_malloc_53d_goodB2GSink(twoIntsStruct * data);
  
  void CWE690_NULL_Deref_From_Return__struct_malloc_53c_goodB2GSink(twoIntsStruct * data)
  {
      CWE690_NULL_Deref_From_Return__struct_malloc_53d_goodB2GSink(data);
  }
  
  #endif /* OMITGOOD */
  