Open Bug 1315897 Opened 3 years ago Updated 23 days ago

Register a log callback with sqlite3_config and make it crash on SQLITE_MISUSE

Categories

(Toolkit :: Storage, defect, P2)

defect

Tracking

()

Tracking Status
firefox52 --- wontfix

People

(Reporter: mak, Unassigned)

References

(Blocks 2 open bugs)

Details

See https://bugzilla.mozilla.org/show_bug.cgi?id=1123334#c8 and https://bugzilla.mozilla.org/show_bug.cgi?id=1244038#c16

We can register a log callback via `sqlite3_config(SQLITE_CONFIG_LOG, ...)`

This callback could:
- MOZ_ASSERT if the error is SQLITE_MISUSE (coding error)
- Invoke a corruption callback on SQLITE_CORRUPT (bug 1125157)
- MOZ_LOG for other errors
Mass wontfix for bugs affecting firefox 52.
You need to log in before you can comment on or make changes to this bug.