sqlite: safely move pointer values through SQL.

Desktop / Chromium - Victor Costan [chromium.org] - 17 July 2017 18:23 EDT

This lands https://www.sqlite.org/src/timeline?c=d6a44b35 in third_party/sqlite/src/ and third_party/sqlite/patches/0013-Add-new-interfaces-sqlite3_bind_pointer-sqlite3_resu.patch and re-generates third_party/sqlite/amalgamation/* using the script at third_party/sqlite/google_generate_amalgamation.sh.

The CL also adds a layout test that verifies the patch works as intended.

BUG=742407

Change-Id: I2e1a457459cd2e975e6241b630e7b79c82545981 Reviewed-on: https://chromium-review.googlesource.com/572976

3bfe67c sqlite: safely move pointer values through SQL.
.../storage/websql/fts-crash-703507.html | 2 +-
.../storage/websql/fts-pointer-leak-742407.html | 35 ++
third_party/sqlite/amalgamation/sqlite3.c | 79 +++-
third_party/sqlite/amalgamation/sqlite3.h | 29 +-
...erfaces-sqlite3_bind_pointer-sqlite3_resu.patch | 420 +++++++++++++++++++++
third_party/sqlite/src/ext/fts3/fts3.c | 13 +-
third_party/sqlite/src/ext/misc/carray.c | 46 ++-
third_party/sqlite/src/ext/misc/remember.c | 6 +-
third_party/sqlite/src/src/sqlite.h.in | 29 +-
third_party/sqlite/src/src/vdbeInt.h | 2 +
third_party/sqlite/src/src/vdbeapi.c | 24 ++
third_party/sqlite/src/src/vdbemem.c | 11 +
third_party/sqlite/src/test/tabfunc01.test | 25 +-
13 files changed, 669 insertions(+), 52 deletions(-)

Upstream: git.chromium.org


  • Share