[sqlite] Logically dead code in function sqlite3_index_info

2015-08-15 Thread Carlos Tangerino
if( pTerm->wtFlags & *TERM_VNULL* ) continue; *-(1)* pIdxCons[j].iColumn = pTerm->u.leftColumn; pIdxCons[j].iTermOffset = i; Best regards. Carlos Tangerino

[sqlite] Using uninitialized value nDummy when calling vdbePmaReaderInit

2015-08-15 Thread Carlos Tangerino
Bug list return me error, so posting here hoping someone watchs it. A suspicious piece of code. The variable nDummy is not initialized *(1)* in the function but its pointer *(2)* is passed to *vdbePmaReaderInit* that increments *(3)* its value. static int vdbeMergeEngineLevel0( SortSubtask