1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix a crash that can follow an OOM when "all tables" are registered with a session module.

FossilOrigin-Name: 183c236e991faaabdc768e52e926c52cf4a7abc9
This commit is contained in:
dan
2011-03-22 16:54:12 +00:00
parent ff4d0f41bb
commit 245b49b203
4 changed files with 40 additions and 10 deletions

View File

@ -781,7 +781,7 @@ static void xPreUpdate(
/* This branch is taken if table zName has not yet been attached to
** this session and the auto-attach flag is set. */
pSession->rc = sqlite3session_attach(pSession,zName);
if( pSession->rc ) continue;
if( pSession->rc ) break;
pTab = pSession->pTable;
assert( 0==sqlite3_strnicmp(pTab->zName, zName, nName+1) );
}