We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea39c74 commit 780aa52Copy full SHA for 780aa52
src/goto-analyzer/taint_rules.cpp
@@ -114,8 +114,9 @@ boost::optional<taint_rulet::tainted_locationt> taint_rulet::tainted_locationt::
114
<< messaget::eom;
115
return boost::none;
116
}
117
- taint_tokent token = taint_tokent::fresh();
118
- tokens.left.insert({ taint_string, token });
+ // Try to add a new token, get the token added or already in the set
+ taint_tokent token =
119
+ tokens.left.insert({ taint_string, taint_tokent::fresh() }).first->second;
120
return tainted_locationt(location, token, json["dereference"].is_true());
121
122
0 commit comments