Skip to content

Commit 47933cb

Browse files
committed
Fix heap use-after-free in string_refinement.cpp
1 parent 194ac7c commit 47933cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solvers/refinement/string_refinement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ static void initial_index_set(
18081808

18091809
while(!to_process.empty())
18101810
{
1811-
const exprt &cur = to_process.back();
1811+
const exprt cur = to_process.back();
18121812
to_process.pop_back();
18131813
if(cur.id() == ID_index && is_char_type(cur.type()))
18141814
{

0 commit comments

Comments
 (0)