diff options
author | dan <Dan Kennedy> | 2021-08-26 21:12:07 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2021-08-26 21:12:07 +0000 |
commit | ee7c667a364035db0ca9ced959b918e6ed40d7bf (patch) | |
tree | 09ea26db67949c1324dc22c857c4882ee00911fb /src | |
parent | 101a6b87c79f83dcc08cd513f3fc30bbe808962c (diff) | |
download | sqlite-ee7c667a364035db0ca9ced959b918e6ed40d7bf.tar.gz sqlite-ee7c667a364035db0ca9ced959b918e6ed40d7bf.zip |
Change the structuree exception handler in wal.c to catch EXCEPTION_IN_PAGE_ERROR instead of EXCEPTION_ACCESS_VIOLATION.
FossilOrigin-Name: 0c6ab539cfbc908550fa993a587e85d644b6335853ff9781caae860c461c045d
Diffstat (limited to 'src')
-rw-r--r-- | src/wal.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } } |