Skip to content

Commit 9780dbf

Browse files
committed
Fixed bug that didn't make strong updates in taint
Fixed bug that didn't make strong updates in taint analysis when we had most-recent-allocation dynamic-objects.
1 parent 85405cf commit 9780dbf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pointer-analysis/local_value_set_analysis.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,12 @@ bool local_value_set_analysist::is_singular(const std::set<exprt> &values)
364364
if(values.size()!=1)
365365
return false;
366366

367-
const exprt &object=*values.begin();
367+
exprt object=*values.begin();
368+
if(object.id()==ID_member)
369+
{
370+
object=object.op0();
371+
}
372+
368373
if(object.id()==ID_dynamic_object)
369374
{
370375
return to_dynamic_object_expr(object).get_recency()==

0 commit comments

Comments
 (0)