We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 828ef53 commit e1624c6Copy full SHA for e1624c6
src/SQLiteNestedVFS.h
@@ -480,6 +480,7 @@ class InnerDatabaseFile : public SQLiteVFS::File {
480
// calculate page number range
481
sqlite3_int64 first_page = 1 + iOfst / page_size_,
482
last_page = first_page + (iAmt - 1) / page_size_;
483
+ last_page = std::min(last_page, (sqlite3_int64)DetectPageCount());
484
int sofar = 0;
485
std::vector<char> pagebuf;
486
0 commit comments