From ddf49720636bc7a85d6ab26728dafe079d93042d Mon Sep 17 00:00:00 2001 From: larrybr Date: Mon, 8 Mar 2021 20:13:43 +0000 Subject: [PATCH] Add tests for too-tiny appended DBs, clarify align macro. FossilOrigin-Name: eb40a8dea6afe6890ddda989de83f3d4ae03b112bf78bfc818dfbd57cc5b5b2a --- ext/misc/appendvfs.c | 5 +++-- manifest | 16 +++++++------- manifest.uuid | 2 +- test/avfs.test | 52 +++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 61 insertions(+), 14 deletions(-) diff --git a/ext/misc/appendvfs.c b/ext/misc/appendvfs.c index d3844d4230..590a863587 100644 --- a/ext/misc/appendvfs.c +++ b/ext/misc/appendvfs.c @@ -490,8 +490,9 @@ static int apndIsOrdinaryDatabaseFile(sqlite3_int64 sz, sqlite3_file *pFile){ } /* Round-up used to get appendvfs portion to begin at a page boundary. */ -#define APND_START_ROUNDUP(fsz, nPageBits) \ - (((fsz) + ((1<