Skip to content

Commit 937fafd

Browse files
author
D. Richard Hipp
committed
Fix a couple of assert() statements so that they cannot fire
when the SQLITE_TESTCTRL_INTERNAL_FUNCTIONS debugging capability is activated. dbsqlfuzz f5b347cf167a62fbe08062b2feee65cb9306e363.
1 parent f19f3fb commit 937fafd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vdbeaux.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -5336,7 +5336,8 @@ sqlite3_value *sqlite3VdbeGetBoundValue(Vdbe *v, int iVar, u8 aff){
53365336
assert( iVar>0 );
53375337
if( v ){
53385338
Mem *pMem = &v->aVar[iVar-1];
5339-
assert( (v->db->flags & SQLITE_EnableQPSG)==0 );
5339+
assert( (v->db->flags & SQLITE_EnableQPSG)==0
5340+
|| (v->db->mDbFlags & DBFLAG_InternalFunc)!=0 );
53405341
if( 0==(pMem->flags & MEM_Null) ){
53415342
sqlite3_value *pRet = sqlite3ValueNew(v->db);
53425343
if( pRet ){
@@ -5356,7 +5357,8 @@ sqlite3_value *sqlite3VdbeGetBoundValue(Vdbe *v, int iVar, u8 aff){
53565357
*/
53575358
void sqlite3VdbeSetVarmask(Vdbe *v, int iVar){
53585359
assert( iVar>0 );
5359-
assert( (v->db->flags & SQLITE_EnableQPSG)==0 );
5360+
assert( (v->db->flags & SQLITE_EnableQPSG)==0
5361+
|| (v->db->mDbFlags & DBFLAG_InternalFunc)!=0 );
53605362
if( iVar>=32 ){
53615363
v->expmask |= 0x80000000;
53625364
}else{

0 commit comments

Comments
 (0)