Skip to content

Commit

Permalink
Reduce insert_values length in QueryResultSerializerTest.RandomSizes
Browse files Browse the repository at this point in the history
The long queries cause sqlite3 to overflow the call stack in Windows
ASan builds with the latest LLVM version (see #comment15 and following
on the bug).

Bug: chromium:367746304
Change-Id: I474daad7a023959f631e7f66270789047c707a7e
  • Loading branch information
zmodem committed Sep 20, 2024
1 parent 9170899 commit 9ac629d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ TEST(QueryResultSerializerTest, RandomSizes) {
insert_values += ",";
} else {
insert_values += "),";
if (insert_values.size() > 1024 * 1024 || i == kNumCells - 1) {
if (insert_values.size() > 100 * 1024 || i == kNumCells - 1) {
insert_values[insert_values.size() - 1] = ';';
auto query = "insert into tab (a,b,c) values " + insert_values;
insert_values = "";
Expand Down

0 comments on commit 9ac629d

Please sign in to comment.