We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 17052cf + cea995a commit bace8c1Copy full SHA for bace8c1
src/taint-slicer/instrumenter.cpp
@@ -368,6 +368,14 @@ exprt taint_instrumentert::drive_access_path_through_super_classes(
368
fixed_struct_type=to_struct_type(
369
get_instrumented_symbol_table().lookup_ref(member_type_name).type);
370
}
371
+ // The following 'if' statement is a HACK. It is a temporary hot-fix for
372
+ // inconsistency between the symbol table and GOTO instructions, when
373
+ // translating generics; see SEC-450 for more details.
374
+ if(member_expr->get_component_name() == "@java.lang.Object" &&
375
+ fixed_struct_type.get_tag() == "java.lang.Object")
376
+ {
377
+ return fixed_compound;
378
+ }
379
INVARIANT(fixed_struct_type.has_component(
380
member_expr->get_component_name()),
381
"The member must exist now (either the original or the super variable).");
0 commit comments