/* goodG2B() - use goodsource and badsink */ private void GoodG2B(HttpRequest req, HttpResponse resp) { string data; /* FIX: Set data to a fixed, non-null String */ data = "CWE690"; CWE690_NULL_Deref_From_Return__getParameter_Web_equals_54b.GoodG2BSink(data, req, resp); }
/* goodB2G() - use badsource and goodsink */ private void GoodB2G(HttpRequest req, HttpResponse resp) { string data; /* POTENTIAL FLAW: data may be set to null */ data = req.QueryString["CWE690"]; CWE690_NULL_Deref_From_Return__getParameter_Web_equals_54b.GoodB2GSink(data, req, resp); }
public override void Bad(HttpRequest req, HttpResponse resp) { string data; /* POTENTIAL FLAW: data may be set to null */ data = req.QueryString["CWE690"]; CWE690_NULL_Deref_From_Return__getParameter_Web_equals_54b.BadSink(data, req, resp); }