diff --git a/source/model-generator/TaintInTaintThisGenerator.cpp b/source/model-generator/TaintInTaintThisGenerator.cpp index 4e512274..b808781e 100644 --- a/source/model-generator/TaintInTaintThisGenerator.cpp +++ b/source/model-generator/TaintInTaintThisGenerator.cpp @@ -13,16 +13,6 @@ namespace marianatrench { namespace { -const std::vector k_skip_setter_class_suffixes{ - "Activity;", - "Service;", - "Context;", - "ContextWrapper;" - "Webview;", - "Fragment;", - "WebViewClient;", - "ContentProvider;", - "BroadcastReceiver;"}; const std::vector k_allowlist_setter_method_prefixes{ "", "add", @@ -57,16 +47,6 @@ std::vector TaintInTaintThisGenerator::visit_method( } const auto class_name = generator::get_class_name(method); - if (boost::starts_with(class_name, "Landroid") && - std::any_of( - k_skip_setter_class_suffixes.begin(), - k_skip_setter_class_suffixes.end(), - [class_name](const auto& denied_class) { - return boost::ends_with(class_name, denied_class); - })) { - return {}; - } - const auto method_name = generator::get_method_name(method); if (boost::ends_with(class_name, "$Builder;") || std::any_of( @@ -79,11 +59,6 @@ std::vector TaintInTaintThisGenerator::visit_method( for (ParameterPosition parameter_position = 1; parameter_position < method->number_of_parameters(); parameter_position++) { - auto parameter_type = method->parameter_type(parameter_position); - if (parameter_type != nullptr && - parameter_type->str() == "Landroid/content/Context;") { - continue; - } generator::add_propagation_to_self( context_, model,