Just a random thought ... This is new code in pager.c, 
and if Pager->journalOff  is at the end of the file, 
then perhaps it could cause his problem.

        **
        ** To work around this, if the journal file does appear to
contain
        ** a valid header following Pager.journalOff, then write a 0x00
        ** byte to the start of it to prevent it from being recognized.
        */
        rc = sqlite3OsRead(pPager.jfd, zMagic, 8, jrnlOff);


--- Noah



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of D. Richard Hipp
Sent: Friday, January 16, 2009 3:30 PM
To: General Discussion of SQLite Database
Subject: Re: [sqlite] reading beyond end of file
Importance: High


On Jan 16, 2009, at 5:38 PM, Dave Toll wrote:

> Hello list
>
>
>
> I recently upgraded from SQLite 3.6.7 to 3.6.10 and I'm now noticing
> some apparently undesirable behaviour. I'm running on an embedded  
> system
> with my own VFS implementation, and I see in my tests that SQLite is  
> now
> trying to read journal files at an offset beyond the end of the  
> file. Is
> anyone aware of any recent changes that could cause this scenario?
> Should this case be handled within the VFS implementation?
>


For testing this, I added an assert() to the unix VFS which will fire  
if it ever tries to read past the end of a journal file.  Then I ran  
our test suite.  The assert() never fired.  So in our test suite, at  
least, SQLite never reads past the end of a a journal file.

I'm curious to know what you are doing to provoke it to read past the  
end of a journal file.....

D. Richard Hipp
[email protected]



CONFIDENTIALITY NOTICE: 
This message may contain confidential and/or privileged information. If you are 
not the addressee or authorized to receive this for the addressee, you must not 
use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation.


_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to