text: /* TEMPLATE GENERATED TESTCASE FILE
  Filename: CWE590_Free_Memory_Not_on_Heap__free_long_static_81.h
  Label Definition File: CWE590_Free_Memory_Not_on_Heap__free.label.xml
  Template File: sources-sink-81.tmpl.h
  */
  /*
   * @description
   * CWE: 590 Free Memory Not on Heap
   * BadSource: static Data buffer is declared static on the stack
   * GoodSource: Allocate memory on the heap
   * Sinks:
   *    BadSink : Print then free data
   * Flow Variant: 81 Data flow: data passed in a parameter to an virtual method called via a reference
   *
   * */
  
  #include "std_testcase.h"
  
  #include <wchar.h>
  
  namespace CWE590_Free_Memory_Not_on_Heap__free_long_static_81
  {
  
  class CWE590_Free_Memory_Not_on_Heap__free_long_static_81_base
  {
  public:
      /* pure virtual function */
      virtual void action(long * data) const = 0;
  };
  
  #ifndef OMITBAD
  
  class CWE590_Free_Memory_Not_on_Heap__free_long_static_81_bad : public CWE590_Free_Memory_Not_on_Heap__free_long_static_81_base
  {
  public:
      void action(long * data) const;
  };
  
  #endif /* OMITBAD */
  
  #ifndef OMITGOOD
  
  class CWE590_Free_Memory_Not_on_Heap__free_long_static_81_goodG2B : public CWE590_Free_Memory_Not_on_Heap__free_long_static_81_base
  {
  public:
      void action(long * data) const;
  };
  
  #endif /* OMITGOOD */
  
  }
  