aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api
diff options
context:
space:
mode:
authordrh <>2023-10-12 17:47:50 +0000
committerdrh <>2023-10-12 17:47:50 +0000
commitc7ad9f65fa49b67c4ff5491f0231daa18f78afeb (patch)
tree85634a48d972b1418c492d45a766bbfe0ed682db /ext/wasm/api
parent7d1c9da62dcde30f42f2a1d59aaf466207f922b7 (diff)
parent5d9a6c6734168c8388eba41270fa4415f4dfee1c (diff)
downloadsqlite-c7ad9f65fa49b67c4ff5491f0231daa18f78afeb.tar.gz
sqlite-c7ad9f65fa49b67c4ff5491f0231daa18f78afeb.zip
Merge fixes from trunk into the jsonb branch.
FossilOrigin-Name: a760bd7bcc63aac41c989bb5f4fbc927f9a93fe9c0aa18da2f0131483ec3f189
Diffstat (limited to 'ext/wasm/api')
-rw-r--r--ext/wasm/api/sqlite3-wasm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c
index db77010d9..88a679c51 100644
--- a/ext/wasm/api/sqlite3-wasm.c
+++ b/ext/wasm/api/sqlite3-wasm.c
@@ -84,6 +84,14 @@
/**********************************************************************/
/* SQLITE_ENABLE_... */
+/*
+** Unconditionally enable API_ARMOR in the WASM build. It ensures that
+** public APIs behave predictable in the face of passing illegal NULLs
+** or ranges which might otherwise invoke undefined behavior.
+*/
+#undef SQLITE_ENABLE_API_ARMOR
+#define SQLITE_ENABLE_API_ARMOR 1
+
#ifndef SQLITE_ENABLE_BYTECODE_VTAB
# define SQLITE_ENABLE_BYTECODE_VTAB 1
#endif