Simon, On Sun, Sep 7, 2014 at 11:39 PM, Simon Slavin <slav...@bigfraud.org> wrote: > > On 8 Sep 2014, at 3:11am, Andres Riancho <andres.rian...@gmail.com> wrote: > >> I'm using sqlite as the database backend for an open source >> project and it works perfectly 99% of the time; however some users >> have reported "database disk image is malformed" errors [1][2]. > > There are two possibilities: > > A) The database really is malformed > B) The client's copy of SQLite is returning that code by mistake. > > Can you have one of these clients send you a copy of their database after > they have received this message ? Then you can try and open it yourself and > see whether it really is malformed.
Let's say that it is possible for me to do that (ask users to submit their DBs and actually get one), I receive it and then: 1- Open -> Get database malformed error 2- Open -> Can read the database In any of the cases, I can't imagine what to do next. > All the incidents like this I can remember have been the result of bad memory > management or using stale pointers. It's likely that you will eventually > find that some other process is overwriting SQLite's memory or writing to the > database file. Oh, so you believe that maybe if the database is really malformed I'll find "garbage" that shouldn't be there using a hex editor, and by understanding what that garbage is (lets say log messages that should go to stderr) I can fix the issue on my software? That would be an outcome of #2 above? > But it's possible you've found a genuine bug in SQLite and we'll try to help. Well, this should be really unlikely, right? > Simon > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users