SQLite Forum

BUG - SQLite Crash: EXC_BAD_ACCESS (code=1, address=0x54)
I'm using SQLCipher for Android <https://github.com/sqlcipher/android-database-sqlcipher> 
and I'm having a crash in my code, as explained in this issue <https://github.com/sqlcipher/android-database-sqlcipher/issues/508>.
It seems to be a SQLite bug in 3.31.0 e 3.31.1 versions, that has been fixed in the most recent snapshot.

Here is the crash log extrapolated by sqlcipher team:

Process 30329 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x54)
    frame #0: 0x00000001000dcaf2 sqlite3`isAuxiliaryVtabOperator(db=0x0000000100604080, pExpr=0x0000000108016030, peOp2="", ppLeft=0x00007ffeefbfcb00, ppRight=0x00007ffeefbfcb08) at sqlite3.c:142621:33
   142618	    int res = 0;
   142619	    Expr *pLeft = pExpr->pLeft;
   142620	    Expr *pRight = pExpr->pRight;
-> 142621	    if( pLeft->op==TK_COLUMN && IsVirtual(pLeft->y.pTab) ){
   142622	      res++;
   142623	    }
   142624	    if( pRight && pRight->op==TK_COLUMN && IsVirtual(pRight->y.pTab) ){
Target 0: (sqlite3) stopped.

I can't patch SQLCipher with this pre-release version, I'm in a production environment.
Is there a workaround for this bug? How can I check if my code contains other potentially dangerous queries?
Thanks for your support