diff options
author | dan <Dan Kennedy> | 2025-05-30 11:14:11 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2025-05-30 11:14:11 +0000 |
commit | b65326f51a2c8c9fcb5331cde36d55aa7d209a27 (patch) | |
tree | 63804bfff456d9d15754de1324725c23f6692e7c /ext | |
parent | 0148820fd740b0786f703703ba49bbeb6889c9bf (diff) | |
download | sqlite-b65326f51a2c8c9fcb5331cde36d55aa7d209a27.tar.gz sqlite-b65326f51a2c8c9fcb5331cde36d55aa7d209a27.zip |
Add "include <stddef.h>" to fts5 and rtree to ensure that they use the system version of the offsetof() macro when it is available, as the built-in version triggers ubsan errors with clang.
FossilOrigin-Name: 838deb7f3423df84061a043928ed34e1d74e2e7d57ef1a9519bb32fea82e4352
Diffstat (limited to 'ext')
-rw-r--r-- | ext/fts5/fts5Int.h | 1 | ||||
-rw-r--r-- | ext/rtree/rtree.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ext/fts5/fts5Int.h b/ext/fts5/fts5Int.h index 2da347862..7ad1cc16b 100644 --- a/ext/fts5/fts5Int.h +++ b/ext/fts5/fts5Int.h @@ -20,6 +20,7 @@ SQLITE_EXTENSION_INIT1 #include <string.h> #include <assert.h> +#include <stddef.h> #ifndef SQLITE_AMALGAMATION diff --git a/ext/rtree/rtree.c b/ext/rtree/rtree.c index f90fd5a0a..d8567b65a 100644 --- a/ext/rtree/rtree.c +++ b/ext/rtree/rtree.c @@ -64,6 +64,8 @@ #endif int sqlite3GetToken(const unsigned char*,int*); /* In the SQLite core */ +#include <stddef.h> + /* ** If building separately, we will need some setup that is normally ** found in sqliteInt.h |