diff options
author | drh <> | 2023-10-12 17:47:50 +0000 |
---|---|---|
committer | drh <> | 2023-10-12 17:47:50 +0000 |
commit | c7ad9f65fa49b67c4ff5491f0231daa18f78afeb (patch) | |
tree | 85634a48d972b1418c492d45a766bbfe0ed682db /ext/wasm/api | |
parent | 7d1c9da62dcde30f42f2a1d59aaf466207f922b7 (diff) | |
parent | 5d9a6c6734168c8388eba41270fa4415f4dfee1c (diff) | |
download | sqlite-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.c | 8 |
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 |