Closed
Bug 760783
Opened 14 years ago
Closed 6 years ago
sqlite3_quota_ftruncate() likely broken
Categories
(Core :: Storage: IndexedDB, defect, P5)
Core
Storage: IndexedDB
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: janv, Unassigned)
Details
I changed GetSize() in Mozilla1/src/dom/indexedDB/FileStream.cpp to call sqlite3_quota_file_truesize() instead of sqlite3_quota_file_size()
test_truncate.html now passes w/o any problems.
So it seems sqlite3_quota_ftruncate() is buggy (the file is correctly truncated, but it corrupts internal quota structures somehow), now when I look at its body, the code doesn't make sense to me.
However, I still wonder why it fails only on android.
| Reporter | ||
Comment 1•14 years ago
|
||
Ben, so it seems that we hit the same bug here ...
If the limit is set to 0, then the quota group disappears at some point and sqlite_quota_file_size() returns -1
So we can call sqlite_quota_file_size() first and then call sqlite_quota_file_truesize() only if the former returned -1
Updated•8 years ago
|
Priority: -- → P5
| Reporter | ||
Comment 4•6 years ago
|
||
SQLite's quota extension has been abandoned long time ago.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•