1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Additional defense against the rowid-fifo overflow problem. (CVS 2622)

FossilOrigin-Name: 881dcf5fb16997830ff347d2eb2610784b415f25
This commit is contained in:
drh
2005-08-24 17:07:37 +00:00
parent 978468d488
commit 0f77f5dc0b
3 changed files with 10 additions and 10 deletions

View File

@@ -265,9 +265,9 @@ struct Set {
*/
typedef struct FifoPage FifoPage;
struct FifoPage {
u16 nSlot; /* Number of entries aSlot[] */
u16 iWrite; /* Push the next value into this entry in aSlot[] */
i16 iRead; /* Read the next value from this entry in aSlot[] */
int nSlot; /* Number of entries aSlot[] */
int iWrite; /* Push the next value into this entry in aSlot[] */
int iRead; /* Read the next value from this entry in aSlot[] */
FifoPage *pNext; /* Next page in the fifo */
i64 aSlot[1]; /* One or more slots for rowid values */
};