mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Change the structuree exception handler in wal.c to catch EXCEPTION_IN_PAGE_ERROR instead of EXCEPTION_ACCESS_VIOLATION.
FossilOrigin-Name: 0c6ab539cfbc908550fa993a587e85d644b6335853ff9781caae860c461c045d
This commit is contained in:
@@ -640,7 +640,7 @@ struct WalIterator {
|
||||
*/
|
||||
static int sehExceptionFilter(Wal *pWal, int eCode){
|
||||
VVA_ONLY(pWal->nSehTry--);
|
||||
if( eCode==EXCEPTION_ACCESS_VIOLATION ){
|
||||
if( eCode==EXCEPTION_IN_PAGE_ERROR ){
|
||||
return EXCEPTION_EXECUTE_HANDLER;
|
||||
}
|
||||
return EXCEPTION_CONTINUE_SEARCH;
|
||||
@@ -655,7 +655,7 @@ static int sehExceptionFilter(Wal *pWal, int eCode){
|
||||
static void sehInjectFault(Wal *pWal){
|
||||
assert( pWal->nSehTry>0 );
|
||||
if( sqlite3FaultSim(650) ){
|
||||
RaiseException(EXCEPTION_ACCESS_VIOLATION, 0, 0, NULL);
|
||||
RaiseException(EXCEPTION_IN_PAGE_ERROR, 0, 0, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user