text: /* TEMPLATE GENERATED TESTCASE FILE
  Filename: CWE464_Insertion_Of_Data_Structure_Sentinel__basic_54d.c
  Label Definition File: CWE464_Insertion_Of_Data_Structure_Sentinel__basic.label.xml
  Template File: sources-sink-54d.tmpl.c
  */
  /*
   * @description
   * CWE: 464 Insertion of Data Structure Sentinel
   * BadSource:  Read in data from the console and convert to an int
   * GoodSource: Set data to a fixed char
   * Sink:
   *    BadSink : Place data into and print an array
   * Flow Variant: 54 Data flow: data passed as an argument from one function through three others to a fifth; all five functions are in different source files
   *
   * */
  
  #include "std_testcase.h"
  
  /* all the sinks are the same, we just want to know where the hit originated if a tool flags one */
  
  #ifndef OMITBAD
  
  /* bad function declaration */
  void CWE464_Insertion_Of_Data_Structure_Sentinel__basic_54e_bad_sink(char data);
  
  void CWE464_Insertion_Of_Data_Structure_Sentinel__basic_54d_bad_sink(char data)
  {
      CWE464_Insertion_Of_Data_Structure_Sentinel__basic_54e_bad_sink(data);
  }
  
  #endif /* OMITBAD */
  
  #ifndef OMITGOOD
  
  /* good function declaration */
  void CWE464_Insertion_Of_Data_Structure_Sentinel__basic_54e_goodG2B_sink(char data);
  
  /* goodG2B uses the GoodSource with the BadSink */
  void CWE464_Insertion_Of_Data_Structure_Sentinel__basic_54d_goodG2B_sink(char data)
  {
      CWE464_Insertion_Of_Data_Structure_Sentinel__basic_54e_goodG2B_sink(data);
  }
  
  #endif /* OMITGOOD */
  