1
0
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:
dan
2021-08-26 21:12:07 +00:00
parent 101a6b87c7
commit ee7c667a36
3 changed files with 9 additions and 9 deletions

View File

@@ -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);
}
}