1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Add a new assert() to help static analyzers understand that a pointer is

never NULL.

FossilOrigin-Name: 433f2b942ee6f79d50ebe9b08fa3ea8162db6a10ce9d80e2bc193124baa1b083
This commit is contained in:
drh
2024-08-07 15:17:37 +00:00
parent 92d317f787
commit c76520c5b9
3 changed files with 8 additions and 7 deletions

View File

@ -563,6 +563,7 @@ static int vdbePmaReadBlob(
rc = vdbePmaReadBlob(p, nCopy, &aNext);
if( rc!=SQLITE_OK ) return rc;
assert( aNext!=p->aAlloc );
assert( aNext!=0 );
memcpy(&p->aAlloc[nByte - nRem], aNext, nCopy);
nRem -= nCopy;
}