Skip to content

Commit

Permalink
Merge pull request SOCI#659 from hrabe/fix-crash-using-address-sanitizer
Browse files Browse the repository at this point in the history
Avoid stack overflow due to temp struct used in method stack
  • Loading branch information
mloskot authored Jun 14, 2018
2 parents d5e2dff + 92acfb3 commit a85e478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/common-tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -1985,8 +1985,9 @@ TEST_CASE_METHOD(common_tests, "Use with indicators", "[core][use][indicator]")

int id = 1;
int val = 10;
std::tm tm_gen = generate_tm();
char const* insert = "insert into soci_test(id, val, tm) values(:id, :val, :tm)";
sql << insert, use(id, ind1), use(val, ind2), use(generate_tm(), ind3);
sql << insert, use(id, ind1), use(val, ind2), use(tm_gen, ind3);

id = 2;
val = 11;
Expand Down

0 comments on commit a85e478

Please sign in to comment.