Skip to content

Commit e6b92d4

Browse files
romainbrenguiertautschnig
authored andcommitted
Allocate array in String result of String.valueOf(F)
This could otherwise lead to problems in the generation of the verification condition.
1 parent 975f3f9 commit e6b92d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java_bytecode/java_string_library_preprocess.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,8 @@ codet java_string_library_preprocesst::make_float_to_string_code(
998998
{
999999
code_ifthenelset ife;
10001000
ife.cond()=condition_list[i];
1001-
ife.then_case()=code_assign_string_expr_to_java_string(
1002-
str, string_expr_list[i], symbol_table);
1001+
ife.then_case()=code_assign_string_expr_to_new_java_string(
1002+
str, string_expr_list[i], loc, symbol_table);
10031003
ife.else_case()=tmp_code;
10041004
tmp_code=ife;
10051005
}

0 commit comments

Comments
 (0)