/* goodG2B() - use goodsource and badsink */ private static void GoodG2B(HttpRequest req, HttpResponse resp) { /* FIX: Use a hardcoded class name */ data = "Testing.test"; CWE470_Unsafe_Reflection__Web_Connect_tcp_68b.GoodG2BSink(req, resp); }
/* goodG2B() - use goodsource and badsink */ private static void GoodG2B(HttpRequest req, HttpResponse resp) { /* FIX: Use a hardcoded class name */ data = "Testing.test"; CWE470_Unsafe_Reflection__Web_Connect_tcp_68b.GoodG2BSink(req, resp); }