mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Fix a buffer overrun in the atomic multifile commit logic of the pager. (CVS 1556)
FossilOrigin-Name: 3b78ffe0b5dfa20e5c638d85ed400afda8a9f948
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.117 2004/06/09 20:03:09 drh Exp $
|
||||
** @(#) $Id: pager.c,v 1.118 2004/06/10 00:51:44 drh Exp $
|
||||
*/
|
||||
#include "os.h" /* Must be first to enable large file support */
|
||||
#include "sqliteInt.h"
|
||||
@@ -809,7 +809,7 @@ static int pager_playback(Pager *pPager, int useJournalSize){
|
||||
rc = SQLITE_NOMEM;
|
||||
goto end_playback;
|
||||
}
|
||||
rc = sqlite3OsRead(&pPager->jfd, zMaster, pPager->nMaster);
|
||||
rc = sqlite3OsRead(&pPager->jfd, zMaster, nMaster);
|
||||
if( rc!=SQLITE_OK || (zMaster[0] && !sqlite3OsFileExists(zMaster)) ){
|
||||
goto end_playback;
|
||||
}
|
||||
|
Reference in New Issue
Block a user