1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix one of two flexible arrays in FTS3.

FossilOrigin-Name: ddfa87c17906ecf7fd5639a87bbfa9a87d17ab688159acd2fd80cc5b6f25f09b
This commit is contained in:
drh
2025-03-14 21:15:11 +00:00
parent 01ef1dfc1f
commit dbd455a0fd
5 changed files with 34 additions and 13 deletions

View File

@ -111,6 +111,10 @@ struct MatchinfoBuffer {
u32 aMatchinfo[1];
};
/* Size (in bytes) of a MatchinfoBuffer sufficient for N elements */
#define SZ_MATCHINFOBUFFER(N) \
(offsetof(MatchinfoBuffer,aMatchinfo)+((((N)+1)/2)*sizeof(u64))
/*
** The snippet() and offsets() functions both return text values. An instance