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:
@ -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) );
|
||||
}
|
||||
|
Reference in New Issue
Block a user