Fix hardcoded sqlite database header in ObfuscatingVFS.cpp to allow incremental_vacuum for fixed page size databases
Categories
(Core :: Storage: IndexedDB, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox115 | --- | fixed |
People
(Reporter: hsingh, Assigned: hsingh)
References
Details
Attachments
(2 external files, 1 obsolete file)
First reported in https://bugzilla.mozilla.org/show_bug.cgi?id=1832639, incremental_vacuum is not working properly on fixed page size (encrypted sqlite db) databases. This is because we use hard-coded database header for encrypted databases (https://searchfox.org/mozilla-central/source/storage/ObfuscatingVFS.cpp#320-325) and one of the properties (at offset 52 of 100 bytes header) is not getting set properly (see sqlite db file format: https://www.sqlite.org/fileformat.html).
Solution with sample code is captured: https://sqlite.org/mozilla/forumpost/d76c83dc5d
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
| Assignee | ||
Comment 2•3 years ago
|
||
Updated•3 years ago
|
Comment 4•3 years ago
|
||
(In reply to Harveer Singh from comment #0)
Solution with sample code is captured: https://sqlite.org/mozilla/forumpost/d76c83dc5d
FYI, that forum is private, so it's not that useful to refer to that.
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Updated•3 years ago
|
Comment 7•3 years ago
|
||
| bugherder | ||
Comment 8•3 years ago
|
||
| bugherder | ||
Description
•