aboutsummaryrefslogtreecommitdiff
path: root/src/bitvec.c
AgeCommit message (Collapse)AuthorLines
2025-06-10Improved selection of the divisor when subdividing nested Bitvec objects.drh-1/+3
This fixes a potential stack overflow that can occur when the database size is within 60 pages of the maximum allowed by the file format. FossilOrigin-Name: f7ab764ed9df6d7a4a96cb0933d291f00174f33fed3d9951785078fe225adcb7
2025-06-10Minor corrections to the new Bitvec testing logic.drh-6/+4
FossilOrigin-Name: 77b79ca1277419b91589aff2c601d4abdd7107d48019a58f7f7c85d96c2a538e
2025-06-10Enhancements to sqlite3BitvecBuiltinTest() that allow testing code todrh-12/+24
create very large Bitvec objects that do not use the linear array cross-check. FossilOrigin-Name: c5680672cae23f65637eebf66f3bb983a2864be03ea70378832034f3c89ef728
2025-06-10Improved diagnostics for Bitvec: Add the sqlite3ShowBitvec() routine thatdrh-2/+74
can be called from a debugger (only available with SQLITE_DEBUG). Add new output opcodes for sqlite3BitvecBuiltinTest(). FossilOrigin-Name: dea1e37fa67ada6efc1533b449d9eb22338d9e58eec8f89b48c38319c212c8f4
2025-02-22Tamp down various harmless compiler warnings. Use "int" in places insteaddrh-3/+3
of "u16" or "i16" since the compiler complains less and generates faster code. FossilOrigin-Name: 742827f049768c4f69ccdfaadfad339aaad3bc126d3a68b90cfea01d825bf7ce
2025-02-17Code changes that make it easier to prove that no 32-bit integer overflowsdrh-1/+1
happen during memory allocation. No problems fixed; this change is just to make future maintenance easier. FossilOrigin-Name: 215650a5a1d55bdbca9c92524804a1a54456a17f42a17e53747b21a6507506f5
2023-06-07Add a C-source spell-checking facility. make misspell (on Nix)larrybr-11/+11
FossilOrigin-Name: 26c1bb4bd9e9f56613c3aa87407a7f562fd4ebde5bfd6dece02078001d9a45f8
2021-10-04Fix harmless static-analyzer warnings.drh-1/+1
FossilOrigin-Name: 32f33f356931242b59c01b5df7e180941231e3d9c91577ad33aa4a01e9d59092
2016-12-07Rename the SQLITE_OMIT_BUILTIN_TEST compile-time option to SQLITE_UNTESTABLE.drh-2/+2
FossilOrigin-Name: f360818737e73ee4f944685a547abc8f14f47819
2016-02-13Enhance ability to debug out-of-memory errors.mistachkin-2/+2
FossilOrigin-Name: 6a9c4a3ebfb7cc0738ef6634440ccab44a21ff28
2015-11-21Fix over-length source code lines. No logic changes.drh-1/+2
FossilOrigin-Name: 198d191b2f5ef7d63ac0093c701955c9052fd734
2015-06-29Simplifications and performance improvement in pager_write().drh-2/+5
FossilOrigin-Name: ab7aeeead395a05b91a921ef9ebe9252fffad667
2015-06-29Very small size reduction and performance increase in sqlite3BitvecTest().drh-1/+1
FossilOrigin-Name: 9b3a7281bd45994edf813a687e4b7a0761697929
2015-04-29Use sqlite3_malloc64() in place of sqlite3_malloc() internally.drh-1/+1
FossilOrigin-Name: 48f553b05c05373c0af4b9c3a542979db3a2ee19
2013-03-21Many spelling fixes in comments. No changes to code.mistachkin-1/+1
FossilOrigin-Name: 6f6e2d50941e444ebc83604daddcc034137a05b7
2012-07-30Replace a few sqlite3_malloc()+memset() sequences with calls to ↵dan-2/+1
sqlite3MallocZero(). FossilOrigin-Name: 305b6667265353b858b79bfea1745e64ff3bb7d3
2010-08-05Make the size of a Bitvec object 512 bytes on all platforms, instead ofdrh-1/+1
having the size depend on the size of a pointer. This makes testing easier. FossilOrigin-Name: ca479f3de2927ccc05dc76d10e40c00b8e0c88d1
2009-11-10Remove the obsolete "$Id:$" RCS identifier strings from the source code.drh-2/+0
FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
2009-09-09Increase the size of bitvec objects to 1024 bytes on 64-bit systems.drh-1/+1
FossilOrigin-Name: f1272b90f6078d301ab05592593e9415f2b2b90b
2009-07-25Change a condition to a '%' operator in bitvec.c. (CVS 6940)drh-3/+2
FossilOrigin-Name: 10250fe5c039dbef2e1614e6320f7bd354c10211
2009-07-18Code tweaks in support of full-coverage testing. (CVS 6907)drh-3/+7
FossilOrigin-Name: 22c6dbfdce965e32f3df9aec28e46e714620c362
2009-06-02Further reductions in the amount of stack space required. (CVS 6707)drh-15/+26
FossilOrigin-Name: 04bad9eb6dd8bf7cafc9f3918b676e95d5b1c984
2009-04-01Increase test coverage of bitvec.c slightly. Fix the line length on adrh-4/+6
comment in bitvec.c. (CVS 6432) FossilOrigin-Name: ca3aa3ba7d751be1c2bcd100a203cd9c794a6cef
2009-01-20Big change to make pager.c easier to follow. Unused variables removed, ↵danielk1977-1/+9
comments improved, etc. (CVS 6197) FossilOrigin-Name: 12f7346c13c180ed73d7a2e3b590be457360254a
2009-01-16Revert (6187). (CVS 6188)danielk1977-9/+1
FossilOrigin-Name: a353c1ab376b159c4d12532412365318cdbdcc60
2009-01-16This commit is an error. Reverted by (6188). (CVS 6187)danielk1977-1/+9
FossilOrigin-Name: aa67fd0cdb4f53a0c6e15c001d37554d15006718
2009-01-02Memory allocation failure in Bitvec are probably all benign. Still, adddrh-3/+1
code to check this, just to be sure. (CVS 6104) FossilOrigin-Name: 4688e1c8b1203c3538aa862421ed344888059fe2
2008-11-19Update the SECURE_DELETE code to track the latest changes in the pager. (CVS ↵drh-47/+99
5928) FossilOrigin-Name: e058f509374e98e48eafeba2f1dadff9633d1190
2008-11-11Avoid signed/unsigned comparison warnings in bitvec.c by changing thedrh-4/+5
types of loop variables to unsigned int. (CVS 5880) FossilOrigin-Name: da869446c53ec6ed769bba01cdc2b6fd69a8b5c9
2008-11-03Change the name of the Cursor object to VdbeCursor. (CVS 5857)drh-6/+16
FossilOrigin-Name: fdb98fd8c1706085ebeef8e48ac6737839bed5e5
2008-06-20Add a mode to the sqlite3_test_control() interface to register hooks called ↵danielk1977-3/+3
at the beginning and end of "benign malloc failure" blocks. This allows malloc() failure testing to be done using public APIs only. (CVS 5254) FossilOrigin-Name: 56c8af1452dfdc8da858a2411bd6f3663a8a9326
2008-05-13Make the benign-fault setting recursive. Make all malloc failuresdrh-3/+3
during a rollback benign since there is nothing we can do about them. (CVS 5128) FossilOrigin-Name: a9d1d931358637a6f039723a053098f65530de4b
2008-04-14Get the SQLITE_SECURE_DELETE compile-time option working again.drh-1/+2
Ticket #3050. (CVS 4999) FossilOrigin-Name: 40ba51fd4c621e29e7ff85495b1212c92f06ab31
2008-03-21Add a completely new testing system for the Bitvec object. The newdrh-7/+120
testing system uses sqlite3_test_control() instead of unpublished APIs. Now provides 100% condition/decision coverage. Obscure bugs in Bitvec found and fixed as a result of the enhanced coverage. (CVS 4902) FossilOrigin-Name: 2498d3ea36ecab6d9c0f04ef1c49d76a7a215a4f
2008-03-14Revise Bitvec struct sizing to prevent assertion failure on 64-bit systems ↵mlcreech-4/+7
(CVS 4862) FossilOrigin-Name: a3c12dbe95c8fb93f5b9006bf5d2c5b933fc5e87
2008-02-18Add the Bitvec object for tracking which pages have been journalled.drh-0/+208
This reduces memory consumption and runs faster than the bitmap approach it replaced. (CVS 4794) FossilOrigin-Name: 7c57bdbcdb84d95419ec7029d2e13c593854a8d8