=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== libdbd-sqlite2-perl-0.38/t/50chopblanks.t-95- $dbh->errstr); libdbd-sqlite2-perl-0.38/t/50chopblanks.t:96: $query = "SELECT id, name FROM $table WHERE id = $id\n"; libdbd-sqlite2-perl-0.38/t/50chopblanks.t-97- Test($state or ($sth = $dbh->prepare($query))) ############################################## libdbd-sqlite2-perl-0.38/build.c-618- pz = &pCol->zType; libdbd-sqlite2-perl-0.38/build.c:619: n = pLast->n + Addr(pLast->z) - Addr(pFirst->z); libdbd-sqlite2-perl-0.38/build.c-620- sqliteSetNString(pz, pFirst->z, n, 0); ############################################## libdbd-sqlite2-perl-0.38/build.c-948- assert( pEnd!=0 ); libdbd-sqlite2-perl-0.38/build.c:949: n = Addr(pEnd->z) - Addr(pParse->sFirstToken.z) + 1; libdbd-sqlite2-perl-0.38/build.c-950- sqliteVdbeChangeP3(v, -1, pParse->sFirstToken.z, n); ############################################## libdbd-sqlite2-perl-0.38/build.c-1235- static VdbeOpList dropTable[] = { libdbd-sqlite2-perl-0.38/build.c:1236: { OP_Rewind, 0, ADDR(8), 0}, libdbd-sqlite2-perl-0.38/build.c-1237- { OP_String, 0, 0, 0}, /* 1 */ ############################################## libdbd-sqlite2-perl-0.38/build.c-1240- { OP_Column, 0, 2, 0}, libdbd-sqlite2-perl-0.38/build.c:1241: { OP_Ne, 0, ADDR(7), 0}, libdbd-sqlite2-perl-0.38/build.c-1242- { OP_Delete, 0, 0, 0}, libdbd-sqlite2-perl-0.38/build.c:1243: { OP_Next, 0, ADDR(3), 0}, /* 7 */ libdbd-sqlite2-perl-0.38/build.c-1244- }; ############################################## libdbd-sqlite2-perl-0.38/build.c-1707- if( pStart && pEnd ){ libdbd-sqlite2-perl-0.38/build.c:1708: n = Addr(pEnd->z) - Addr(pStart->z) + 1; libdbd-sqlite2-perl-0.38/build.c-1709- sqliteVdbeChangeP3(v, addr, pStart->z, n); ############################################## libdbd-sqlite2-perl-0.38/build.c-1798- static VdbeOpList dropIndex[] = { libdbd-sqlite2-perl-0.38/build.c:1799: { OP_Rewind, 0, ADDR(9), 0}, libdbd-sqlite2-perl-0.38/build.c-1800- { OP_String, 0, 0, 0}, /* 1 */ ############################################## libdbd-sqlite2-perl-0.38/build.c-1803- { OP_Column, 0, 1, 0}, libdbd-sqlite2-perl-0.38/build.c:1804: { OP_Eq, 0, ADDR(8), 0}, libdbd-sqlite2-perl-0.38/build.c:1805: { OP_Next, 0, ADDR(3), 0}, libdbd-sqlite2-perl-0.38/build.c:1806: { OP_Goto, 0, ADDR(9), 0}, libdbd-sqlite2-perl-0.38/build.c-1807- { OP_Delete, 0, 0, 0}, /* 8 */ ############################################## libdbd-sqlite2-perl-0.38/vdbe.h-74-*/ libdbd-sqlite2-perl-0.38/vdbe.h:75:#define ADDR(X) (-1-(X)) libdbd-sqlite2-perl-0.38/vdbe.h-76- ############################################## libdbd-sqlite2-perl-0.38/vdbe.h-105-void sqliteVdbeResolveLabel(Vdbe*, int); libdbd-sqlite2-perl-0.38/vdbe.h:106:int sqliteVdbeCurrentAddr(Vdbe*); libdbd-sqlite2-perl-0.38/vdbe.h-107-void sqliteVdbeTrace(Vdbe*,FILE*); ############################################## libdbd-sqlite2-perl-0.38/delete.c-176- } libdbd-sqlite2-perl-0.38/delete.c:177: sqliteVdbeAddOp(v, OP_Rewind, iCur, sqliteVdbeCurrentAddr(v)+2); libdbd-sqlite2-perl-0.38/delete.c-178- addr = sqliteVdbeAddOp(v, OP_AddImm, 1, 0); ############################################## libdbd-sqlite2-perl-0.38/delete.c-347- (count?OPFLAG_NCHANGE:0) | OPFLAG_CSCHANGE); libdbd-sqlite2-perl-0.38/delete.c:348: sqliteVdbeChangeP2(v, addr, sqliteVdbeCurrentAddr(v)); libdbd-sqlite2-perl-0.38/delete.c-349-} ############################################## libdbd-sqlite2-perl-0.38/btree.c-435- ** following asserts verify that constraint. */ libdbd-sqlite2-perl-0.38/btree.c:436: assert( Addr(pCell) > Addr(pPage) ); libdbd-sqlite2-perl-0.38/btree.c:437: assert( Addr(pCell) < Addr(pPage) + SQLITE_USABLE_SIZE ); libdbd-sqlite2-perl-0.38/btree.c-438- ############################################## libdbd-sqlite2-perl-0.38/btree.c-2035- assert( sqlitepager_iswriteable(pPage) ); libdbd-sqlite2-perl-0.38/btree.c:2036: freeSpace(pBt, pPage, Addr(pPage->apCell[idx]) - Addr(pPage), sz); libdbd-sqlite2-perl-0.38/btree.c-2037- for(j=idx; j<pPage->nCell-1; j++){ ############################################## libdbd-sqlite2-perl-0.38/btree.c-2088- for(i=0; i<pPage->nCell; i++){ libdbd-sqlite2-perl-0.38/btree.c:2089: int idx = Addr(pPage->apCell[i]) - Addr(pPage); libdbd-sqlite2-perl-0.38/btree.c-2090- assert( idx>0 && idx<SQLITE_USABLE_SIZE ); ############################################## libdbd-sqlite2-perl-0.38/btree.c-2111- pTo->isOverfull = pFrom->isOverfull; libdbd-sqlite2-perl-0.38/btree.c:2112: to = Addr(pTo); libdbd-sqlite2-perl-0.38/btree.c:2113: from = Addr(pFrom); libdbd-sqlite2-perl-0.38/btree.c-2114- for(i=0; i<pTo->nCell; i++){ libdbd-sqlite2-perl-0.38/btree.c:2115: uptr x = Addr(pFrom->apCell[i]); libdbd-sqlite2-perl-0.38/btree.c-2116- if( x>from && x<from+SQLITE_USABLE_SIZE ){ ############################################## libdbd-sqlite2-perl-0.38/getsqlite.pl-27- next if $skip{$_}; libdbd-sqlite2-perl-0.38/getsqlite.pl:28: xsystem("cp $_ ../"); libdbd-sqlite2-perl-0.38/getsqlite.pl-29-} ############################################## libdbd-sqlite2-perl-0.38/select.c-377- if( p->iOffset>=0 ){ libdbd-sqlite2-perl-0.38/select.c:378: int addr = sqliteVdbeCurrentAddr(v) + 2; libdbd-sqlite2-perl-0.38/select.c-379- if( nPop>0 ) addr++; ############################################## libdbd-sqlite2-perl-0.38/select.c-446-#if NULL_ALWAYS_DISTINCT libdbd-sqlite2-perl-0.38/select.c:447: sqliteVdbeAddOp(v, OP_IsNull, -pEList->nExpr, sqliteVdbeCurrentAddr(v)+7); libdbd-sqlite2-perl-0.38/select.c-448-#endif ############################################## libdbd-sqlite2-perl-0.38/select.c-450- if( pParse->db->file_format>=4 ) sqliteAddKeyType(v, pEList); libdbd-sqlite2-perl-0.38/select.c:451: sqliteVdbeAddOp(v, OP_Distinct, distinct, sqliteVdbeCurrentAddr(v)+3); libdbd-sqlite2-perl-0.38/select.c-452- sqliteVdbeAddOp(v, OP_Pop, pEList->nExpr+1, 0); ############################################## libdbd-sqlite2-perl-0.38/select.c-503- case SRT_Set: { libdbd-sqlite2-perl-0.38/select.c:504: int addr1 = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/select.c-505- int addr2; ############################################## libdbd-sqlite2-perl-0.38/select.c-515- } libdbd-sqlite2-perl-0.38/select.c:516: sqliteVdbeChangeP2(v, addr2, sqliteVdbeCurrentAddr(v)); libdbd-sqlite2-perl-0.38/select.c-517- break; ############################################## libdbd-sqlite2-perl-0.38/select.c-609- assert( nColumn==1 ); libdbd-sqlite2-perl-0.38/select.c:610: sqliteVdbeAddOp(v, OP_NotNull, -1, sqliteVdbeCurrentAddr(v)+3); libdbd-sqlite2-perl-0.38/select.c-611- sqliteVdbeAddOp(v, OP_Pop, 1, 0); libdbd-sqlite2-perl-0.38/select.c:612: sqliteVdbeAddOp(v, OP_Goto, 0, sqliteVdbeCurrentAddr(v)+3); libdbd-sqlite2-perl-0.38/select.c-613- sqliteVdbeAddOp(v, OP_String, 0, 0); ############################################## libdbd-sqlite2-perl-0.38/select.c-1419- computeLimitRegisters(pParse, p); libdbd-sqlite2-perl-0.38/select.c:1420: iStart = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/select.c-1421- multiSelectSortOrder(p, p->pOrderBy); ############################################## libdbd-sqlite2-perl-0.38/trigger.c-453- static VdbeOpList dropTrigger[] = { libdbd-sqlite2-perl-0.38/trigger.c:454: { OP_Rewind, 0, ADDR(9), 0}, libdbd-sqlite2-perl-0.38/trigger.c-455- { OP_String, 0, 0, 0}, /* 1 */ libdbd-sqlite2-perl-0.38/trigger.c-456- { OP_Column, 0, 1, 0}, libdbd-sqlite2-perl-0.38/trigger.c:457: { OP_Ne, 0, ADDR(8), 0}, libdbd-sqlite2-perl-0.38/trigger.c-458- { OP_String, 0, 0, "trigger"}, libdbd-sqlite2-perl-0.38/trigger.c-459- { OP_Column, 0, 0, 0}, libdbd-sqlite2-perl-0.38/trigger.c:460: { OP_Ne, 0, ADDR(8), 0}, libdbd-sqlite2-perl-0.38/trigger.c-461- { OP_Delete, 0, 0, 0}, libdbd-sqlite2-perl-0.38/trigger.c:462: { OP_Next, 0, ADDR(1), 0}, /* 8 */ libdbd-sqlite2-perl-0.38/trigger.c-463- }; ############################################## libdbd-sqlite2-perl-0.38/where.c-757- pLevel->inP1 = pX->iTable; libdbd-sqlite2-perl-0.38/where.c:758: pLevel->inP2 = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/where.c-759- }else{ ############################################## libdbd-sqlite2-perl-0.38/where.c-801- pLevel->inP1 = pX->iTable; libdbd-sqlite2-perl-0.38/where.c:802: pLevel->inP2 = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/where.c-803- }else{ ############################################## libdbd-sqlite2-perl-0.38/where.c-827- cont = pLevel->cont = sqliteVdbeMakeLabel(v); libdbd-sqlite2-perl-0.38/where.c:828: sqliteVdbeAddOp(v, OP_NotNull, -nColumn, sqliteVdbeCurrentAddr(v)+3); libdbd-sqlite2-perl-0.38/where.c-829- sqliteVdbeAddOp(v, OP_Pop, nColumn, 0); ############################################## libdbd-sqlite2-perl-0.38/where.c-901- } libdbd-sqlite2-perl-0.38/where.c:902: /* sqliteVdbeAddOp(v, OP_MustBeInt, 0, sqliteVdbeCurrentAddr(v)+1); */ libdbd-sqlite2-perl-0.38/where.c-903- pLevel->iMem = pParse->nMem++; ############################################## libdbd-sqlite2-perl-0.38/where.c-911- } libdbd-sqlite2-perl-0.38/where.c:912: start = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/where.c-913- pLevel->op = OP_Next; ############################################## libdbd-sqlite2-perl-0.38/where.c-930- sqliteVdbeAddOp(v, OP_Rewind, iCur, brk); libdbd-sqlite2-perl-0.38/where.c:931: start = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/where.c-932- pLevel->op = OP_Next; ############################################## libdbd-sqlite2-perl-0.38/where.c-1032- pLevel->iMem = pParse->nMem++; libdbd-sqlite2-perl-0.38/where.c:1033: sqliteVdbeAddOp(v, OP_NotNull, -nCol, sqliteVdbeCurrentAddr(v)+3); libdbd-sqlite2-perl-0.38/where.c-1034- sqliteVdbeAddOp(v, OP_Pop, nCol, 0); ############################################## libdbd-sqlite2-perl-0.38/where.c-1088- int nCol = nEqColumn + ((score&2)!=0); libdbd-sqlite2-perl-0.38/where.c:1089: sqliteVdbeAddOp(v, OP_NotNull, -nCol, sqliteVdbeCurrentAddr(v)+3); libdbd-sqlite2-perl-0.38/where.c-1090- sqliteVdbeAddOp(v, OP_Pop, nCol, 0); ############################################## libdbd-sqlite2-perl-0.38/where.c-1113- */ libdbd-sqlite2-perl-0.38/where.c:1114: start = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/where.c-1115- if( testOp!=OP_Noop ){ ############################################## libdbd-sqlite2-perl-0.38/where.c-1158- if( pLevel->iLeftJoin ){ libdbd-sqlite2-perl-0.38/where.c:1159: pLevel->top = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/where.c-1160- sqliteVdbeAddOp(v, OP_Integer, 1, 0); ############################################## libdbd-sqlite2-perl-0.38/vdbeaux.c-191-*/ libdbd-sqlite2-perl-0.38/vdbeaux.c:192:int sqliteVdbeCurrentAddr(Vdbe *p){ libdbd-sqlite2-perl-0.38/vdbeaux.c-193- assert( p->magic==VDBE_MAGIC_INIT ); ############################################## libdbd-sqlite2-perl-0.38/vdbeaux.c-224- pOut->p1 = pIn->p1; libdbd-sqlite2-perl-0.38/vdbeaux.c:225: pOut->p2 = p2<0 ? addr + ADDR(p2) : p2; libdbd-sqlite2-perl-0.38/vdbeaux.c-226- pOut->p3 = pIn->p3; ############################################## libdbd-sqlite2-perl-0.38/sqliteInt.h-146-*/ libdbd-sqlite2-perl-0.38/sqliteInt.h:147:#define Addr(X) ((uptr)X) libdbd-sqlite2-perl-0.38/sqliteInt.h-148- ############################################## libdbd-sqlite2-perl-0.38/update.c-422- sqliteVdbeAddOp(v, OP_Goto, 0, loopStart); libdbd-sqlite2-perl-0.38/update.c:423: sqliteVdbeChangeP2(v, jumpInst, sqliteVdbeCurrentAddr(v)); libdbd-sqlite2-perl-0.38/update.c-424- sqliteVdbeAddOp(v, OP_ListReset, 0, 0); ############################################## libdbd-sqlite2-perl-0.38/insert.c-181- iInitCode = sqliteVdbeAddOp(v, OP_Goto, 0, 0); libdbd-sqlite2-perl-0.38/insert.c:182: iSelectLoop = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/insert.c-183- iInsertBlock = sqliteVdbeMakeLabel(v); ############################################## libdbd-sqlite2-perl-0.38/insert.c-227- */ libdbd-sqlite2-perl-0.38/insert.c:228: sqliteVdbeChangeP2(v, iInitCode, sqliteVdbeCurrentAddr(v)); libdbd-sqlite2-perl-0.38/insert.c-229- sqliteVdbeAddOp(v, OP_OpenTemp, srcTab, 0); ############################################## libdbd-sqlite2-perl-0.38/insert.c-232- }else{ libdbd-sqlite2-perl-0.38/insert.c:233: sqliteVdbeChangeP2(v, iInitCode, sqliteVdbeCurrentAddr(v)); libdbd-sqlite2-perl-0.38/insert.c-234- } ############################################## libdbd-sqlite2-perl-0.38/insert.c-344- sqliteVdbeAddOp(v, OP_Rewind, srcTab, iBreak); libdbd-sqlite2-perl-0.38/insert.c:345: iCont = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/insert.c-346- }else if( pSelect ){ ############################################## libdbd-sqlite2-perl-0.38/insert.c-369- sqliteExprCode(pParse, pList->a[keyColumn].pExpr); libdbd-sqlite2-perl-0.38/insert.c:370: sqliteVdbeAddOp(v, OP_NotNull, -1, sqliteVdbeCurrentAddr(v)+3); libdbd-sqlite2-perl-0.38/insert.c-371- sqliteVdbeAddOp(v, OP_Pop, 1, 0); ############################################## libdbd-sqlite2-perl-0.38/insert.c-431- */ libdbd-sqlite2-perl-0.38/insert.c:432: sqliteVdbeAddOp(v, OP_NotNull, -1, sqliteVdbeCurrentAddr(v)+3); libdbd-sqlite2-perl-0.38/insert.c-433- sqliteVdbeAddOp(v, OP_Pop, 1, 0); ############################################## libdbd-sqlite2-perl-0.38/insert.c-690- } libdbd-sqlite2-perl-0.38/insert.c:691: sqliteVdbeChangeP2(v, addr, sqliteVdbeCurrentAddr(v)); libdbd-sqlite2-perl-0.38/insert.c-692- } ############################################## libdbd-sqlite2-perl-0.38/insert.c-746- } libdbd-sqlite2-perl-0.38/insert.c:747: contAddr = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/insert.c-748- sqliteVdbeChangeP2(v, jumpInst2, contAddr); ############################################## libdbd-sqlite2-perl-0.38/insert.c-844- } libdbd-sqlite2-perl-0.38/insert.c:845: contAddr = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/insert.c-846-#if NULL_DISTINCT_FOR_UNIQUE ############################################## libdbd-sqlite2-perl-0.38/pragma.c-673- sqliteVdbeChangeP3(v, addr+4, pIdx->zName, P3_STATIC); libdbd-sqlite2-perl-0.38/pragma.c:674: sqliteVdbeChangeP2(v, jmp2, sqliteVdbeCurrentAddr(v)); libdbd-sqlite2-perl-0.38/pragma.c-675- } libdbd-sqlite2-perl-0.38/pragma.c-676- sqliteVdbeAddOp(v, OP_Next, 1, loopTop+1); libdbd-sqlite2-perl-0.38/pragma.c:677: sqliteVdbeChangeP2(v, loopTop, sqliteVdbeCurrentAddr(v)); libdbd-sqlite2-perl-0.38/pragma.c-678- for(j=0, pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext, j++){ ############################################## libdbd-sqlite2-perl-0.38/expr.c-62- pExpr->span.z = pLeft->z; libdbd-sqlite2-perl-0.38/expr.c:63: pExpr->span.n = pRight->n + Addr(pRight->z) - Addr(pLeft->z); libdbd-sqlite2-perl-0.38/expr.c-64- }else{ ############################################## libdbd-sqlite2-perl-0.38/expr.c-1137- sqliteExprCode(pParse, pExpr->pLeft); libdbd-sqlite2-perl-0.38/expr.c:1138: dest = sqliteVdbeCurrentAddr(v) + 2; libdbd-sqlite2-perl-0.38/expr.c-1139- sqliteVdbeAddOp(v, op, 1, dest); ############################################## libdbd-sqlite2-perl-0.38/expr.c-1169- sqliteExprCode(pParse, pExpr->pLeft); libdbd-sqlite2-perl-0.38/expr.c:1170: addr = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/expr.c-1171- sqliteVdbeAddOp(v, OP_NotNull, -1, addr+4); ############################################## libdbd-sqlite2-perl-0.38/expr.c-1224- sqliteVdbeAddOp(v, OP_Goto, 0, expr_end_label); libdbd-sqlite2-perl-0.38/expr.c:1225: addr = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/expr.c-1226- sqliteVdbeChangeP2(v, jumpInst, addr); ############################################## libdbd-sqlite2-perl-0.38/expr.c-1354- sqliteExprCode(pParse, pExpr->pLeft); libdbd-sqlite2-perl-0.38/expr.c:1355: addr = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/expr.c-1356- sqliteVdbeAddOp(v, OP_NotNull, -1, addr+3); ############################################## libdbd-sqlite2-perl-0.38/expr.c-1374- sqliteVdbeAddOp(v, OP_Integer, 0, 0); libdbd-sqlite2-perl-0.38/expr.c:1375: sqliteVdbeChangeP2(v, addr, sqliteVdbeCurrentAddr(v)); libdbd-sqlite2-perl-0.38/expr.c-1376- sqliteVdbeAddOp(v, OP_Pop, 1, 0); ############################################## libdbd-sqlite2-perl-0.38/expr.c-1455- sqliteExprCode(pParse, pExpr->pLeft); libdbd-sqlite2-perl-0.38/expr.c:1456: addr = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/expr.c-1457- sqliteVdbeAddOp(v, OP_NotNull, -1, addr+3); ############################################## libdbd-sqlite2-perl-0.38/expr.c-1471- sqliteExprCode(pParse, pExpr->pList->a[0].pExpr); libdbd-sqlite2-perl-0.38/expr.c:1472: addr = sqliteVdbeCurrentAddr(v); libdbd-sqlite2-perl-0.38/expr.c-1473- sqliteVdbeAddOp(v, OP_Ge, !jumpIfNull, addr+3); ############################################## libdbd-sqlite2-perl-0.38/hash.c-82-static int ptrHash(const void *pKey, int nKey){ libdbd-sqlite2-perl-0.38/hash.c:83: uptr x = Addr(pKey); libdbd-sqlite2-perl-0.38/hash.c-84- return x ^ (x<<8) ^ (x>>8);