/* goodG2B() - use goodsource and badsink */ private static void GoodG2B() { /* FIX: hardcode data to non-null */ data = Int32.Parse("5"); CWE476_NULL_Pointer_Dereference__Integer_68b.GoodG2BSink(); }
/* goodB2G() - use badsource and goodsink */ private static void GoodB2G() { /* POTENTIAL FLAW: data is null */ data = null; CWE476_NULL_Pointer_Dereference__Integer_68b.GoodB2GSink(); }
public override void Bad() { /* POTENTIAL FLAW: data is null */ data = null; CWE476_NULL_Pointer_Dereference__Integer_68b.BadSink(); }