Skip to content

Commit fbb0f43

Browse files
committed
fix cipher_integrity_check on databases > 2gb
1 parent eecfc0e commit fbb0f43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ int sqlcipher_codec_ctx_integrity_check(codec_ctx *ctx, Parse *pParse, char *col
13291329
hmac_out = sqlcipher_malloc(ctx->hmac_sz);
13301330

13311331
for(page = 1; page <= file_sz / ctx->page_sz; page++) {
1332-
int offset = (page - 1) * ctx->page_sz;
1332+
i64 offset = (page - 1) * ctx->page_sz;
13331333
int payload_sz = ctx->page_sz - ctx->reserve_sz + ctx->iv_sz;
13341334
int read_sz = ctx->page_sz;
13351335

0 commit comments

Comments
 (0)